/* ── base.css ── */
/* Hôtel de la Gare : la feuille commune.
   Couleurs mesurées sur la maison (ENQUETE.md) : rouge sang de bœuf et crème du logo HG, cuivre de la tireuse,
   brun brûlé des murs. Un site de nuit, de bout en bout : aucun fond clair (la crème ne sert qu'aux lettres et aux billets).
   Caractères : Besley (égyptienne façon Clarendon, l'affiche de gare du XIXe) ; Instrument Sans (texte, et les palettes
   du tableau en largeur étroite). */

@font-face { font-family: 'Besley'; src: url('/assets/polices/besley.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Besley'; src: url('/assets/polices/besley-italique.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/polices/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

:root {
  /* la nuit de la maison */
  --nuit: #120b09;         /* fond dominant : bois brûlé presque noir */
  --braise: #1b110d;       /* surfaces */
  --charbon: #26170f;      /* surfaces relevées */
  --suie: #34211a;         /* filets, bordures pleines */
  /* la maison */
  --hg: #7a1d15;           /* rouge du logo (mesuré #7c1c14) */
  --hg-vif: #96281d;       /* survol du rouge */
  --creme: #fbeedc;        /* crème du logo : texte */
  --creme-doux: #d9cbb8;   /* texte secondaire : 11,6:1 sur --nuit */
  --creme-pale: #a99987;   /* légendes : 6,6:1 sur --nuit */
  --cuivre: #cc843c;       /* tireuse : prix, accents, 6,4:1 sur --nuit */
  --cuivre-clair: #e3a463; /* survol du cuivre */
  --signal: #8fd18c;       /* le feu « ouvert » : seulement le petit voyant */
  /* le tableau des départs */
  --palette-fond: #0a0706;
  --palette-face: #1d1612;
  --palette-face-2: #171210;
  --palette-lettre: #f4e7d2;
  --filet: rgba(251, 238, 220, .12);
  --filet-fort: rgba(251, 238, 220, .22);

  --f-titre: 'Besley', 'Rockwell', 'Georgia', serif;
  --f-texte: 'Instrument Sans', 'Helvetica Neue', 'Arial', sans-serif;

  --ease-sortie: cubic-bezier(.23, 1, .32, 1);
  --ease-rail: cubic-bezier(.77, 0, .175, 1);
  --ease-ressort: cubic-bezier(.34, 1.36, .64, 1);

  --gouttiere: clamp(16px, 4.2vw, 56px);
  --barre-h: 64px;
  --onglet-h: 0px;
  --rayon: 4px;
  --rayon-fenetre: 22px;
}
@media (max-width: 959.98px) { :root { --barre-h: 58px; --onglet-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
/* le focus au clavier ne passe ni sous la barre ni sous l'onglet fixe du bas (WCAG 2.4.11 ; mesuré d'abord sur /reservation/) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--barre-h) + 16px); scroll-padding-bottom: calc(var(--onglet-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--nuit); color: var(--creme);
  font-family: var(--f-texte); font-size: clamp(16px, .95rem + .2vw, 18px); line-height: 1.6;
  font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--onglet-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}
/* le grain : papier de billet, très léger, posé une fois sur toute la page */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .86 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .barre, .pied, .b4g, .onglet { position: relative; z-index: 1; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> (AVIF, puis WebP) ne fait pas de boîte : les mises en page des pages ne voient que l'<img> */
picture { display: contents; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--cuivre-clair); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 800; line-height: 1.02; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
::selection { background: var(--hg); color: var(--creme); }
:focus-visible { outline: 2px solid var(--cuivre-clair); outline-offset: 3px; border-radius: 2px; }
.cache-lecteur { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--creme); color: var(--nuit); padding: 10px 14px; border-radius: var(--rayon); font-weight: 600; }
.evitement:focus { top: 12px; }
#contenu:focus { outline: none; }
.enveloppe { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gouttiere); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ── Textes ─────────────────────────────────────────────────────────────────────────────── */
.surtitre {
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1.1rem;
  font-family: var(--f-texte); font-size: .8rem; font-weight: 600; font-stretch: 85%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cuivre);
}
.surtitre::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.titre-section { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 5rem); }
.titre-section em { font-style: italic; font-weight: 500; color: var(--cuivre); }
.chapeau { font-size: clamp(1.06rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--creme-doux); max-width: 36em; text-wrap: pretty; }
.petit { font-size: .88rem; color: var(--creme-pale); }

/* ── Boutons ────────────────────────────────────────────────────────────────────────────── */
.btn {
  --btn-fond: transparent; --btn-texte: var(--creme); --btn-bord: var(--filet-fort);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.4em; border-radius: var(--rayon); border: 1px solid var(--btn-bord);
  background: var(--btn-fond); color: var(--btn-texte); text-decoration: none; cursor: pointer;
  font-family: var(--f-texte); font-size: 1rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s var(--ease-sortie), border-color .25s var(--ease-sortie), transform .16s var(--ease-sortie), color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-fond: rgba(251, 238, 220, .07); --btn-bord: var(--creme-pale); color: var(--btn-texte); }
.btn:active { transform: scale(.97); }
.btn-commander { --btn-fond: var(--hg); --btn-bord: #a8392d; padding-left: 1.15em; padding-right: 1.25em; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 30px -12px rgba(122, 29, 21, .9); }
.btn-commander:hover { --btn-fond: var(--hg-vif); --btn-bord: #c0493b; }
.cmd-texte { display: inline-flex; align-items: center; gap: .45em; }
.b4g-logo { width: auto; height: 1.55em; overflow: visible; margin: -.2em 0 -.15em; }
.btn-petit { min-height: 44px; padding: 0 .95em; font-size: .9rem; }
.btn-petit .b4g-logo { height: 1.4em; }
.btn-plein { --btn-fond: var(--creme); --btn-texte: var(--nuit); --btn-bord: var(--creme); }
.btn-plein:hover { --btn-fond: #fff6ea; --btn-texte: var(--nuit); --btn-bord: #fff6ea; }
.lien-fleche { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--creme); }
.lien-fleche .ico { transition: transform .3s var(--ease-sortie); color: var(--cuivre); }
.lien-fleche:hover .ico { transform: translateX(4px); }
.lien-fleche span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease-sortie); }
.lien-fleche:hover span { background-size: 0 1px; background-position: 100% 100%; }
.lien-tel { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.lien-tel .ico { color: var(--cuivre); }

/* ── La barre du haut (le « quai ») ─────────────────────────────────────────────────────── */
.barre {
  position: sticky; top: 0; z-index: 50; height: var(--barre-h);
  border-bottom: 1px solid var(--filet);
  transition: border-color .4s;
}
/* le verre dépoli est un calque sous la barre, pas la barre elle-même : un backdrop-filter sur .barre en faisait le bloc
   conteneur de ses enfants fixes, et le panneau Menu du téléphone s'y trouvait coupé à la hauteur de la barre (on n'y
   voyait que « Accueil » sur la page ; vu et corrigé le 23.10) */
.barre::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(18, 11, 9, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: opacity .4s var(--ease-sortie);
}
.barre[data-transparente] { border-bottom-color: transparent; }
.barre[data-transparente]::before { opacity: 0; }
.barre-dedans { height: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gouttiere); display: flex; align-items: center; gap: 24px; }
.barre-maison { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--creme); min-height: 44px; }
.barre-logo { width: 42px; height: 42px; object-fit: contain; }
.barre-nom { display: flex; flex-direction: column; font-family: var(--f-titre); font-weight: 800; font-size: 1.04rem; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.barre-ville { font-family: var(--f-texte); font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--creme-pale); margin-top: 3px; }
.barre-liens { display: flex; gap: 4px; margin-left: 12px; }
.barre-liens a { position: relative; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; color: var(--creme-doux); border-radius: var(--rayon); transition: color .2s; }
.barre-liens a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: var(--cuivre); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-sortie); }
.barre-liens a:hover { color: var(--creme); }
.barre-liens a:hover::after, .barre-liens a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.barre-liens a[aria-current='page'] { color: var(--creme); }
.barre-quai { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.barre-tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--creme); min-height: 44px; }
.barre-tel .ico { color: var(--cuivre); }
.barre-menu { display: none; }
/* trois traits et croix superposés : à l'ouverture, les traits tournent et s'effacent, la croix prend leur place */
.menu-ico { display: grid; width: 1.25em; height: 1.25em; flex: none; }
.menu-ico .ico { grid-area: 1 / 1; transition: opacity .22s, transform .45s var(--ease-sortie); }
.menu-ico .ico + .ico { opacity: 0; transform: rotate(-90deg) scale(.5); }
.barre-menu[aria-expanded='true'] .menu-ico .ico:first-child { opacity: 0; transform: rotate(90deg) scale(.5); }
.barre-menu[aria-expanded='true'] .menu-ico .ico + .ico { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .menu-ico .ico { transition: none; } }
.panneau { display: none; }

.horloge { width: 30px; height: 30px; flex: none; }
.horloge svg { width: 100%; height: 100%; overflow: visible; }
.h-cadran { fill: var(--creme); }
.h-index { fill: var(--nuit); }
.h-heures rect, .h-minutes rect { fill: var(--nuit); }
.h-heures, .h-minutes, .h-secondes { transform-origin: 20px 20px; transform-box: view-box; }
.h-secondes rect { fill: var(--hg); }
.h-secondes circle { stroke: var(--hg); }
.h-axe { fill: var(--hg); }

