/* ============================================================
   TABLE DES MATIÈRES
   1.  VARIABLES & COULEURS
   2.  RESET & BASE (TYPOGRAPHIE)
   3.  HEADER & NAVIGATION (PC)
   4.  MENU MOBILE (TIROIR & HAMBURGER)
   5.  SÉLECTEUR DE LANGUE
   6.  SECTION HERO (SLIDER)
   7.  CONTENU PRINCIPAL & CARTES
   8.  FORMULAIRE DE CONTACT (STYLES & VALIDATION)
   9.  PAGE CALENDRIER & LIGHTBOX
   10. PAGE SOUTENIR (CARTES & IBAN)
   11. ANNONCES (BANDEAU & POP-UP)
   12. FOOTER & FINITIONS (SCROLL, SÉLECTION)
   ============================================================ */

/* =========================================
   1. VARIABLES & COULEURS (THÈME SACRÉ)
   ========================================= */
:root {
    /* Palette "Temple Hindou Moderne" */
    --primary-color: #D84315;     /* Safran Profond */
    --primary-light: #FF7043;     /* Safran Lumineux */
    --accent-color: #edc531;      /* Or / Curcuma */
    --secondary-color: #2E7D32;   /* Vert Feuille */
    
    /* Arrière-plans et Textes */
    --bg-body: #FFFBF5;           /* Blanc Crème */
    --bg-card: #FFFFFF;           /* Blanc pur */
    --bg-dark: #263238;           /* Anthracite bleuté */
    
    /* Typographie */
    --text-main: #37474F;
    --text-light: #F5F5F5;
    --text-muted: #78909C;

    /* Effets Modernes */
    --shadow-soft: 0 10px 30px rgba(216, 67, 21, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius-card: 16px;
    --radius-btn: 50px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.3;
    scroll-behavior: smooth;
    overflow-x: hidden;
    animation: pageFadeIn 0.25s ease-out;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.8em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
}

/* =========================================
   3. HEADER & NAVIGATION (PC)
   ========================================= */
.header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--accent-color);
}

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 20px;
    width: 100%;
}

/* --- LOGO --- */
.logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    flex-direction: column; 
    line-height: 1.3;
    font-size: 0.95rem; 
    flex-shrink: 1; 
    margin-right: 10px;
    justify-content: center;
}

.logo-subline {
    display: block;
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* --- MENU PC --- */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    height: 100%;
    align-items: center;
}

/* STYLE ORDINATEUR (> 768px) */
@media (min-width: 769px) {
    .logo {
        flex-direction: row; 
        align-items: baseline;
        font-size: 1.1rem;
        gap: 6px;
    }
    
    .logo-subline {
        display: inline;
        font-size: 1.1rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        height: 100%;
        width: auto;
        box-shadow: none;
        align-items: center;
        gap: 35px;
    }

    /* Style des liens (Zoom Or) */
    .nav-links li a {
        position: relative; 
        font-size: 1rem;       
        font-weight: 400;      
        color: rgba(255, 255, 255, 0.7); 
        padding: 5px 0;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: inline-block;
        text-decoration: none;
    }

    /* Suppression des anciens effets */
    .nav-links li a::before, .nav-links li a::after { display: none; }

    /* Au survol */
    .nav-links li a:hover {
        color: var(--accent-color); 
        transform: scale(1.05);     
        text-shadow: 0 0 15px rgba(237, 197, 49, 0.4); 
    }

    /* Lien Actif */
    .nav-links li a[style*="color"] {
        color: var(--accent-color) !important;
        transform: scale(1.05);
        font-weight: 400;
        text-shadow: none;
    }
}

/* =========================================
   4. MENU MOBILE (TIROIR & HAMBURGER)
   ========================================= */
.hamburger, .nav-overlay { display: none; }
/* La croix interne est supprimée du HTML, son style est donc inutile */
.close-menu { display: none !important; }

