/* ============================================
   RESET ET STYLES DE BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================
   HEADER ET NAVIGATION
   ============================================ */
header {
    background: white;
    padding: 25px max(5%, calc((100% - 1200px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-style: italic;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: #7ab8e8;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    height: 80px;
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 100%;
    width: auto;
}

/* ============================================
   ICÔNES SOCIALES
   ============================================ */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #d4e8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #7ab8e8;
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: #333;
}

/* ============================================
   MENU HAMBURGER (MOBILE)
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 102;
    position: relative;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle.active {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span {
    background: #7ab8e8;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   NAVIGATION MOBILE ET OVERLAY
   ============================================ */
.mobile-nav {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #edf4fa 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-logo {
    height: 160px;
    width: auto;
    margin-bottom: 30px;
}

.hero-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 24px;
    color: #555;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 50px;
}

.hero-star {
    position: absolute;
    color: #7ab8e8;
    opacity: 0.4;
    animation: twinkle 3s infinite;
    pointer-events: none;
}

.scroll-arrow {
    color: #7ab8e8;
    animation: bounce 2s infinite;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #d4e8f5;
    transition: border-color 0.3s, color 0.3s;
}

.scroll-arrow:hover {
    border-color: #7ab8e8;
    color: #5a9fd4;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */
main {
    margin: 0;
    padding: 0 max(5%, calc((100% - 1200px) / 2));
}

main > .hero {
    margin: 0 calc(-1 * max(5%, calc((100% - 1200px) / 2)));
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.image-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.sound-toggle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 5;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
}

.sound-toggle svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.image-container img,
.image-container video {
    width: 100%;
    height: auto;
    display: block;
}

.text-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-style: italic;
    color: #333;
    margin-bottom: 25px;
    font-variant: small-caps;
}

.text-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    scroll-margin-top: 130px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-style: italic;
    color: #333;
    margin-bottom: 30px;
    font-variant: small-caps;
    text-align: center;
}

.about-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
}

.about-section p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.about-section p em {
    color: #333;
    font-style: italic;
}

/* ============================================
   SECTION STATS / CHIFFRES CLÉS
   ============================================ */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e8f0f8;
    border-radius: 12px;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(122, 184, 232, 0.15);
}

.stat-icon {
    display: block;
    font-size: 28px;
    color: #7ab8e8;
    margin-bottom: 12px;
}

.stat-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* ============================================
   SÉPARATEURS ÉTOILES
   ============================================ */
.section-divider {
    text-align: center;
    color: #7ab8e8;
    font-size: 20px;
    letter-spacing: 12px;
    opacity: 0.5;
    padding: 40px 0;
}

/* ============================================
   SECTION NOUS REJOINDRE (CTA)
   ============================================ */
.join-section {
    margin: 0 calc(-1 * max(5%, calc((100% - 1200px) / 2)));
    padding: 60px max(5%, calc((100% - 1200px) / 2));
    background: #d4e8f5;
    text-align: center;
}

.join-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.join-section .section-title {
    font-size: 40px;
}

.join-section p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
}

.email-link {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
}

.email-link:hover {
    background: #7ab8e8;
    color: white;
    transform: scale(1.05);
}

.join-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.join-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.join-socials a:hover {
    transform: scale(1.1);
    background: #7ab8e8;
}

.join-socials svg {
    width: 22px;
    height: 22px;
    fill: #333;
}

/* ============================================
   DÉCORATION ÉTOILES
   ============================================ */
.stars-decoration {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 180px;
    height: 120px;
    opacity: 0.6;
    z-index: 10;
}

.star {
    position: absolute;
    color: #7ab8e8;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-divider.reveal.visible {
    opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fb;
    margin-top: auto;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4e8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.footer-socials a:hover {
    transform: scale(1.1);
    background: #7ab8e8;
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.footer-copy {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

footer a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

footer a:hover {
    color: #7ab8e8;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 15px 5%;
        gap: 15px;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        position: fixed;
        top: 1rem;
        left: 5%;
        z-index: 103;
    }

    .logo {
        height: 65px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 15px;
    }

    .social-icons {
        width: 100%;
        justify-content: center;
        order: 3;
        gap: 20px;
        margin-top: 75px;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
    }

    .social-icons svg {
        width: 24px;
        height: 24px;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.15);
        padding: 120px 2rem 3rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #7ab8e8, #a8d4f0);
    }

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

    .mobile-nav.active a {
        animation: slideInMenu 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .mobile-nav.active a:nth-of-type(1) {
        animation-delay: 0.1s;
    }

    .mobile-nav.active a:nth-of-type(2) {
        animation-delay: 0.2s;
    }

    .mobile-nav.active a:nth-of-type(3) {
        animation-delay: 0.3s;
    }

    @keyframes slideInMenu {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-nav a {
        text-decoration: none;
        color: #333;
        font-style: italic;
        font-weight: 700;
        font-size: 1.35rem;
        padding: 1.125rem 1.5rem;
        margin: 0 -1rem;
        border-radius: 12px;
        position: relative;
        display: block;
    }

    .mobile-close {
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 48px;
        height: 48px;
        background: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 102;
    }

    .mobile-close::before,
    .mobile-close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 3px;
        background: #7ab8e8;
        border-radius: 2px;
    }

    .mobile-close::before {
        transform: rotate(45deg);
    }

    .mobile-close::after {
        transform: rotate(-45deg);
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    .content-section {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }

    .text-content h2 {
        font-size: 28px;
    }

    .stars-decoration {
        width: 100px;
        height: 100px;
    }

    .hero-logo {
        height: 120px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-value {
        font-size: 17px;
    }

    .section-divider {
        padding: 25px 0;
    }

    .join-section .section-title {
        font-size: 30px;
    }

    .about-section {
        padding: 0 5%;
    }

    .section-title {
        font-size: 28px;
    }

    .email-link {
        padding: 12px 24px;
        font-size: 14px;
        word-break: break-all;
        max-width: 100%;
    }

    .footer-copy {
        font-size: 13px;
        padding: 0 10px;
    }

    .stats-section {
        padding: 30px 0;
    }

    .stat-icon {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .join-section {
        padding: 40px 5%;
    }
}