.etat { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .86rem; font-weight: 500; color: var(--creme-doux); white-space: nowrap; }
.etat-feu { width: 8px; height: 8px; border-radius: 50%; background: var(--creme-pale); box-shadow: 0 0 0 3px rgba(251, 238, 220, .08); }
.etat[data-ouvert='oui'] .etat-feu { background: var(--signal); box-shadow: 0 0 0 3px rgba(143, 209, 140, .16), 0 0 12px rgba(143, 209, 140, .55); }
@media (prefers-reduced-motion: no-preference) {
  .etat[data-ouvert='oui'] .etat-feu { animation: feu 2.4s ease-in-out infinite; }
}
@keyframes feu { 50% { box-shadow: 0 0 0 5px rgba(143, 209, 140, .06), 0 0 18px rgba(143, 209, 140, .35); } }

/* entre le téléphone et le grand écran, la barre se resserre sans jamais casser un mot : sous 1280 px le numéro se
   réduit à son icône ; sous 1180 px les espaces se serrent ; sous 1140 px l'état ne garde que son mot (Ouvert, Fermé :
   la suite, « jusqu'à minuit », passe aux lecteurs d'écran seulement : l'état ne tient jamais à la couleur du voyant
   seule, WCAG 1.4.1). Mesuré le 23.10 : rien ne déborde ni ne passe à la ligne de 960 à 1440 px. */
@media (max-width: 1279.98px) { .barre-tel span { display: none; } .barre-tel { width: 44px; justify-content: center; } }
@media (min-width: 960px) and (max-width: 1179.98px) {
  .barre-dedans { gap: 18px; }
  .barre-liens { margin-left: 0; gap: 0; }
  .barre-quai { gap: 12px; }
}
@media (min-width: 960px) and (max-width: 1139.98px) {
  .barre-quai { gap: 8px; }
  .barre-liens a { padding-inline: 10px; }
  .barre-liens a::after { left: 10px; right: 10px; }
  .barre .etat-suite { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 959.98px) {
  .barre-liens, .barre-tel, .barre-commander, .etat { display: none; }
  .barre-dedans { gap: 12px; }
  .barre-logo { width: 36px; height: 36px; }
  .barre-quai { gap: 10px; }
  .barre-menu {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--rayon);
    border: 1px solid var(--filet-fort); background: transparent; font-weight: 600; font-size: .92rem; cursor: pointer;
  }
  html:not(.js) .barre-menu { display: none; }
  /* sans JavaScript il n'y a pas de panneau : les pages passent en rangée défilante sous le logo (et le pied les redonne) */
  html:not(.js) .barre { height: auto; position: relative; }
  html:not(.js) .barre-dedans { flex-wrap: wrap; height: auto; row-gap: 0; }
  html:not(.js) .barre-maison, html:not(.js) .barre-quai { min-height: calc(var(--barre-h) - 1px); }
  html:not(.js) .barre-liens { display: flex; order: 3; flex: 1 0 100%; margin: 0 calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere) 6px; gap: 0; overflow-x: auto; border-top: 1px solid var(--filet); }
  html:not(.js) .barre-liens a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; }
  html:not(.js) .barre-liens a::after { left: 14px; right: 14px; bottom: 6px; }
  .panneau:not([hidden]) {
    display: block; position: fixed; inset: var(--barre-h) 0 0; z-index: 49; padding: 28px var(--gouttiere) calc(var(--onglet-h) + 28px);
    background: var(--nuit); overflow-y: auto; overscroll-behavior: contain;
  }
  .panneau nav { display: flex; flex-direction: column; }
  .panneau nav a {
    font-family: var(--f-titre); font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; padding: 12px 0;
    text-decoration: none; border-bottom: 1px solid var(--filet);
  }
  .panneau nav a[aria-current='page'] { color: var(--cuivre); }
  .panneau-pied { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; color: var(--creme-doux); }
  .panneau-tel { font-size: 1.3rem; min-height: 44px; align-self: flex-start; }
}
/* petits téléphones : sous 375 px l'horloge de la barre passait sous « Hôtel de la Gare » (6 px à 360, 24 px à 320) ;
   elle s'efface (l'entrée de l'accueil, sans cible, fond alors son horloge sur place) ; sous 360 px le nom se resserre */
@media (max-width: 374.98px) { .barre .horloge { display: none; } }
@media (max-width: 359.98px) { .barre-nom { font-size: .98rem; } .barre-menu { padding-inline: 12px; } }
@media (prefers-reduced-motion: no-preference) {
  .panneau:not([hidden]) nav a { animation: monte .5s var(--ease-sortie) both; }
  .panneau:not([hidden]) nav a:nth-child(2) { animation-delay: .05s; }
  .panneau:not([hidden]) nav a:nth-child(3) { animation-delay: .1s; }
  .panneau:not([hidden]) nav a:nth-child(4) { animation-delay: .15s; }
}
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }

/* ── L'onglet du téléphone ───────────────────────────────────────────────────────────────── */
.onglet { display: none; }
@media (max-width: 959.98px) {
  .onglet {
    display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    height: calc(var(--onglet-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(14, 9, 7, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--filet);
  }
  .onglet a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px;
    text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--creme-doux);
  }
  .onglet a .ico { width: 22px; height: 22px; color: var(--creme); }
  .onglet-commander { background: var(--hg); color: var(--creme) !important; gap: 1px !important; }
  /* règle de toutes les devantures : « Commander sur » + le logo Best4GoEat dès l'arrivée, aussi au téléphone */
  .onglet-mot { font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
  .onglet-sur { display: inline-flex; align-items: center; gap: .35em; font-size: .7rem; font-weight: 600; }
  .onglet-sur .b4g-logo { height: 22px; margin: -2px 0 -3px; }
  .onglet a:active { background: rgba(251, 238, 220, .06); }
  .onglet-commander:active { background: var(--hg-vif) !important; }
}

/* ── Le bloc Best4GoEat ──────────────────────────────────────────────────────────────────── */
.b4g { border-top: 1px solid var(--filet); background: linear-gradient(180deg, var(--braise), var(--nuit)); }
.b4g-dedans { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 56px; }
.b4g-logo-grand .b4g-logo { height: 64px; margin: 0; }
.b4g-texte h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.b4g-texte p { margin: .5em 0 0; color: var(--creme-doux); }
@media (max-width: 759.98px) { .b4g-dedans { grid-template-columns: 1fr; gap: 20px; padding-block: 44px; } .b4g-bouton { justify-self: start; } }

/* ── Le pied ─────────────────────────────────────────────────────────────────────────────── */
.pied { background: var(--palette-fond); border-top: 1px solid var(--filet); padding-top: 64px; font-size: .95rem; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.pied-logo { width: 92px; height: auto; }
.pied-accroche { margin-top: 18px; font-family: var(--f-titre); font-size: 1.25rem; font-weight: 600; line-height: 1.3; max-width: 16em; }
.pied-titre { font-family: var(--f-texte); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cuivre); margin-bottom: 14px; }
.pied p { margin: 0 0 .5em; color: var(--creme-doux); }
.pied a { color: var(--creme); }
.pied-tel { font-size: 1.15rem; min-height: 44px; }
/* les liens du pied font 44 px de haut au doigt sans changer le rythme des lignes : la marge négative rend au texte
   la place que le rembourrage prend (la cible s'agrandit, la ligne non) */
.pied-grille p:not(.pied-reseaux) > a:not(.lien-tel), .pied-legal a, .colophon span a {
  display: inline-block; padding-block: 13px; margin-block: -13px; overflow-wrap: break-word;
}
.sans-coupure { white-space: nowrap; }
.pied-reseaux { display: flex; gap: 6px; margin-top: 10px !important; }
.pied-reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--filet-fort); border-radius: 50%; transition: border-color .2s, color .2s; }
.pied-reseaux a:hover { border-color: var(--cuivre); }
.semaine { border-collapse: collapse; width: 100%; max-width: 300px; font-variant-numeric: tabular-nums; }
.semaine th, .semaine td { text-align: left; padding: 4px 0; font-weight: 400; color: var(--creme-doux); border-bottom: 1px dashed var(--filet); }
.semaine th { text-transform: capitalize; padding-right: 12px; }
.semaine td { text-align: right; }
.semaine tr.aujourdhui th, .semaine tr.aujourdhui td { color: var(--creme); font-weight: 600; }
.semaine tr.aujourdhui th::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--cuivre); vertical-align: middle; }
.pied-note { font-size: .84rem; margin-top: 8px !important; }
/* les pages du site, comme les gares d'une ligne : un trait, un point par station. Sans JavaScript, au téléphone, c'est
   elle (avec la rangée du haut) qui mène d'une page à l'autre. */