@media (max-width: 768px) {
    /* --- 1. LE BOUTON BURGER ANIMÉ --- */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1003; /* Au-dessus du header lui-même */
        padding: 10px 0 10px 15px; /* Zone de clic agrandie */
    }
    
    .bar {
        display: block;
        width: 26px; /* Légèrement plus fin */
        height: 2px;
        margin: 6px auto;
        background-color: var(--accent-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99); /* Transition très fluide */
    }

    /* Transformation en Croix (X) quand actif */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* La barre du milieu disparaît */
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- 2. LE VOILE SOMBRE (Overlay) --- */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Un peu moins sombre pour garder le header visible */
        backdrop-filter: blur(3px); /* Flou léger */
        z-index: 1000; /* Derrière le menu */
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
    }
    
    .nav-overlay.active { opacity: 1; visibility: visible; }

    /* --- 3. LE TIROIR (Menu Mobile) --- */
    .nav-links {
        position: fixed;
        top: 0; 
        right: -100%; /* Caché à droite */
        width: 100%;  /* Prend toute la largeur comme UBS */
        height: 100vh;
        background-color: var(--bg-dark); /* Fond uni */
        
        /* Flexbox pour aligner le contenu */
        display: flex;
        flex-direction: column; 
        justify-content: flex-start; /* Commence en haut */
        align-items: center;
        
        /* LE POINT CLÉ : Espace pour ne pas cacher les liens sous le header */
        /* On prévoit assez d'espace pour le header + un éventuel bandeau d'annonce */
        padding-top: 140px; 
        gap: 25px; /* Espace entre les liens */
        
        list-style: none; 
        z-index: 1001; /* SOUS le header (1002) mais sur l'overlay (1000) */
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Glissement fluide */
    }

    .nav-links.active { right: 0; }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px; right: 25px;
        font-size: 2.5rem;
        color: #fff;
        cursor: pointer;
        line-height: 1;
        z-index: 10000;
    }
    
    /* --- 4. LIENS ET ANIMATIONS --- */
    .nav-links li {
        width: 100%; text-align: center;
        opacity: 0;
        transform: translateY(20px); /* Arrive du bas, plus élégant */
        transition: 0.4s ease forwards;
    }

    .nav-links li a {
        font-size: 1.4rem; /* Un peu plus grand */
        font-family: 'Merriweather', serif; /* Police des titres pour plus de classe */
        color: rgba(255,255,255,0.9);
        text-transform: none; /* Plus doux sans majuscules forcées */
        display: block;
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Séparateur subtil comme UBS */
        max-width: 300px;
        margin: 0 auto;
    }

    /* Le sélecteur de langue n'a pas de bordure */
    .nav-links li.lang-switch-container a { border-bottom: none; }

    /* Animation Cascade (inchangée, c'était très bien) */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active li { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. SÉLECTEUR DE LANGUE (CAPSULE)
   ========================================= */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px; 
    margin-left: 0px;
    position: relative; 
    border: 1px solid rgba(255, 255, 255, 0.25); 
    border-radius: 30px; 
    padding: 3px; 
    background-color: rgba(0, 0, 0, 0.2); 
    transition: border-color 0.3s ease;
}

/* Séparateur externe (PC) */
.lang-switch::before {
    content: '';
    position: absolute;
    left: -15px; 
    height: 18px; 
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3); 
}

.lang-sep { display: none !important; }

/* Boutons */
.lang-btn {
    background: transparent;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem; 
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px 12px; 
    border-radius: 20px; 
    transition: all 0.2s ease;
    outline: none; 
}

.lang-btn.active {
    background-color: var(--accent-color); 
    color: var(--bg-dark); 
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(237, 197, 49, 0.4); 
}

.lang-btn:not(.active):hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn:active { transform: scale(0.95); }

@media (min-width: 769px) {
    .lang-switch:hover { border-color: var(--accent-color); }
}

