/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header et contact */
header {
    background-color: #ffcc00;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    animation: headerBounce 2s infinite ease-in-out;
}

#titre {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    animation: bounceIn 1.5s ease;
}

#contact {
    font-size: 18px;
    text-align: right;
    color: #333;
    animation: slideIn 1.5s ease;
}

.email {
    color: #ff6600;
}

/* Menu de navigation */
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: #333;
    animation: menuFadeIn 1s ease-out;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    color: white;
    background-color: #ff6600;
    padding: 15px 30px;
    border-radius: 10px;
    transition: transform 0.3s, background-color 0.3s;
    animation: linkHover 2s infinite ease-in-out;
}

nav ul li a:hover {
    background-color: #ffcc00;
    transform: scale(1.1);
}

/* Style des images et contenus */
.hero, .content {
    padding: 40px;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    animation: zoomIn 2s ease;
}

h1, h2 {
    margin-bottom: 20px;
    font-size: 36px;
    color: #ff6600;
    animation: funText 3s infinite;
}

p {
    margin-bottom: 20px;
    font-size: 18px;
    animation: textFadeIn 1.5s ease-in-out;
}

/* Footer */
footer {
    background-color: #ffcc00;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    position: relative;
    bottom: 0;
    width: 100%;
    animation: footerBounce 2s infinite ease-in-out;
}

/* Animations */
@keyframes headerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounceIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes menuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes linkHover {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes funText {
    0%, 100% { color: #ff6600; }
    50% { color: #333; }
}

@keyframes textFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes footerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Style responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    #contact {
        text-align: center;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    img {
        max-width: 90%;
    }
}
