/* --- 1. IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    /* Palette L'Archipel Céleste — thème clair */
    --fondation: #1B2430;        /* Header / Footer */
    --color-text: #1B2430;       /* Texte principal */
    --color-text-muted: #374151; /* Texte secondaire (contraste renforcé) */
    --fondation-clair: #147A70;  /* Primaire (liens, hover) */
    --secondaire: #5A3F7A;       /* Violet (imaginaire, spiritualité) */
    --alternative: #EAF0FF;      /* Texte sur fond sombre */
    --acccent: #147A70;          /* Actions (boutons) */
    --magie: #8A6A00;            /* Accent or */
    --color-primary-hover: #0F6B61;
    --color-focus: #8A6A00;

    /* Variables Fontes */
    --font-titre: 'Lora', serif;
    --font-corps: 'Nunito', sans-serif;

    /* Fond de page */
    --bg-start: #F4F7FB;
    --bg-end: #FFFFFF;
}

body.dark-mode {
    /* Palette L'Archipel Céleste — thème sombre */
    --fondation: #121A3A;        /* Header / Footer */
    --color-text: #EAF0FF;       /* Texte principal */
    --color-text-muted: #B8C6E6; /* Texte secondaire */
    --fondation-clair: #3AAFB9;  /* Primaire */
    --secondaire: #7B5EA7;       /* Violet */
    --alternative: #EAF0FF;      /* Texte sur fond sombre */
    --acccent: #3AAFB9;          /* Actions */
    --magie: #D4AF37;            /* Accent or */
    --color-primary-hover: #4FC2CC;
    --color-focus: #D4AF37;

    --bg-start: #0B1026;
    --bg-end: #121A3A;
}

/* --- 2. RESET & BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    /* LE FIX DU MENU : Décale le scroll pour ne pas cacher les titres */
    scroll-padding-top: 100px; 
}

body {
    font-family: var(--font-corps);
    color: var(--color-text);
    line-height: 1.6;
    /* Dégradé subtil pour faire ressortir l'effet de verre (Glowmorphism) */
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: scroll;
 }
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}


/* --- 3. TYPOGRAPHIE --- */
h1, h2, h3 {
    font-family: var(--font-titre);
    color: var(--color-text);
    margin-bottom: 15px;
}

h2 {
    border-bottom: 3px solid var(--magie);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 10px;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* --- 4. HEADER & NAVIGATION --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--fondation);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0 20px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--magie);
    font-weight: bold;
    font-family: var(--font-titre);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--alternative);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--magie);
    border-bottom-color: var(--magie);
}

/* Burger Menu (Mobile) */
.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--alternative);
    font-size: 2rem;
    cursor: pointer;

}

/* --- 5. BANDEROLE (HERO IMAGE) --- */
.banderole {
    position: relative;
    min-height: 70vh;
    height: auto;
    width: 100%;
    max-width: 1200px; /* Limite la largeur */
    margin: 0 auto 60px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, #0B1026 0%, #121A3A 45%, #1C2550 100%);
}

.banderole img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banderole-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(38, 70, 83, 0.85); /* Fond sombre transparent */
    padding: 40px;
    border-radius: 15px;
    color: var(--alternative);
    max-width: 600px;
    margin: 0 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.banderole-content h1 {
    color: var(--magie);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 10px;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
}

.banderole-content > p:first-of-type {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.banderole-content .devise {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 16px 0;
    color: var(--magie);
    text-wrap: balance;
}

.banderole-content .hero-meta {
    font-size: 0.95rem;
    margin: 16px 0 24px 0;
    color: var(--color-text-muted);
}

.banderole-content .btn-hero {
    margin: 8px 8px 0 8px;
}

/* --- 6. SECTIONS (STYLE GLOWMORPHISM) --- */
main {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    width: 90%;
    margin-bottom: 50px;
    padding: 40px;
    
    /* EFFET VERRE GIVRÉ & LUEUR */
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;

    /* Lueur jaune douce par défaut */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05), 
        0 0 20px rgba(233, 196, 106, 0.3);

    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Effet au survol de la section */
section:hover {
    transform: translateY(-5px);
    border-color: var(--magie);
    /* Lueur plus intense et chaude */
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(233, 196, 106, 0.6), 
        0 0 10px var(--acccent);
}

/* Petit reflet brillant en haut */
section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* --- 7. ELEMENTS INTERNES --- */

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--acccent);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(188, 71, 73, 0.4);
}