.pied-pages { margin-top: clamp(40px, 5vw, 64px); }
.pied-pages ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.pied-pages li { position: relative; padding-top: 26px; }
.pied-pages li::before { content: ''; position: absolute; left: 0; right: -20px; top: 5px; height: 1px; background: var(--filet-fort); }
.pied-pages li:last-child::before { right: 0; }
.pied-pages a {
  position: relative; display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem); letter-spacing: -.012em;
  text-decoration: none; color: var(--creme); transition: color .25s;
}
.pied-pages a::before {
  content: ''; position: absolute; left: 0; top: -26px; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box;
  background: var(--palette-fond); border: 1.5px solid var(--cuivre); transition: background-color .3s, box-shadow .3s;
}
.pied-pages a:hover { color: var(--cuivre-clair); }
.pied-pages a:hover::before, .pied-pages a[aria-current='page']::before { background: var(--cuivre); box-shadow: 0 0 12px rgba(204, 132, 60, .65); }
.pied-pages a[aria-current='page'] { color: var(--cuivre-clair); }
@media (max-width: 639.98px) {
  .pied-pages ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-pages li:nth-child(2n)::before { right: 0; }
}
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--filet); }
.colophon { display: flex; align-items: center; gap: 14px; margin: 0 !important; font-size: .86rem; }
.pied-legal { font-size: .82rem; margin: 0 !important; color: var(--creme-pale) !important; }
@media (max-width: 959.98px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559.98px) { .pied-grille { grid-template-columns: 1fr; gap: 32px; } }

/* ── Les apparitions (gare.js pose [data-vu] quand l'élément entre) ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-apparait] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-sortie), transform .9s var(--ease-sortie); transition-delay: calc(var(--i, 0) * 85ms); }
  .js [data-apparait][data-vu] { opacity: 1; transform: none; }
  /* les titres sortent de sous un rail : chaque mot monte dans sa fente */
  .js [data-rail] .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .js [data-rail] .mot > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-sortie); transition-delay: calc(var(--m, 0) * 70ms + var(--d, 0ms)); }
  .js [data-rail][data-vu] .mot > span { transform: none; }
  /* gare.js pose [data-rail-fini] quand le dernier mot est arrivé : sans cela le crochet du j et la queue du q de
     « jusqu'à » restaient coupés pour de bon. vertical-align: top garde la mise en page. */
  .js [data-rail][data-rail-fini] .mot { overflow: visible; }
}
@media (scripting: none) { [data-apparait] { opacity: 1 !important; transform: none !important; } }

/* ── Commun aux sections ─────────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(80px, 9vw, 150px); position: relative; }
.section-tete { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-tete .chapeau { margin: 0; }
@media (min-width: 960px) { .section-tete--deux { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 64px; } }
/* menu ouvert : la page ne défile plus. Sur <html> seul : posé aussi sur <body>, il en faisait un conteneur de défilement
   et la barre collante (avec « Fermer ») partait avec la page déjà défilée (vu le 23.10, barre à -231 px) */
html.panneau-ouvert { overflow: hidden; }

/* ── L'impression et le PDF : les apparitions ne valent que pour l'écran ───────────────────────
   Une page imprimée sans avoir été défilée se vidait (éléments à opacité 0, mots de titre restés sous leur rail). */
@media print {
  [data-apparait], [data-entree] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  [data-rail] .mot { overflow: visible !important; }
  [data-rail] .mot > span { transform: none !important; animation: none !important; transition: none !important; }
  .arrivee, .onglet, .evitement, .panneau { display: none !important; }
  .barre { position: static; }
}

/* ── accueil.css ── */
/* Hôtel de la Gare : l'accueil.
   Premier écran (la brasserie la nuit, ses suspensions qui s'allument), le tableau des départs à palettes,
   le train de photos (aux couleurs CFF), les billets du midi, la chasse, l'indicateur des plats de la maison, les chambres, l'heure.
   Tout geste est dans « prefers-reduced-motion: no-preference » ; sans lui, tout est posé, rien ne bouge. */

/* ── Premier écran ─────────────────────────────────────────────────────────────────────────── */
.ouverture {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(var(--barre-h) * -1);
  padding-top: calc(var(--barre-h) + clamp(40px, 7vh, 96px));
  padding-bottom: clamp(28px, 4vh, 56px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 4.5vh, 56px);
}
@media (min-width: 960px) { .ouverture { min-height: 100svh; } }

.ouverture-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--nuit); }
.ouverture-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 62% 35%;
  filter: brightness(.62) contrast(1.12) saturate(.82) sepia(.18);
}
/* le voile : la nuit tombe sur la photo, plus fort à gauche (le titre) et en bas (le tableau) */
.ouverture-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 11, 9, .62) 0%, rgba(18, 11, 9, .18) 22%, rgba(18, 11, 9, .5) 52%, rgba(18, 11, 9, .94) 74%, var(--nuit) 92%),
    linear-gradient(90deg, rgba(18, 11, 9, .9) 0%, rgba(18, 11, 9, .55) 38%, rgba(18, 11, 9, .12) 72%, rgba(18, 11, 9, .3) 100%);
}
/* les suspensions : deux halos cuivre posés sur les lampes de la photo, qui respirent */
.lueur {
  position: absolute; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(227, 164, 99, .62), rgba(204, 132, 60, .26) 45%, rgba(204, 132, 60, 0) 100%);
}
.lueur-1 { width: min(58vw, 820px); aspect-ratio: 1; left: 60%; top: 2%; translate: -50% -50%; }
.lueur-2 { width: min(40vw, 560px); aspect-ratio: 1; left: 27%; top: 14%; translate: -50% -50%; opacity: .7; }
@media (max-width: 959.98px) {
  .ouverture-photo { object-position: 64% 30%; }
  .lueur-1 { width: 120vw; left: 66%; top: 6%; }
  .lueur-2 { display: none; }
}

.ouverture-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: clamp(28px, 5vw, 80px); }
.ouverture-sur { color: var(--cuivre-clair); margin-bottom: clamp(14px, 2.4vh, 26px); }
.ouverture-h1 {
  font-size: min(clamp(3.5rem, 1rem + 9.4vw, 10.6rem), 17vh);
  line-height: .88; letter-spacing: -.038em; font-weight: 800;
  text-wrap: nowrap; text-shadow: 0 2px 40px rgba(18, 11, 9, .55);
}
.ouverture-h1 .ligne { display: block; }
.ouverture-h1 .ligne-2 { padding-left: .06em; }
/* « de la » à l'italique cuivre, comme sur les affiches de gare ; « Gare » garde la pleine casse */
.ouverture-h1 .ligne-2 .mot:nth-child(-n + 2) > span {
  font-style: italic; font-weight: 500; font-size: .52em; color: var(--cuivre-clair);
  letter-spacing: -.01em; vertical-align: .62em;
}
.ouverture-suite { padding-bottom: .6em; }
.ouverture-suite .chapeau { color: var(--creme); max-width: 26em; margin-bottom: 26px; }
.ouverture-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ouverture-tel { margin: 18px 0 0; }
.ouverture-tel .lien-tel { font-size: 1.05rem; min-height: 44px; }

@media (max-width: 959.98px) {
  .ouverture-grille { grid-template-columns: 1fr; gap: 22px; }
  .ouverture-h1 { font-size: clamp(3.2rem, 15.5vw, 6.4rem); }
  .ouverture-suite { padding-bottom: 0; }
}
@media (max-width: 559.98px) {
  .ouverture { padding-top: calc(var(--barre-h) + 44px); }
  .ouverture-actions .btn { width: 100%; }
  /* l'onglet du bas porte déjà « Réserver » : le premier écran garde Commander seul */
  .ouverture-actions .btn:not(.btn-commander) { display: none; }
  .ouverture-tel { margin-top: 10px; }
}

/* ── Le tableau des départs ─────────────────────────────────────────────────────────────────
   Contrat avec accueil.js : CSS tient les colonnes (--cols) et les rangées (--rangs) par largeur, sur
   .tableau-cadre ; accueil.js les LIT (getComputedStyle) et remplit :
     [data-colonnes] → <span style="--de:1;--sur:7">Ligne</span> … (+ data-droite pour un libellé calé à droite)
     [data-tableau]  → <div class="rang" [data-suite]> × --rangs ; data-suite = 2e ligne d'un même plat (téléphone)
                       chaque rang : --cols × <span class="case" [data-ton="cuivre|pale"]>
                         <span class="demi demi-haut"><span>A</span></span>   (la lettre qui VIENT, moitié haute)
                         <span class="demi demi-bas"><span>A</span></span>    (la lettre en place, moitié basse)
                         <span class="volet volet-haut"><span>A</span></span> (tombe : rotateX 0 → -90deg)
                         <span class="volet volet-bas"><span>A</span></span>  (arrive : rotateX 90deg → 0)
   Tailles : --pas = largeur d'une colonne (cqi du cadre) ; une case fait 1,26 pas de haut, un rang 0,2 pas d'écart. */
.ouverture-tableau { width: 100%; }
.tableau-cadre {
  --cols: 33; --rangs: 4; --haut: 5.64;
  --pas: calc(100cqi / var(--cols));
  --jeu: calc(var(--pas) * .12);
  container-type: inline-size;
  position: relative; padding: clamp(14px, 1.6vw, 24px) clamp(14px, 1.8vw, 28px) clamp(12px, 1.4vw, 20px);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(251, 238, 220, .035), transparent 60%),
    var(--palette-fond);
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--cuivre) 42%, transparent);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(251, 238, 220, .07),
    inset 0 -14px 30px -18px rgba(0, 0, 0, .9),
    0 50px 90px -40px rgba(0, 0, 0, .95),
    0 0 120px -50px rgba(204, 132, 60, .35);
}
/* quatre vis cuivre aux coins du cadre */
.tableau-cadre::before {
  content: ''; position: absolute; inset: 7px; pointer-events: none;
  --vis: radial-gradient(circle, var(--cuivre) 0 1.6px, color-mix(in oklab, var(--cuivre) 40%, black) 2.2px, transparent 2.8px);
  background: var(--vis) 0 0 / 7px 7px no-repeat, var(--vis) 100% 0 / 7px 7px no-repeat,
              var(--vis) 0 100% / 7px 7px no-repeat, var(--vis) 100% 100% / 7px 7px no-repeat;
}
@media (max-width: 899.98px) { .tableau-cadre { --cols: 25; --haut: 5.64; } }
@media (max-width: 559.98px) { .tableau-cadre { --cols: 15; --rangs: 8; --haut: 11.5; border-radius: 10px; } }

