/* =========================================
   THEME: WHITE JUNGLE EXPERIENCE
   VERSION: 3.1 (Minimaliste Premium + Fixed)
   ========================================= */

/* --- 1. IMPORT DES POLICES --- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* --- 2. CONFIGURATION DE BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* Application de Satoshi pour les Titres et Menu */
h1, h2, h3, h4, h5, h6, 
.site-title, .logo a, .main-navigation a, .hero-title,
.btn, .btn-primary, .btn-dark, .btn-link, .cta-btn,
.nav-menu li a, .lang-switch a {
    font-family: 'Satoshi', sans-serif;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: #2E5D4B; transition: 0.3s; }
a:hover { color: #1a3a2e; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. EN-TÊTE & LOGO (Minimaliste Premium)
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #ffffff; 
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO (Gauche) */
.logo {
    width: auto;
    display: block;
    margin-bottom: 0;
    z-index: 2;
}

.custom-logo-link img {
    display: block;
    max-height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

/* MENU (Droite) - MINIMALISTE PREMIUM */
.main-navigation {
    margin-left: auto;
    margin-right: 60px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #999;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 10px 0;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet ligne fine qui grandit au survol */
.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #2E5D4B;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Au survol : texte vert + ligne */
.nav-menu li a:hover {
    color: #2E5D4B;
}

.nav-menu li a:hover::before {
    width: 100%;
}

/* Menu item actif */
.nav-menu li.current-menu-item a,
.nav-menu .current-menu-item a {
    color: #2E5D4B;
}

.nav-menu li.current-menu-item a::before,
.nav-menu .current-menu-item a::before {
    width: 100%;
}

/* LANGUE - MINIMALISTE */
.lang-switch {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    margin: 0;
    height: auto;
}

.lang-switch ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.lang-switch a {
    font-weight: 600;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
}

/* Ligne fine sous la langue */
.lang-switch a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2E5D4B;
    transition: width 0.3s ease;
}

.lang-switch a:hover {
    color: #2E5D4B;
}

.lang-switch a:hover::after {
    width: 100%;
}

.lang-switch .current-lang a,
.lang-switch .current-lang {
    color: #2E5D4B;
}

.lang-switch .current-lang a::after,
.lang-switch .current-lang::after {
    width: 100%;
}

/* --- ETAT SCROLLÉ (Glassmorphism 65%) --- */
.site-header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.site-header.scrolled .custom-logo-link img {
    max-height: 45px !important;
}

/* =========================================
   4. HERO & SECTIONS
   ========================================= */

.hero-section {
    position: relative;
    height: 100vh;
    background-color: #2E5D4B;
    background-size: cover;
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    color: #fff;
    margin-top: -85px;
}

.overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content {
    position: relative; 
    z-index: 2; 
    max-width: 800px; 
    padding: 0 20px;
}

.hero-signature {
    font-size: 1.5rem; 
    font-family: serif; 
    font-style: italic;
    opacity: 0.95; 
    margin-bottom: 40px;
}

.btn-primary {
    background: #fff; 
    color: #000; 
    padding: 15px 30px;
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 0.8rem; 
    font-weight: bold; 
    display: inline-block;
}

.btn-primary:hover { 
    background: #f0f0f0; 
}

.section-padding { 
    padding: 80px 20px; 
}

.section-title { 
    font-size: 2rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    margin-bottom: 40px; 
    color: #2E5D4B; 
    text-align: center;
}

/* CONTENU ACCUEIL */
.concept-content {
    max-width: 700px; 
    margin: 0 auto; 
    font-size: 1.1rem;
    color: #555; 
    line-height: 1.8;
}

.concept-content strong {
    display: block; 
    font-size: 0.9rem; 
    letter-spacing: 3px;
    text-transform: uppercase; 
    color: #2E5D4B; 
    margin-bottom: 20px;
}

/* BANNIERE EVENT */
.next-event-banner { 
    background-color: #f4f4f4; 
    padding: 80px 0; 
}

.event-banner-grid {
    display: flex; 
    align-items: center; 
    gap: 50px;
    background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.banner-info { 
    flex: 1; 
    padding: 60px; 
}

.banner-visual { 
    flex: 1; 
    height: 100%; 
    min-height: 400px; 
}

.banner-visual img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.banner-info h3 { 
    font-size: 2.5rem; 
    margin: 10px 0; 
    font-weight: 300; 
    color: #2E5D4B; 
}

.btn-link {
    display: inline-block; 
    margin-top: 20px; 
    text-transform: uppercase;
    font-size: 0.8rem; 
    font-weight: bold; 
    color: #2E5D4B;
    border-bottom: 2px solid #2E5D4B; 
    padding-bottom: 5px;
}

/* PAGES INTERNES */
.page-header-minimal { 
    padding: 100px 0 60px; 
    text-align: center; 
    background: #fdfdfd; 
}

.page-header-minimal h1 {
    font-size: 3rem; 
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 3px; 
    color: #2E5D4B;
}

/* EVENTS */
.featured-card { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
    margin-bottom: 60px; 
}

.featured-card .event-image { 
    flex: 1; 
}

.featured-card .event-image img { 
    width: 100%; 
    border-radius: 4px; 
    display: block; 
}

.featured-card .event-details { 
    flex: 1; 
}

.event-date { 
    display: block; 
    font-weight: bold; 
    color: #2E5D4B; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    margin-bottom: 5px; 
}

.btn-dark {
    display: inline-block; 
    background: #222; 
    color: #fff;
    padding: 12px 25px; 
    text-transform: uppercase; 
    font-size: 0.8rem;
    margin-top: 20px; 
    border: 1px solid #222;
}

.btn-dark:hover { 
    background: #fff; 
    color: #222; 
}

.events-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 30px; 
}

.small-card { 
    border: 1px solid #eee; 
    padding: 25px; 
    transition: 0.3s; 
}

.small-card:hover { 
    border-color: #2E5D4B; 
}

/* GALERIE */
.container-fluid { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px 60px; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    grid-auto-rows: 300px; 
}

.gallery-item { 
    position: relative; 
    overflow: hidden; 
}

.gallery-item img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s ease; 
    filter: grayscale(20%);
}

.gallery-item:hover img { 
    transform: scale(1.05); 
    filter: grayscale(0%); 
}

.item-large { 
    grid-column: span 2; 
}

.item-tall { 
    grid-row: span 2; 
}

/* CONTACT */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    padding-bottom: 60px; 
}

.contact-info h3 { 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    color: #2E5D4B; 
}

.contact-link { 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: #000; 
    border-bottom: 1px solid #ddd; 
}

.minimal-form input, 
.minimal-form select, 
.minimal-form textarea {
    width: 100%; 
    padding: 15px 0; 
    margin-bottom: 20px;
    border: none; 
    border-bottom: 1px solid #ddd; 
    background: transparent;
    font-size: 1rem; 
    outline: none; 
    transition: border-color 0.3s;
}

.minimal-form input:focus, 
.minimal-form textarea:focus { 
    border-bottom-color: #2E5D4B; 
}

.wpcf7-response-output {
    font-size: 0.9rem; 
    border: 1px solid #2E5D4B !important;
    padding: 10px !important; 
    margin-top: 20px !important; 
    border-radius: 4px;
}

/* =========================================
   5. FOOTER
   ========================================= */

.site-footer {
    background-color: #f9f9f9; 
    padding: 60px 0 40px; 
    margin-top: 60px;
    border-top: 1px solid #eee; 
    text-align: center; 
    font-size: 0.85rem; 
    color: #666;
}

.footer-menu-list, 
.footer-menu {
    list-style: none; 
    padding: 0; 
    margin: 0 0 30px 0;
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap;
}

.footer-menu-list a, 
.footer-menu li a {
    text-decoration: none; 
    color: #333; 
    text-transform: uppercase;
    font-size: 0.75rem; 
    font-weight: 500; 
    letter-spacing: 1px; 
    transition: color 0.3s;
}

.footer-menu-list a:hover, 
.footer-menu li a:hover { 
    color: #2E5D4B; 
    text-decoration: underline; 
}

/* BOUTON RETOUR HAUT */
#back-to-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    width: 45px; 
    height: 45px;
    background-color: #2E5D4B; 
    color: #fff;
    border-radius: 50%; 
    text-align: center; 
    line-height: 45px;
    font-size: 20px; 
    z-index: 9999; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#back-to-top.show { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

#back-to-top:hover { 
    background-color: #000; 
    transform: translateY(-3px); 
}