.btn:hover {
    background-color: #a03a3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(188, 71, 73, 0.6);
}

/* Styles Bouton Downloading */
/* --- MODALE DOCUMENTS (Version Pro) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000 !important;
    background: rgba(38, 70, 83, 0.8); /* Fond sombre bleuté */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-box {
    background: var(--bg-page);
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    transform: translateY(0) scale(1);
    transition: transform 0.4s ease;
}

.modal-overlay.hidden .modal-box {
    transform: translateY(20px) scale(0.95);
}

/* Header de la modale */
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h3 { 
    font-size: 1.5rem; 
    color: var(--fondation-clair); 
    margin-bottom: 10px; 
    text-shadow: 
        -2px -2px 0 var(--fondation),
         2px -2px 0 var(--fondation),
        -2px  2px 0 var(--fondation),
         2px  2px 0 var(--fondation);
}
.modal-header p { font-size: 0.9rem; color: #ffffff; margin: 0; }

/* Bouton fermer */
.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: #f0f0f0;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: #333;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover { background: var(--acccent); color: white; transform: rotate(90deg); }

/* --- CARTES FICHIERS --- */
.file-list { display: flex; flex-direction: column; gap: 15px; }

.file-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Effet Hover sur la carte */
.file-card:hover {
    transform: translateY(-3px);
    border-color: var(--magie);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* L'icône à gauche (Cercle coloré) */
.icon-wrapper {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.icon-wrapper svg { width: 24px; height: 24px; }

/* Couleurs spécifiques par icône */
.icon-wrapper.bag { background: rgba(38, 70, 83, 0.1); color: var(--fondation); }
.icon-wrapper.health { background: rgba(188, 71, 73, 0.1); color: var(--acccent); }
.icon-wrapper.sign { background: rgba(233, 196, 106, 0.2); color: #b58900; }

/* Infos texte */
.file-info { flex: 1; }
.file-info h4 { margin: 0; font-size: 1rem; color: var(--fondation); font-family: var(--font-corps); font-weight: bold; }
.file-info span { font-size: 0.8rem; color: var(--color-text-muted); display: block; margin-top: 2px; }

/* Bouton de téléchargement (Flèche) */
.download-action {
    color: #ccc;
    transition: 0.3s;
}
.file-card:hover .download-action {
    color: var(--fondation);
    transform: translateY(3px); /* Petite animation vers le bas */
}

/* --- MODE NUIT --- */
body.dark-mode .modal-box {
    background: #1a2e38;
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .modal-header h3 { color: var(--magie); }
body.dark-mode .modal-header p { color: #aaa; }
body.dark-mode .close-modal { background: rgba(255,255,255,0.1); color: white; }
body.dark-mode .close-modal:hover { background: var(--acccent); }

body.dark-mode .file-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}
body.dark-mode .file-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--magie);
}
body.dark-mode .file-info h4 { color: #eee; }
body.dark-mode .file-info span { color: var(--color-text-muted); }

/* Timeline (Programme) */
.timeline li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--secondaire);
    position: relative;
}
.timeline .date {
    display: inline-block;
    background: var(--fondation);
    color: var(--magie);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Grilles (Cartes Activités / Features) */
.features-grid, .activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* Cartes individuelles (pour ressortir sur le verre) */
.card, .feature-item {
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(233, 196, 106, 0.3);
}

/* --- 8. SECTION MAPS (Carte Google) --- */
.map-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.google-map {
    flex: 2;
    min-width: 300px;
}

.google-map iframe {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 25px;
    border-radius: 15px;
    border-top: 4px solid var(--magie);
}

.map-info ul li {
    margin-bottom: 12px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 8px;
}
.map-info strong { color: var(--acccent); }

/* --- 9. FOOTER --- */
footer {
    background-color: var(--fondation);
    color: var(--alternative);
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    transition: background-color 0.4s ease;
}

/* --- 10. RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .burger-menu { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background-color: var(--fondation);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.active { display: flex; }
    
    .banderole { height: 50vh; border-radius: 0 0 20px 20px;}
    .banderole-content h1 { font-size: 1.8rem; }
    
    section { width: 95%; padding: 25px; }
    
    .map-wrapper { flex-direction: column; }
    .google-map iframe { height: 250px; }
}

/* --- 🌗 MODE NUIT (DARK MODE) --- */

/* Le bouton de changement de thème */
.theme-btn {
    background: none;
    border: 2px solid var(--alternative);
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.theme-btn:hover { background: var(--magie); border-color: var(--magie); }

/* --- QUAND LE MODE NUIT EST ACTIVÉ --- */
body.dark-mode {
    /* Fond : Nuit étoilée profonde */
    background: radial-gradient(circle at 50% 0%, var(--bg-end) 0%, var(--bg-start) 100%);
    color: var(--color-text);
}

/* Ajustement des titres en mode nuit */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: var(--magie); /* Les titres deviennent lumineux (Jaune) */
}

body.dark-mode strong {
    color: var(--acccent); /* Mots importants en rouge/orange */
}

/* --- LE GLOWMORPHISM VERSION NUIT --- */
body.dark-mode section {
    /* Verre sombre : Noir semi-transparent */
    background: rgba(20, 30, 40, 0.6);
    
    /* Bordure lumineuse très fine */
    border: 1px solid rgba(233, 196, 106, 0.15);
    
    /* LA LUEUR (GLOW) : C'est ici que ça claque ! */
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.5), /* Ombre noire pour la profondeur */
        0 0 15px rgba(233, 196, 106, 0.1); /* Halo jaune subtil */
}

/* Au survol en mode nuit : Effet NÉON */
body.dark-mode section:hover {
    border-color: var(--magie);
    box-shadow: 
        0 0 50px rgba(233, 196, 106, 0.3), /* Grand halo jaune */
        0 0 15px var(--magie),             /* Cœur lumineux */
        inset 0 0 20px rgba(233, 196, 106, 0.05); /* Lumière intérieure */
    transform: translateY(-5px) scale(1.01);
}

/* Ajustement des cartes intérieures (Programme, etc) */
body.dark-mode .card, 
body.dark-mode .feature-item, 
body.dark-mode .map-info {
    background: rgba(255, 255, 255, 0.05) !important; /* Très transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
}

body.dark-mode .map-info {
    border-top: 4px solid var(--magie);
}
/* --- HEADER & NAV EN MODE NUIT --- */
body.dark-mode header {
    /* On remplace le Bleu Pétrole par un Noir/Bleu Nuit profond et transparent */
    background-color: rgba(5, 8, 10, 0.95);
    
    /* Une petite bordure lumineuse dorée en bas pour rappeler le glow */
    border-bottom: 1px solid rgba(233, 196, 106, 0.2);
    
    /* Ombre portée plus forte */
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* On s'assure que le menu burger reste visible */
body.dark-mode .burger-menu {
    color: var(--magie); /* Le burger devient jaune doré */
}

/* Le menu mobile (qui s'ouvre) doit aussi être sombre */
body.dark-mode .nav-links {
    background-color: #121A3A;
    box-shadow: 0 10px 20px rgba(0,0,0,0.9);
}

/* Menu mobile lisible en thème clair */
body:not(.dark-mode) .nav-links {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

body:not(.dark-mode) .nav-links a {
    color: var(--fondation-clair);
}

/* --- FOOTER EN MODE NUIT --- */
body.dark-mode footer {
    /* Fond très sombre pour se fondre avec le dégradé du body */
    background-color: #020304;
    
    /* Petite ligne de séparation brillante en haut */
    border-top: 1px solid rgba(233, 196, 106, 0.1);
    
    /* Texte un peu plus gris pour ne pas agresser les yeux */
    color: rgba(255, 255, 255, 0.6);
}

/* --- PETITS DÉTAILS EN PLUS --- */
/* Les liens du menu deviennent dorés au survol en mode nuit */
body.dark-mode .nav-links a:hover {
    color: var(--magie);
    text-shadow: 0 0 10px rgba(233, 196, 106, 0.6); /* Petit effet néon sur le texte */
}


/* --- STYLE DU PROGRAMME (ONGLETS) --- */

/* Conteneur des boutons */
.tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

/* Les Boutons (Onglets) */
.tab-btn {
    background-color: transparent;
    border: 2px solid var(--fondation);
    color: var(--fondation);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-corps);
    font-weight: bold;
    transition: 0.3s;
}

/* Style du bouton actif */
.tab-btn.active, .tab-btn:hover {
    background-color: var(--fondation);
    color: var(--magie);
    border-color: var(--magie);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* En mode Nuit : Adaptation des boutons */
body.dark-mode .tab-btn {
    border-color: var(--magie);
    color: var(--alternative);
}
body.dark-mode .tab-btn.active {
    background-color: var(--magie);
    color: var(--fondation);
}

/* --- LISTE DES HORAIRES --- */
.day-panel {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.5s ease;
}

.day-panel.active {
    display: block; /* Affiché si actif */
}

.schedule-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .schedule-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-list .time {
    background-color: var(--secondaire);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
    min-width: 70px; /* Pour aligner le texte */
    text-align: center;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ANIMATION TÉLÉCHARGEMENT --- */

/* 1. La définition du mouvement (La flèche tombe et revient par le haut) */
@keyframes downloadDrop {
    0% {
        transform: translateY(3px); /* Position de départ (légèrement en bas à cause du hover) */
        opacity: 1;
    }
    30% {
        transform: translateY(20px); /* Elle tombe */
        opacity: 0; /* Et disparaît */
    }
    31% {
        transform: translateY(-20px); /* Elle se téléporte en haut instantanément */
        opacity: 0;
    }
    100% {
        transform: translateY(0); /* Elle revient à sa place initiale */
        opacity: 1;
    }
}

/* 2. La classe déclencheur (ajoutée via JS) */
/* Quand la carte a la classe '.is-downloading', on anime l'icône SVG à l'intérieur */
.file-card.is-downloading .download-action svg {
    animation: downloadDrop 0.8s ease forwards;
    color: var(--acccent); /* Change la couleur en rouge pendant l'anim */
}

/* Mode nuit : couleur différente pendant l'anim */
body.dark-mode .file-card.is-downloading .download-action svg {
    color: var(--magie); /* Jaune doré la nuit */
}

/* --- BOUTON TÉLÉCHARGEMENT PREMIUM --- */

/* Style de base du bouton */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Espace entre icône et texte */
    
    /* Dégradé dynamique (Rouge Terre -> Orange Brûlé) */
    background: linear-gradient(135deg, var(--acccent) 0%, #d65a5c 100%);
    color: white;
    
    font-family: var(--font-corps);
    font-weight: 800; /* Texte bien gras */
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden; /* Pour contenir l'effet de brillance */
    
    /* Ombre portée colorée (Glow initial) */
    box-shadow: 0 4px 15px rgba(188, 71, 73, 0.4);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* L'icône SVG à l'intérieur */
.btn-glow svg {
    transition: transform 0.3s ease;
}

/* --- EFFET AU SURVOL (HOVER) --- */
.btn-glow:hover {
    /* Le bouton monte */
    transform: translateY(-4px) scale(1.02);
    
    /* Le dégradé change légèrement */
    background: linear-gradient(135deg, #d65a5c 0%, var(--secondaire) 100%);
    
    /* GROSSE LUEUR MAGIQUE (Double ombre) */
    box-shadow: 
        0 10px 25px rgba(188, 71, 73, 0.6), /* Ombre rouge large */
        0 0 15px var(--magie);             /* Halo doré autour */
}

.btn-glow:hover svg {
    /* L'icône fait un petit bond */
    transform: translateY(2px) scale(1.1);
}

/* --- EFFET DE BRILLANCE (SHINE) --- */
/* Une barre de lumière qui traverse le bouton */
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: 0.5s;
}

.btn-glow:hover::after {
    left: 100%; /* La lumière traverse le bouton au survol */
}

/* --- EFFET CLIC (ACTIVE) --- */
.btn-glow:active {
    transform: translateY(1px); /* S'enfonce quand on clique */
    box-shadow: 0 2px 10px rgba(188, 71, 73, 0.4);
}

/* --- ADAPTATION MODE NUIT --- */
body.dark-mode .btn-glow {
    /* Plus de contraste la nuit */
    box-shadow: 0 0 20px rgba(188, 71, 73, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
body.dark-mode .btn-glow:hover {
    box-shadow: 
        0 0 30px rgba(188, 71, 73, 0.7),
        0 0 10px var(--magie);
}

/* --- STYLES DU PRIX --- */

/* 1. La Carte Prix dans la présentation */
.feature-item.price-card {
    border: 2px solid var(--magie); /* Bordure dorée */
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(233, 196, 106, 0.2) 100%);
}

.price-tag {
    font-family: var(--font-titre);
    font-size: 2rem;
    font-weight: bold;
    color: var(--fondation);
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 2. La Bannière Prix dans le contact */
.price-banner {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--magie);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(233, 196, 106, 0.3);
    animation: pulsePrice 3s infinite ease-in-out;
}

.price-banner .label {
    font-size: 1.1rem;
    color: var(--fondation);
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-banner .amount {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    color: var(--acccent); /* Rouge terre pour ressortir */
    font-weight: bold;
}

/* Petite animation douce pour attirer l'œil */
@keyframes pulsePrice {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(233, 196, 106, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 5px 25px rgba(233, 196, 106, 0.6); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(233, 196, 106, 0.3); }
}

/* Mode Nuit */
body.dark-mode .feature-item.price-card {
    background: rgba(233, 196, 106, 0.1);
}
body.dark-mode .price-tag { color: var(--magie); }
body.dark-mode .price-banner {
    background: rgba(0,0,0,0.3);
    border-color: var(--magie);
}
body.dark-mode .price-banner .label { color: #ddd; }
body.dark-mode .price-banner .amount { color: var(--magie); }

/* --- PRÉPARATION ILLUSTRATIONS 2H.3 --- */

.hero-illustration {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(58, 175, 185, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(123, 94, 167, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #0B1026 0%, #121A3A 45%, #1C2550 100%);
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-illustration.is-missing img {
    display: none;
}

.banderole-content {
    z-index: 2;
}

.island-illustration {
    height: 120px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(58, 175, 185, 0.15), rgba(123, 94, 167, 0.12));
}

.island-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.island-illustration.is-missing img {
    display: none;
}

.island-aurore .island-illustration { background: linear-gradient(135deg, rgba(242, 184, 75, 0.25), rgba(212, 175, 55, 0.12)); }
.island-eclat .island-illustration { background: linear-gradient(135deg, rgba(58, 175, 185, 0.25), rgba(46, 196, 182, 0.12)); }
.island-vaillance .island-illustration { background: linear-gradient(135deg, rgba(123, 94, 167, 0.25), rgba(90, 63, 122, 0.12)); }
.island-flambeau .island-illustration { background: linear-gradient(135deg, rgba(233, 162, 59, 0.25), rgba(212, 175, 55, 0.12)); }
.island-esperance .island-illustration { background: linear-gradient(135deg, rgba(143, 170, 220, 0.25), rgba(58, 175, 185, 0.12)); }

.bethleem-illustration {
    height: 200px;
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(123, 94, 167, 0.12));
}

.bethleem-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bethleem-illustration.is-missing img {
    display: none;
}

/* --- PHASE 2H.7 : CINQ ÎLES PREMIUM --- */

#iles {
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
}

#iles .features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

#iles .feature-item.island-card {
    position: relative;
    overflow: hidden;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#iles .feature-item.island-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--magie);
}

#iles .feature-item.island-card:hover {
    transform: translateY(-6px);
    border-color: var(--magie);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 28px rgba(212, 175, 55, 0.12);
}

#iles .island-card .island-illustration {
    height: 150px;
    margin: -24px -24px 16px -24px;
    border-radius: 20px 20px 0 0;
}

#iles .island-card.island-featured .island-illustration {
    height: 200px;
}

#iles .island-card h3 {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

#iles .island-card em {
    color: var(--magie);
    font-style: italic;
    font-size: 0.95rem;
}

#iles .island-card strong {
    color: var(--fondation-clair);
}

#iles .island-card p:last-child {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

#iles .island-featured {
    grid-column: span 2;
}

#iles .island-aurore { background: linear-gradient(160deg, var(--color-surface-elevated) 0%, rgba(242, 184, 75, 0.08) 100%); }
#iles .island-eclat { background: linear-gradient(160deg, var(--color-surface-elevated) 0%, rgba(58, 175, 185, 0.08) 100%); }
#iles .island-vaillance { background: linear-gradient(160deg, var(--color-surface-elevated) 0%, rgba(123, 94, 167, 0.08) 100%); }
#iles .island-flambeau { background: linear-gradient(160deg, var(--color-surface-elevated) 0%, rgba(233, 162, 59, 0.08) 100%); }
#iles .island-esperance { background: linear-gradient(160deg, var(--color-surface-elevated) 0%, rgba(143, 170, 220, 0.08) 100%); }

#iles .island-aurore::before { background: #F2B84B; }
#iles .island-eclat::before { background: #3AAFB9; }
#iles .island-vaillance::before { background: #7B5EA7; }
#iles .island-flambeau::before { background: #E9A23B; }
#iles .island-esperance::before { background: #8FAADC; }

@media (max-width: 1024px) {
    #iles .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #iles .island-featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    #iles .features-grid {
        grid-template-columns: 1fr;
    }

    #iles .island-featured {
        grid-column: auto;
    }

    #iles .island-card .island-illustration {
        height: 120px;
    }
}