.tableau-tete {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 20px;
  padding-bottom: clamp(10px, 1.2vw, 16px); margin-bottom: clamp(10px, 1.2vw, 14px);
  border-bottom: 1px solid var(--filet);
}
.tableau-titre {
  font-family: var(--f-texte); font-weight: 700; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase;
  font-size: clamp(.95rem, .8rem + .5vw, 1.3rem); line-height: 1.1; color: var(--creme);
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.tableau-titre::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--cuivre);
  box-shadow: 0 0 12px rgba(204, 132, 60, .7);
}
.tableau-titre-mot { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tableau-choix { display: flex; align-items: center; gap: 6px; }
.tableau-bouton, .tableau-pause {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border-radius: var(--rayon); border: 1px solid var(--filet); background: transparent; cursor: pointer;
  font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--creme-pale);
  transition: color .2s, border-color .25s var(--ease-sortie), background-color .25s var(--ease-sortie), transform .16s var(--ease-sortie);
  -webkit-tap-highlight-color: transparent;
}
.tableau-bouton .ico { width: 18px; height: 18px; }
.tableau-bouton:hover, .tableau-pause:hover { color: var(--creme); border-color: var(--filet-fort); }
.tableau-bouton[aria-pressed='true'] { color: var(--creme); border-color: color-mix(in oklab, var(--cuivre) 70%, transparent); background: rgba(204, 132, 60, .12); }
.tableau-bouton:active, .tableau-pause:active { transform: scale(.96); }
.tableau-pause { width: 44px; padding: 0; }
.tableau-pause .ico { width: 18px; height: 18px; }
.tableau-pause .ico + .ico, .tableau-pause[aria-pressed='true'] .ico:first-of-type { display: none; }
.tableau-pause[aria-pressed='true'] .ico + .ico { display: block; }
.tableau-pause[aria-pressed='true'] { color: var(--cuivre-clair); border-color: color-mix(in oklab, var(--cuivre) 70%, transparent); }
html:not(.js) .tableau-choix { display: none; }
.tableau-heure {
  margin: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--creme-pale);
}
.tableau-heure time {
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-weight: 700; font-stretch: 75%; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; color: var(--cuivre-clair); min-width: 3.1em; text-align: right;
}
@media (max-width: 759.98px) {
  .tableau-tete { grid-template-columns: 1fr auto; }
  .tableau-choix { grid-column: 1 / -1; grid-row: 2; }
  .tableau-bouton, .tableau-pause { min-height: 44px; }
  .tableau-pause { width: 44px; margin-left: auto; }
}
/* au téléphone, « Départs de la cuisine » entier : le nom de la ville cède sa place, l'heure reste */
@media (max-width: 559.98px) {
  .tableau-heure > span { display: none; }
  .tableau-titre { letter-spacing: .07em; }
}

.tableau-colonnes {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--jeu);
  min-height: 1.4em; margin-bottom: calc(var(--pas) * .22);
  font-size: max(10px, calc(var(--pas) * .3)); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--creme-pale); line-height: 1.4;
}
.tableau-colonnes > span { grid-column: var(--de, auto) / span var(--sur, 1); white-space: nowrap; overflow: hidden; }
.tableau-colonnes > [data-droite] { text-align: right; }

.tableau {
  display: flex; flex-direction: column; row-gap: calc(var(--pas) * .2);
  height: calc(var(--pas) * var(--haut));
}
.rang {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--jeu);
  height: calc(var(--pas) * 1.26); flex: none;
}
.rang[data-suite] { margin-top: calc(var(--pas) * -.1); }
@media (max-width: 559.98px) { .rang:not([data-suite]):not(:first-child) { margin-top: calc(var(--pas) * .14); } }

.case {
  position: relative; perspective: calc(var(--pas) * 5);
  font-family: var(--f-texte); font-weight: 600; font-stretch: 75%; font-size: calc(var(--pas) * 1.02); line-height: 1;
  color: var(--palette-lettre); text-transform: uppercase;
  --r: calc(var(--pas) * .09);
}
.case[data-ton='cuivre'] { color: var(--cuivre-clair); }
.case[data-ton='pale'] { color: var(--creme-pale); }
.demi, .volet { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.demi > span, .volet > span { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; padding-top: .04em; }
.demi-haut, .volet-haut {
  top: 0; border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--palette-face) 86%, var(--creme)) 0%, var(--palette-face) 70%);
}
.demi-bas, .volet-bas {
  bottom: 0; border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(180deg, var(--palette-face-2) 0%, color-mix(in oklab, var(--palette-face-2) 78%, black) 100%);
}
.demi-haut > span, .volet-haut > span { top: 0; }
.demi-bas > span, .volet-bas > span { bottom: 0; }
.volet { z-index: 2; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.volet-haut { transform-origin: 50% 100%; }
.volet-bas { transform-origin: 50% 0; transform: rotateX(90deg); }
/* la charnière : un trait d'ombre et les deux axes de part et d'autre */
.case::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, calc(var(--pas) * .035)); translate: 0 -50%;
  background: var(--palette-fond); z-index: 3;
}
.case::before {
  content: ''; position: absolute; z-index: 4; left: calc(var(--pas) * -.03); right: calc(var(--pas) * -.03);
  top: 50%; height: calc(var(--pas) * .13); translate: 0 -50%;
  background: linear-gradient(90deg, var(--suie) 0 calc(var(--pas) * .08), transparent 0 calc(100% - var(--pas) * .08), var(--suie) 0);
}

.tableau-pied {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: clamp(10px, 1.2vw, 16px) 0 0;
  font-size: .86rem; color: var(--creme-pale);
}
.tableau-pied .ico { width: 16px; height: 16px; color: var(--cuivre); margin-left: 4px; }
.tableau-pied [data-prochain] { color: var(--creme-doux); font-variant-numeric: tabular-nums; }

/* sans script : quatre lignes simples, mêmes couleurs */
.tableau-sans-js { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--f-texte); font-stretch: 75%; font-weight: 600; text-transform: uppercase; font-size: clamp(1rem, 2.4vw, 1.8rem); }
.tableau-sans-js li { display: grid; grid-template-columns: 6em 1fr auto; gap: 12px; padding: 6px 10px; background: var(--palette-face); border-radius: 4px; }
.tableau-sans-js li span:first-child { color: var(--cuivre-clair); }
html:not(.js) .tableau { height: auto; }

/* ── La maison : le train ──────────────────────────────────────────────────────────────────
   Une Re 460 (« Lok 2000 ») tire deux voitures EW IV, à la livrée actuelle des CFF ; les photos de la maison sont
   les fenêtres. Ni logo CFF, ni croix suisse (marque déposée, loi sur les armoiries). Livrée sourcée : PLAN.md.
   Sans script, en mouvement réduit ou au téléphone : le train défile au doigt (scroll horizontal natif).
   Sur bureau, accueil.js pose [data-wagon-pret] sur .wagon-voie, sa hauteur (--voie-h) et, à chaque image :
   --wagon-x (px, sur .train) et --avance (0 → 1, sur .wagon-voie). [data-feux] sur .train : les feux s'allument. */