/* Version Mobile du Sélecteur */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: 0;
        margin-top: 30px;
        justify-content: center;
        border: none; 
        background-color: transparent;
        gap: 15px;
        width: 100%;
        border-top: 0px solid rgba(255,255,255,0.1); 
        border-radius: 0;
        padding-top: 20px;
    }

    .lang-switch::before { content: none !important; display: none !important; }
    
    .lang-switch:hover, .lang-switch:active, .lang-switch:focus {
        border: none; background-color: transparent; outline: none;
    }

    .lang-btn {
        font-size: 1.1rem; 
        padding: 8px 20px;
        border: 1px solid rgba(255,255,255,0.2); 
    }

    .lang-btn.active {
        border-color: var(--accent-color);
        transform: scale(1.05);
        box-shadow: none;
    }
}

/* =========================================
   6. SECTION HERO (SLIDER)
   ========================================= */
.hero {
    position: relative;
    height: 70vh;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider, .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide {
    transform: translateX(100%);
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    opacity: 0.6;
}

.slide.active { transform: translateX(0); opacity: 1; z-index: 1; }
.slide.exit { transform: translateX(-100%); z-index: 0; }
.slide.reset { transition: none !important; transform: translateX(100%) !important; }

.overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1s ease-out;
}

.title-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 2000px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); 
}

.hero-content h1 { font-size: 1rem; margin-bottom: 10px; line-height: 0; }
.hero-content h2 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero { height: 60vh; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content h2 { font-size: 0.9rem; letter-spacing: 2px; margin-top: 10px; }
    .title-image { max-width: 100%; }
}

/* =========================================
   7. CONTENU PRINCIPAL & CARTES
   ========================================= */
.container {
    max-width: 1000px;
    margin: -60px auto 60px;
    padding: 0 20px;
    display: grid;
    gap: 40px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .container { margin-top: -30px; gap: 30px; }
}

/* Style des Cartes */
.section-card {
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.section-card h2 { font-size: 1.8rem; position: relative; display: inline-block; }
.section-card p { font-size: 1.1rem; color: #546E7A; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .section-card { padding: 30px 20px; }
}

/* Grille Horaires */
.hours-grid {
    background-color: var(--bg-body);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center; /* Tu peux tester 'left' si tu préfères, mais 'center' passe bien aussi avec des lignes courtes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px; /* Petit espace entre les deux horaires */
}

.hours-grid p { margin: 0; font-weight: 400; color: var(--text-main); font-size: 1.1rem; line-height: 1.6; }

.hours-grid strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Effet Élévation & Zoom (Cartes Reveal) */
.section-card.reveal.active {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, opacity 0.8s ease;
}

.section-card.reveal.active:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Zoom Image */
.section-card .card-image-container { overflow: hidden; border-radius: 12px 12px 0 0; }
.section-card img { transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.section-card:hover img { transform: scale(1.08); }

/* --- BADGES LIGNES DE BUS (TPG) --- */
.tpg-btn {
    display: inline-block;
    font-weight: 800;           /* Très gras comme sur les panneaux */
    font-family: Arial, Helvetica, sans-serif; /* Police plus "technique" proche du réel */
    padding: 4px 10px;          /* Un peu plus carré */
    border-radius: 15px;         /* Coins légèrement arrondis comme les panneaux */
    margin: 0 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
    /* L'EFFET BOUTON (3D) */
    box-shadow: 0 2px 0 rgba(0,0,0,0.2); /* L'ombre solide en bas */
    transition: all 0.1s ease;
}

/* 2. Couleurs spécifiques aux lignes (Extraites des images) */
.tpg-50 {
    background-color: #01aba7; /* Le Bleu exact de la ligne 50 */
    color: white;    /* Chiffre blanc comme demandé */
}

.tpg-54 {
    background-color: #82cdc1; /* Le Rose/Magenta exact de la ligne 54 */
    color: black;    /* Chiffre blanc comme demandé */
}

/* 3. Effet au survol (Hover) */
.tpg-btn:hover {
    transform: translateY(-1px); /* Petit effet de levier */
    box-shadow: 0 4px 8px rgba(0,0,0, 0.25);
    filter: brightness(0.9); /* Astuce : On assombrit légèrement la couleur quelle qu'elle soit */
}

.tpg-btn:active {
    transform: translateY(2px); /* Le bouton s'enfonce */
    box-shadow: 0 0 0 rgba(0,0,0,0.2); /* L'ombre disparaît (effet d'appui) */
}

/* --- AJUSTEMENT TPG (MOBILE VS PC) --- */
.tpg-sep-mobile { 
    display: none; /* Par défaut (PC), on cache le saut de ligne */
}

@media (max-width: 768px) {
    .tpg-sep-pc { 
        display: none; /* Sur Mobile, on cache le tiret du PC */
    }
    .tpg-sep-mobile { 
        display: inline; /* Sur Mobile, on affiche le saut de ligne */
    }
}

/* =========================================
   8. FORMULAIRE DE CONTACT (STYLES & VALIDATION)
   ========================================= */
.contact-form-container { text-align: left; margin-top: 40px; }
.contact-form-container h3 { margin-top: 0; color: var(--primary-color); }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* -- CHAMPS : STYLE DE BASE -- */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

/* -- ÉTAT FOCUS STANDARD (GLOW OR) -- */
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color) !important;
    background-color: #fff !important;
    outline: none;
    box-shadow: 0 0 15px rgba(237, 197, 49, 0.3) !important; 
    transform: translateY(-2px);
}

