/* Saint-Denis Pleyel – site non officiel. Couleurs principales ci-dessous. */
:root {
  --fond: #f6f5f3;      /* papier (site officiel) */
  --fond-2: #ffffff;
  --texte: #222222;
  --texte-doux: #5c5b5b;
  --sombre: #0c208f;    /* bleu principal du site officiel */
  --sombre-2: #061568;  /* bleu foncé */
  --clair-sur-sombre: #ffffff;
  --bois: #ff82b4;      /* rose clair : accents sur fond bleu */
  --bois-fonce: #a50034;/* rose foncé : liens sur fond clair */
  --rose: #d7354d;      /* rose principal (boutons) */
  --ouvert: #038701;
  --prevu: #e3670f;
  --l14: #662483; --l15: #B90845; --l16: #F3A4BA; --l17: #D5C900;
  --rayon: 18px;
  --ombre: 0 20px 50px rgba(0,0,0,.18);
  --titre: "Space Grotesk", system-ui, sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html.contraste {
  --fond: #ffffff; --fond-2: #ffffff; --texte: #000; --texte-doux: #000;
  --sombre: #000; --sombre-2: #000; --clair-sur-sombre: #fff;
  --bois: #ffd400; --bois-fonce: #000; --ouvert: #006b2c; --prevu: #8a3b00;
}
html.contraste .section.sombre a, html.contraste .pied a { color: #ffd400; }
html.contraste a { text-decoration: underline; }
html.contraste .hero-voile { background: rgba(0,0,0,.72) !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--corps); color: var(--texte); background: var(--fond); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--bois-fonce); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bois); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.bandeau-officiel { background: #222; color: #fff; font-size: .82rem; text-align: center; padding: 6px 16px; }
.bandeau-officiel a { color: var(--bois); }

.progression { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progression span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--l14), var(--l15), var(--l16), var(--l17)); }

/* EN-TÊTE */
.entete { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: rgba(6,21,104,.94); backdrop-filter: blur(10px); color: var(--clair-sur-sombre); }
.logo { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 1.15rem; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: var(--bois); stroke-width: 3; }
#menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
#menu a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: .92rem; }
#menu a:hover, #menu a.actif { background: rgba(255,255,255,.12); color: var(--bois); }
#menu { margin-left: auto; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: inherit; border-radius: 999px; padding: 6px 14px; }
.reglages { display: flex; gap: 6px; }
.reglages button { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
.reglages button[aria-pressed="true"] { background: var(--bois); color: #000; }
.reglages svg { width: 16px; height: 16px; fill: currentColor; }
#btn-contraste svg circle { fill: none; stroke: currentColor; stroke-width: 2; }

/* HERO */
.hero { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; display: flex; align-items: center; }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,21,104,.88) 0%, rgba(12,32,143,.5) 55%, rgba(12,32,143,.12) 100%); }
.hero-texte { position: relative; z-index: 2; padding: 0 6vw; max-width: 980px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 6.6rem); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: .35em; }
.hero h1 .l1 { display: block; animation: monte .9s .1s both; }
.hero h1 .l2 { display: block; font-size: .42em; letter-spacing: .12em; color: var(--bois); animation: monte .9s .35s both; }
.hero .chapo { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 620px; animation: monte .9s .55s both; }
.surtitre { display: flex; gap: 8px; animation: monte .9s both; }
@keyframes monte { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: monte .9s .75s both; }
.hero-credit { position: absolute; z-index: 3; left: 24px; bottom: 10px; font-size: .72rem; opacity: .8; margin: 0; }
.hero-credit a { color: #fff; }
.defiler { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.8); border-radius: 16px; }
.defiler span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: souris 1.8s infinite; }
@keyframes souris { 0% { opacity: 1; transform: none; } 80% { opacity: 0; transform: translateY(16px); } 100% { opacity: 0; } }