/* =========================================
   6. PRELOADER & LEGAL
   ========================================= */

#preloader {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: #ffffff;
    z-index: 9999999;
    justify-content: center; 
    align-items: center;
    opacity: 1; 
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.home #preloader { 
    display: flex; 
}

body.no-anim #preloader { 
    display: none !important; 
}

#preloader .preloader-content img {
    max-height: 220px; 
    width: auto; 
    max-width: 80vw;
    animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

body.loaded #preloader { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

/* PAGES LÉGALES */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.5rem;
    margin-top: 50px; 
    margin-bottom: 20px;
    color: #2E5D4B;
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px;
}

.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #000;
}

.legal-content ul { 
    margin-left: 20px; 
    margin-bottom: 20px; 
    list-style-type: disc; 
}

.legal-content li { 
    margin-bottom: 8px; 
}

.legal-content strong { 
    color: #000; 
}

/* =========================================
   7. RESPONSIVE & MENU MOBILE
   ========================================= */

/* 1. SUR ORDI : On cache le bouton */
.menu-toggle {
    display: none;
}

/* 2. SUR MOBILE (Tablettes et Téléphones) */
@media (max-width: 900px) {
    
    /* On cache le menu par défaut */
    .main-navigation { 
        display: none !important; 
    }

    /* Ajustements généraux */
    .featured-card, 
    .event-banner-grid, 
    .contact-grid { 
        flex-direction: column; 
    }
    
    .event-banner-grid { 
        flex-direction: column-reverse; 
    }
    
    .gallery-grid { 
        grid-template-columns: 1fr; 
        grid-auto-rows: auto; 
    }
    
    .item-large, 
    .item-tall { 
        grid-column: span 1; 
        grid-row: span 1; 
    }
    
    .gallery-item img { 
        height: 300px; 
    }
    
    .banner-info { 
        padding: 40px 20px; 
        text-align: center; 
    }
    
    .hero-title { 
        font-size: 2.5rem; 
    }

    /* --- A. LE BOUTON BURGER --- */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        position: fixed !important;
        top: 25px; 
        right: 20px;
        width: 35px;
        height: 24px;
        background: transparent !important;
        border: none !important;
        padding: 0; 
        margin: 0; 
        box-shadow: none;
        -webkit-appearance: none; 
        appearance: none;
        z-index: 2147483647 !important;
        cursor: pointer;
    }

    .hamburger-line {
        display: block !important;
        width: 100%;
        height: 3px;
        background-color: #000000 !important;
        border-radius: 4px;
        transition: all 0.3s ease;
        transform-origin: left;
    }

    /* --- B. LE MENU OUVERT --- */
    body.mobile-open .main-navigation {
        display: flex !important;
        position: fixed;
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        z-index: 2147483646;
        opacity: 1; 
        visibility: visible;
        margin: 0 !important;
    }

    /* Liens du menu */
    body.mobile-open .nav-menu {
        flex-direction: column; 
        gap: 35px; 
        text-align: center;
        margin: 0 0 50px 0;
        padding: 0;
    }
    
    body.mobile-open .nav-menu li a {
        font-size: 1.5rem; 
        color: #000; 
        font-weight: 700; 
        display: block;
        font-family: 'Satoshi', sans-serif;
    }

    /* --- C. LA LANGUE SUR MOBILE --- */
    body.mobile-open .lang-switch {
        position: static !important; 
        transform: none !important;
        display: block !important;
        margin-top: 20px;
    }
    
    body.mobile-open .lang-switch ul {
        gap: 30px;
    }
    
    body.mobile-open .lang-switch a {
        font-size: 1.2rem;
        color: #000;
        opacity: 0.5;
    }
    
    body.mobile-open .lang-switch a:hover,
    body.mobile-open .lang-switch .current-lang a {
        opacity: 1;
    }

    /* --- D. ANIMATION CROIX --- */
    body.mobile-open .hamburger-line:nth-child(1) { 
        transform: rotate(45deg) translate(5px, 6px); 
    }
    
    body.mobile-open .hamburger-line:nth-child(2) { 
        opacity: 0; 
    }
    
    body.mobile-open .hamburger-line:nth-child(3) { 
        transform: rotate(-45deg) translate(5px, -6px); 
    }
    
    body.mobile-open { 
        overflow: hidden; 
    }

    /* évite que des overlays bloquent le tap */
    .overlay { 
        pointer-events: none; 
    }
    
    /* Marquee plus large sur mobile */
    .marquee-wrapper {
        width: 90%;
    }
    
    .marquee-group { 
        gap: 40px; 
    }
    
    .marquee-group img { 
        height: 35px; 
    }
}

/* =========================================
   SECTION PARTENAIRES
   ========================================= */
.partners-section {
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.03);
}

/* Wrapper avec masque */
.marquee-wrapper {
    position: relative;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Container intérieur */
.marquee-inner {
    display: flex;
    animation: scroll 30s linear infinite;
}

/* Chaque groupe */
.marquee-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 60px;
    padding: 0 30px;
    flex-shrink: 0;
    min-width: 100%;
}

/* Images */
.marquee-group img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.marquee-group img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animation */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Pause au survol sur desktop */
@media (hover: hover) {
    .marquee-wrapper:hover .marquee-inner {
        animation-play-state: paused;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .marquee-inner { 
        animation: none; 
    }
}