/* Couche « application » : sur téléphone (et dans les applications Android et iPhone), le
   site se comporte comme une app. Références : luxe discret primé sur Awwwards en 2026
   (Odyssée, Tengile, Cartier, Sobha) : deux couleurs, filets fins, beaucoup d'air,
   capitales espacées, mouvements lents et précis. Voir docs/DESIGN.md. */

/* Menu : liens secondaires, seulement dans le menu plein écran du téléphone. */
.menu-secondaire { display: none; }
@media (max-width: 720px) {
  .js .menu-secondaire {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    margin: 28px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgb(255 255 255 / .16);
    list-style: none;
    font-family: var(--texte);
    font-size: 15px;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0;
  }
  .js .menu-secondaire a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lavande-clair); text-decoration: none; }
}

/* « Quand » : une seule ligne qui dit tout, et ouvre le sélecteur ------------------------- */
.js .quand-natif { display: none; }
.quand-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--filet);
  border-radius: 16px;
  background: var(--blanc);
  color: var(--encre);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  transition: transform .3s var(--ease-pop), border-color .25s;
}
.quand-ligne svg { flex: none; color: var(--outremer); }
.quand-texte { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.quand-modifier { flex: none; color: var(--outremer); font-size: 14px; }
.quand-ligne:active { transform: scale(.98); }
.quand-ligne:hover { border-color: var(--outremer); }
.quand-ligne:focus-visible { outline: 3px solid var(--outremer); outline-offset: 3px; }

/* Préférences : une ligne, son résumé à droite ------------------------------------------ */
.options { border: 1px solid var(--filet); border-radius: 16px; padding: 0 16px; }
.options summary { min-height: 56px; gap: 12px; color: var(--encre); font-size: 15px; font-weight: 600; }
.options-resume { flex: 1; min-width: 0; text-align: right; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.options[open] { padding-bottom: 14px; }
/* Types de transport : des puces à toucher plutôt que des cases à cocher. */
.options-modes .coches { display: flex; flex-wrap: wrap; gap: 8px; }
.options-modes .coche {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--filet);
  border-radius: 999px;
  background: var(--blanc);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.options-modes .coche input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.options-modes .coche:has(input:checked) { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.options-modes .coche:has(input:focus-visible) { outline: 3px solid var(--outremer); outline-offset: 2px; }

/* Feuille : sélecteur « Quand » --------------------------------------------------------- */
.feuille {
  width: min(440px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 10px 20px max(20px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px;
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 0 40px 100px -30px rgb(6 8 48 / .6);
  overflow: auto;
  overscroll-behavior: contain;
}
.feuille[open] { display: grid; gap: 18px; animation: og-feuille-monte .5s var(--ease-out) both; }
.feuille.est-fermante { animation: og-feuille-descend .28s var(--ease-trace) both; }
.feuille::backdrop { background: rgb(14 18 51 / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: og-voile .4s ease both; }
.feuille-ouverte { overflow: hidden; }
.feuille-poignee { justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--filet); }
.feuille-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feuille-titre { font-size: 28px; font-weight: 800; font-stretch: 105%; }
.feuille-fermer { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; background: var(--champ); color: var(--encre); }

.feuille-sens { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--champ); }
.feuille-sens button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gris);
  font-size: 15px;
  font-weight: 700;
  transition: background .3s var(--ease-swap), color .3s, box-shadow .3s;
}
.feuille-sens button[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: 0 6px 18px -10px rgb(14 18 51 / .5); }

.feuille-maintenant {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--filet);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  font-size: 15px;
  font-weight: 700;
}
.feuille-maintenant[hidden] { display: none; }
.feuille-maintenant::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--filet-fort); }
.feuille-maintenant[aria-pressed="true"] { border-color: var(--outremer); background: var(--outremer); color: var(--blanc); }
.feuille-maintenant[aria-pressed="true"]::before { background: var(--signal); animation: og-pulse 1s ease-in-out infinite alternate; }