/* BOUTONS ET PASTILLES */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid currentColor; color: inherit; background: transparent; text-decoration: none; font-weight: 600; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.plein { background: var(--rose); border-color: var(--rose); color: #fff; }
.pastille { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--titre); font-weight: 700; font-size: .95rem; }
.pastille.clair { color: #1a1a1a; }
.pastille.rer { background: #2E9C6A; border-radius: 8px; }
.pastille.petite { min-width: 26px; height: 26px; font-size: .75rem; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.badge.ouvert { background: color-mix(in srgb, var(--ouvert) 15%, transparent); color: var(--ouvert); border: 1px solid var(--ouvert); }
.badge.prevu { background: color-mix(in srgb, var(--prevu) 14%, transparent); color: var(--texte); border: 1px dashed var(--prevu); }
.sombre .badge.ouvert { color: #6fdc9b; border-color: #6fdc9b; }
.sombre .badge.prevu { color: #fff; border-color: #ff9a52; }

/* SECTIONS */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section.sombre { background: var(--sombre); color: var(--clair-sur-sombre); }
.section.sombre a:not(.btn) { color: var(--bois); }
.conteneur { width: min(1180px, 100% - 32px); margin: 0 auto; position: relative; z-index: 1; }
.deux-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.etiquette { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--bois-fonce); }
.sombre .etiquette { color: var(--bois); }
.intro { max-width: 720px; color: var(--texte-doux); }
.sombre .intro, .sombre .note { color: #d3d8f0; }
.note { font-size: .85rem; color: var(--texte-doux); }
.lien { font-weight: 600; }
.lien::after { content: " →"; }

.apparait { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.apparait.vu { opacity: 1; transform: none; }

.etat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.etat-carte { padding: 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.etat-carte.ouvert { background: color-mix(in srgb, var(--ouvert) 12%, var(--fond)); border-left: 5px solid var(--ouvert); }
.etat-carte.prevu { background: color-mix(in srgb, var(--prevu) 10%, var(--fond)); border-left: 5px dashed var(--prevu); }

.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chiffre { background: var(--fond-2); border-radius: var(--rayon); padding: 24px; position: relative; overflow: hidden; }
.chiffre::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--l14), var(--l15), var(--l16), var(--l17)); }
.sombre .chiffre { background: var(--sombre-2); }
.nb { font-family: var(--titre); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); display: block; line-height: 1.1; }
.chiffre .lib { font-size: .92rem; color: var(--texte-doux); }
.sombre .chiffre .lib { color: #d3d8f0; }
.chiffres.petits .nb { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--bois); }

/* LIGNES */
.onglets-lignes { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.onglet-ligne { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 2px solid rgba(255,255,255,.2); background: transparent; color: inherit; font-weight: 600; transition: background .3s, border-color .3s; }
.onglet-ligne[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 25%, transparent); }
.onglet-ligne small { font-weight: 400; opacity: .75; }
.panneau-ligne { background: var(--sombre-2); border-radius: 24px; padding: clamp(20px, 4vw, 40px); border-top: 8px solid var(--c, #fff); animation: fondu .5s; }
@keyframes fondu { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pl-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 10px; }
.pl-tete .pastille { min-width: 56px; height: 56px; font-size: 1.5rem; }
.pl-tete h3 { margin: 0; font-size: 1.7rem; }
.pl-parcours { font-size: 1.1rem; color: var(--bois); font-weight: 600; }
.pl-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 18px; }
.pl-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.pl-chiffres div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px; font-size: .85rem; color: #d3d8f0; }
.pl-chiffres strong { display: block; font-family: var(--titre); font-size: 1.4rem; color: #fff; }
.pl-etapes { list-style: none; padding: 0; margin: 0; }
.pl-etapes li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.pl-etapes b { font-family: var(--titre); color: var(--bois); min-width: 48px; }
.plan-wrap, .cg-piste { scrollbar-color: #6b6158 transparent; }
.cg-carte small { display: block; }
.plan-wrap { overflow-x: auto; margin: 26px -8px 0; padding: 0 8px 6px; }
.plan { min-width: 100%; display: block; }
.plan .trace { fill: none; stroke: var(--c); stroke-width: 10; stroke-linecap: round; }
.plan .trace.dessine { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: dessine 2.2s ease forwards; }
.plan .trace.pointille { stroke-dasharray: 2 16; stroke-width: 6; opacity: .6; animation: none; }
@keyframes dessine { to { stroke-dashoffset: 0; } }
.plan .gare { cursor: pointer; }
.plan .gare circle { fill: #fff; stroke: var(--c); stroke-width: 4; transition: r .2s; }
.plan .gare.pleyel circle { fill: var(--bois); stroke: #fff; }
.plan .gare:hover circle, .plan .gare:focus circle { r: 12; }
.plan .gare:focus { outline: none; }
.plan .gare:focus-visible text { fill: var(--bois); text-decoration: underline; }
.plan .gare text { fill: #eee; font-size: 13px; font-family: var(--corps); }
.plan .gare.pleyel text { font-weight: 700; fill: var(--bois); }
.plan .train { fill: var(--c); stroke: #fff; stroke-width: 2; }
.plan .tronc text { fill: #aab3e0; font-style: italic; font-size: 12px; }
.carrousel-gares { margin-top: 26px; }
.cg-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cg-tete h4 { margin: 0; font-family: var(--titre); font-size: 1.1rem; }
.cg-tete button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; }
.cg-piste { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 14px 2px; scrollbar-width: thin; }
.cg-carte { flex: 0 0 220px; scroll-snap-align: start; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-top: 4px solid var(--c); border-radius: 14px; padding: 14px; color: inherit; }
.cg-carte:hover { background: rgba(255,255,255,.1); }
.cg-carte strong { display: block; margin-bottom: 6px; }
.cg-carte .corrs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mini { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #444; color: #fff; }

/* FICHE GARE */
.fiche { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.fiche[hidden] { display: none; }
.fiche-boite { position: relative; background: var(--fond); color: var(--texte); border-radius: 22px; max-width: 520px; width: 100%; padding: 30px; border-top: 10px solid var(--c); box-shadow: var(--ombre); animation: fondu .3s; max-height: 90vh; overflow: auto; }
.fiche-fermer { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fond-2); }
.fiche-boite h3 { padding-right: 40px; }
.fiche-boite dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0; }
.fiche-boite dt { font-weight: 600; color: var(--texte-doux); }
.fiche-boite dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }

/* CORRESPONDANCES */
.liste-corr { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.liste-corr li { display: flex; align-items: center; gap: 12px; background: var(--fond-2); border-radius: 12px; padding: 10px 14px; }
.hub svg { width: 100%; max-width: 440px; margin: auto; display: block; }
.hub-cercle { fill: none; stroke: var(--bois); stroke-width: 2; stroke-dasharray: 6 10; animation: tourne 40s linear infinite; transform-origin: 200px 200px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.hub-rayons line { stroke: var(--c); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.hub.vu .hub-rayons line { animation: dessine 1.2s ease forwards; }
.hub.vu .hub-rayons line:nth-child(2) { animation-delay: .2s; } .hub.vu .hub-rayons line:nth-child(3) { animation-delay: .4s; }
.hub.vu .hub-rayons line:nth-child(4) { animation-delay: .6s; } .hub.vu .hub-rayons line:nth-child(5) { animation-delay: .8s; }
.hub-noeuds text, .hub-nom { fill: #fff; font-family: var(--titre); font-weight: 700; font-size: 22px; text-anchor: middle; }
.hub-noeuds text.fonce { fill: #1a1a1a; }
.hub-centre { fill: var(--sombre); stroke: var(--bois); stroke-width: 4; }
.hub-nom { font-size: 14px; }

/* CARTE */
.carte { height: min(520px, 70vh); border-radius: 22px; overflow: hidden; margin-top: 24px; background: #2a2622; }
.carte-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.leaflet-popup-content { font-family: var(--corps); font-size: .9rem; color: #1d1915; }
.marqueur { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.marqueur.principal { width: 34px; height: 34px; background: var(--bois); border-color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215,53,77,.7); } 70% { box-shadow: 0 0 0 18px rgba(215,53,77,0); } 100% { box-shadow: 0 0 0 0 rgba(215,53,77,0); } }

/* ARCHITECTURE */
.archi { overflow: hidden; color: #fff; }
.parallaxe { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.archi::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,21,104,.9), rgba(12,32,143,.35)); z-index: 1; }
.carte-texte { background: rgba(6,21,104,.78); backdrop-filter: blur(6px); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.carte-texte .etiquette { color: var(--bois); }
.carte-texte a { color: var(--bois); }
.mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vignette { padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; background: #000; }
.vignette.large { grid-column: span 2; aspect-ratio: 16/9; }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vignette:hover img { transform: scale(1.06); }

/* ART */
.oeuvres { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.oeuvre { background: var(--fond-2); border-radius: 24px; padding: 28px; }
.oeuvre .badge { margin: 16px 0 8px; }
.venus { display: grid; grid-template-columns: repeat(27, 1fr); gap: 3px; min-height: 160px; align-content: center; }
.venus i { display: block; aspect-ratio: 1/2; border-radius: 50% 50% 40% 40% / 30% 30% 70% 70%; background: var(--t); opacity: 0; transform: translateY(10px); animation: silhouette .6s forwards; animation-delay: var(--d); }
@keyframes silhouette { to { opacity: 1; transform: none; } }
.generations { height: 160px; border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); }
.generations span { position: relative; }
.generations span:nth-child(1) { background: #f2b134; } .generations span:nth-child(2) { background: #3b7dd8; }
.generations span:nth-child(3) { background: #e2574c; } .generations span:nth-child(4) { background: #3aa66b; }
.generations span::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: var(--h, 60%); background: rgba(0,0,0,.18); animation: barre 3s ease-in-out infinite alternate; }
.generations span:nth-child(2)::after { --h: 80%; animation-delay: .4s; } .generations span:nth-child(3)::after { --h: 45%; animation-delay: .8s; } .generations span:nth-child(4)::after { --h: 70%; animation-delay: 1.2s; }
@keyframes barre { from { transform: scaleY(.6); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

/* CULTURE */
.culture { background: linear-gradient(135deg, var(--fond-2), var(--fond)); }
.etages { display: flex; flex-direction: column; gap: 8px; perspective: 800px; }
.etage { background: var(--sombre); color: #fff; border-radius: 12px; padding: 18px 22px; transform: rotateX(18deg); border-left: 6px solid var(--bois); transition: transform .4s; }
.etage:hover { transform: rotateX(0) translateX(8px); }
.etages.vu .etage { animation: empile .7s both; }
.etages.vu .etage:nth-child(2) { animation-delay: .15s; } .etages.vu .etage:nth-child(3) { animation-delay: .3s; } .etages.vu .etage:nth-child(4) { animation-delay: .45s; }
@keyframes empile { from { opacity: 0; transform: translateY(-40px) rotateX(18deg); } }
.etages-legende { margin-top: 10px; font-size: 1.05rem; }
.etages-legende .nb { display: inline; font-size: 1.6rem; color: var(--bois-fonce); }

/* AVANT / APRÈS */
.avant-apres-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.avant-apres { position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; user-select: none; }
.avant-apres > img, .aa-avant img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aa-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.avant-apres::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.5); }
.avant-apres input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.avant-apres::before { content: "⇆"; position: absolute; z-index: 2; top: 50%; left: var(--pos); transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 1.3rem; pointer-events: none; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.avant-apres:focus-within::before { outline: 3px solid var(--bois); }
.aa-tag { position: absolute; z-index: 2; bottom: 12px; background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.aa-tag.g { left: 12px; } .aa-tag.d { right: 12px; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: #d3d8f0; margin-top: 8px; }
#quartier h3 { margin-top: 56px; }

/* FRISE */
.frise { position: relative; display: flex; justify-content: space-between; margin: 40px 0 24px; padding: 0 10px; }
.frise::before { content: ""; position: absolute; left: 20px; right: 20px; top: 27px; height: 4px; background: linear-gradient(90deg, var(--ouvert) 0 var(--fait, 60%), var(--prevu) var(--fait, 60%)); border-radius: 2px; }
.frise::after { content: ""; position: absolute; left: 20px; top: 27px; height: 4px; width: var(--avance, 0%); background: var(--bois); transition: width .6s ease; border-radius: 2px; }
.frise button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: var(--texte); font-family: var(--titre); font-weight: 700; font-size: 1.05rem; }
.frise button i { width: 26px; height: 26px; border-radius: 50%; background: var(--fond); border: 4px solid var(--ouvert); transition: transform .3s, background .3s; margin-top: 16px; }
.frise button.prevu i { border-style: dashed; border-color: var(--prevu); }
.frise button[aria-selected="true"] i { background: var(--bois); transform: scale(1.35); }
.frise button small { font-family: var(--corps); font-weight: 500; font-size: .72rem; color: var(--texte-doux); }
.frise-panneau { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; background: var(--fond-2); border-radius: 24px; padding: clamp(20px, 4vw, 36px); align-items: center; min-height: 320px; animation: fondu .4s; }
.frise-panneau .visuel { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--sombre); position: relative; }
.frise-panneau .visuel img { width: 100%; height: 100%; object-fit: cover; }
.frise-panneau .annee { font-family: var(--titre); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; line-height: 1; color: var(--bois-fonce); }
.frise-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.anim { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.anim svg { width: 80%; height: 80%; }
.anim .rail { stroke-width: 10; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: dessine 2.5s ease forwards; }
.anim .rail:nth-of-type(2) { animation-delay: .5s; }
.anim .bloc { fill: var(--bois); animation: pousse 1.6s ease-in-out infinite alternate; transform-origin: bottom; transform-box: fill-box; }
.anim .bloc:nth-of-type(2) { animation-delay: .3s; } .anim .bloc:nth-of-type(3) { animation-delay: .6s; } .anim .bloc:nth-of-type(4) { animation-delay: .9s; }
@keyframes pousse { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.anim text { fill: #fff; font-family: var(--titre); font-size: 18px; text-anchor: middle; }

/* GALERIE */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.filtres button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: inherit; padding: 8px 16px; border-radius: 999px; }
.filtres button[aria-selected="true"] { background: var(--bois); color: #222; border-color: var(--bois); }
.bande { overflow-x: auto; scroll-behavior: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.bande::-webkit-scrollbar { display: none; }
.bande-piste { display: flex; gap: 14px; width: max-content; padding: 6px 0; }
.bande-piste figure { width: clamp(240px, 32vw, 400px); }
.bande-piste button { display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; width: 100%; aspect-ratio: 4/3; background: #000; }
.bande-piste img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bande-piste button:hover img { transform: scale(1.05); }
.bande-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* VISIONNEUSE */
.visionneuse { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.95); color: #fff; display: grid; grid-template-columns: 60px 1fr 60px; grid-template-rows: auto 1fr auto; }
.visionneuse[hidden] { display: none; }
.v-barre { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.v-compteur { margin-right: auto; font-size: .9rem; }
.visionneuse button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.2rem; }
.v-prec, .v-suiv { align-self: center; justify-self: center; font-size: 1.8rem !important; width: 50px !important; height: 50px !important; }
.v-cadre { overflow: hidden; display: grid; place-items: center; min-height: 0; }
.v-cadre img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; cursor: zoom-in; }
.v-cadre.zoom img { transform: scale(2.2); cursor: zoom-out; }
.v-legende { grid-column: 1 / -1; text-align: center; padding: 10px 16px 18px; margin: 0; font-size: .9rem; }
.v-legende small { display: block; color: #bbb; }
.v-legende a { color: var(--bois); }

/* PIED */
.pied { background: #000; color: #d8d0c4; padding: 48px 0; font-size: .9rem; }
.pied a { color: var(--bois); }
.avertissement { border-left: 4px solid var(--bois); padding-left: 16px; max-width: 820px; }
.liens-pied { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.haut { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--bois); color: #222; font-size: 1.4rem; box-shadow: var(--ombre); opacity: 0; pointer-events: none; transform: translateY(20px); transition: .3s; }
.haut.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ANIMATIONS COUPÉES */
html.sans-anim *, html.sans-anim *::before, html.sans-anim *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
html.sans-anim .apparait { opacity: 1; transform: none; }
html.sans-anim .parallaxe { transform: none !important; }

/* TABLETTE */
@media (max-width: 1080px) {
  #menu a { padding: 8px 7px; font-size: .85rem; }
  .reglages .txt { display: none; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  #menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--sombre); display: none; padding: 10px 16px 18px; }
  #menu.ouvert { display: block; }
  #menu ul { flex-direction: column; }
  #menu a { display: block; padding: 12px; font-size: 1rem; }
  .deux-col, .pl-grille, .oeuvres, .frise-panneau, .avant-apres-grille { grid-template-columns: 1fr; }
  .defiler { bottom: 20px; }
}
/* MOBILE */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .entete { padding: 8px 16px; gap: 8px; }
  .logo span { display: none; }
  .reglages button { padding: 6px 9px; }
  .hero { min-height: 600px; align-items: flex-end; padding-bottom: 150px; }
  .hero-texte { padding: 0 16px; }
  .btn { padding: 10px 16px; font-size: .95rem; }
  .etat, .chiffres { grid-template-columns: 1fr; }
  .chiffres.petits { grid-template-columns: 1fr 1fr; }
  .frise button { font-size: .85rem; }
  .frise button small { display: none; }
  .frise-nav .btn { flex: 1; justify-content: center; }
  .visionneuse { grid-template-columns: 1fr; }
  .v-prec, .v-suiv { position: absolute; top: 50%; z-index: 2; }
  .v-prec { left: 6px; } .v-suiv { right: 6px; }
  .venus { grid-template-columns: repeat(18, 1fr); }
}
@media print {
  .entete, .haut, .defiler, .progression { display: none; }
  .apparait { opacity: 1; transform: none; }
}

/* SECTIONS BLEU CLAIR (demande : fond beaucoup plus clair). Le mode « contraste élevé » garde le noir. */
html:not(.contraste) .section.sombre { background: #e7ecfa; color: #222; }
html:not(.contraste) .section.sombre h2, html:not(.contraste) .section.sombre h3, html:not(.contraste) .section.sombre h4 { color: #0c208f; }
html:not(.contraste) .section.sombre a:not(.btn) { color: #a50034; }
html:not(.contraste) .sombre .etiquette { color: #d7354d; }
html:not(.contraste) .sombre .intro, html:not(.contraste) .sombre .note, html:not(.contraste) .sombre figcaption, html:not(.contraste) .sombre .chiffre .lib { color: #3d4a7a; }
html:not(.contraste) .sombre .chiffre { background: #fff; }
html:not(.contraste) .sombre .chiffres.petits .nb { color: #0c208f; }
html:not(.contraste) .sombre .badge.ouvert { color: #038701; border-color: #038701; }
html:not(.contraste) .sombre .badge.prevu { color: #222; border-color: #e3670f; }
html:not(.contraste) .onglet-ligne { border-color: rgba(12,32,143,.25); background: #fff; }
html:not(.contraste) .onglet-ligne[aria-selected="true"] { background: color-mix(in srgb, var(--c) 22%, #fff); }
html:not(.contraste) .panneau-ligne { background: #fff; box-shadow: 0 12px 40px rgba(12,32,143,.12); }
html:not(.contraste) .pl-parcours { color: #a50034; }
html:not(.contraste) .pl-chiffres div { background: #f0f3fc; color: #3d4a7a; }
html:not(.contraste) .pl-chiffres strong { color: #0c208f; }
html:not(.contraste) .pl-etapes li { border-color: rgba(12,32,143,.12); }
html:not(.contraste) .pl-etapes b { color: #d7354d; }
html:not(.contraste) .plan .gare text { fill: #222; }
html:not(.contraste) .plan .gare.pleyel text { fill: #a50034; }
html:not(.contraste) .plan .gare.pleyel circle { fill: #d7354d; }
html:not(.contraste) .plan .tronc text { fill: #5c6699; }
html:not(.contraste) .cg-tete button { border-color: rgba(12,32,143,.3); color: #0c208f; }
html:not(.contraste) .cg-carte { background: #f6f5f3; border-color: rgba(12,32,143,.12); border-top-color: var(--c); }
html:not(.contraste) .cg-carte:hover { background: #eef1fb; }
html:not(.contraste) .filtres button { border-color: rgba(12,32,143,.3); }
html:not(.contraste) .filtres button[aria-selected="true"] { background: #d7354d; border-color: #d7354d; color: #fff; }
html:not(.contraste) .haut { background: #d7354d; color: #fff; }
html:not(.contraste) .hero-voile { background: linear-gradient(100deg, rgba(12,32,143,.78) 0%, rgba(12,32,143,.38) 55%, rgba(12,32,143,.05) 100%); }

/* ===== corrections de l'audit du 16/11 ===== */
/* zones tactiles : 44 px au minimum sur téléphone */
@media (max-width: 900px) {
  .burger, .reglages button { min-height: 44px; }
  .cg-tete button { width: 44px; height: 44px; }
}

/* INTRO FILM : la page déroule un film de la gare, du franchissement jusqu'au quai (comme le site DJ ADEX) */
.scene { height: 460vh; position: relative; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--sombre-2); }
.hero .rd { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 4; background: var(--sombre-2); animation: rideau 1.2s cubic-bezier(.7,0,.2,1) 1.9s forwards; }
.rd.g { left: 0; --s: -101%; } .rd.d { right: 0; --s: 101%; }
@keyframes rideau { to { transform: translateX(var(--s)); } }
.hero-texte { z-index: 5; transition: none; }
.hero h1 .l1 { animation: none; }
.hero h1 .l1 i { display: inline-block; font-style: normal; opacity: 0; animation: lettre .5s cubic-bezier(.2,.7,.2,1) calc(.25s + var(--i) * .07s) forwards, creuse 1s 2.4s forwards; }
@keyframes lettre { from { opacity: 0; transform: translateY(.25em) scale(1.15); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes creuse { to { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.95); } }
.hero h1 .l2, .hero .chapo, .hero-boutons, .surtitre { animation-delay: 2.3s; }
.hero h1 .l1 .mot { display: inline-block; white-space: nowrap; }
.etapes-film { position: absolute; z-index: 5; left: max(24px, env(safe-area-inset-left, 0px)); bottom: 70px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.etapes-film li { font: 600 .82rem var(--titre); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .4s, color .4s; }
.etapes-film li.vu { opacity: 1; transform: none; }
.etapes-film li.actif { color: #fff; }
.etapes-film li.actif::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--rose); }
.fin-film { position: absolute; z-index: 5; left: 0; right: 0; top: 42%; text-align: center; margin: 0; padding-inline: 16px; font: 700 clamp(1.8rem, 5vw, 3.6rem)/1.1 var(--titre); color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); opacity: 0; pointer-events: none; }
.hero-credit { z-index: 5; }
.defiler { z-index: 5; }
html.sans-anim .scene { height: auto; }
html.sans-anim .hero { position: relative; }
html.sans-anim .hero .rd, html.sans-anim .etapes-film, html.sans-anim .fin-film { display: none; }
html.sans-anim .hero h1 .l1 i { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero .rd { display: none; } .hero h1 .l1 i { opacity: 1; animation: none; } }
@media (max-width: 560px) { .etapes-film { bottom: 120px; } .etapes-film li { font-size: .7rem; } }
