/* ==========================================================================
   1. VARIABLES, THÈMES ET RÉINITIALISATION GLOBAL
   ========================================================================== */

:root {
    --gold:       #d4af37;
    --navy:       #0a192f;
    --navy-light: #112240;
    --navy-blue:  #1b305a;
    --wa-green:   #25D366;
    --text-main:  #ccd6f6;
}

body.theme-gold-intense {
    --navy:       #1a1508;
    --navy-light: #2d240e;
    --navy-blue:  #423515;
    --text-main:  #f5eccd;
    --gold:       #ffdf6d;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background:     var(--navy);
    color:          var(--text-main);
    font-family:    'Outfit', sans-serif;
    padding-bottom: 85px;
    overflow-x:     hidden;
    transition:     background 0.3s, color 0.3s;
}

h1, h2, h3, h4 { 
    font-family: 'Bebas Neue', sans-serif; 
    letter-spacing: 1px; 
}

.title-gold { 
    color: var(--gold); 
    text-align: center; 
    font-size: 2.2rem; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
}

.text-gold { 
    color: var(--gold); 
}

.section-subtitle {
    text-align: center; 
    font-style: italic; 
    color: #8892b0;
    margin-bottom: 20px; 
    font-size: 0.9rem;
}

/* ==========================================================================
   2. COMPOSANTS D'INTERFACE (SPLASH, OVERLAY, HEADERS)
   ========================================================================== */

