/* Importation de la police Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Styles de base */
body {
    background: #fdf1f8;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Bandeau blanc en haut */
.top-banner {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    text-decoration: none;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Menu hamburger */
.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    border-radius: 50%;
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Menu déroulant */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
    left: 0;
}

/* Bouton de fermeture */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.close-menu:active {
    transform: scale(0.95) rotate(90deg);
}

/* Liste de navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-menu ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.active ul li {
    opacity: 1;
    transform: translateX(0);
}

/* Animation séquentielle des liens */
.nav-menu ul li:nth-child(1) { transition-delay: 0.1s; }
.nav-menu ul li:nth-child(2) { transition-delay: 0.15s; }
.nav-menu ul li:nth-child(3) { transition-delay: 0.2s; }
.nav-menu ul li:nth-child(4) { transition-delay: 0.25s; }
.nav-menu ul li:nth-child(5) { transition-delay: 0.3s; }

.nav-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 15px 20px;
    border-radius: 12px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.nav-menu ul li:not(:last-child) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff69b4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu ul li:not(:last-child) a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu ul li:last-child {
    margin-top: 10px;
}

.nav-menu ul li:last-child a {
    background: #ff69b4;
    color: white;
    border-radius: 25px;
    text-align: center;
    padding: 15px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.nav-menu ul li:last-child a:hover {
    background: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.nav-menu ul li a:active {
    transform: scale(0.98);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/background.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(5px);
    transform: scale(1.1);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: clamp(12px, 3vw, 15px) clamp(24px, 5vw, 30px);
    background: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s;
}

.cta-button:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Footer amélioré */
footer {
    background: white;
    padding: 40px 20px;
    position: relative;
    width: 100%;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f8f8f8;
}

.social-link:hover {
    background: #ff69b4;
    color: white;
    transform: translateY(-2px);
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-link {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f8f8f8;
}

.email-link:hover {
    background: #ff69b4;
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    margin: 15px 0;
}

.footer-link {
    color: #666;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    background: #ff69b4;
    color: white;
}

.copyright {
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}

.copyright p {
    margin: 5px 0;
}

.impact-link {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.impact-link:hover {
    color: #ff1493;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .top-banner {
        padding: 10px 15px;
    }

    .logo-container {
        height: 50px;
    }

    .logo {
        height: 50px;
    }

    .menu-toggle {
        font-size: 22px;
    }

    .nav-menu ul li a {
        font-size: 16px;
        padding: 12px 16px;
    }

    .nav-menu ul li:last-child a {
        padding: 12px 25px;
    }

    .hero {
        margin-top: 55px;
    }

    footer {
        padding: 30px 15px;
    }

    .footer-container {
        gap: 15px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        height: 40px;
    }

    .logo {
        height: 40px;
    }

    .hero {
        padding: 0 15px;
    }

    .footer-container {
        gap: 10px;
    }

    .email-link {
        font-size: 1rem;
    }

    .footer-links {
        margin: 10px 0;
    }

    .footer-link {
        padding: 4px 12px;
        font-size: 0.85rem;
    }
}

/* Optimisations de performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}