/* Piste B, version 2 : « Le tableau des departs ». Couleurs prises dans les photos : le mur gris
   clair (mesure 224,224,221), le cuir noir du gant, le kraft de l'enveloppe, l'asphalte. Chaque
   rubrique porte sa teinte et la page glisse de l'une a l'autre en descendant. Une seule couleur
   d'action : le rouge signal, qui finit par couvrir toute la rubrique d'appel. */
:root {
  --pierre: #e1e1dd;
  --papier: #eeede9;
  --encre: #151515;
  --sourdine: #52504b;
  --ligne: rgba(21, 21, 21, 0.16);
  --cuir: #121212;
  --tuile: #1f1f1f;
  --sur-cuir: #f1efe8;
  --sur-cuir-doux: #aaa89f;
  --ligne-cuir: rgba(241, 239, 232, 0.14);
  --kraft: #c9a57d;
  --asphalte: #5c5c5e;
  --signal: #d9381e;
  --signal-fonce: #b92e17;

  /* Police de secours ETROITE : si Big Shoulders ne charge pas, une police large ferait deborder
     tous les titres (mesure du 12/09 : jusqu'a 150 px hors de l'ecran) */
  --affiche: "Big Shoulders Display", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --sans: "Public Sans", system-ui, sans-serif;

  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --t-2xl: clamp(2.75rem, 1.2rem + 4.6vw, 6rem);
  --t-3xl: clamp(3.25rem, 1rem + 6vw, 8rem);

  --marge: clamp(20px, 5vw, 72px);
  --courbe: cubic-bezier(0.23, 1, 0.32, 1);
  --jeu-anim: running;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #8f8d87 var(--pierre); }
body {
  margin: 0; background: var(--pierre); color: var(--encre);
  font: 400 var(--t-m)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--signal); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
input, button { font: inherit; color: inherit; caret-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.visuellement-cache, .evitement:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.evitement:focus { position: fixed; top: 12px; left: 12px; z-index: 50; background: var(--encre); color: var(--pierre); padding: 8px 14px; }
.colonne { width: min(1240px, 100% - 2 * var(--marge)); margin-inline: auto; }

/* ---------- les teintes de rubrique ---------- */
[data-teinte] { background-color: var(--fond); color: var(--texte); }
[data-teinte="pierre"] { --fond: var(--pierre); --texte: var(--encre); }
[data-teinte="papier"] { --fond: var(--papier); --texte: var(--encre); }
[data-teinte="cuir"] { --fond: var(--cuir); --texte: var(--sur-cuir); }
[data-teinte="asphalte"] { --fond: var(--asphalte); --texte: var(--sur-cuir); }
[data-teinte="kraft"] { --fond: var(--kraft); --texte: var(--encre); }
[data-teinte="signal"] { --fond: var(--signal); --texte: #fff; }

/* ---------- les degrades (13/09, demande de Fethi : « fais un peu de degrade ») ----------
   Chaque rubrique commence par un fondu depuis la couleur de la precedente, dans sa marge du
   haut (jamais sous un texte) : la page glisse d'une teinte a l'autre au lieu d'alterner, ce que
   le jury reprochait. Toutes les couleurs viennent des photos. */
:root { --fondu: clamp(56px, 7vw, 110px); --kraft-fonce: #b99069; --rouge-profond: #a3280f; }
.gare {
  background-image:
    radial-gradient(55% 45% at 88% 20%, rgba(201, 165, 125, 0.17), transparent 70%),
    linear-gradient(180deg, var(--pierre) 0, var(--cuir) var(--fondu), #0b0b0b 100%);
}
.vehicules { background-image: linear-gradient(180deg, #0b0b0b 0, var(--papier) var(--fondu), var(--papier) 65%, #e4e3de 100%); }
.references {
  background-image:
    radial-gradient(70% 80% at 92% 8%, #dcc09c 0%, transparent 62%),
    linear-gradient(180deg, var(--pierre) 0, var(--kraft) var(--fondu), var(--kraft-fonce) 100%);
}
.carnets { background-image: linear-gradient(180deg, var(--kraft-fonce) 0, var(--papier) var(--fondu), var(--papier) 100%); }
.appel { background-image: radial-gradient(110% 130% at 8% 0%, #e9532f 0%, var(--signal) 42%, var(--rouge-profond) 100%); }
/* Fondu court dans le pied : le logo « Courses » en rouge tombait dans le rouge du fondu (2,84) */
.pied { background-image: linear-gradient(180deg, var(--rouge-profond) 0, var(--cuir) 28px); }

/* ---------- barre ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px; padding: 14px var(--marge);
  background: var(--pierre); border-bottom: 1px solid var(--ligne); color: var(--encre);
}
/* Bandeau opaque et marge de defilement : les titres ne passent plus en fantome sous la barre,
   et un lien du menu ne fait plus atterrir « ARRIVÉES » dessous (jury du 13/09) */
html { scroll-padding-top: 88px; }
.marque {
  font: 900 1.75rem/1 var(--affiche); text-transform: uppercase; text-decoration: none;
  letter-spacing: 0.01em; display: inline-flex; gap: 0.18em;
}
.marque span { color: var(--signal); }
.menu { display: flex; gap: 28px; margin-left: auto; font-size: var(--t-s); }
.menu a { text-decoration: none; color: var(--sourdine); transition: color 0.25s var(--courbe); }
.barre-actions { display: flex; align-items: center; gap: 16px; }
.interrupteur {
  background: none; border: 1px solid var(--ligne); border-radius: 99px; padding: 6px 12px;
  font-size: var(--t-xs); color: var(--sourdine); cursor: pointer;
  transition: border-color 0.25s var(--courbe), color 0.25s var(--courbe);
}

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  /* Haut du degrade a #d73a1d et pas plus clair : a #e4472a le blanc tombait a 4,30 (banc du 13/09) */
  background: linear-gradient(180deg, #d73a1d 0%, #b52c15 100%); color: #fff; border-radius: 4px; text-decoration: none; white-space: nowrap;
  font: 600 var(--t-m)/1 var(--sans);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 28px -14px rgba(185, 46, 23, 0.7);
  transition: background-color 0.25s var(--courbe), transform 0.2s var(--courbe);
}
.bouton:active { transform: translateY(1px) scale(0.98); }
.bouton-petit { min-height: 40px; padding: 0 16px; font-size: var(--t-s); font-variant-numeric: tabular-nums; box-shadow: none; }
.numero-court { display: none; }
.lien { font-weight: 600; font-size: var(--t-s); }
@media (hover: hover) {
  .menu a:hover { color: var(--encre); }
  .interrupteur:hover { border-color: var(--encre); color: var(--encre); }
  .bouton:hover { background: var(--signal-fonce); }
  .lien:hover { color: var(--signal-fonce); }
}

/* ---------- 1. ouverture : le hero a la forme de la photo (jamais recadree) ---------- */
.ouverture { position: relative; aspect-ratio: 1376 / 768; overflow: clip; }
.ouverture-photo { position: absolute; inset: 0; }
.ouverture-photo img { width: 100%; height: 100%; object-fit: cover; }
.ouverture-contenu {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px 4vw; align-items: start;
  width: min(1296px, 100% - 2 * var(--marge)); margin-inline: auto; padding-top: calc(64px + 2.6vw);
}
.chapeau { grid-column: 1 / -1; font-size: var(--t-s); font-weight: 600; letter-spacing: normal; }
/* Interligne 0,98 et pas moins (jury du 13/09) : a 0,88 la virgule de « PLI, » plantait une
   fausse apostrophe dans la ligne du dessous, et l'accent de « DÉPEND » faisait lire « QU » */
.titre { font: 900 clamp(3rem, 5.2vw, 7rem)/0.98 var(--affiche); text-transform: uppercase; text-wrap: balance; }
.titre .mot-volet { display: inline-block; white-space: nowrap; }
.titre .lettre { display: inline-block; text-align: center; }
.ouverture-bas { display: grid; gap: 12px; padding-top: 0.3vw; }
.accroche { font-size: var(--t-m); line-height: 1.5; max-width: 44ch; }
.rassure { font-size: var(--t-s); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.anime .ouverture-bas, .anime .chapeau { animation: lever 1s var(--courbe) 0.5s both; animation-play-state: var(--jeu-anim); }
.anime .ouverture-photo img { animation: approche 3s var(--courbe) both; animation-play-state: var(--jeu-anim); }
@keyframes lever { from { opacity: 0; transform: translateY(20px); } }
@keyframes approche { from { transform: scale(1.06); } }

/* ---------- rubriques ---------- */
section:not(.ouverture):not(.compagnie) { padding-block: clamp(80px, 10vw, 150px); }
.grand-titre { font: 900 var(--t-2xl)/0.98 var(--affiche); text-transform: uppercase; text-wrap: balance; max-width: 15ch; }
.sous-titre { margin-top: 24px; max-width: 52ch; font-size: var(--t-l); line-height: 1.45; opacity: 0.86; }

/* ---------- 2. la gare ---------- */
.gare-entete { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 48px; }
.gare-surtitre { font: 700 1.25rem/1 var(--affiche); text-transform: uppercase; letter-spacing: 0.24em; color: var(--kraft); margin-bottom: 16px; }
.horloge-titre { font: 900 var(--t-3xl)/0.95 var(--affiche); text-transform: uppercase; white-space: nowrap; }
.horloge { font-variant-numeric: tabular-nums; color: var(--kraft); }
.gare-phrase { margin-top: 20px; font-size: var(--t-l); line-height: 1.4; max-width: 34ch; }
.pendule { width: clamp(110px, 14vw, 200px); height: auto; }
.pendule .cadran { fill: var(--sur-cuir); }
.pendule .trait { stroke: var(--cuir); }
.pendule .aiguille { fill: var(--cuir); }
.pendule .trotteuse { fill: var(--signal); stroke: var(--signal); }

.commandes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.groupe { display: inline-flex; padding: 4px; border: 1px solid var(--ligne-cuir); border-radius: 6px; }
.groupe button {
  background: none; border: 0; border-radius: 3px; padding: 11px 20px; cursor: pointer;
  font: 700 1.1875rem/1 var(--affiche); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sur-cuir-doux);
  transition: background-color 0.25s var(--courbe), color 0.25s var(--courbe);
}
.groupe button[aria-checked="true"] { background: var(--sur-cuir); color: var(--cuir); }
.groupe button:disabled { opacity: 0.35; cursor: not-allowed; }
.groupe button:active { transform: scale(0.97); }
.explication { font-size: var(--t-s); color: var(--sur-cuir-doux); }
@media (hover: hover) { .groupe button[aria-checked="false"]:not(:disabled):hover { color: var(--sur-cuir); } }

/* Le panneau : un vrai tableau a palettes, cadre de metal sombre */
/* overflow: clip : en basculant en 3D, un rabat de palette sort de sa boite ; sur un petit
   telephone il depassait l'ecran de 6 px et faisait glisser toute la page de cote (12/09) */
.panneau {
  overflow: clip;
  padding: clamp(12px, 1.6vw, 24px); border-radius: 10px; background: linear-gradient(180deg, #121212 0%, #060606 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 2px 0 rgba(255, 255, 255, 0.04), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.panneau-ligne {
  display: grid; grid-template-columns: minmax(0, 18fr) minmax(0, 2.5fr) minmax(0, 5.5fr) minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(8px, 1.2vw, 20px); align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.panneau-ligne:last-child { border-bottom: 0; }
.panneau-tete { padding: 4px 0 12px; font: 700 0.9375rem/1 var(--affiche); text-transform: uppercase; letter-spacing: 0.14em; color: var(--sur-cuir-doux); }
.cellule { display: grid; gap: 4px; min-width: 0; }
.volets { display: flex; gap: 3px; font: 700 clamp(0.95rem, 0.35rem + 1.5vw, 2.1rem)/1 var(--affiche); text-transform: uppercase; }
.euros { font-size: var(--t-xs); color: var(--sur-cuir-doux); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Une palette : deux moities fixes et deux rabats qui basculent */
.tuile { position: relative; width: 0.76em; height: 1.22em; perspective: 12em; flex: none; }
.tuile > i {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  background: var(--tuile); font-style: normal; color: var(--sur-cuir); backface-visibility: hidden;
}
.tuile > i > b { position: absolute; left: 0; right: 0; height: 1.22em; line-height: 1.22em; text-align: center; font-weight: 700; }
.tuile .haut, .tuile .rabat-haut { top: 0; border-radius: 2px 2px 0 0; }
.tuile .bas, .tuile .rabat-bas { bottom: 0; border-radius: 0 0 2px 2px; }
.tuile .bas > b, .tuile .rabat-bas > b { top: -0.61em; }
.tuile .haut { background: #232323; }
.tuile .rabat-haut { transform-origin: 50% 100%; z-index: 2; background: #232323; }
.tuile .rabat-bas { transform-origin: 50% 0; z-index: 2; transform: rotateX(90deg); }
.tuile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: #000; z-index: 3; }
.tuile.vide > i > b { opacity: 0; }
.arrivee .tuile > i { color: var(--kraft); }
.ligne-indispo .arrivee .tuile > i { color: var(--sur-cuir-doux); }

.saisie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.saisie label { font-size: var(--t-s); color: var(--sur-cuir-doux); }
.saisie input {
  flex: 1 1 260px; max-width: 420px; min-height: 50px; padding: 0 16px; background: var(--tuile);
  border: 1px solid rgba(241, 239, 232, 0.24); border-radius: 4px;
  font: 700 1.3rem/1 var(--affiche); text-transform: uppercase; letter-spacing: 0.06em; color: var(--sur-cuir);
}
.saisie input::placeholder { color: var(--sur-cuir-doux); }
.saisie input:focus { outline: none; border-color: var(--kraft); }
.gare .note { margin-top: 24px; font-size: var(--t-xs); color: var(--sur-cuir-doux); max-width: 72ch; }
.explication { max-width: 60ch; }

/* ---------- 3. moto ou voiture ---------- */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: 64px; }
.vehicule { display: grid; gap: 20px; align-content: start; }
.vehicule-photo { position: relative; aspect-ratio: 4 / 5; overflow: clip; border-radius: 4px; background: var(--pierre); }
.vehicule-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--courbe); }
.vehicule-photo figcaption {
  position: absolute; left: 0; bottom: 0; padding: 14px 20px 12px; background: var(--encre); color: var(--sur-cuir);
  font: 900 clamp(2rem, 1.2rem + 2.4vw, 3.5rem)/0.98 var(--affiche); text-transform: uppercase;
}
.vehicule > p { color: var(--sourdine); max-width: 46ch; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); font-variant-numeric: tabular-nums; }
.specs dt { font: 700 1.1875rem/1.35 var(--affiche); text-transform: uppercase; letter-spacing: 0.06em; }
.specs dd { margin: 0; font-size: var(--t-s); }
.specs dd span { display: block; color: var(--sourdine); font-size: var(--t-xs); }
.plus-gros { margin-top: 32px; color: var(--sourdine); }
@media (hover: hover) { .vehicule-photo:hover img { transform: scale(1.035); } }

/* ---------- 4. la course des trois vitesses ---------- */
/* La photo vue du ciel : le passage pieton occupe les 42 % de gauche, le coursier s'arrete a 48 %,
   l'asphalte vide ensuite. Les barres partent a 52 %, juste devant la roue avant. */
.vitesses { overflow: clip; padding-block: 0 !important; }
.course { position: relative; aspect-ratio: 1376 / 768; }
.course-photo, .course-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-texte { position: absolute; left: 52%; right: var(--marge); top: 7%; }
.titre-course { font-size: clamp(2.5rem, 4.2vw, 5.5rem); max-width: 14ch; }
.course-texte .sous-titre { margin-top: 14px; font-size: var(--t-m); max-width: 40ch; opacity: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.couloirs {
  position: absolute; left: 52%; right: var(--marge); bottom: 8%;
  list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2.2vw, 32px);
}
.couloir { display: grid; gap: 10px; }
.couloir-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.couloir h3 { font: 900 clamp(2rem, 1.2rem + 2.2vw, 3.25rem)/0.98 var(--affiche); text-transform: uppercase; }
.couloir-infos { font-size: var(--t-s); color: var(--sur-cuir); font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.piste { position: relative; height: 14px; border-radius: 99px; background: rgba(241, 239, 232, 0.08); }
.piste i { position: absolute; inset: 0 auto 0 0; width: var(--fin); border-radius: 99px; background: var(--sur-cuir); }
.piste i::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--kraft); border: 4px solid var(--asphalte);
}
.couloir:first-child .piste i { background: var(--kraft); }
/* Kraft eclairci : le kraft de l'enveloppe sur l'asphalte gris ne donnait que 2,91 (banc du 13/09) */
.arrivee-temps { font: 900 clamp(1.5rem, 1rem + 1.2vw, 2.25rem)/1 var(--affiche); color: #ecd2af; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
/* La course ne se joue que mouvement actif ; sinon les barres sont a leur place */
.anime [data-rev="course"] { opacity: 1; transform: none; }
.anime [data-course] .piste i { width: 0; transition: width var(--duree) linear; }
.anime [data-course].vu .piste i { width: var(--fin); }
.anime [data-course] .arrivee-temps { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--courbe) var(--duree), transform 0.4s var(--courbe) var(--duree); }
.anime [data-course].vu .arrivee-temps { opacity: 1; transform: none; }

/* ---------- 5. la compagnie ---------- */
.compagnie-photo { position: relative; aspect-ratio: 1376 / 768; overflow: clip; }
.compagnie-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compagnie-legende { position: relative; padding-top: clamp(40px, 6vw, 96px); }
.titre-compagnie { max-width: 11ch; }
/* Le titre commence apres le montant sombre de la fenetre (bord gauche de la photo), sur la
   pierre claire du comptoir : pose a la marge, « Vous » tombait a 2,3 sur le montant (13/09) */
@media (min-width: 1081px) { .compagnie-legende { padding-left: 16vw; } }
.references-grille { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
/* L'enveloppe blanche en 3D, tampon rouge « Exprès », dans sa rubrique juste apres l'ouverture */
/* :not() repetes pour battre la regle generale des rubriques, plus specifique */
section.pli:not(.ouverture):not(.compagnie) { padding-block: clamp(32px, 4vw, 64px); }
.pli-objet {
  max-width: 560px; margin-inline: auto;
  --env-papier: #ecebe5; --env-papier-clair: #ffffff; --env-interieur: #c9c6bc; --env-interieur-clair: #dedbd2;
  --env-pli: rgba(21, 21, 21, 0.14); --env-lettre: #fffdf8; --env-encre: var(--encre); --env-accent-encre: var(--signal-fonce);
  --env-tampon: var(--signal-fonce); --env-ombre: rgba(60, 38, 16, 0.45);
  --env-titre: var(--affiche); --env-titre-poids: 900; --env-titre-casse: uppercase;
  color: var(--encre);
}
.preuves { display: flex; gap: 56px; margin: 0 0 24px; }
.preuves dt { font: 900 var(--t-2xl)/0.9 var(--affiche); font-variant-numeric: tabular-nums; }
.preuves dd { margin: 8px 0 0; font-weight: 600; }
.licence { max-width: 40ch; font-size: var(--t-s); }
.noms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.noms li { font: 700 var(--t-xl)/1.05 var(--affiche); text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid rgba(21, 21, 21, 0.3); }

/* ---------- 6. carnets ---------- */
.carnets-entete { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: 48px; }
.carnets-entete p { color: var(--sourdine); max-width: 48ch; }
.carnets-entete strong { color: var(--encre); }
.tarif-conteneur { overflow-x: auto; margin-bottom: 40px; }
.tarif { width: 100%; min-width: 600px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarif th, .tarif td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--ligne); }
.tarif thead th { font: 700 0.9375rem/1 var(--affiche); text-transform: uppercase; letter-spacing: 0.14em; color: var(--sourdine); }
.tarif tbody th { font: 900 var(--t-xl)/1 var(--affiche); text-transform: uppercase; }
.tarif td { font-size: var(--t-l); }
.tarif .economie { font-weight: 600; }
@media (hover: hover) { .tarif tbody tr { transition: background-color 0.2s var(--courbe); } .tarif tbody tr:hover { background: var(--pierre); } }

/* ---------- 7. appel, tout en rouge ---------- */
.appel .colonne { display: grid; gap: 40px; justify-items: start; }
.appel-titre { font: 900 var(--t-2xl)/0.98 var(--affiche); text-transform: uppercase; max-width: 18ch; text-wrap: balance; }
.numero {
  font: 900 min(15rem, 16vw)/0.82 var(--affiche); text-decoration: none; font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; color: #fff; transition: color 0.25s var(--courbe);
}
.appel .rassure { font-size: var(--t-l); font-weight: 400; }
@media (hover: hover) { .numero:hover { color: var(--cuir); } }

.pied { padding-block: 56px; font-size: var(--t-s); color: var(--sur-cuir-doux) !important; }
.pied-grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.pied .marque { color: var(--sur-cuir); margin-bottom: 12px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.services a { color: var(--sur-cuir); font-variant-numeric: tabular-nums; }
.mention { align-self: end; font-size: var(--t-xs); }

/* ---------- tablette ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .barre-actions { margin-left: auto; }
  /* La photo EN HAUT, le texte dessous : le premier ecran du telephone avait du texte sur fond
     gris et la photo ne commencait qu'a 625 px (jury du 13/09) */
  .ouverture { aspect-ratio: auto; display: flex; flex-direction: column; padding-top: 64px; }
  .ouverture-photo { position: relative; inset: auto; aspect-ratio: 1376 / 768; }
  .ouverture-contenu { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .titre { font-size: clamp(3rem, 1rem + 7vw, 5rem); }
  .ouverture-bas { max-width: 38rem; }
  .carnets-entete, .references-grille { grid-template-columns: 1fr; }
  .compagnie-photo { aspect-ratio: 4 / 3; }
  /* La course : la photo en bandeau, le texte et les barres dessous, sur l'asphalte */
  .course { aspect-ratio: auto; }
  .course-photo { position: relative; display: block; aspect-ratio: 16 / 9; }
  .course-photo img { object-position: 20% 50%; }
  .course-texte { position: static; padding: 40px var(--marge) 0; }
  .couloirs { position: static; padding: 32px var(--marge) 64px; }
}

/* ---------- telephone ---------- */
@media (max-width: 760px) {
  .barre { gap: 12px; padding-block: 10px; }
  .marque { font-size: 1.5rem; }
  .interrupteur { display: none; }
  .ouverture { padding-top: 60px; }
  .ouverture-photo { aspect-ratio: 820 / 620; }
  .ouverture-contenu { width: auto; margin: 0 var(--marge); padding: 32px 0 40px; gap: 16px; }
  /* 12,5 vw : « PROPRES. » tient sur une ligne, meme avec la police de secours (jury du 13/09 :
     a 14,5 vw le mot etait coupe en « P / ROPRES. ») */
  .titre { font-size: min(4.5rem, 12.5vw); }
  /* Filet de securite (police de secours, texte agrandi par le telephone) : un titre coupe un mot
     plutot que de sortir de l'ecran, et plus rien n'est interdit de passer a la ligne */
  .titre .mot-volet, .horloge-titre { white-space: normal; }
  /* break-word et non anywhere : on ne coupe un mot QUE s'il ne tient pas seul sur sa ligne.
     « anywhere » coupait « PROPRES. » en plein milieu alors qu'il aurait tenu a la ligne suivante. */
  .titre, .grand-titre, .appel-titre, .horloge-titre, .numero, .couloir h3 { overflow-wrap: break-word; }
  .horloge-titre { font-size: min(4.5rem, 15vw); }
  .numero-complet { display: none; }
  .numero-court { display: inline; }
  /* Pire cas (police de secours + texte agrandi) : le mot le plus long d'un titre ne doit pas
     elargir toute la colonne — une colonne de grille prend sinon la largeur de son plus long mot */
  .appel .colonne, .vehicules .colonne, .carnets .colonne { grid-template-columns: minmax(0, 1fr); }
  .grand-titre, .appel-titre { font-size: min(var(--t-2xl), 11vw); }
  .bouton-petit { padding: 0 10px; font-size: min(var(--t-s), 4vw); }
  .bouton-petit { flex: none; }
  .barre-actions { min-width: 0; }
  .marque { font-size: min(1.5rem, 6.4vw); min-width: 0; }
  .bouton:not(.bouton-petit) { white-space: normal; text-align: center; min-width: 0; padding-block: 12px; line-height: 1.25; }
  .preuves { flex-wrap: wrap; }
  .specs div { grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); }
  .ouverture-contenu > * { min-width: 0; }
  /* Le tableau des carnets ne defile plus de cote : une ligne par carnet, deux colonnes */
  .tarif { min-width: 0; }
  .tarif thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tarif, .tarif tbody, .tarif tr { display: block; }
  .tarif tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
  .tarif tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .tarif td { display: grid; padding: 0; border: 0; font-size: var(--t-m); }
  .tarif td::before { content: attr(data-label); font-size: var(--t-xs); color: var(--sourdine); }
  .tarif td:empty { display: none; }
  .actions { display: grid; justify-items: stretch; width: 100%; }
  .gare-entete { grid-template-columns: 1fr; }
  .pendule { order: -1; width: 96px; }
  .horloge-titre { font-size: clamp(3rem, 1rem + 12vw, 4.5rem); }
  .groupe { flex-wrap: wrap; max-width: 100%; }
  .groupe button { padding: 10px 12px; font-size: 1rem; }
  .panneau-ligne { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .panneau-ligne > :nth-child(2), .panneau-ligne > :nth-child(3) { display: none; }
  .panneau-ligne > :nth-child(5) { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
  /* 18 palettes de destination + 5 d'arrivee doivent tenir meme si le texte du telephone est agrandi */
  .volets { font-size: min(0.95rem, 3.7vw); gap: 2px; }
  .deux { grid-template-columns: 1fr; }
  .noms { grid-template-columns: 1fr; }
  .preuves { gap: 32px; }
  /* Sur telephone le titre passe SOUS la photo : recadree en carre, l'enveloppe kraft tombait
     sous « compagnie. » (2,23 au banc du 13/09). Structure changee plutot que voile ajoute. */
  .compagnie-photo { aspect-ratio: auto; }
  .compagnie-photo img { position: relative; aspect-ratio: 4 / 3; height: auto; object-position: 65% 50%; }
  .compagnie-legende { padding-block: 40px 8px; }
  .pied-grille { grid-template-columns: 1fr; }
}