/* Frise des jours : défile à l'horizontale, le jour choisi en encre. */
.jours {
  display: flex;
  gap: 8px;
  margin: 0 -20px;
  padding: 2px 20px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  outline: none;
}
.jours::-webkit-scrollbar { display: none; }
.jour {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 58px;
  padding: 10px 0 9px;
  border: 1px solid var(--filet);
  border-radius: 16px;
  background: var(--blanc);
  color: var(--encre);
  scroll-snap-align: center;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-pop);
}
.jour:active { transform: scale(.94); }
.jour-nom, .jour-mois { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.jour-chiffre { font-family: var(--titre); font-size: 22px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.jour[aria-selected="true"] { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.jour[aria-selected="true"] .jour-nom, .jour[aria-selected="true"] .jour-mois { color: var(--lavande); }
.jours:focus-visible .jour[aria-selected="true"] { outline: 3px solid var(--outremer); outline-offset: 2px; }

/* Roues : un cylindre, la valeur au centre sous le viseur. */
.roues {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 220px;
  perspective: 600px;
}
.roue {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  outline: none;
  mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
}
.roue::-webkit-scrollbar { display: none; }
.roue ul { margin: 0; padding: 88px 0; list-style: none; }
.roue li {
  --d: 0;
  --a: 0; /* distance au centre, en lignes (posée par quand.js) */
  height: 44px;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  font-family: var(--titre);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--encre);
  opacity: calc(1 - var(--a) * .28);
  transform: rotateX(calc(var(--d) * -18deg)) scale(calc(1 - var(--a) * .08));
  cursor: pointer;
}
.roue:focus-visible { box-shadow: inset 0 0 0 2px var(--outremer); border-radius: 14px; }
.roues-deux-points { position: relative; z-index: 1; padding-bottom: 4px; font-family: var(--titre); font-size: 30px; font-weight: 800; }
.roues-viseur {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 14px;
  background: var(--champ);
  box-shadow: inset 0 0 0 1px var(--filet);
}
.est-maintenant .roue li { color: var(--gris); }
.feuille-valider { width: 100%; }

@keyframes og-feuille-monte { from { transform: translateY(40px) scale(.98); opacity: 0; } }
@keyframes og-feuille-descend { to { transform: translateY(60px); opacity: 0; } }
@keyframes og-voile { from { opacity: 0; } }

/* Téléphone : la feuille colle au bas de l'écran. */
@media (max-width: 720px) {
  .feuille {
    width: 100%;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
    max-height: 92dvh;
  }
  .feuille[open] { animation-name: og-feuille-tiree; }
  @keyframes og-feuille-tiree { from { transform: translateY(100%); } }
  .feuille.est-fermante { animation-name: og-feuille-rangee; }
  @keyframes og-feuille-rangee { to { transform: translateY(100%); } }
}

/* L'app : accueil plein écran, feuille de recherche ------------------------------------- */
@media (max-width: 720px) {
  /* En-tête : le logo et un simple bouton rond pour le menu. */
  .js .menu-bouton { width: 44px; padding: 0; justify-content: center; border-color: rgb(255 255 255 / .35); }
  .js .menu-bouton [data-menu-libelle] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .entete-trait { display: none; }

  /* Écrans de l'app (accueil, résultats, trajet, guidage) : pas de pied de page de site ;
     ses liens sont dans le menu. */
  body:has(main .hero, main .bandeau-resultats, main .bandeau-trajet, main .story) .pied { display: none; }
  .defile, .promesses { display: none; }

  .hero { min-height: calc(100svh - 60px); padding: 0; display: flex; flex-direction: column; }
  .hero .hero-grille { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-inline: 0; }
  .hero-texte { display: block; align-self: stretch; width: auto; padding: 22px var(--marge) 28px; }
  .hero-chapo { display: none; }
  .titre-accueil { font-size: clamp(28px, 8.4vw, 42px); line-height: .98; }
  .hero .hero-recherche { align-self: stretch; width: 100%; max-width: none; margin-top: auto; }

  /* La feuille de recherche, comme une app : coins arrondis en haut, poignée, collée en bas. */
  .hero .recherche {
    gap: 16px;
    padding: 12px 20px max(20px, env(safe-area-inset-bottom));
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 60px -30px rgb(6 8 48 / .55);
  }
  .hero .recherche::before { content: ""; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--filet); }
  .hero .recherche-tete { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero .recherche .bouton-principal { margin-top: 6px; }

  /* Champs : clairs, sans bordure appuyée ; l'inversion flotte entre les deux. */
  .js .lieux { grid-template-columns: 24px minmax(0, 1fr); gap: 12px 12px; }
  .js .inverser {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 3;
    width: 40px; height: 40px;
    transform: translateY(-38%);
    border-color: var(--filet);
    box-shadow: 0 8px 20px -12px rgb(14 18 51 / .5);
  }
  .js .inverser.est-tourne { transform: translateY(-38%) rotate(180deg); }
  .champ-lieu input[type="text"] { min-height: 54px; border-width: 1px; border-radius: 16px; font-size: 17px; font-weight: 600; }
  .point { margin-top: 37px; }
  .lieux-trait { top: 61px; bottom: 30px; }

  .recentes-liste { margin: 0 -20px; padding: 2px 20px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .feuille[open], .feuille.est-fermante, .feuille::backdrop { animation: none; }
  .roue li { transform: none; }
}

/* Résultats, sur téléphone : des cartes épurées, entièrement cliquables ------------------ */
@media (max-width: 899px) {
  .rang { display: none; }
  .carte-tete:not(:has(.badge:not([hidden]))) { display: none; }
  .carte-in { padding: 18px 18px 8px; border-radius: 26px; border-width: 1px; box-shadow: 0 1px 0 rgb(14 18 51 / .04), 0 16px 40px -30px rgb(14 18 51 / .45); }
  /* Toute la carte mène au détail : « Voir ce trajet » n'est plus écrit, il reste lu
     par les lecteurs d'écran et le focus clavier encadre la carte. */
  .lien-detail { height: 0; min-height: 0; overflow: hidden; margin: -10px 0 0; padding: 0; border: 0; }
  .lien-detail > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lien-detail svg { display: none; }
  .bandeau-resultats .modifier > summary { min-height: 40px; padding: 0 16px; }
}

/* Détail du trajet : l'essentiel, le reste replié ------------------------------------- */
.encart-plus { margin-top: 4px; }
.encart-plus summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--gris);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.encart-plus summary::-webkit-details-marker { display: none; }
.encart-plus summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-swap); }
.encart-plus[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.encart-plus > p + p { margin-top: 8px; }

.action { gap: 10px; }
.action svg { flex: none; }
.action-retour-liste { order: 9; }
@media (max-width: 899px) {
  .encart-frise > h2, .frise-aide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .encart-frise > .encart-note { font-size: 12px; }
  /* Trois tuiles sous le pouce : partager, agenda, retour. */
  .trajet-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .action {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 86px;
    padding: 12px 6px;
    border: 1px solid var(--filet);
    border-radius: 20px;
    background: var(--blanc);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
  }
  .action svg { color: var(--outremer); }
  .action-long { display: none; }
  .action-retour-liste { display: none; }
  .partage-etat { grid-column: 1 / -1; text-align: center; }
}

/* Trajet sur téléphone : les encarts de bord à bord ; dans la frise, l'heure passe au-dessus
   et le contenu prend toute la largeur à droite du rail. */
@media (max-width: 560px) {
  .trajet-grille { padding-inline: 0; }
  .trajet-grille .encart { border-radius: 28px; }
  .trajet-grille .encart-frise { padding: 22px 16px 18px; }
  .frise > li { grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; }
  .frise > li > time { grid-column: 2; grid-row: 1; font-size: 16px; line-height: 1.1; text-align: left; color: var(--gris); }
  .frise > li > time:empty { display: none; }
  .frise > li > .rail { grid-column: 1; grid-row: 1 / span 2; }
  .frise > li > .frise-corps { grid-column: 2; grid-row: 2; }
  .frise .rail-trait { left: -4px; }
  .frise .rail-point { margin-top: 0; }
  .frise-arret .frise-corps { padding-top: 0; }
}

/* En-tête du trajet sur téléphone : seulement « Retour ». Les heures et le résumé restent
   lus par les lecteurs d'écran (le routeur place le focus sur le titre). */
@media (max-width: 560px) {
  .bandeau-trajet { padding-block: 4px 16px; }
  /* Les heures restent (elles arrivent de la carte choisie) ; le résumé est lu, pas affiché. */
  .bandeau-trajet .resultats-resume, .bandeau-trajet .trajet-resume { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bandeau-trajet .retour { margin: 0 0 6px; }
  .bandeau-trajet .trajet-heures { font-size: clamp(34px, 11vw, 46px); }
  .bandeau-trajet + .trajet-grille { padding-top: 12px; }
}

/* En-tête des résultats sur téléphone : seulement « Modifier ». Le titre et le résumé
   restent lus par les lecteurs d'écran (annonce et focus du routeur). */
@media (max-width: 560px) {
  .bandeau-resultats { padding-block: 4px 14px; }
  .bandeau-resultats .resultats-tete { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bandeau-resultats .modifier { margin-top: 0; }
  /* Pendant le calcul : à la place du texte, une pastille grise à la taille de « Modifier »,
     pour que rien ne saute à l'arrivée des résultats (le calcul reste annoncé). */
  .bandeau-resultats .capitales { display: none; }
  .bandeau .squelette-titre { width: 128px; height: 40px; margin: 0; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: 0; color: transparent; }
}

/* Suggestions de lieux : une seule liste, deux lignes par suggestion ---------------------- */
.suggestion { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; min-height: 56px; padding: 8px 10px; }
.suggestion-icone { display: grid; place-items: center; color: var(--gris); }
.suggestion-texte { display: grid; gap: 2px; min-width: 0; }
.suggestion-nom, .suggestion-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-detail { display: flex; align-items: center; gap: 4px; }
.suggestion-detail .mode-jeton { flex: none; height: 17px; min-width: 18px; padding: 0 5px; font-size: 10px; border-radius: 5px; }
.suggestion-detail .mode-jeton-metro, .suggestion-detail .mode-jeton-tram { width: 17px; min-width: 17px; padding: 0; }
.mode-jeton-grand { height: 28px; min-width: 32px; padding: 0 6px; font-size: 12px; border-radius: 8px; }
.mode-jeton-grand.mode-jeton-metro, .mode-jeton-grand.mode-jeton-tram { width: 30px; min-width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.suggestion[aria-selected="true"] .suggestion-icone { color: var(--signal); }

/* Saisie d'un lieu sur téléphone : le champ remonte en haut de l'écran (autocomplete.js).
   Une marge en bas de page lui en laisse la place ; l'inversion s'efface pendant ce temps. */
@media (max-width: 720px) {
  .saisie-lieu body { padding-bottom: 100vh; }
  .saisie-lieu .inverser { opacity: 0; pointer-events: none; }
  /* La liste déborde de l'accueil vers le bas ; le réseau reste coupé sur les côtés. */
  .saisie-lieu .hero { overflow-x: clip; overflow-y: visible; }
  .suggestions { max-height: 60vh; }
}

/* Étape à pied : la carte d'abord. Trois lignes en bas, des boutons ronds sur le côté. ------ */
.story-marche .story-zone { display: none; } /* la carte se déplace au doigt */
.story-carte .guide-carte { touch-action: none; cursor: grab; }
.story-carte .guide-carte:active { cursor: grabbing; }
.carte-attribution {
  position: absolute;
  left: 10px;
  top: calc(max(12px, env(safe-area-inset-top)) + 100px);
  margin: 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / .75);
  color: var(--gris);
  font-size: 10px;
  pointer-events: none;
}
.carte-boutons {
  position: absolute;
  right: 12px;
  top: calc(max(12px, env(safe-area-inset-top)) + 100px);
  z-index: 3;
  display: grid;
  gap: 10px;
}
.carte-bouton {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 0 8px 24px -10px rgb(14 18 51 / .55);
  transition: transform .3s var(--ease-pop), background .25s, color .25s;
}
.carte-bouton[hidden] { display: none; }
.carte-bouton:active { transform: scale(.92); }
.carte-bouton:focus-visible { outline: 3px solid var(--outremer); outline-offset: 3px; }
.carte-bouton-guider { color: var(--outremer); }
.carte-bouton[aria-pressed="true"] { background: var(--outremer); color: var(--blanc); }

.story-feuille-mini {
  gap: 4px;
  margin: 0 8px;
  padding: 12px 16px 10px;
  border-radius: 20px;
  font-size: 14px;
}
.mini-tete { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.story-feuille-mini .mini-titre {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-meta { flex: none; color: var(--gris); font-size: 13px; font-weight: 600; }
.story-feuille-mini .guide-etat { margin: 0; font-family: var(--texte); font-size: 15px; font-weight: 700; color: var(--outremer); }
.story-feuille-mini .guide-etat:empty { display: none; }
.story-feuille-mini .sortie { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-feuille-mini .sortie-titre { flex: none; padding: 2px 7px; font-size: 10px; }
.story-feuille-mini .story-plus summary { min-height: 32px; font-size: 13px; }
.story-feuille-mini .story-plus:not([open]) { margin-top: -2px; }
/* « Détails » se range à droite de la dernière ligne : trois lignes au plus. */
.story-feuille-mini { position: relative; }
.story-feuille-mini .story-plus:not([open]) { position: absolute; right: 14px; bottom: 6px; }
.story-feuille-mini .story-plus:not([open]) summary { min-height: 32px; color: var(--outremer); }
.story-feuille-mini .sortie { padding-right: 70px; }


/* « Trajet en cours · Reprendre » en haut de la recherche */
.reprendre {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--encre);
  color: var(--blanc);
  font-size: 15px;
  text-decoration: none;
}
.reprendre[hidden] { display: none; }
.reprendre:hover { color: var(--blanc); }
.reprendre > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reprendre-point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); animation: og-pulse 1s ease-in-out infinite alternate; }
.reprendre-action { flex: none; color: var(--signal); font-weight: 700; }

/* Cartes : une colonne qui ne dépasse jamais la carte, même avec une fourchette de prix. */
@media (max-width: 899px) {
  .carte-in { grid-template-columns: minmax(0, 1fr); }
  .prix { font-size: clamp(20px, 6.2vw, 27px); white-space: nowrap; }
}

/* Pages de liaison (/trajet/<départ>/<arrivée>/) ----------------------------------------- */
.fil { margin-bottom: 10px; font-size: 14px; color: var(--lavande); }
.fil a { color: var(--blanc); }
.bandeau-liaison .chapo { margin-top: 10px; max-width: 60ch; color: var(--lavande-clair); }
.liaison-cta { margin-top: 18px; width: auto; }
.liaison { display: grid; gap: 22px; }
.liaison-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.liaison-chiffres > div { display: grid; gap: 2px; padding: 16px; border-radius: 20px; background: var(--blanc); }
.liaison-chiffres dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.liaison-chiffres dd { margin: 0; font-family: var(--titre); font-size: 26px; font-weight: 800; font-stretch: 86%; }
.liaison-chiffres span { font-size: 13px; color: var(--gris); }
.liaison-trajets { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.liaison-trajets li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--filet); }
.liaison-trajets li:first-child { border-top: 0; }
.liaison-heures { margin: 0; font-family: var(--titre); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.liaison-detail { grid-column: 1; margin: 0; font-size: 14px; color: var(--gris); }
.liaison-pastilles { grid-column: 1; margin-top: 8px; }
.liaison-prix { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; font-weight: 700; white-space: nowrap; }
.liaison-faq { display: grid; gap: 8px; }
.liaison-faq h3 { margin: 10px 0 0; font-size: 18px; }
.liaison-voisines ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.liaison-voisines a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--filet); border-radius: 999px; background: var(--blanc); color: var(--encre); font-weight: 600; text-decoration: none; }

/* Liaison : les itinéraires sur la carte, le plus rapide dessus */
.liaison-carte .plan { width: 100%; max-width: 560px; margin-top: 12px; }
.liaison-carte { display: grid; gap: 4px; }
@media (min-width: 900px) { .liaison-carte { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: 28px; align-items: start; } .liaison-carte h2 { grid-column: 1 / -1; } .liaison-legende { margin-top: 12px; } }
.liaison-trace { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke: var(--trace); }
.liaison-trace-1 { --trace: var(--outremer); }
.liaison-trace-1.liaison-trace { stroke-width: 6; }
.liaison-trace-2 { --trace: var(--sobre); }
.liaison-trace-3 { --trace: var(--mode-car); }
.liaison-trace-4 { --trace: var(--mode-grande-vitesse); }
.liaison-trace-5 { --trace: var(--mode-bateau); }
.liaison-legende { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; }
.liaison-legende li { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.liaison-legende small { color: var(--gris); }
.liaison-pastille { flex: none; width: 22px; height: 5px; border-radius: 3px; background: var(--trace); transform: translateY(-3px); }
.liaison .plan-depart { fill: var(--blanc); stroke: var(--encre); stroke-width: 4; vector-effect: non-scaling-stroke; }
.liaison .plan-arrivee { fill: var(--encre); }