.maison { padding-bottom: clamp(48px, 6vw, 96px); }
.wagon-voie {
  /* la livrée (sources : PLAN.md, « Livrée du train ») */
  --cff-rouge: #eb0000;      /* rouge CFF, jeton « red » du système de design public des CFF : la Re 460, le filet du toit */
  --cff-rouge-125: #c60018;  /* jeton « red125 » : le rouge à l'ombre */
  --cff-rouge-150: #a20013;  /* jeton « red150 » : lames de la grille, joints */
  --cff-porte: #ab2524;      /* portes des voitures : RAL 3000 rouge feu (Schweizer Eisenbahn-Revue 4/2020) */
  --cff-blanc: #ece5d3;      /* caisse des voitures : blanc cassé mesuré sur deux photos (aucun RAL publié trouvé) */
  --cff-noir: #1e2128;       /* bandeau des fenêtres, jupe et bouts des voitures (mesuré) */
  --cff-toit: #bcc0c5;       /* toit des voitures (mesuré) */
  --cff-toit-loco: #cdd2d7;  /* toit et capot de la Re 460 (mesuré) */
  --cff-jupe-loco: #444444;  /* jupes de la Re 460 : jeton « iron » */
  --cff-encre: #212121;      /* jeton « charcoal » : les légendes sur la caisse claire */
  --vitre-h: clamp(210px, 44vh, 420px);
  --vitre-l: calc(var(--vitre-h) * 1.34);
  --wagon-gap: clamp(18px, 1.7vw, 30px);
  --wagon-haut: clamp(36px, 5vh, 52px);
  --wagon-bas: clamp(54px, 7.5vh, 78px);
  --legende-h: 36px;
  --bande-pad: 8px;
  --porte: calc(var(--vitre-h) * .3);
  --caisse-h: calc(var(--wagon-haut) + var(--vitre-h) + var(--legende-h) + var(--wagon-bas));
  --jupe: calc(var(--wagon-bas) * .32);
  --bogie-h: calc(var(--caisse-h) * .18);
  --loco-milieu: 1.22;
  position: relative;
}
@media (max-width: 959.98px) {
  .wagon-voie { --vitre-l: min(76vw, 420px); --vitre-h: calc(var(--vitre-l) / 1.34); --wagon-gap: 16px; --wagon-haut: 30px; --wagon-bas: 52px; --bande-pad: 6px; --loco-milieu: .5; }
}
.wagon-colle {
  display: grid; grid-template-columns: max-content; overflow-x: auto; overscroll-behavior-x: contain;
  /* en haut, la place du pantographe levé */
  padding: calc(10px + var(--caisse-h) * .18) var(--gouttiere) 28px; scroll-padding-inline: var(--gouttiere); scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wagon-colle::-webkit-scrollbar { display: none; }
.train { position: relative; display: flex; align-items: flex-end; width: max-content; }

/* la Re 460 : trois SVG (accueil.mjs) ; le milieu s'étire en largeur (--loco-milieu, en hauteurs de caisse) */
.loco {
  position: relative; flex: none; display: flex; align-items: flex-end; height: var(--caisse-h);
  /* la face et les tampons dépassent devant : la marge les garde dans l'écran quand le défilement se cale sur la loco */
  margin-left: calc(var(--caisse-h) * .1); scroll-margin-left: calc(var(--caisse-h) * .1); scroll-snap-align: start;
}
.loco svg { display: block; flex: none; height: calc(var(--caisse-h) * 1.2); overflow: visible; }
.loco-avant { width: calc(var(--caisse-h) * 1.146); margin-left: calc(var(--caisse-h) * -.4); }
.loco-milieu { width: calc(var(--caisse-h) * var(--loco-milieu)); margin-left: calc(var(--caisse-h) * -.006); }
.loco-arriere { width: calc(var(--caisse-h) * .708); margin-left: calc(var(--caisse-h) * -.006); }
.re460-noir { fill: #141518; }
.re460-reflet { fill: rgba(255, 255, 255, .09); }
.re460-joint { fill: none; stroke: var(--cff-rouge-150); stroke-width: .3; }
.re460-main { fill: #d4d7da; }
.re460-lame { fill: rgba(130, 0, 16, .55); }
.re460-lame-clair { fill: rgba(255, 150, 130, .32); }
.re460-grille-toit { fill: #6b7076; }
.re460-lame-toit { fill: #484c52; }
.re460-lampe { fill: #1a1a1a; }
.re460-ampoule { fill: #fff8e6; }
.re460-tampon { fill: #1c1c1c; }
.re460-isolateur { fill: #c9ccd0; }
.re460-bras { fill: #3a3d42; }
.re460-tige { fill: none; stroke: #3a3d42; stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.re460-tige--fine { stroke-width: .5; }
/* les trois feux blancs (le « A » des trains suisses) : allumés sans script ; avec, ils s'allument à l'arrivée */
.js .train:not([data-feux]) .re460-feu { opacity: 0; }
.js .train[data-feux] .re460-feu { animation: feux-allument 1.2s linear both; }
@keyframes feux-allument {
  0% { opacity: 0; } 8% { opacity: .85; } 14% { opacity: .15; } 22% { opacity: 1; } 30% { opacity: .55; } 40%, 100% { opacity: 1; }
}

/* les bogies, à l'échelle de la caisse : le longeron sombre devant, les boîtes d'essieu et leurs ressorts, la moitié
   basse des roues (bandage d'acier fin) ; la loco a des roues un peu plus grandes */
.loco::before, .loco::after, .voiture::before, .voiture::after {
  --d: calc(var(--caisse-h) * .2);
  --roue: radial-gradient(circle closest-side, #2e3034 0 12%, #18191c 14% 82%, #4c4f54 84% 88%, #1f2023 89% 95%, transparent 97%);
  content: ''; position: absolute; top: 100%; width: calc(var(--caisse-h) * .6); height: var(--bogie-h);
  background:
    linear-gradient(#3a3c41, #3a3c41) left calc(var(--d) * .35) bottom calc(var(--d) * .35) / calc(var(--d) * .3) calc(var(--d) * .3) no-repeat,
    linear-gradient(#3a3c41, #3a3c41) right calc(var(--d) * .35) bottom calc(var(--d) * .35) / calc(var(--d) * .3) calc(var(--d) * .3) no-repeat,
    repeating-linear-gradient(180deg, #4a4d52 0 2px, transparent 2px 5px) left calc(var(--d) * .38) top 0 / calc(var(--d) * .24) calc(100% - var(--d) * .62) no-repeat,
    repeating-linear-gradient(180deg, #4a4d52 0 2px, transparent 2px 5px) right calc(var(--d) * .38) top 0 / calc(var(--d) * .24) calc(100% - var(--d) * .62) no-repeat,
    linear-gradient(180deg, #2c2e33, #1d1e21) 50% 0 / calc(100% - var(--d) * .2) calc(var(--d) * .34) no-repeat,
    linear-gradient(#26282c, #26282c) 50% 0 / 24% calc(var(--d) * .6) no-repeat,
    var(--roue) left bottom / var(--d) var(--d) no-repeat,
    var(--roue) right bottom / var(--d) var(--d) no-repeat;
}
.loco::before, .loco::after { --d: calc(var(--caisse-h) * .22); width: calc(var(--caisse-h) * .62); }
.loco::before { left: calc(20% - var(--caisse-h) * .31); }
.loco::after { right: calc(20% - var(--caisse-h) * .31); }
.voiture::before { left: calc(14% - var(--caisse-h) * .3); }
.voiture::after { right: calc(14% - var(--caisse-h) * .3); }

/* une voiture EW IV : toit gris, filet rouge, caisse claire, bandeau noir des fenêtres, caisse claire, jupe noire */
.voiture {
  --toit: calc(var(--wagon-haut) * .34);
  --bande-haut: calc(var(--wagon-haut) - var(--bande-pad));
  --bande-bas: calc(var(--wagon-haut) + var(--vitre-h) + var(--bande-pad));
  position: relative; flex: none; display: flex; align-items: flex-start; gap: var(--wagon-gap);
  box-sizing: border-box; height: var(--caisse-h);
  padding: var(--wagon-haut) calc(var(--wagon-gap) * 2.3 + var(--porte)) 0;
  border-radius: 24px 24px 9px 9px;
  background:
    /* la nuit : un peu de lumière en haut, de l'ombre en bas */
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%, transparent 62%, rgba(0, 0, 0, .2)),
    /* le filet rouge continu entre la paroi et le toit, sous son joint sombre */
    linear-gradient(var(--cff-rouge), var(--cff-rouge)) 0 var(--toit) / 100% clamp(3px, .45vh, 4px) no-repeat,
    linear-gradient(#6f7479, #6f7479) 0 calc(var(--toit) - 1px) / 100% 1px no-repeat,
    /* les grilles d'aération du toit, au-dessus des portes */
    repeating-linear-gradient(90deg, #4b4f55 0 2px, #737880 2px 4px) left calc(var(--wagon-gap) * .9 + var(--porte) * .1) top 4px / calc(var(--porte) * .8) calc(var(--toit) - 6px) no-repeat,
    repeating-linear-gradient(90deg, #4b4f55 0 2px, #737880 2px 4px) right calc(var(--wagon-gap) * .9 + var(--porte) * .1) top 4px / calc(var(--porte) * .8) calc(var(--toit) - 6px) no-repeat,
    /* les nervures du toit */
    linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .14)) 0 calc(var(--toit) * .38) / 100% 1px no-repeat,
    linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)) 0 calc(var(--toit) * .7) / 100% 1px no-repeat,
    linear-gradient(180deg,
      #8f9499 0 2px, var(--cff-toit) 2px var(--toit),
      var(--cff-blanc) var(--toit) var(--bande-haut),
      var(--cff-noir) var(--bande-haut) var(--bande-bas),
      var(--cff-blanc) var(--bande-bas) calc(100% - var(--jupe)),
      var(--cff-noir) calc(100% - var(--jupe)));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
/* les portes aux deux bouts, en rouge feu (RAL 3000), du haut du bandeau jusqu'au marchepied */
.voiture-porte {
  position: absolute; left: calc(var(--wagon-gap) * .9); top: calc(var(--bande-haut) - 2px); bottom: -5px; width: var(--porte);
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 12%, transparent 86%, rgba(0, 0, 0, .24)),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 30%, rgba(0, 0, 0, .2)),
    var(--cff-porte);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}
.voiture-porte--fin { left: auto; right: calc(var(--wagon-gap) * .9); }
/* la vitre de la porte, dans son joint noir, et la poignée */
.voiture-porte::before {
  content: ''; position: absolute; top: 7%; left: 17%; right: 17%; height: 36%; border-radius: 10px;
  background: linear-gradient(160deg, #2b3644, #10151c 55%, #07090c);
  box-shadow: 0 0 0 3px #101114, inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.voiture-porte::after {
  content: ''; position: absolute; top: 53%; right: 18%; width: 15%; height: 9%; border-radius: 2px;
  background: #16171a; box-shadow: inset 0 0 0 2px #2c2e33, inset 0 0 0 4px rgba(255, 255, 255, .14);
}
.voiture-porte--fin::after { right: auto; left: 18%; }
/* entre deux véhicules : les tampons qui se touchent ; entre deux voitures, le soufflet noir */
.attelage { position: relative; flex: none; align-self: stretch; width: calc(var(--wagon-gap) * 1.1); }
.attelage::after {
  content: ''; position: absolute; left: -16%; right: -16%; bottom: calc(var(--jupe) * .45); height: clamp(7px, .9vw, 11px);
  border-radius: 3px; background: linear-gradient(90deg, #2a2b2f 0 47%, #0d0e10 47% 53%, #2a2b2f 53%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.attelage-soufflet::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: calc(var(--wagon-haut) * .55); bottom: calc(var(--jupe) + 4px);
  border-radius: 4px; background: repeating-linear-gradient(90deg, #0c0d0f 0 3px, #24262b 3px 5px);
}

.fenetre { position: relative; flex: none; width: var(--vitre-l); margin: 0; scroll-snap-align: start; }
.fenetre-vitre {
  position: relative; height: var(--vitre-h); border-radius: 18px; overflow: hidden; background: var(--palette-fond);
  box-shadow: 0 0 0 4px #0c0d10, 0 0 0 5px rgba(255, 255, 255, .1), 0 10px 26px -10px rgba(0, 0, 0, .7);
}
.fenetre-photo {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(calc((var(--avance, .5) - .5) * -7%), 0, 0) scale(1.14);
}
/* le reflet de la vitre et l'ombre du cadre */
.fenetre-vitre::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 14px 26px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .5);
}
.fenetre-vitre::after {
  content: ''; position: absolute; inset: -10% -40%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(104deg, transparent 36%, rgba(255, 246, 234, .13) 43%, transparent 49%, transparent 55%, rgba(255, 246, 234, .06) 58%, transparent 64%);
  transform: translate3d(calc((var(--avance, .5) - .5) * 40%), 0, 0);
}
/* la légende, sur la caisse claire sous le bandeau */
.fenetre figcaption {
  display: flex; align-items: center; gap: 10px; height: calc(var(--legende-h) - 16px); margin-top: 16px; white-space: nowrap;
  font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--cff-encre);
}
.fenetre-num {
  flex: none; padding: 4px 6px 3px; border-radius: 3px; background: var(--cff-noir); color: var(--cff-blanc);
  font-size: .7rem; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.rail { position: relative; height: 22px; margin-top: 24px; border-top: 3px solid color-mix(in oklab, var(--cuivre) 38%, var(--creme-pale)); }
.rail::before { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 1px; background: rgba(255, 246, 234, .28); }
/* le rail du train, sous les roues */
.wagon-colle .rail { margin-top: var(--bogie-h); }
.rail-traverses {
  position: absolute; left: -60px; right: -60px; top: 3px; height: 11px;
  background: repeating-linear-gradient(90deg, var(--suie) 0 26px, transparent 26px 58px);
  transform: translate3d(var(--traverses-x, 0px), 0, 0);
}

/* bureau, train prêt : la section se colle et le train glisse au défilement */
@media (min-width: 960px) {
  .wagon-voie[data-wagon-pret] { height: var(--voie-h, auto); }
  .wagon-voie[data-wagon-pret] .wagon-colle {
    position: sticky; top: var(--barre-h); height: calc(100svh - var(--barre-h));
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; scroll-snap-type: none; padding-inline: 0;
  }
  .wagon-voie[data-wagon-pret] .train { margin-left: var(--gouttiere); transform: translate3d(var(--wagon-x, 0px), 0, 0); will-change: transform; }
  .wagon-voie[data-wagon-pret] .rail { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .train .re460-feu { opacity: 1; animation: none; }
}

/* ── Le midi : trois billets ───────────────────────────────────────────────────────────────── */
.midi { background: linear-gradient(180deg, var(--nuit) 0%, var(--braise) 22%, var(--braise) 78%, var(--nuit) 100%); }
.midi-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(40px, 6vw, 110px); }
.midi-texte .chapeau { margin-bottom: 1.4em; }
/* le titre et son chapeau, hors des .section-tete (qui ont leur gap) : de l'air, sinon les jambages de « quais »
   touchaient la ligne du dessous (vu le 23.10) */
.midi-texte .titre-section, .chasse-tete .titre-section, .chambres-texte .titre-section { margin-bottom: clamp(18px, 1.8vw, 26px); }
.billets { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); }
.billet {
  --talon: clamp(7.6rem, 5.8rem + 4.6vw, 10.8rem);
  --encoche: 11px;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--talon); align-items: center; min-height: clamp(96px, 8vw, 124px);
  margin-left: calc(var(--i, 0) * clamp(0px, 3vw, 44px));
  color: var(--nuit);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
}
.billet::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(18, 11, 9, .5) 0 2px, transparent 2px 4px, rgba(18, 11, 9, .5) 4px 5px, transparent 5px 9px) calc(100% - 14px) 50% / 9px 54% no-repeat,
    linear-gradient(180deg, #fff6ea 0%, var(--creme) 60%, color-mix(in oklab, var(--creme) 92%, var(--cuivre)) 100%);
  -webkit-mask:
    radial-gradient(circle var(--encoche) at calc(100% - var(--talon)) 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--encoche) at calc(100% - var(--talon)) 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--encoche) at calc(100% - var(--talon)) 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--encoche) at calc(100% - var(--talon)) 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.billet::after { content: ''; position: absolute; top: 18px; bottom: 18px; right: var(--talon); border-left: 2px dashed rgba(18, 11, 9, .22); }
.billet-nom {
  padding: 18px clamp(18px, 2vw, 30px); font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.1rem, .95rem + .6vw, 1.5rem);
  line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
}
.billet-prix {
  /* 23 px à droite : le tiret long du prix ne touche plus la perforation du talon (mesuré sur la carte, mêmes talons) */
  display: block; text-align: center; padding-right: 23px; perspective: 500px;
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1;
  letter-spacing: -.02em; color: var(--hg); font-variant-numeric: tabular-nums lining-nums;
}
.chiffre { display: inline-block; transform-origin: 50% 55%; }
@media (prefers-reduced-motion: no-preference) {
  .js .billet[data-apparait] {
    transition: opacity .9s var(--ease-sortie), transform .9s var(--ease-sortie), translate .35s var(--ease-sortie);
    transition-delay: calc(var(--i, 0) * 85ms), calc(var(--i, 0) * 85ms), 0s;
  }
  .billet:hover { translate: 0 -4px; }
  .js .billet .chiffre { opacity: 0; transform: rotateX(-95deg); }
  .js .billet[data-vu] .chiffre { animation: chiffre-bascule .75s var(--ease-ressort) both; animation-delay: calc(var(--i, 0) * 120ms + var(--k, 0) * 75ms + 320ms); }
}
@keyframes chiffre-bascule {
  0% { opacity: 0; transform: rotateX(-95deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 959.98px) {
  .midi-grille { grid-template-columns: 1fr; }
  .billet { margin-left: 0; }
}

/* ── La chasse ─────────────────────────────────────────────────────────────────────────────── */
.chasse { isolation: isolate; overflow: clip; }
.chasse::before {
  content: ''; position: absolute; inset: -8% 0; z-index: -1;
  background: linear-gradient(180deg, var(--nuit) 0%, rgba(18, 11, 9, .55) 18%, rgba(18, 11, 9, .55) 82%, var(--nuit) 100%), linear-gradient(90deg, rgba(18, 11, 9, .94) 0%, rgba(18, 11, 9, .74) 45%, rgba(18, 11, 9, .82) 100%);
  background-position: 50% 50%; background-size: cover; background-repeat: no-repeat;
}
/* la texture (35 à 70 ko) se demande à l'approche de la section : gare.js pose [data-fond-pret] à 900 px ; AVIF si
   le navigateur le lit (la seconde déclaration, qu'un navigateur sans image-set() typé ignore) */
.chasse[data-fond-pret]::before, html:not(.js) .chasse::before {
  background-image: linear-gradient(180deg, var(--nuit) 0%, rgba(18, 11, 9, .55) 18%, rgba(18, 11, 9, .55) 82%, var(--nuit) 100%), linear-gradient(90deg, rgba(18, 11, 9, .94) 0%, rgba(18, 11, 9, .74) 45%, rgba(18, 11, 9, .82) 100%), url('/photos/bois-1109.webp');
  background-image: linear-gradient(180deg, var(--nuit) 0%, rgba(18, 11, 9, .55) 18%, rgba(18, 11, 9, .55) 82%, var(--nuit) 100%), linear-gradient(90deg, rgba(18, 11, 9, .94) 0%, rgba(18, 11, 9, .74) 45%, rgba(18, 11, 9, .82) 100%), image-set(url('/photos/bois-1109.avif') type('image/avif'), url('/photos/bois-1109.webp') type('image/webp'));
}
@media (max-width: 759.98px) {
  .chasse::before { background-image: linear-gradient(180deg, var(--nuit) 0%, rgba(18, 11, 9, .55) 18%, rgba(18, 11, 9, .55) 82%, var(--nuit) 100%), linear-gradient(90deg, rgba(18, 11, 9, .9), rgba(18, 11, 9, .82)); }
  .chasse[data-fond-pret]::before, html:not(.js) .chasse::before {
    background-image: linear-gradient(180deg, var(--nuit) 0%, rgba(18, 11, 9, .55) 18%, rgba(18, 11, 9, .55) 82%, var(--nuit) 100%), linear-gradient(90deg, rgba(18, 11, 9, .9), rgba(18, 11, 9, .82)), url('/photos/bois-800.webp');
    background-image: linear-gradient(180deg, var(--nuit) 0%, rgba(18, 11, 9, .55) 18%, rgba(18, 11, 9, .55) 82%, var(--nuit) 100%), linear-gradient(90deg, rgba(18, 11, 9, .9), rgba(18, 11, 9, .82)), image-set(url('/photos/bois-800.avif') type('image/avif'), url('/photos/bois-800.webp') type('image/webp'));
  }
}
.chasse-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: clamp(40px, 6vw, 110px); }
.chasse-tete { position: sticky; top: calc(var(--barre-h) + 40px); }
.chasse-plats {
  list-style: none; margin: 0; padding: clamp(10px, 1.6vw, 22px) clamp(20px, 2.6vw, 40px);
  background: rgba(10, 7, 6, .72);
  border: 1px solid color-mix(in oklab, var(--cuivre) 55%, transparent);
  outline: 1px solid color-mix(in oklab, var(--cuivre) 24%, transparent); outline-offset: 7px;
  border-radius: 3px;
}
.chasse-plat {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 24px;
  padding: clamp(16px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--filet);
}
.chasse-plat:last-child { border-bottom: 0; }
.chasse-nom { font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.18rem, 1rem + .6vw, 1.55rem); line-height: 1.2; letter-spacing: -.01em; }
.chasse-desc { display: block; margin-top: 6px; font-family: var(--f-texte); font-weight: 400; font-size: .92rem; line-height: 1.45; letter-spacing: 0; color: var(--creme-pale); }
.chasse-desc::first-letter { text-transform: uppercase; }
.chasse-prix { font-weight: 600; font-stretch: 85%; font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); font-variant-numeric: tabular-nums; color: var(--cuivre-clair); }
@media (max-width: 959.98px) {
  .chasse-grille { grid-template-columns: 1fr; }
  .chasse-tete { position: static; }
}

/* ── Les plats qui portent le nom de la maison : l'indicateur ──────────────────────────────── */
.indicateur { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet-fort); }
.indicateur-ligne {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: baseline; gap: 4px clamp(16px, 2.6vw, 40px);
  padding: clamp(20px, 2.2vw, 30px) clamp(4px, 1vw, 16px); border-bottom: 1px solid var(--filet);
}
.indicateur-ligne::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(204, 132, 60, .14), rgba(204, 132, 60, 0) 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-sortie);
}
.indicateur-ligne::after {
  content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--cuivre);
  transform: scaleY(0); transition: transform .4s var(--ease-sortie);
}
.indicateur-ligne:hover::before { transform: scaleX(1); }
.indicateur-ligne:hover::after { transform: scaleY(1); }
.indicateur-num {
  align-self: center; justify-self: start; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 4px;
  border: 1px solid color-mix(in oklab, var(--cuivre) 60%, transparent); color: var(--cuivre-clair);
  font-size: .82rem; font-weight: 700; font-stretch: 75%; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.indicateur-plat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.indicateur-nom {
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.55rem, 1.05rem + 1.8vw, 2.7rem); line-height: 1.02; letter-spacing: -.022em;
  transition: translate .45s var(--ease-sortie), color .25s;
}
.indicateur-ligne:hover .indicateur-nom { translate: 8px 0; color: #fff6ea; }
.indicateur-desc { color: var(--creme-doux); max-width: 46em; text-wrap: pretty; }
.indicateur-prix {
  font-weight: 600; font-stretch: 80%; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.9rem); font-variant-numeric: tabular-nums;
  color: var(--cuivre-clair); white-space: nowrap; text-align: right;
}
.signatures-pied { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 48px); }
@media (max-width: 559.98px) {
  .indicateur-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .indicateur-num { display: none; }
  .signatures-pied .btn { width: 100%; }
}

/* ── Les chambres ──────────────────────────────────────────────────────────────────────────── */
.chambres-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(40px, 6vw, 110px); }
.atouts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 30px; padding: 0; color: var(--creme-doux); font-size: .95rem; }
.atouts li { display: inline-flex; align-items: center; gap: 9px; }
.atouts .ico { color: var(--cuivre); }
.chambres-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chambres-photos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.chambres-photo { position: relative; margin: 0; }
.chambres-photo img { width: 100%; object-fit: cover; border-radius: 6px; }
.chambres-photo-1 { grid-column: 1 / -1; grid-row: 1; }
.chambres-photo-1 img { aspect-ratio: 4 / 3; }
.chambres-photo-2 { grid-column: 1 / 7; grid-row: 2; margin-top: -14%; margin-left: -6%; z-index: 1; }
.chambres-photo-3 { grid-column: 7 / 13; grid-row: 2; margin-top: 7%; margin-left: 8%; }
.chambres-photo-2 img, .chambres-photo-3 img { aspect-ratio: 4 / 3.1; box-shadow: 0 0 0 8px var(--nuit), 0 30px 50px -24px rgba(0, 0, 0, .9); }
/* la légende, comme une clé d'hôtel au tableau : un porte-clé cuivre percé */
.chambres-photo figcaption {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 6px 13px 6px 9px;
  border: 1px solid color-mix(in oklab, var(--cuivre) 55%, transparent); border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--creme-doux); background: rgba(18, 11, 9, .6);
}
.chambres-photo figcaption::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--cuivre); flex: none; }
.chambres-photo-1 figcaption { position: absolute; left: 14px; top: 14px; margin: 0; background: rgba(18, 11, 9, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--creme); }
@media (max-width: 959.98px) {
  .chambres-grille { grid-template-columns: 1fr; }
  .chambres-photos { margin-top: 8px; }
}
@media (max-width: 559.98px) {
  .chambres-photo-2 { margin-left: 0; margin-top: -10%; }
  .chambres-photo-3 { margin-left: 6%; margin-top: 10%; }
  /* la légende tient sur une ligne (« Chambre à deux lits N7 » laissait N7 seul sur la seconde) */
  .chambres-photo figcaption { font-size: .72rem; white-space: nowrap; gap: 7px; padding: 6px 11px 6px 8px; }
  .chambres-actions .btn { width: 100%; }
}
/* sous 375 px la légende de droite, plus large que sa photo, sortait de l'écran (7 px à 320) : calée sur le bord droit
   de la photo, elle déborde vers la gauche, dans la page */