/* --- PHASE 2H.8 : BETHLÉEM ET GRANDE CONSTELLATION --- */

.section-bethleem {
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(212, 175, 55, 0.35);
}

body.dark-mode .section-bethleem {
    background: linear-gradient(180deg, rgba(20, 27, 58, 0.95) 0%, rgba(11, 16, 38, 1) 100%);
}

.section-bethleem .bethleem-illustration {
    height: 240px;
    margin: 24px 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(123, 94, 167, 0.12));
}

.section-bethleem p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-constellation {
    background: radial-gradient(circle at 50% 0%, rgba(123, 94, 167, 0.18) 0%, var(--color-surface) 60%);
    text-align: center;
}

.section-constellation h2 {
    border-bottom-color: var(--magie);
}

.constellation-map {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 320px;
    margin: 32px auto;
}

.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.constellation-lines line {
    stroke: rgba(212, 175, 55, 0.45);
    stroke-width: 1;
}

.constellation-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--magie);
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
    z-index: 2;
}

.constellation-node {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 14px currentColor;
    z-index: 2;
}

.node-aurore { top: 20%; left: 22%; background: #F2B84B; color: #F2B84B; }
.node-eclat { top: 24%; left: 78%; background: #3AAFB9; color: #3AAFB9; }
.node-vaillance { top: 76%; left: 18%; background: #7B5EA7; color: #7B5EA7; }
.node-flambeau { top: 74%; left: 82%; background: #E9A23B; color: #E9A23B; }
.node-esperance { top: 12%; left: 50%; background: #8FAADC; color: #8FAADC; }

.constellation-devise {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--magie);
    margin-top: 16px;
}

@media (max-width: 768px) {
    .constellation-map {
        height: 260px;
        max-width: 320px;
    }

    .constellation-center {
        font-size: 2.2rem;
    }

    .constellation-node {
        width: 12px;
        height: 12px;
    }
}

/* --- PHASE 2H.9 : RITUELS ET PHASES --- */

#rituels .ritual-path {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.ritual-item {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ritual-item:hover {
    transform: translateY(-4px);
    border-color: var(--magie);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 20px rgba(212, 175, 55, 0.10);
}

.ritual-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--magie);
}

.ritual-item h3 {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.ritual-item p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.phase-timeline {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    position: relative;
}

.phase-timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--fondation-clair), var(--magie));
}