/* -- ÉTAT D'ERREUR (ROUGE) : PRIORITÉ ABSOLUE -- */
/* Le sélecteur est renforcé pour battre le :focus Or */
.form-group input.error-field, 
.form-group textarea.error-field,
.form-group input.error-field:focus, 
.form-group textarea.error-field:focus {
    border-color: #D32F2F !important;
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.4) !important;
    background-color: #FFF9F9 !important;
    transform: none !important;
}

/* Bouton Envoyer */
.btn-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.btn-submit:hover { background-color: #BF360C; transform: translateY(-2px); }

@media (max-width: 768px) {
    .btn-submit { 
        width: auto; 
        min-width: 200px; 
        display: block;    /* Devient un bloc pour accepter les marges */
        margin: 0 auto;    /* Marge auto à gauche et droite = Centrage parfait */
    }
}

/* Messages de résultat */
.form-result { margin-top: 15px; font-weight: 600; display: none; padding: 10px; border-radius: 6px; text-align: center; }
.result-success { color: #2E7D32; background-color: #E8F5E9; padding: 15px; border-radius: 8px; margin-top: 20px; }
.result-error { color: #D32F2F; background-color: #FFEBEE; padding: 15px; border-radius: 8px; margin-top: 20px; }

/* Compteur de caractères */
.char-count {
    width: 100%; text-align: right;
    font-size: 0.85rem; color: #90A4AE;
    margin-top: 5px; font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.char-count.limit-reached { color: #D32F2F !important; font-weight: 800; }

/* Bulle d'Erreur Email */
.error-tooltip {
    position: absolute;
    top: 0; right: 0;
    background-color: #D32F2F;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    pointer-events: none;
}

.error-tooltip::after {
    content: '';
    position: absolute;
    top: 100%; right: 15px;
    border-width: 5px; border-style: solid;
    border-color: #D32F2F transparent transparent transparent;
}

.error-tooltip.visible {
    opacity: 1; visibility: visible;
    transform: translateY(-5px);
}

/* =========================================
   9. PAGE CALENDRIER & LIGHTBOX
   ========================================= */
.calendar-wrapper { margin: 20px 0; text-align: center; background: transparent; border: none; box-shadow: none; }
.calendar-img {
    width: 100%; max-width: 400px; height: auto;
    display: inline-block; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 4px solid white;
    transition: transform 0.3s ease;
}
.calendar-img:hover { transform: scale(1.02); cursor: zoom-in; }

/* Dashboard Calendrier */
.calendar-dashboard { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: flex-start; }
.calendar-dashboard .section-card { flex: 1 1 450px; max-width: 800px; width: 100%; margin: 0; }

@media (max-width: 900px) {
    .calendar-dashboard { flex-direction: column; align-items: center; }
    .calendar-dashboard .section-card { width: 100%; max-width: 100%; }
}

/* Badge Ruban Événement */
#special-event-section { position: relative; overflow: visible; }
.badge-event {
    display: inline-block; position: absolute;
    top: 10px; right: -10px;
    background-color: #388E3C; color: white;
    font-size: 0.60rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 15px; border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10;
}
.badge-event::after {
    content: ''; position: absolute;
    top: 100%; right: 0; width: 0; height: 0;
    border-style: solid; border-width: 0 10px 10px 0;
    border-color: transparent #1B5E20 transparent transparent;
}
@media (max-width: 768px) { .badge-event { font-size: 0.4rem; padding: 6px 15px; } }

/* Lightbox (Visionneuse) */
.lightbox-overlay {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 11000;
    justify-content: center; align-items: center;
    flex-direction: column; overflow: hidden;
    backdrop-filter: blur(5px);
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }

.lightbox-container {
    width: 100%; height: 85%;
    display: flex; justify-content: center; align-items: center;
    overflow: auto; cursor: zoom-in;
}

#lightbox-img {
    max-width: 95%; max-height: 95%;
    object-fit: contain; border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.lightbox-container.zoomed { cursor: zoom-out; display: block; text-align: center; }
.lightbox-container.zoomed #lightbox-img {
    max-width: none; max-height: none;
    width: 100%; height: auto; margin: 20px auto;
}

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: #f1f1f1; font-size: 40px; font-weight: bold;
    cursor: pointer; z-index: 11001; transition: 0.3s; line-height: 1;
}
.lightbox-close:hover { color: var(--accent-color); }
@media (max-width: 768px) { .lightbox-close { top: 10px; right: 20px; font-size: 35px; } }

/* =========================================
   10. PAGE SOUTENIR (CARTES & IBAN)
   ========================================= */
.stacked-card { max-width: 800px; margin: 0 auto; width: 100%; }

/* Carte Membre Premium */
.member-card {
    border-top: 6px solid var(--accent-color);
    background: linear-gradient(to bottom, #fff, #fffae6);
    position: relative; overflow: visible;
}

.badge-member {
    position: absolute; top: -15px; left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color); color: var(--bg-dark);
    padding: 6px 20px; border-radius: 20px;
    font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
@media (max-width: 768px) { .badge-member { font-size: 0.60rem; } }

.intro-text { font-size: 1.15rem; color: var(--text-main); line-height: 1.6; }

/* Prix */
.price-box {
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px; margin: 30px auto;
    text-align: center; max-width: 400px;
}
.price-box .amount { display: block; font-size: 2rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.price-box .currency { font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.price-box .minimum { display: block; font-size: 0.9rem; color: #666; margin-top: 5px; font-style: italic; }

/* Étapes */
.steps-list { text-align: left; list-style: none; padding: 0; margin: 20px auto; max-width: 600px; }
.steps-list li {
    background-color: rgba(255,255,255,0.6);
    margin-bottom: 15px; padding: 15px; border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}
.steps-list strong { color: var(--primary-color); font-size: 1.1rem; display: block; margin-bottom: 5px; }

/* Actions */
.action-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.btn-action {
    display: inline-block; padding: 12px 25px;
    background-color: var(--primary-color); color: white;
    border-radius: 50px; font-weight: 600;
    transition: transform 0.2s, background 0.2s; min-width: 180px;
}
.btn-action.secondary { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-action:hover { transform: translateY(-3px); background-color: #BF360C; color: white; }

/* Détails Bancaires */
.bank-details { background-color: #f5f5f5; padding: 5px; border-radius: 8px; font-size: 1rem; color: #333; border: 1px solid #ddd; }

/* Style IBAN (Click-to-Copy) */
.copy-wrapper { position: relative; cursor: pointer; display: inline-block; transition: color 0.3s ease; padding: 2px 0; }
.copy-wrapper:hover #iban-text { color: var(--accent-color); }

.copy-tooltip {
    position: absolute; top: -28px; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--accent-color); color: var(--bg-dark);
    padding: 4px 12px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 800;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100; pointer-events: none; white-space: nowrap;
}
.copy-tooltip.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* La petite flèche sous la bulle */
.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;          /* Se place juste en dessous de la bulle */
    left: 50%;          /* Centré horizontalement */
    margin-left: -5px;  /* Décalage pour centrer parfaitement la pointe */
    border-width: 5px;  /* Taille de la flèche */
    border-style: solid;
    /* C'est l'astuce : seule la bordure du haut est colorée (en Or), les autres sont transparentes */
    border-color: var(--accent-color) transparent transparent transparent;
}

/* =========================================
   11. ANNONCES (BANDEAU & POP-UP)
   ========================================= */
.hidden { display: none !important; }

/* Bandeau */
.announcement-banner {
    background-color: var(--primary-color); color: white;
    text-align: center; padding: 12px 20px;
    position: relative; z-index: 500;
    font-size: 0.95rem; font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.banner-content { display: flex; justify-content: center; align-items: center; gap: 15px; }

#banner-close {
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 24px; height: 24px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
#banner-close:hover { background: rgba(255,255,255,0.4); }

/* Pop-up (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 50, 56, 0.85); /* Fond sombre */
    backdrop-filter: blur(5px);
    z-index: 2000;
    
    /* FLEXBOX POUR CENTRER */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
    /* SÉCURITÉ VISIBILITÉ */
    opacity: 1; /* On force l'opacité à 1 */
    /* On enlève l'animation 'fadeIn' qui causait le bug invisible */
}

/* La classe .hidden gère déjà le masquage complet (display: none) */

.modal-content {
    background-color: #fff; padding: 50px 40px;
    border-radius: var(--radius-card); max-width: 500px; width: 100%;
    text-align: center; position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); transform: scale(0.9);
    animation: popIn 0.4s forwards 0.1s;
    border-top: 6px solid var(--accent-color);
}
.modal-body h3 { color: var(--text-main); font-size: 1.8rem; }

.modal-close-btn {
    position: absolute; top: 15px; right: 15px;
    background: #f0f0f0; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    color: #555; font-size: 1.2rem; cursor: pointer;
    transition: all 0.2s;
}
.modal-close-btn:hover { background: var(--primary-color); color: white; transform: rotate(90deg); }

/* --- SÉPARATEURS RESPONSIVE (POUR LE BANDEAU) --- */
.banner-sep-mobile { 
    display: none; /* Caché sur PC */
}

@media (max-width: 768px) {
    .banner-sep-pc { 
        display: none; /* Le point disparaît sur mobile */
    }
    .banner-sep-mobile { 
        display: inline; /* Le saut de ligne s'active sur mobile */
    }
}

/* =========================================
   12. FOOTER & FINITIONS (SCROLL, SÉLECTION)
   ========================================= */
.footer {
    background-color: var(--bg-dark); color: rgba(255, 255, 255, 0.6);
    text-align: center; padding: 18px 20px; margin-top: 0px;
    font-size: 0.9rem; border-top: 4px solid var(--primary-color);
}
.footer p { margin: 0; }

/* Animations Scroll Reveal */
.reveal {
    opacity: 0; transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Signature de Marque (Sélection Texte) */
::selection { background-color: var(--accent-color); color: var(--bg-dark); text-shadow: none; }