/* ==========================================================================
   VARIABLES ET CONFIGURATION GLOBALE
   ========================================================================== */
:root {
    --bg: #FEFBE8;
    --card-bg: #FFFFF0;
    --ink: #080200;
    --ink-light: #200000;
    --gold: #3C0000;
    --gold-light: #8C0010;
    --gold-pale: #CC4040;
    --dept: #2C0000;
    --dept-light: #700010;
    --dept-pale: #B84040;
    --dept-dark: #200000;
    --line: rgba(60,0,0,0.20);
    --shadow: 0 4px 24px rgba(8,2,0,0.12);
    --shadow-lg: 0 8px 48px rgba(8,2,0,0.18);
    --radius: 4px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: #3C0000;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 17px;
    line-height: 1.75;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0,0,0,0.25);
}

/* ==========================================================================
   BARRE SUPÉRIEURE ET NAVIGATION PRINCIPALE
   ========================================================================== */
.site-topbar {
    background: #fff;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-topbar-inner {
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dept-dark);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.menu-toggle {
    background: var(--dept-dark);
    border: none;
    color: #fff;
    font-family: 'Source Serif 4', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--dept);
}

.main-nav {
    background: #fff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.main-nav.is-open {
    max-height: 980px;
}

.nav-grid {
    padding: 22px 24px 26px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px 32px;
}

.nav-column h2 {
    font-family: 'Playfair Display', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dept-dark);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gold);
}

.nav-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-column ul li {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nav-column ul li::before {
    content: '›';
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-column ul a {
    color: var(--ink-light);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.nav-column ul a:hover {
    color: var(--dept);
}

@media(max-width:600px) {
    .nav-grid {
        grid-template-columns: 1fr 1fr;
        padding: 16px 16px 20px;
        gap: 16px 20px;
    }
    .site-topbar-inner { padding: 0 14px; }
    .site-logo { font-size: .84rem; }
    .menu-toggle { padding: 7px 12px; }
}

/* ==========================================================================
   ZONE SUPÉRIEURE (CHARTE CLAIRE #FEFBE8)
   ========================================================================== */
.breadcrumb {
    background: #FEFBE8;
    padding: 10px 24px;
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}

.breadcrumb a {
    color: var(--ink-light);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--gold-light); font-style: italic; }

header {
    background: #FEFBE8;
    color: var(--ink-light);
    padding: 56px 24px 50px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,transparent,transparent 38px,rgba(60,0,0,0.28) 38px,rgba(60,0,0,0.28) 39px),repeating-linear-gradient(90deg,transparent,transparent 38px,rgba(60,0,0,0.28) 38px,rgba(60,0,0,0.28) 39px);
    pointer-events: none;
    opacity: 0;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 9px;
    background: linear-gradient(90deg,#1d3f7a 0%,#fff 33%,#fff 66%,#c91d1d 66%);
}


.header-inner { position: relative; z-index: 1; }
.header-inner .kicker { font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dept-pale); margin-bottom: 14px; }

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 4.2vw, 3rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

header h1 em { font-style: italic; color: var(--gold-light); }
header .lead { margin-top: 18px; font-size: 1.05rem; font-style: italic; color: var(--ink-light); line-height: 1.7; }
.header-ornament { margin: 24px auto 0; display: flex; align-items: center; justify-content: center; gap: 12px; opacity: 0.5; }
.header-ornament span { display: block; height: 1px; width: 72px; background: var(--gold-light); }
.header-ornament i { font-size: 0.85rem; color: var(--gold-light); font-style: normal; }

/* ==========================================================================
   BANDEAU DES STATISTIQUES
   ========================================================================== */
.stats-band {
    background: #FEFBE8;
    border-bottom: 3px solid var(--gold);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 16px 14px;
    text-align: center;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.stat-item:last-child { border-right: none; }

.stat-value {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-top: 0;
}

@media(max-width:600px) {
    .stats-inner { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--line); padding: 12px 14px; }
    .stat-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   SOMMAIRE DE NAVIGATION (TOC - FOND LIGHTGREEN)
   ========================================================================== */
nav.toc {
    background: lightgreen; /* Fond vert clair */
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 16px;
}

nav.toc a {
    color: var(--ink); /* Écriture noire pour contraste maximum */
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-family: 'Source Serif 4', serif;
    padding: 13px 10px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

nav.toc a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* Grille des départements   */
  .dept-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(185px,1fr)); gap:12px; margin:28px 0; }
  .dept-card { background:var(--card-bg); border:1px solid var(--line-gold); border-radius:var(--radius); padding:14px 16px; box-shadow:var(--shadow); }
  .dept-card .num { font-family:'Playfair Display',serif; font-size:1.35rem; font-weight:900; color:var(--gold); }
  .dept-card .name { font-family:'Playfair Display',serif; font-size:0.95rem; font-weight:700; color:var(--ink); margin:3px 0 6px; }
  .dept-card .chef { font-size:0.78rem; color:var(--ink-light); margin-bottom:3px; }
  .dept-card .chef strong { color:var(--dept); }



/* ==========================================================================
   CONTENU DES SECTIONS ET CORPS DE PAGE
   ========================================================================== */
section { padding: 64px 24px 42px; }
section+section { border-top: 1px solid var(--line); }

.section-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
.section-num { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 900; color: var(--dept-pale); line-height: 1; flex-shrink: 0; margin-top: -4px; }
.section-head-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; line-height: 1.15; color: var(--ink); }
.section-head-text .sub { font-size: 0.83rem; font-style: italic; color: var(--ink-light); margin-top: 4px; letter-spacing: 0.05em; }