.phase-item {
    position: relative;
    padding: 0 0 28px 56px;
}

.phase-item:last-child {
    padding-bottom: 0;
}

.phase-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-surface-elevated);
    border: 2px solid var(--magie);
    color: var(--magie);
    font-family: var(--font-titre);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.phase-content {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 16px 20px;
}

.phase-content h3 {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.phase-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    #rituels .ritual-path {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #rituels .ritual-path {
        grid-template-columns: 1fr;
    }

    .phase-timeline::before {
        left: 19px;
    }

    .phase-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .phase-item {
        padding-left: 52px;
    }
}

/* --- PHASE 2H.11 : MICRO-INTERACTIONS ET FLUIDITÉ --- */

/* Transitions de base pour les éléments interactifs */
a, button, .file-card, .island-card, .ritual-item, .phase-content, .card, .feature-item {
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Focus visible accessible */
a:focus-visible, button:focus-visible, .file-card:focus-visible {
    outline: 2px solid var(--magie);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Navigation : soulignement progressif */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--magie);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

/* Boutons : feedback tactile */
.btn, .btn-glow, .theme-btn, .carousel-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active, .btn-glow:active {
    transform: translateY(1px) scale(0.98);
}

/* Îles : glow maîtrisé au survol */
.island-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 24px rgba(212, 175, 55, 0.12);
}

