/* Détail d'un trajet : frise verticale, encarts Prix et CO₂. Voir docs/DESIGN.md. */

.retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 16px;
  color: var(--blanc);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.retour:hover { color: var(--blanc); text-decoration: underline; }
.retour svg { color: var(--signal); }
.bandeau .trajet-heures {
  font-size: clamp(44px, 5.6vw, 80px);
  font-stretch: 82%;
  line-height: .92;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.trajet-resume { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trajet-resume li {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / .14);
  font-size: 13px;
  font-weight: 700;
}
.trajet-resume .est-alerte { background: var(--signal); color: var(--encre); }

.trajet-grille { grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; }
@media (max-width: 1080px) { .trajet-grille { grid-template-columns: minmax(0, 1fr); } }
.encart-frise { padding: 30px clamp(16px, 3vw, 36px) 26px; border-radius: 24px; gap: 22px; }
.encart-frise h2 { font-size: 22px; }

/* Frise : heure | rail | contenu */
.frise { list-style: none; margin: 0; padding: 0; display: grid; }
.frise > li { display: grid; grid-template-columns: 72px 36px minmax(0, 1fr); column-gap: 14px; }
.frise time {
  font-family: var(--titre);
  font-weight: 800;
  font-stretch: 84%;
  font-size: 22px;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.retard { display: block; font-family: var(--texte); font-size: 13px; font-weight: 700; color: var(--alerte); }
.rail { position: relative; display: flex; justify-content: center; }
.rail-trait { position: absolute; top: 0; left: 0; height: 100%; }
.rail-trait line { stroke-width: 6; stroke-linecap: round; }
.rail-trait[class*="cat-"] line { stroke: var(--cat, var(--mode-autre)); }
.rail-trait.cat-marche line { stroke-width: 3; stroke-dasharray: 4 6; }
.rail-trait.cat-attente line { stroke-width: 2; stroke-linecap: butt; }
.rail-debut .rail-trait, .rail-debut-marche .rail-trait { top: 14px; height: calc(100% - 14px); }
.rail-fin .rail-trait, .rail-fin-marche .rail-trait { height: 14px; }
.rail-point { position: relative; z-index: 1; margin-top: 4px; }
.rail-point circle { fill: var(--blanc); stroke-width: 5; }
.rail-point[class*="cat-"] circle { stroke: var(--cat, var(--mode-autre)); }
.rail-point-plein circle { fill: var(--encre); }

.frise-corps { min-width: 0; padding: 2px 0 16px; }
.frise-nom { font-size: 18px; }
.frise-sous { font-size: 14px; color: var(--gris); }
.frise-transport .frise-corps { padding: 6px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.frise-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.frise-marche .frise-corps, .frise-attente .frise-corps { padding: 8px 0 14px; font-size: 15px; color: var(--gris); }
.frise-attente .frise-corps { font-size: 14px; font-style: italic; }
.frise-alerte { font-size: 14px; font-weight: 700; color: var(--alerte); }
.voie {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1.5px solid var(--filet-fort);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gris);
}
@media (max-width: 560px) {
  .frise > li { grid-template-columns: 56px 28px minmax(0, 1fr); column-gap: 10px; }
  .frise time { font-size: 18px; }
  .rail-trait { left: -4px; }
}

/* Encarts Prix et CO₂ */
.trajet-grille .encart { padding: 26px; border-radius: 24px; }
.trajet-grille .encart h2 { font-size: 22px; }
.prix-total {
  font-family: var(--titre);
  font-size: 46px;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.prix-lignes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--gris);
}
.prix-lignes dd { margin: 0; font-weight: 700; color: var(--encre); text-align: right; }
.prix-liens { font-size: 15px; font-weight: 600; }
.barre-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.barre { display: block; margin-top: -8px; }
.barre-fond { fill: var(--papier); }
.barre-trajet { fill: var(--sobre); }
.barre-voiture { fill: var(--gris); }
.trajet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.partage-etat { font-size: 14px; font-weight: 700; color: var(--sobre); }
.partage-etat:empty { display: none; }

/* Arrêts desservis, indications à pied : repliés par défaut */
.depliable summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--encre);
  cursor: pointer;
}
.arrets, .indications { margin: 6px 0 4px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.arrets li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.frise .arrets time { font-family: var(--texte); font-size: 14px; font-weight: 700; text-align: left; color: var(--gris); }
.indications { list-style: decimal; padding-left: 22px; color: var(--encre); }

/* Parcours à pied : sortie conseillée et tracé */
.frise-marche .frise-corps { display: flex; flex-direction: column; gap: 8px; }
.sortie { margin: 0; font-size: 15px; font-weight: 700; color: var(--encre); }
.sortie-titre {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--signal);
  color: var(--encre);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sortie-note { font-weight: 400; color: var(--gris); }
.plan-marche { margin: 0; max-width: 640px; }
.plan-marche svg { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--papier); }
/* Fond de rues, dessiné par le serveur aux couleurs du site */
.fond-verdure { fill: var(--badge-sobre-bg); }
.fond-eau { fill: var(--lavande-clair); }
.fond-batiments { fill: var(--filet); }
.fond-places { fill: var(--blanc); }
.fond-rue { fill: none; stroke: var(--blanc); stroke-linecap: round; stroke-linejoin: round; }
.fond-rue-grande { stroke-width: 15; }
.fond-rue-moyenne { stroke-width: 11; }
.fond-rue-petite { stroke-width: 8; }
.fond-rue-fine { stroke-width: 4; }
.fond-rue-sentier { stroke-width: 2.5; }
.fond-rue-marches { stroke-width: 3; stroke-linecap: butt; stroke-dasharray: 2 2; }
.fond-nom {
  font-family: var(--texte);
  font-size: 15px;
  font-weight: 700;
  fill: var(--gris);
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: var(--blanc);
  stroke-width: 4;
  stroke-linejoin: round;
}
/* Le parcours : le trait signal du site, bordé d'encre */
.plan-bord, .plan-trace { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan-bord { stroke: var(--encre); stroke-width: 9; }
.plan-trace { stroke: var(--signal); stroke-width: 5; }
.plan-depart { fill: var(--blanc); stroke: var(--encre); stroke-width: 5; }
.plan-arrivee { fill: var(--encre); stroke: var(--blanc); stroke-width: 3; }
.plan-sortie { fill: var(--signal); stroke: var(--encre); stroke-width: 3; }
.plan-echelle line { stroke: var(--encre); stroke-width: 3; stroke-linecap: round; }
.plan-echelle text { font-family: var(--texte); font-size: 14px; font-weight: 700; fill: var(--encre); paint-order: stroke; stroke: var(--papier); stroke-width: 3; }
.plan-marche figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--gris); }
.plan-legende::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 2px solid var(--encre);
  border-radius: 50%;
  background: var(--blanc);
}
.plan-legende-arrivee::before { background: var(--encre); }
.plan-legende-sortie::before { border-radius: 3px; background: var(--signal); }

.commencer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