@media (max-width: 374.98px) { .chambres-photo-3 { display: flex; flex-direction: column; align-items: flex-end; } }

/* ── L'heure et le chemin ──────────────────────────────────────────────────────────────────── */
.infos { border-top: 1px solid var(--filet); }
.infos-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
/* le titre de l'affiche, puis sa nuance en italique cuivre (comme « de la » du premier écran) : les heures du week-end */
.infos-titre .ligne { display: block; }
.infos-titre-nuance {
  margin-top: .38em; font-size: clamp(1.15rem, .42em, 2.2rem); font-style: italic; font-weight: 500; line-height: 1.12; letter-spacing: -.008em;
  color: var(--cuivre-clair);
}
.infos-etat {
  display: flex; align-items: center; gap: 12px; margin: 28px 0 22px;
  font-family: var(--f-titre); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.7rem); font-weight: 600; line-height: 1.2;
}
.infos-etat .etat-feu { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--creme-pale); box-shadow: 0 0 0 4px rgba(251, 238, 220, .08); }
.infos-etat[data-ouvert='oui'] .etat-feu { background: var(--signal); box-shadow: 0 0 0 4px rgba(143, 209, 140, .16), 0 0 16px rgba(143, 209, 140, .55); }
@media (prefers-reduced-motion: no-preference) { .infos-etat[data-ouvert='oui'] .etat-feu { animation: feu 2.4s ease-in-out infinite; } }
.infos-heure .semaine { max-width: 380px; font-size: 1rem; margin-bottom: 18px; }
.infos-heure .semaine th, .infos-heure .semaine td { padding: 9px 0; }
.infos-lieu { padding-top: clamp(0px, 4vw, 64px); }
.infos-adresse { font-style: normal; font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.018em; margin-bottom: 26px; }
.infos-liste { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; color: var(--creme-doux); }
.infos-liste li { display: flex; gap: 12px; align-items: flex-start; }
.infos-liste .ico { color: var(--cuivre); margin-top: .2em; }
/* le numéro de « Une question » : 44 px de haut au doigt sans changer le rythme de la liste (rembourrage + marge négative) */
.infos-liste a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--creme); font-variant-numeric: tabular-nums; }
.infos-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 959.98px) { .infos-grille { grid-template-columns: 1fr; } .infos-lieu { padding-top: 0; } }