/* Écran de chargement (Splash) */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #060c18; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
}
.splash-content { text-align: center; width: 80%; max-width: 300px; }
.splash-logo { width: 110px; height: auto; margin-bottom: 20px; border-radius: 12px; }
.splash-content p { font-size: 0.9rem; color: #8892b0; margin-top: 10px; }
.loader-bar { width: 100%; height: 4px; background: var(--navy-light); border-radius: 2px; position: relative; overflow: hidden; margin-bottom: 10px; }
.loader-bar::after { content: ''; display: block; width: 40%; height: 100%; background: var(--gold); position: absolute; top: 0; left: 0; animation: loadingMove 1.5s infinite ease-in-out; }
@keyframes loadingMove { 0% { left: -40%; } 100% { left: 100%; } }

/* Logo de fond */
.background-logo-overlay {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80vw; height: 80vw; max-width: 500px; max-height: 500px;
    background: url('images/logo.jpg') no-repeat center center; background-size: contain;
    opacity: 0.04; z-index: -1; pointer-events: none;
}

/* En-tête (Header) */
.main-header { padding: 10px 4%; background: rgba(10,25,47,0.97); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(212,175,55,0.15); }
.header-container { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.logo-box { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-logo { height: 36px; width: 36px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.brand-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; color: var(--gold); letter-spacing: 2px; }
.header-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.control-btn { background: none; border: none; color: var(--gold); font-size: 1.1rem; cursor: pointer; padding: 5px; line-height: 1; }

/* Indicateur Live */
.live-badge { display: flex; align-items: center; gap: 5px; background: rgba(255,0,0,0.12); border: 1px solid #ff0000; padding: 4px 8px; border-radius: 20px; color: #fff; font-size: 0.65rem; font-weight: bold; text-decoration: none; white-space: nowrap; }
.pulse-dot { width: 7px; height: 7px; background: #ff0000; border-radius: 50%; flex-shrink: 0; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* Sélecteur de langue */
.lang-selector { display: flex; background: var(--navy-light); padding: 2px; border-radius: 20px; border: 1px solid rgba(212,175,55,0.2); }
.lang-btn { background: none; border: none; color: #8892b0; font-size: 0.7rem; font-weight: bold; padding: 4px 8px; border-radius: 15px; cursor: pointer; font-family: 'Outfit', sans-serif; }
.lang-btn.active { background: var(--gold); color: var(--navy); }

/* Systèmes d'onglets (Tabs) */
.app-container { max-width: 680px; margin: 0 auto; }
.tab-content { display: none; padding: 15px 4%; animation: tabFade 0.4s ease; }
.tab-content.active { display: block; }
@keyframes tabFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   3. SECTIONS PRINCIPALES & CONTENUS
   ========================================================================== */

/* Hero Section */
.hero-section { padding: 25px 0 20px; text-align: center; }
.hero-main-title { font-size: 4rem; color: var(--gold); text-shadow: 0 4px 8px rgba(0,0,0,0.4); line-height: 1; margin-bottom: 10px; }
.hero-desc { font-size: 0.95rem; line-height: 1.5; color: #a8b2d1; margin-bottom: 16px; }
.audio-controls-row { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.audio-action-btn { background: var(--navy-blue); border: 1px solid var(--gold); color: var(--gold); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; }

/* Stats */
.stats-section { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.stat-card { background: var(--navy-light); padding: 12px 4px; border-radius: 10px; text-align: center; border-bottom: 3px solid var(--gold); }
.stat-number { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold); }
.stat-label { font-size: 0.7rem; color: #8892b0; font-weight: bold; text-transform: uppercase; }

/* Cartes Promotionnelles */
.promo-card { background: var(--navy-light); border-radius: 14px; padding: 16px; margin-bottom: 14px; border: 1px solid rgba(212,175,55,0.06); display: flex; align-items: flex-start; gap: 14px; }
.promo-icon-box { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.gold-icon  { background: rgba(212,175,55,0.15); color: var(--gold); }
.blue-icon  { background: rgba(50,100,220,0.15); color: #6fa3ef; }
.green-icon { background: rgba(37,211,102,0.12); color: var(--wa-green); }
.promo-text-box { flex: 1; min-width: 0; }
.promo-text-box h3 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.promo-text-box p  { font-size: 0.82rem; color: #8892b0; margin-bottom: 10px; line-height: 1.4; }
.install-card { border-color: rgba(212,175,55,0.25); }
.action-gold-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy); border: none; padding: 9px 14px; border-radius: 8px; font-weight: bold; font-size: 0.82rem; cursor: pointer; font-family: 'Outfit', sans-serif; }
.quote-text { font-size: 0.9rem; font-style: italic; color: var(--text-main); line-height: 1.4; margin-bottom: 0; }
.action-whatsapp-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--wa-green); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 8px; font-weight: bold; font-size: 0.82rem; }

/* Séparateurs de Blocs */
.section-block { margin: 20px 0; }
.border-top-gold { border-top: 1px solid rgba(212,175,55,0.2); padding-top: 20px; }
.section-title-accent { font-size: 1.3rem; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* Fonctionnalités (Features) */
.features-grid { display: flex; flex-direction: column; gap: 12px; }
.feature-item-box { background: var(--navy-light); border-radius: 12px; padding: 14px; border-left: 3px solid var(--gold); }
.feature-item-box i  { font-size: 1.4rem; margin-bottom: 6px; display: block; }
.feature-item-box h4 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.feature-item-box p  { font-size: 0.82rem; color: #8892b0; line-height: 1.4; }

/* Réseaux Sociaux */
.social-buttons-section { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; color: white; text-decoration: none; font-weight: bold; font-size: 0.95rem; }
.yt     { background: #FF0000; }
.tk     { background: #000000; border: 1px solid #333; }
.wa-chan { background: var(--wa-green); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Grille des Membres */
.members-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 10px 0; }
.member-card { background: var(--navy-light); border-radius: 12px; padding: 8px; text-align: center; border: 1px solid rgba(212,175,55,0.05); cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.member-card:active { transform: scale(0.97); border-color: var(--gold); }
.member-img { width: 100%; aspect-ratio: 1/1; border-radius: 10px; object-fit: cover; margin-bottom: 6px; border: 1px solid rgba(212,175,55,0.08); }
.member-fallback-bg { width: 100%; aspect-ratio: 1/1; border-radius: 10px; background: linear-gradient(135deg, var(--navy-light), var(--navy-blue)); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: var(--gold); font-size: 2.5rem; }
.member-card h3 { font-size: 1rem; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.member-card p  { font-size: 0.75rem; color: var(--gold); font-weight: bold; text-transform: uppercase; margin-top: 2px; }

/* Coulisses */
.coulisses-grid { display: flex; flex-direction: column; gap: 12px; }
.coulisse-card { background: var(--navy-light); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(212,175,55,0.05); }
.coulisse-placeholder { width: 56px; height: 56px; background: var(--navy-blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.5rem; flex-shrink: 0; }
.coulisse-info h4 { font-size: 0.95rem; color: #fff; margin-bottom: 3px; }
.coulisse-info p  { font-size: 0.78rem; color: #8892b0; line-height: 1.3; }

/* Vidéo Principale */
.video-main-card { background: var(--navy-light); border-radius: 14px; padding: 12px; margin-bottom: 20px; border: 1px solid rgba(212,175,55,0.05); }
.video-ratio-container { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; background: #000; }
.video-ratio-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: 0.78rem; color: #8892b0; font-style: italic; text-align: center; margin-top: 8px; }
#yt-video-container.portrait-short {
    padding-bottom: 0;
    aspect-ratio: 9 / 16;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
}

/* Section TikTok Dédiée */
.tiktok-section { background: var(--navy-light); border-radius: 14px; padding: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; }
.btn-tiktok-profile { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #000; border: 1px solid #fff; color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 25px; font-weight: bold; font-size: 0.95rem; width: 100%; margin-top: 10px; }

/* Offres & Formules (Packages) */
.packages-section { margin-top: 10px; }
.packages-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.package-card { background: var(--navy-light); border-radius: 14px; padding: 18px; border: 1px solid rgba(212,175,55,0.08); position: relative; overflow: hidden; }
.package-card.premium { border: 1.5px solid var(--gold); background: linear-gradient(145deg, var(--navy-light), #16243a); }
.package-badge { position: absolute; top: 0; right: 0; background: #333; color: #fff; font-size: 0.6rem; padding: 4px 10px; border-bottom-left-radius: 8px; font-weight: bold; text-transform: uppercase; }
.package-badge.gold { background: var(--gold); color: var(--navy); }
.package-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.package-desc { font-size: 0.8rem; color: #8892b0; margin-bottom: 10px; }
.package-features { list-style: none; font-size: 0.85rem; }
.package-features li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ==========================================================================
   4. MODULE GALERIE (FUSIONNÉ & NETTOYÉ)
   ========================================================================== */

.gallery-filters {
    display:         flex;
    gap:             8px;
    flex-wrap:       wrap;
    margin-bottom:   16px;
    justify-content: center;
}

.gallery-filter-btn {
    background:    var(--navy-light);
    border:        1px solid rgba(212,175,55,0.2);
    color:         #8892b0;
    padding:       6px 14px;
    border-radius: 20px;
    font-size:     0.8rem;
    font-weight:   bold;
    cursor:        pointer;
    font-family:   'Outfit', sans-serif;
    transition:    all 0.2s;
}

.gallery-filter-btn.active {
    background:   var(--gold);
    color:        var(--navy);
    border-color: var(--gold);
}

/* ── GRILLE ── */
.galerie-grid,
#galerie-container {
    display:               grid;
    grid-template-columns: 1fr;
    gap:                   14px;
    margin-bottom:         20px;
}

/* ── CARTE ── */
.media-card {
    background:    var(--navy-light);
    border-radius: 12px;
    overflow:      hidden;
    border:        1px solid rgba(212,175,55,0.08);
    cursor:        pointer;
}

/* ── PHOTO : s'adapte au format réel ── */
.gallery-image {
    width:      100%;
    height:     auto;
    max-height: 500px;
    object-fit: contain;
    display:    block;
    background: #000;
}

/* ── VIDÉO ── */
.gallery-video {
    width:      100%;
    height:     auto;
    max-height: 500px;
    display:    block;
    background: #000;
}

/* ── LIGHTBOX ── */
#lightbox {
    display:         none;
    position:        fixed;
    inset:           0;
    background:      rgba(0,0,0,0.95);
    z-index:         9999;
    align-items:     center;
    justify-content: center;
    flex-direction:  column;
}

#lightbox.open { display: flex; }

#lightbox-img {
    max-width:  100vw;
    max-height: 90vh;
    object-fit: contain;
}

#lightbox-close {
    position:  absolute;
    top:       16px;
    right:     20px;
    color:     white;
    font-size: 2rem;
    cursor:    pointer;
    background: none;
    border:    none;
    line-height: 1;
}

/* ── INFO SOUS LE MÉDIA ── */
.media-info {
    padding:     8px 10px;
    display:     flex;
    align-items: center;
    gap:         8px;
    flex-wrap:   wrap;
}

.media-badge {
    display:        inline-block;
    font-size:      0.6rem;
    font-weight:    bold;
    padding:        2px 8px;
    border-radius:  10px;
    text-transform: uppercase;
    flex-shrink:    0;
}

.badge-video    { background: rgba(255,0,0,0.15);    color: #ff4444; }
.badge-photo    { background: rgba(50,150,255,0.15); color: #5aadff; }
.badge-affiche  { background: rgba(212,175,55,0.15); color: var(--gold); }
.badge-document { background: rgba(37,211,102,0.15); color: var(--wa-green); }

.media-title {
    font-size:     0.8rem;
    color:         #ccd6f6;
    line-height:   1.3;
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ── DOCUMENT ── */
.document-card .doc-link {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    padding:         24px 10px;
    text-decoration: none;
    gap:             8px;
    color:           var(--wa-green);
    text-align:      center;
}
.document-card .doc-link i    { font-size: 2rem; }
.document-card .doc-link span { font-size: 0.75rem; font-weight: bold; color: var(--gold); }

/* ── MESSAGES ── */
.gallery-msg {
    grid-column: 1 / -1;
    text-align:  center;
    color:       #8892b0;
    font-style:  italic;
    font-size:   0.9rem;
    padding:     30px 0;
}
.gallery-msg.error { color: #ff4444; }

/* ── INFO BOX ── */
.gallery-info-box {
    background:    var(--navy-blue);
    border-left:   3px solid var(--gold);
    border-radius: 8px;
    padding:       12px 14px;
    display:       flex;
    align-items:   flex-start;
    gap:           10px;
    margin-top:    10px;
}
.gallery-info-box i { margin-top: 2px; flex-shrink: 0; }
.gallery-info-box p {
    font-size:   0.8rem;
    color:       #a8b2d1;
    line-height: 1.4;
}

/* ==========================================================================
   5. FORMULAIRES DE RÉSERVATION & CONTACTS
   ========================================================================== */

.booking-form { background: var(--navy-light); padding: 18px; border-radius: 14px; border: 1px solid rgba(212,175,55,0.04); margin-top: 15px; }
.form-input-group { margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
.form-input-group label { font-size: 0.82rem; color: #8892b0; font-weight: 600; }

input, textarea, select { width: 100%; background: var(--navy-blue); border: 1px solid rgba(212,175,55,0.15); padding: 11px 12px; color: #fff; border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: 0.9rem; appearance: none; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
select option { background: var(--navy-blue); }

.submit-form-btn { width: 100%; background: var(--gold); color: var(--navy); border: none; padding: 13px; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; text-transform: uppercase; font-family: 'Outfit', sans-serif; letter-spacing: 1px; margin-top: 4px; }
.form-status-box { margin-top: 10px; padding: 10px; border-radius: 8px; text-align: center; font-weight: bold; font-size: 0.85rem; display: none; }
.form-status-box.success { display: block; background: rgba(37,211,102,0.15); color: var(--wa-green); border: 1px solid var(--wa-green); }
.form-status-box.error   { display: block; background: rgba(255,0,0,0.15); color: #ff4444; border: 1px solid #ff4444; }

/* Contact Direct */
.direct-contact-block { background: var(--navy-light); border-radius: 14px; padding: 16px; margin-top: 20px; text-align: center; }
.direct-contact-block h3 { font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.wa-buttons-col { display: flex; flex-direction: column; gap: 8px; }
.wa-direct-btn { display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(37,211,102,0.08); border: 1px solid var(--wa-green); color: var(--wa-green); text-decoration: none; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 0.85rem; }

/* Canaux Sociaux (Pills) */
.social-channels-block { margin-top: 20px; text-align: center; }
.social-channels-block h3 { font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.social-pills-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.social-pill { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: bold; text-decoration: none; color: #fff; }
.yt-pill { background: #FF0000; }
.tk-pill { background: #000; border: 1px solid #fff; }
.wa-pill { background: var(--wa-green); }

/* ==========================================================================
   6. NAVIGATION POPUPS ET MENUS (MODAL, NAV, BURGER)
   ========================================================================== */

/* Fenêtres Modales */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--navy-light); border: 1px solid var(--gold); border-radius: 16px; padding: 24px; width: 100%; max-width: 340px; text-align: center; position: relative; }
.modal-close-btn { position: absolute; top: 10px; right: 14px; font-size: 1.6rem; color: #8892b0; cursor: pointer; background: none; border: none; line-height: 1; }
.modal-image-frame { width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--gold); overflow: hidden; margin: 0 auto 14px; background: var(--navy-blue); display: flex; align-items: center; justify-content: center; }
.modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2.5rem; }
#modal-name { font-size: 1.5rem; color: #fff; margin-bottom: 4px; }
.modal-desc-text { font-size: 0.85rem; color: #a8b2d1; line-height: 1.4; margin-top: 10px; }

/* Navigation du bas (Bottom Nav) */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 62px; background: #060e1a; border-top: 1px solid rgba(212,175,55,0.18); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 2000; box-shadow: 0 -4px 12px rgba(0,0,0,0.4); }
.nav-item { background: none; border: none; color: #8892b0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-family: 'Outfit', sans-serif; transition: color 0.2s; }
.nav-item i    { font-size: 1rem; }
.nav-item span { font-size: 0.58rem; font-weight: bold; }
.nav-item.active { color: var(--gold); }

/* Menu Latéral (Burger Menu) */
.burger-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 4000; }
.burger-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--navy-light); border-left: 1px solid rgba(212,175,55,0.2); z-index: 4001; transition: right 0.3s ease; padding: 20px; }
.burger-menu.open { right: 0; }
.burger-close { background: none; border: none; color: #8892b0; font-size: 1.8rem; cursor: pointer; line-height: 1; float: right; }
.burger-menu-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--gold); margin: 10px 0 25px; clear: both; }
.burger-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--navy-blue); border: 1px solid rgba(212,175,55,0.1); color: var(--text-main); padding: 14px 16px; border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; margin-bottom: 10px; text-align: left; }
.burger-nav-item i { color: var(--gold); font-size: 1.1rem; }
.burger-nav-item:active { border-color: var(--gold); }
.burger-trigger-btn { background: none; border: 1px solid rgba(212,175,55,0.4); color: var(--gold); display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: bold; }
.burger-trigger-btn i { font-size: 1rem; }

/* ==========================================================================
   7. COMPOSANTS DE SPONSORING & SPONSORS
   ========================================================================== */

.sponsor-hero-card { background: var(--navy-light); border-radius: 14px; padding: 20px; border: 1px solid rgba(212,175,55,0.15); margin-bottom: 16px; }
.sponsor-hero-card > i { font-size: 2rem; display: block; margin-bottom: 8px; }
.sponsor-hero-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 16px; }

.sponsor-benefits { display: flex; flex-direction: column; gap: 14px; }
.benefit-item { display: flex; align-items: flex-start; gap: 12px; background: var(--navy-blue); padding: 12px; border-radius: 10px; border-left: 3px solid var(--gold); }
.benefit-item > i { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.benefit-item h4 { font-size: 0.95rem; color: #fff; margin-bottom: 3px; }
.benefit-item p { font-size: 0.82rem; color: #8892b0; line-height: 1.4; }

.sponsors-grid { margin-top: 20px; }
.sponsor-empty-state { background: var(--navy-light); border: 2px dashed rgba(212,175,55,0.3); border-radius: 14px; padding: 30px 20px; text-align: center; }
.sponsor-empty-state i { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.sponsor-empty-state h4 { font-size: 1.1rem; color: var(--gold); margin-bottom: 6px; }
.sponsor-empty-state p { font-size: 0.85rem; color: #8892b0; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.footer { padding: 15px 4% 90px; text-align: center; border-top: 1px solid rgba(212,175,55,0.04); }
.share-btn-footer { background: var(--navy-blue); border: 1px solid rgba(212,175,55,0.2); color: var(--text-main); padding: 8px 16px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; margin-bottom: 12px; font-family: 'Outfit', sans-serif; }
.footer-copyright { font-size: 0.75rem; color: #8892b0; }

/* ==========================================================================
   FOOTER - LIENS LÉGAUX (BOUTONS)
   ========================================================================== */

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.35);
    background: rgba(212,175,55,0.08);
    color: var(--gold, #d4af37);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    background: rgba(212,175,55,0.18);
    transform: translateY(-2px);
}

.footer-legal-links span {
    display: none;
                           }

/* ==========================================================================
   PAGES LÉGALES - BOUTON RETOUR
   ========================================================================== */

.legal-back {
    display: inline-block;
    margin: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--gold, #d4af37);
    color: var(--navy-blue, #0a1128);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.legal-back:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ==========================================
  9. WIDGET ALICE IFRAME TRANSPARENT (CORRIGÉ)
========================================== */
#alice-iframe {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 450px;
    height: 650px;
    border: none !important;      /* Supprime la bordure blanche */
    background: transparent !important; /* Rend le fond transparent */
    z-index: 999999;
    pointer-events: none;         /* Laisse passer les clics vers le site */
}

/* Ajustement Mobile */
@media (max-width: 480px) {
    #alice-iframe {
        width: 100%;
        height: 100vh;
    }
}

/* ── COMPTEUR ÉVÉNEMENT ── */
.countdown-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   8px;
    margin:                8px 0;
}

.countdown-box {
    background:    var(--navy-blue);
    border:        1px solid rgba(212,175,55,0.3);
    border-radius: 10px;
    padding:       10px 4px;
    text-align:    center;
}

.countdown-box span {
    display:     block;
    font-family: 'Bebas Neue', sans-serif;
    font-size:   1.8rem;
    color:       var(--gold);
    line-height: 1;
}

.countdown-box small {
    font-size:      0.6rem;
    color:          #8892b0;
    text-transform: uppercase;
    font-weight:    bold;
}

/* ── BANNIÈRE ANNONCE ── */
#annonce-banner {
    position:        fixed;
    top:             0;
    left:            0;
    right:           0;
    z-index:         99998;
    background:      var(--gold);
    color:           var(--navy);
    padding:         10px 40px 10px 16px;
    display:         flex;
    align-items:     center;
    gap:             10px;
    font-size:       0.85rem;
    font-weight:     bold;
    flex-wrap:       wrap;
    box-shadow:      0 2px 8px rgba(0,0,0,0.3);
}

#annonce-banner.rouge {
    background: #ff4444;
    color:      #fff;
}

#annonce-banner.vert {
    background: var(--wa-green);
    color:      #fff;
}

#annonce-lien {
    background:    var(--navy);
    color:         var(--gold);
    padding:       4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size:     0.8rem;
    white-space:   nowrap;
}

#annonce-close {
    position:   absolute;
    right:      10px;
    top:        50%;
    transform:  translateY(-50%);
    background: none;
    border:     none;
    font-size:  1.1rem;
    cursor:     pointer;
    color:      inherit;
    opacity:    0.7;
}

/* ======================================================== */
/* DEBUT : STYLES POUR LA BANNIERE D'ANNONCE                */
/* ======================================================== */
#annonce-banner {
    position:    fixed;
    top:         0;
    left:        0;
    right:       0;
    z-index:     99998;
    background:  var(--gold, #d4af37);
    color:       var(--navy, #0a1128);
    padding:     10px 40px 10px 16px;
    display:     flex;
    align-items: center;
    gap:         10px;
    font-size:   0.85rem;
    font-weight: bold;
    flex-wrap:   wrap;
    box-shadow:  0 2px 8px rgba(0,0,0,0.3);
}
#annonce-banner.rouge { background: #ff4444; color: #fff; }
#annonce-banner.vert  { background: var(--wa-green, #25D366); color: #fff; }
#annonce-lien {
    background:      var(--navy, #0a1128);
    color:           var(--gold, #d4af37);
    padding:         4px 10px;
    border-radius:   6px;
    text-decoration: none;
    font-size:       0.8rem;
    white-space:     nowrap;
}
#annonce-close {
    position:  absolute;
    right:     10px;
    top:       50%;
    transform: translateY(-50%);
    background: none;
    border:    none;
    font-size: 1.1rem;
    cursor:    pointer;
    color:     inherit;
    opacity:   0.7;
}
/* ======================================================== */
/* FIN : STYLES POUR LA BANNIERE D'ANNONCE                  */
/* ======================================================== */

/* ======================================================== */
/* DEBUT : BANNIERE OUVERTURE NAVIGATEUR EXTERNE (TIKTOK)   */
/* ======================================================== */
#tiktok-banner {
    position:      fixed;
    top:           0;
    left:          0;
    right:         0;
    bottom:        0;
    z-index:       999999;
    background:    rgba(10, 17, 40, 0.97);
    color:         var(--gold, #d4af37);
    padding:       24px;
    display:       flex;
    flex-direction: column;
    align-items:   center;
    justify-content: center;
    text-align:    center;
    gap:           18px;
    font-size:     1.1rem;
    font-weight:   bold;
}
#tiktok-banner-msg {
    font-size:   1.3rem;
    line-height: 1.4;
}
/* ======================================================== */
/* FIN : BANNIERE OUVERTURE NAVIGATEUR EXTERNE (TIKTOK)     */
/* ======================================================== */

/* ======================================================== */
/* DEBUT : SECTION TEMOIGNAGES CLIENTS                      */
/* ======================================================== */
.testimonials-block {
    background: var(--navy-light);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(212,175,55,0.08);
    margin-bottom: 20px;
}
.testimonials-container {
    position: relative;
    min-height: 140px;
    margin-bottom: 14px;
    overflow: hidden;
}
.testi-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.testi-carousel-track .testi-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}
.testi-carousel-track .testi-card.testi-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
}
.testi-msg {
    color: #8892b0;
    font-style: italic;
    text-align: center;
    font-size: 0.9rem;
}
.testi-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 10px;
    padding: 14px;
}
.testi-card-stars {
    color: var(--gold, #d4af37);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.testi-card-text {
    color: #e0e0e0;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 8px;
}
.testi-card-name {
    color: var(--gold, #d4af37);
    font-weight: bold;
    font-size: 0.85rem;
}
.testi-form-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
/* ======================================================== */
/* FIN : SECTION TEMOIGNAGES CLIENTS                        */
/* ======================================================== */

/* ======================================================== */
/* DEBUT : CALENDRIER D'EVENEMENTS                          */
/* ======================================================== */
.events-calendar-block {
    background: var(--navy-light);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(212,175,55,0.08);
    margin-bottom: 20px;
    position: relative;
}
.events-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}
.event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
}
.event-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.event-card-info { flex: 1; min-width: 0; }
.event-card-title {
    color: var(--gold, #d4af37);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
}
.event-card-meta {
    color: #8892b0;
    font-size: 0.82rem;
    margin-bottom: 6px;
    line-height: 1.4;
}
.event-card-desc {
    color: #e0e0e0;
    font-size: 0.88rem;
    margin-bottom: 8px;
}
.event-card-price {
    color: var(--gold, #d4af37);
    font-size: 0.85rem;
    font-weight: bold;
}
.event-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: bold;
    margin-left: 8px;
}
.event-badge.confirmed { background: rgba(37,211,102,0.15); color: #25D366; }
.event-badge.soldout   { background: rgba(255,68,68,0.15);  color: #ff4444; }
.event-badge.cancelled { background: rgba(150,150,150,0.15); color: #999; }

.event-ticket-btn {
    display: inline-block;
    margin-top: 8px;
    background: var(--gold, #d4af37);
    color: var(--navy, #0a1128);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
}
.btn-admin-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.5;
}
/* ======================================================== */
/* FIN : CALENDRIER D'EVENEMENTS                            */
/* ======================================================== */

/* ======================================================== */
/* DEBUT : NEWSLETTER FOOTER                                */
/* ======================================================== */
.newsletter-block {
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    text-align: center;
}
.newsletter-title {
    color: var(--gold, #d4af37);
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}
.newsletter-form input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.25);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: #8892b0; }
.newsletter-form button {
    background: var(--gold, #d4af37);
    color: var(--navy, #0a1128);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}
.newsletter-status {
    margin-top: 10px;
    font-size: 0.82rem;
    min-height: 1em;
}
.newsletter-status.success { color: #25D366; }
.newsletter-status.error   { color: #ff4444; }
/* ======================================================== */
/* FIN : NEWSLETTER FOOTER                                  */
/* ======================================================== */

/* ======================================================== */
/* DEBUT : GALERIE YOUTUBE + BOUTON ABONNEMENT              */
/* ======================================================== */
.yt-subscribe-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 20px;
}
.yt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.yt-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(212,175,55,0.1);
}
.yt-gallery-item.is-short { aspect-ratio: 9 / 16; }
.yt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yt-gallery-item .yt-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(212,175,55,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a1128;
    font-size: 1rem;
}
.yt-gallery-item .yt-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 0.72rem;
    padding: 16px 6px 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ======================================================== */
/* FIN : GALERIE YOUTUBE + BOUTON ABONNEMENT                */
/* ======================================================== */
/* ==========================================================================
   PAGES LÉGALES
   ========================================================================== */

.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    line-height: 1.7;
}

.legal-page h1,
.legal-page h2 {
    color: var(--gold, #d4af37);
}

.legal-page p,
.legal-page li {
    color: var(--text-main);
}

.legal-back {
    display: inline-block;
    margin: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--gold, #d4af37);
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: bold;
}

/* ==========================================================================
   PAGES LÉGALES - STYLE GLOBAL
   ========================================================================== */

body:has(.legal-page) {
    background: var(--navy-blue, #0a1128);
    color: var(--text-main, #ffffff);
}

body:has(.legal-page) header {
    text-align: center;
    padding: 30px 20px 10px;
}

body:has(.legal-page) header h1 {
    color: var(--gold, #d4af37);
    font-size: 1.8rem;
}

.legal-page {
    max-width: 900px;
    margin: 20px auto 50px;
    padding: 25px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
}

.legal-page h2 {
    color: var(--gold, #d4af37);
    margin-top: 25px;
}

.legal-page p,
.legal-page li {
    line-height: 1.7;
               }

/* ==========================================================================
   NOTE POLITIQUE FORMULAIRE
   ========================================================================== */

.form-privacy-note {
    font-size: 0.75rem;
    color: #8892b0;
    line-height: 1.5;
    margin: 12px 0;
    text-align: center;
}

.form-privacy-note a {
    color: var(--gold, #d4af37);
    text-decoration: underline;
    font-weight: 600;
}

.form-privacy-note a:hover {
    opacity: 0.8;
}

/* Styles généraux de la page légale */
body {
    background-color: #0f254e; /* Bleu foncé de l'arrière-plan */
    color: #ffffff; /* Texte général en blanc */
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* En-tête et titre principal */
header {
    text-align: center;
    padding: 30px 20px 10px 20px;
}

header h1 {
    color: #e5b323; /* Couleur jaune or du titre */
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Bouton Retour au site */
.legal-back {
    display: inline-block;
    background-color: #e5b323; /* Fond jaune */
    color: #0f254e; /* Texte bleu foncé */
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px; /* Bords très arrondis comme sur l'image */
    font-weight: bold;
    font-size: 1rem;
}

/* Conteneur principal (la carte centrale) */
.legal-page {
    background-color: #1a3366; /* Bleu légèrement plus clair pour la carte */
    margin: 20px;
    padding: 25px;
    border-radius: 20px; /* Coins arrondis du cadre principal */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-page p {
    line-height: 1.6;
    font-size: 1rem;
    color: #e0e6ed; /* Blanc cassé pour une lecture confortable */
}

/* Titres des sections (1. Présentation, etc.) */
.legal-page h2 {
    color: #e5b323; /* Titres de sections en jaune or */
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Listes à puces */
.legal-page ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #e0e6ed;
}

/* ==========================================================================
   PAGE LÉGALE - CONTACTS
   ========================================================================== */

.legal-page a{
    color: var(--gold, #d4af37);
    text-decoration: none;
    font-weight: 600;
    transition: .25s;
    word-break: break-word;
}

.legal-page a:hover{
    color: #ffd95a;
    text-decoration: underline;
}

.legal-page p{
    line-height: 1.8;
}

.legal-page h2{
    margin-top: 35px;
}

.legal-page strong{
    color: var(--gold, #d4af37);
}

/* Bloc contact */
.legal-contact-box{
    margin-top:20px;
    padding:18px;
    border-radius:12px;
    background:rgba(212,175,55,.06);
    border:1px solid rgba(212,175,55,.18);
}

.legal-contact-box h3{
    color:var(--gold,#d4af37);
    margin-bottom:12px;
}

.legal-contact-box a{
    display:inline-block;
    margin:6px 0;
    padding:10px 14px;
    border-radius:8px;
    background:rgba(255,255,255,.05);
}

.legal-contact-box a:hover{
    background:rgba(212,175,55,.15);
    transform:translateX(4px);
}