/* Rituels : feedback discret */
.ritual-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 20px rgba(212, 175, 55, 0.10);
}

/* Timeline : mise en valeur des nœuds */
.phase-number {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phase-item:hover .phase-number {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

/* Grande Constellation : halo subtil */
.constellation-center {
    transition: text-shadow 0.4s ease, transform 0.4s ease;
}

.section-constellation:hover .constellation-center {
    transform: translate(-50%, -50%) scale(1.05);
    text-shadow: 0 0 32px rgba(212, 175, 55, 0.75);
}

.constellation-node {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-constellation:hover .constellation-node {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Footer : liens doux */
.footer-nav a {
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--magie);
    transition: width 0.25s ease;
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
    width: 100%;
}

/* Réduction des mouvements */
@media (prefers-reduced-motion: reduce) {
    a, button, .file-card, .island-card, .ritual-item, .phase-content, .card, .feature-item,
    .nav-links a::after, .footer-nav a::after, .phase-number, .constellation-center, .constellation-node {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .island-card:hover,
    .ritual-item:hover,
    .phase-item:hover .phase-number,
    .section-constellation:hover .constellation-center,
    .section-constellation:hover .constellation-node {
        transform: none;
    }
}

/* --- PHASE 2H.10 : INFOS, DOCUMENTS, CONTACT, LOCALISATION, FOOTER --- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-grid li {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border-soft);
}

.info-grid li strong {
    color: var(--fondation-clair);
}

.info-grid li::marker {
    content: '';
}

.documents-note {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
    color: var(--color-text-muted);
}

#documents .file-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 18px;
}

#documents .file-card:hover {
    border-color: var(--magie);
    transform: translateY(-2px);
}

#contact .contact-info {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

#maps p {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-muted);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-devise {
    font-family: var(--font-titre);
    font-style: italic;
    color: var(--magie);
    font-size: 1.05rem;
    margin: 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.footer-nav a {
    color: var(--alternative);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--magie);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    text-align: center;
    max-width: 720px;
}

body:not(.dark-mode) .footer-devise {
    color: #D4AF37;
}

body:not(.dark-mode) .footer-copy {
    color: #B8C6E6;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- INTÉGRATION LOGO BLACK STARFISH --- */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 28px;
    }

    .footer-logo {
        height: 24px;
    }
}

/* --- PHASE 4B.2 : TARIFS --- */
.tarif-item {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    color: var(--color-text);
}

/* --- CORRECTIONS PHASE 2G.2 : RESPONSIVE ET CONTRASTES --- */

/* Thème clair : contrastes du header */
body:not(.dark-mode) .nav-links a {
    color: var(--fondation-clair);
}

body:not(.dark-mode) .brand-subtitle {
    color: var(--color-text-muted);
}

body:not(.dark-mode) .burger-menu {
    color: var(--color-text);
}

/* Thème clair : hero */
body:not(.dark-mode) .banderole-content .hero-meta {
    color: var(--color-text-muted);
}

body:not(.dark-mode) .banderole-content h1,
body:not(.dark-mode) #presentation h2 {
    color: #6B5200;
}

body:not(.dark-mode) .banderole-content .devise {
    color: #5A4500;
}

/* Navigation : éviter les libellés sur deux lignes */
.nav-links a {
    white-space: nowrap;
}

/* Hero : hauteur adaptative sur mobile */
@media (max-width: 768px) {
    .banderole {
        height: auto;
        min-height: 420px;
    }

    .banderole-content {
        padding: 24px 20px;
    }

    .banderole-content .devise {
        text-wrap: balance;
    }
}

/* Hero : hauteur adaptative sur tablette */
@media (max-width: 1024px) {
    .banderole {
        min-height: 60vh;
    }
}

/* Header : densité réduite sur tablette */
@media (max-width: 1024px) {
    .nav-container {
        height: 64px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        max-width: 150px;
        font-size: 0.65rem;
        line-height: 1.2;
        margin-right: 18px;
        opacity: 0.85;
    }

    .nav-links {
        gap: 14px;
        margin-left: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

/* --- AJOUTS PHASE 1B.2 (contenus 2026) --- */
.brand-subtitle {
    color: var(--alternative);
    font-size: 0.85rem;
    margin: 0 0 0 0;
    max-width: 420px;
    opacity: 0.9;
}

.banderole-content .devise {
    font-family: var(--font-titre);
    font-style: italic;
    font-size: 1.05rem;
    margin: 10px 0;
    color: var(--magie);
}

.banderole-content .hero-meta {
    font-size: 0.95rem;
    margin: 10px 0 20px 0;
    color: var(--alternative);
}

.organizer {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.85;
    margin-top: 20px;
}

.note {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.85;
    margin-top: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

body.dark-mode .info-list li {
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
    .brand-subtitle {
        display: none;
    }
}

/* --- PROTOTYPE 2C : L'ARCHIPEL CÉLESTE --- */

/* Header / navigation */
header {
    background-color: rgba(18, 26, 58, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--magie);
}

body:not(.dark-mode) header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--acccent);
}

.logo {
    color: var(--magie);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

body.dark-mode .nav-links a {
    color: var(--alternative);
}

.nav-links a:hover {
    color: var(--magie);
    border-bottom-color: var(--magie);
}

/* Hero */
.banderole {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0B1026 0%, #121A3A 45%, #1C2550 100%);
}

.banderole::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(58, 175, 185, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(123, 94, 167, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.banderole-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(11, 16, 38, 0.68);
    padding: 48px 32px;
    border-radius: 20px;
    color: var(--alternative);
    max-width: 720px;
    margin: 0 20px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 48px rgba(212, 175, 55, 0.12);
}

body:not(.dark-mode) .banderole-content {
    background: rgba(244, 247, 251, 0.78);
    border: 1px solid rgba(138, 106, 0, 0.35);
    color: var(--fondation);
}

.banderole-content h1 {
    color: var(--magie);
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
}

.banderole-content .devise {
    color: var(--magie);
}

/* Îles : identités distinctes */
.island-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.island-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--magie);
}

.island-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 24px rgba(212, 175, 55, 0.15);
}

.island-aurore::before { background: #F2B84B; }
.island-eclat::before { background: #3AAFB9; }
.island-vaillance::before { background: #7B5EA7; }
.island-flambeau::before { background: #E9A23B; }
.island-esperance::before { background: #8FAADC; }

.island-card h3 {
    color: var(--color-text);
}

.island-card em {
    color: var(--magie);
    font-style: italic;
}

.island-card strong {
    color: var(--fondation-clair);
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .island-card,
    .banderole-content,
    .banderole::after {
        transition: none;
        animation: none;
    }
}

/* --- GÉNÉRALISATION 2D : TOKENS & SECTIONS --- */
:root {
    --color-surface: #FFFFFF;
    --color-surface-elevated: #F0F4FA;
    --color-border-soft: rgba(0, 0, 0, 0.10);
}

body.dark-mode {
    --color-surface: #141B3A;
    --color-surface-elevated: #1C2550;
    --color-border-soft: rgba(255, 255, 255, 0.12);
}

/* Sections */
section {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.dark-mode section {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

section:hover {
    border-color: var(--magie);
}

/* Titres de section */
h2 {
    border-bottom-color: var(--magie);
}

/* Footer */
footer {
    background-color: var(--fondation);
    color: var(--alternative);
    border-top: 1px solid var(--magie);
}

/* Infos pratiques */
.info-list li {
    border-bottom: 1px dashed var(--color-border-soft);
}

/* Documents */
.file-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
}

.file-card:hover {
    border-color: var(--magie);
}

/* Localisation */
.map-info {
    background: var(--color-surface-elevated);
    border-top: 4px solid var(--magie);
}

/* Encarts / notes */
.note, .organizer {
    color: var(--color-text-muted);
}

/* Timeline phases */
.schedule-list .time {
    background-color: var(--secondaire);
    color: #FFFFFF;
}

/* Contact */
.contact-info {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 20px;
}

/* --- FIX LINK-IN-TEXT-BLOCK --- */
.contact-list a {
    color: var(--fondation-clair);
    text-decoration: underline;
}