/* ── Les gestes ────────────────────────────────────────────────────────────────────────────
   L'entrée du premier écran se joue en CSS seul, sans attendre le script : les suspensions s'allument
   (deux battements, comme un néon qui prend), la photo se pose, le titre sort de son rail, le reste suit. */
@media (prefers-reduced-motion: no-preference) {
  .ouverture-photo { animation: photo-pose 2.6s var(--ease-sortie) both; }
  .lueur { animation: lueur-allume 1.6s linear .5s both, lueur-respire 7s ease-in-out 2.1s infinite alternate; }
  .lueur-2 { animation-delay: .8s, 2.4s; animation-duration: 1.6s, 9s; }
  .js [data-entree] { animation: entree 1s var(--ease-sortie) both; animation-delay: calc(var(--e, 0) * 110ms + 380ms); }
  .js [data-entree-rail] .mot > span { transition: none; animation: rail-sort 1.15s var(--ease-sortie) both; animation-delay: calc(var(--m, 0) * 95ms + 240ms); }
  /* « de la », petit et surélevé, ne descend pas assez sous son rail à 105 % : il se voyait avant les autres mots */
  .js .ouverture-h1 .ligne-2 .mot:nth-child(-n + 2) > span { animation-name: rail-sort-petit; }
  .js .ouverture-tableau[data-entree] { animation-name: entree-tableau; animation-duration: 1.2s; }
}
@keyframes photo-pose { from { scale: 1.09; opacity: .3; } }
@keyframes lueur-allume {
  0% { opacity: 0; } 12% { opacity: .8; } 20% { opacity: .15; } 34% { opacity: .95; } 42% { opacity: .5; } 100% { opacity: 1; }
}
@keyframes lueur-respire { from { scale: .92; } to { scale: 1.07; } }
@keyframes entree { from { opacity: 0; transform: translateY(22px); } }
@keyframes entree-tableau { from { opacity: 0; transform: translateY(40px) scale(.985); } }
@keyframes rail-sort { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rail-sort-petit { from { transform: translateY(260%); } to { transform: none; } }

/* au défilement (navigateurs qui savent lier une animation au scroll) : la photo s'éloigne sous le titre */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .ouverture-fond { animation: fond-fuite linear both; animation-timeline: scroll(root block); animation-range: 0 100svh; }
  }
}
@keyframes fond-fuite { to { translate: 0 22%; } }