.intro-para { font-size: 1.06rem; line-height: 1.85; color: var(--ink-light); margin-bottom: 36px; border-left: 3px solid var(--gold); padding-left: 20px; }
.body-text { font-size: 0.97rem; line-height: 1.82; color: var(--ink-light); margin-bottom: 22px; }
.body-text strong { color: var(--ink); font-weight: 600; }

.encart { background: var(--card-bg); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 24px 22px; box-shadow: var(--shadow); margin-bottom: 30px; font-size: 0.95rem; line-height: 1.78; color: var(--ink-light); }
.encart strong { color: var(--ink); font-weight: 700; }
.encart.tarentaise, .encart.oisans { border-left-color: #003A5A; }
.encart.troisvallees, .encart.belledonne { border-left-color: #3A0010; }
.encart.paradiski, .encart.vercors { border-left-color: #1A1A5A; }
.encart.maurienne, .encart.chartreuse { border-left-color: #6C1800; }
.encart.beaufortain, .encart.transition { border-left-color: #003A18; }
.encart.nordique { border-left-color: #3A2800; }
.encart .src { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dept); font-weight: 700; margin-bottom: 8px; }

.station-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.station-card { background: var(--card-bg); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(8,2,0,.08); padding: 14px 16px; border-radius: var(--radius); font-size: .9rem; line-height: 1.55; }
.station-card strong { display: block; color: var(--ink); font-family: 'Playfair Display', serif; font-size: 1.02rem; margin-bottom: 3px; }

/* Bloc de citation (Pullquote) juste au-dessus de la carte */
blockquote.pullquote {
    margin: 36px 0;
    padding: 26px 30px;
    background: #FEFBE8;
    color: var(--ink-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.68;
    position: relative;
}

blockquote.pullquote::before {
    content: '\201C';
    font-size: 4.5rem;
    line-height: 1;
    color: var(--gold-light);
    opacity: 0.15;
    position: absolute;
    top: 6px;
    left: 14px;
}

blockquote.pullquote p { position: relative; z-index: 1; }
blockquote.pullquote cite { display: block; margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.10em; text-transform: uppercase; color: var(--dept-pale); font-style: normal; }

/* ==========================================================================
   MODULE CARTE INTERACTIVE (COMPATIBLE ID 73 ET 38 etc)
   ========================================================================== */
#map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); margin-bottom: 20px; }

/* On applique la hauteur aux deux identifiants possibles de carte */
#stations73-map, #stations74-map, #stations38-map, #stations04-map, #stations05-map, #stations06-map, #tours-map, #alpes-map, #alpes-suisses-map, #arles-map, #paca-map, #azur-map, #antibes-map, #nice-map, #nice-tende-map, #menton-map, #monaco-map, #rade-map, #vence-map, #cannes-map, #grasse-map, #frejus-map, #tropez-map { width: 100%; height: 560px; }

.map-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-size: 0.80rem; color: var(--ink-light); }
.map-legend-item { display: flex; align-items: center; gap: 7px; }
.map-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.65); box-shadow: 0 1px 4px rgba(0,0,0,0.28); }

.leaflet-control-zoom a {
    background: #FEFBE8 !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}

.leaflet-control-zoom a:hover {
    background: #FFFFF0 !important;
    color: var(--gold-light) !important;
}

.leaflet-control-attribution {
    font-size: 0.67rem !important;
    background: rgba(254, 251, 232, 0.80) !important;
    color: var(--ink-light) !important;
}

.leaflet-control-attribution a { color: var(--gold-light) !important; }

.leaflet-popup-content-wrapper {
    background: #FFFFF0 !important;
    color: var(--ink) !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 24px rgba(8,2,0,0.15) !important;
    font-family: 'Source Serif 4', Georgia, serif !important;
    padding: 0 !important;
    min-width: 215px;
    border: 1px solid var(--line);
}

.leaflet-popup-tip { background: #FFFFF0 !important; border: 1px solid var(--line); }
.popup-inner { padding: 13px 17px 15px; }
.popup-tag { display: inline-block; background: var(--gold-light); color: #fff !important; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; margin-bottom: 7px; }
.popup-inner h4 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--ink) !important; margin-bottom: 5px; line-height: 1.25; }
.popup-inner p { font-size: 0.82rem; line-height: 1.52; color: var(--ink-light) !important; margin: 0; }



/* ==========================================================================
   PIED DE PAGE ET ANIMATIONS (CHARTE CLAIRE)
   ========================================================================== */
footer {
    background: #FEFBE8; /* Même fond clair crème que le corps de texte */
    color: var(--ink-light); /* Le texte passe en marron foncé pour la lisibilité */
    text-align: center;
    padding: 36px 24px;
    font-size: 0.80rem;
    letter-spacing: 0.08em;
    margin-top: 48px;
    border-top: 1px solid var(--line); /* Ajout d’une fine ligne de séparation haute */
}

footer a { 
    color: var(--ink); /* Les liens principaux passent en noir encre */
    text-decoration: none; 
}

footer a:hover { 
    color: var(--gold-light); /* Couleur bordeaux au survol */
}

.footer-nav { 
    margin-top: 10px; 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
}



/*

footer {
    background: var(--dept-dark);
    color: var(--dept-pale);
    text-align: center;
    padding: 36px 24px;
    font-size: 0.80rem;
    letter-spacing: 0.08em;
    margin-top: 48px;
}

footer a { color: var(--dept-light); text-decoration: none; }
footer a:hover { color: var(--gold-light); }
.footer-nav { margin-top: 10px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    animation: fadeUp 0.55s ease forwards;
}

@media(max-width:600px) {
    nav.toc a { font-size: 0.66rem; padding: 10px 7px; }
    .section-num { font-size: 2.2rem; }
    .station-list { grid-template-columns: 1fr; }
}

*/