/* ── L'entrée : l'horloge de quai, le nom en palettes, puis l'écran bascule comme une palette ──
   Posée dans la page juste après <body> (accueil.mjs), visible seulement quand <head> a mis html.arrivee-joue
   (jamais « arrivee » seul sur <html> : la règle .arrivee { display: none } prendrait la racine, page entière).
   accueil.js : les palettes tournent jusqu'à HÔTEL / DE LA GARE, la trotteuse gagne le 12 et marque l'arrêt,
   la minute saute ; alors la moitié haute tombe, la basse se replie, l'horloge s'envole se poser dans la barre.
   Un clic, une touche ou la molette abrègent tout. */
.arrivee {
  --case: min(calc((100vw - 2 * var(--gouttiere)) / 11), 10.5vh, 84px);
  --pas: var(--case);
  --case-jeu: calc(var(--case) * .1);
  --bloc-l: calc(var(--case) * 10 + var(--case-jeu) * 9);
  --demi-jeu: calc(var(--case) * .2);
  --horloge-t: min(calc(var(--bloc-l) - var(--case) * 5.7), max(calc(var(--case) * 3), 38vw), 30vh);
  --horloge-lev: var(--demi-jeu);
  display: none; position: fixed; inset: 0; z-index: 300; overflow: hidden;
}
/* au téléphone : une grille de 5 × 3 palettes (HÔTEL / DE LA / ␣GARE), deux fois plus grandes ; l'horloge au-dessus */
@media (max-width: 699px) {
  .arrivee {
    --case: min(calc((100vw - 2 * var(--gouttiere)) / 5.4), 9.5vh, 84px);
    --bloc-l: calc(var(--case) * 5 + var(--case-jeu) * 4);
    --horloge-t: min(42vw, 24vh);
    --horloge-lev: calc(var(--demi-jeu) + var(--case) * 1.42 + var(--case) * .32);
  }
  .arrivee-rang { flex-wrap: wrap; row-gap: var(--case-jeu); }
}
html.arrivee-joue .arrivee, html.arrivee-sortie .arrivee { display: block; }
@media (prefers-reduced-motion: reduce) { .arrivee { display: none !important; } }
@media (scripting: none) { .arrivee { display: none !important; } }
.arrivee-moitie { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.arrivee-moitie::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.arrivee-haut {
  top: 0; transform-origin: 50% 100%;
  background:
    radial-gradient(55% 75% at 72% 100%, rgba(204, 132, 60, .13), rgba(204, 132, 60, 0) 70%),
    linear-gradient(180deg, color-mix(in oklab, var(--nuit) 78%, black), var(--nuit));
}
.arrivee-bas {
  bottom: 0; transform-origin: 50% 0;
  background:
    radial-gradient(60% 70% at 38% 0%, rgba(204, 132, 60, .07), rgba(204, 132, 60, 0) 70%),
    linear-gradient(180deg, var(--nuit), color-mix(in oklab, var(--nuit) 70%, black));
}
.arrivee-bloc { position: absolute; left: calc((100% - var(--bloc-l)) / 2); width: var(--bloc-l); }
.arrivee-haut .arrivee-bloc { bottom: var(--demi-jeu); }
.arrivee-bas .arrivee-bloc { top: var(--demi-jeu); }
.arrivee-rang { display: flex; gap: var(--case-jeu); }
.arrivee .case { flex: none; width: var(--case); height: calc(var(--case) * 1.42); font-size: calc(var(--case) * 1.14); }
.arrivee-sous {
  margin: calc(var(--case) * .55) 0 0; font-size: max(.72rem, calc(var(--case) * .19)); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cuivre-clair);
  opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease-sortie), transform .8s var(--ease-sortie);
}
.arrivee[data-sous] .arrivee-sous { opacity: 1; transform: none; }
/* la tige qui tient l'horloge au plafond, et sa chape. Deux tiges au même endroit : celle de l'horloge (::before,
   elle descend et se balance avec elle) ; celle du volet haut, qui prend le relais quand l'horloge se décroche
   ([data-envol]) et tombe avec le volet. */
.arrivee-tige {
  position: absolute; top: 0; width: 2px; opacity: 0;
  right: calc((100% - var(--bloc-l)) / 2 + var(--horloge-t) / 2 - 1px);
  bottom: calc(var(--horloge-lev) + var(--horloge-t) - 2px);
  background: linear-gradient(180deg, rgba(204, 132, 60, 0), var(--cuivre) 40%);
}
.arrivee[data-envol] .arrivee-tige { opacity: 1; }
.arrivee-tige::after, .arrivee-horloge::after {
  content: ''; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 9px; translate: -50% 0;
  border-radius: 3px 3px 1px 1px; background: var(--cuivre);
}
.arrivee-horloge::before {
  content: ''; position: absolute; z-index: -1; left: 50%; bottom: calc(100% - 2px); width: 2px; height: calc(100vh + 60px); translate: -50% 0;
  background: linear-gradient(180deg, rgba(204, 132, 60, 0) calc(100% - var(--tige-l, 50vh)), var(--cuivre) calc(100% - var(--tige-l, 50vh) * .6));
}
.arrivee-horloge::after { z-index: -1; bottom: auto; top: -4px; }
.arrivee[data-envol] .arrivee-horloge::before, .arrivee[data-envol] .arrivee-horloge::after { opacity: 0; }
/* l'ombre du volet qui retombe sur le bas : sous .arrivee-bas, elle ne se voit que là où le volet est déjà posé */
.arrivee-ombre { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #000; opacity: 0; pointer-events: none; }
.arrivee-charniere {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%;
  background: var(--palette-fond); box-shadow: 0 1px 0 rgba(251, 238, 220, .06), 0 -1px 0 rgba(0, 0, 0, .5);
}
.arrivee-charniere::before, .arrivee-charniere::after {
  content: ''; position: absolute; top: 50%; width: 22px; height: 9px; translate: 0 -50%; border-radius: 2px; background: var(--suie);
}
.arrivee-charniere::before { left: 8px; }
.arrivee-charniere::after { right: 8px; }
.arrivee-horloge {
  position: absolute; z-index: 3; width: var(--horloge-t); aspect-ratio: 1;
  right: calc((100% - var(--bloc-l)) / 2); bottom: calc(50% + var(--horloge-lev));
  filter: drop-shadow(0 0 46px rgba(227, 164, 99, .28)) drop-shadow(0 18px 26px rgba(0, 0, 0, .55));
}
/* avant que accueil.js la fasse descendre, l'horloge attend au-dessus de l'écran */
.arrivee:not([data-horloge]) .arrivee-horloge { translate: 0 -110vh; }
.arrivee-horloge svg { width: 100%; height: 100%; overflow: visible; }
.h-lunette { fill: none; stroke: var(--cuivre); stroke-width: .7; }
/* pendant l'entrée, le premier écran attend (ses gestes partent quand la palette tombe) et l'horloge de la barre se cache */
html.arrivee-joue .ouverture, html.arrivee-joue .ouverture * { animation-play-state: paused !important; }
/* pendant l'entrée, la page sous la scène ne se met pas en page : la bande passante et le processeur vont à l'entrée
   (mesuré le 23.10 en 4G lente : les Besley, la texture et deux photos du wagon partaient pendant l'entrée) ;
   elle se dessine d'un coup quand le volet tombe. accueil.js mesure le wagon à ce moment-là. */
html.arrivee-joue main, html.arrivee-joue .b4g, html.arrivee-joue .pied { content-visibility: hidden; }
html.arrivee-joue .barre .horloge, html.arrivee-sortie .barre .horloge { opacity: 0; }
.barre .horloge { transition: opacity .25s; }
