/* Socle de la démo Transports Brossier : couleurs et typographies du site transportsbrossier.com, barre, étapes, composants communs. */
:root {
  --sapin: #1b4b3b;
  --sapin-2: #245f4b;
  --vert: #0c6c5c;
  --anis: #c3f063;
  --anis-voile: #eef8d6;
  --olive: #769c26;
  --peche: #ffbc7d;
  --peche-voile: #fff1e3;
  --papier: #eef2ee;
  --feuille: #ffffff;
  --encre: #18231f;
  --encre-2: #5c6863;
  --filet: #dce3de;
  --filet-fort: #c2ccc6;
  --ok: #3e6b12;
  --ok-voile: #eef5df;
  --alerte: #b4441c;
  --alerte-voile: #fcebe3;
  --semi: #1b4b3b;
  --p19: #0c6c5c;
  --p12: #769c26;
  --vl: #e0893a;
  --titre: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --police: 'Poppins', system-ui, sans-serif;
  --rayon: 12px;
  --rayon-petit: 6px;
  --ombre: 0 1px 2px rgba(27, 75, 59, 0.06), 0 10px 28px rgba(27, 75, 59, 0.08);
  --largeur: 1320px;
  --marge: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 15px/1.55 var(--police);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2, h3 { font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 4px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.evitement { position: absolute; left: -9999px; top: 8px; background: var(--feuille); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 8px; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 40px var(--marge); }

/* Barre du haut, vert sapin comme le site */
.barre {
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--marge);
  background: var(--sapin); color: #fff;
  position: sticky; top: 0; z-index: 5;
}
.barre__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.barre__marque { display: grid; font-weight: 700; font-style: italic; font-size: 23px; line-height: 1; letter-spacing: -0.01em; }
.barre__marque small { font-size: 10px; font-weight: 500; font-style: normal; letter-spacing: 0.32em; text-transform: uppercase; color: var(--anis); margin-bottom: 3px; }
.barre__titre { display: grid; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.2); min-width: 0; }
.barre__titre strong { font-weight: 600; font-size: 16px; }
.barre__titre span { color: rgba(255, 255, 255, 0.72); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre__heure { margin-left: auto; font-size: 13px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }

/* Étapes : une vraie séquence, donc numérotée */
.etapes { background: var(--feuille); border-bottom: 1px solid var(--filet); overflow-x: auto; scrollbar-width: none; }
.etapes ol { list-style: none; margin: 0 auto; padding: 0 var(--marge); display: flex; gap: 4px; max-width: var(--largeur); }
.etapes button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 11px;
  background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  color: var(--encre-2); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.etapes button span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid currentColor; font: 400 15px/1 var(--titre); padding-top: 1px;
}
.etapes button:hover { color: var(--encre); }
.etapes button[aria-current] { color: var(--sapin); border-bottom-color: var(--anis); }
.etapes button[aria-current] span { background: var(--sapin); border-color: var(--sapin); color: var(--anis); }
.etapes button.faite span { background: var(--vert); border-color: var(--vert); color: #fff; }

/* Page */
main { outline: none; }
.page { max-width: var(--largeur); margin: 0 auto; padding: 26px var(--marge) 96px; }
.page.entree { animation: entree 0.3s ease-out both; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 22px; }
.entete h1 { font: 400 clamp(34px, 4.4vw, 54px)/0.98 var(--titre); letter-spacing: 0.01em; color: var(--sapin); max-width: 26ch; }
.entete p { color: var(--encre-2); max-width: 64ch; margin-top: 10px; }
.section-titre { font-size: 17px; margin: 28px 0 12px; color: var(--sapin); }

.panneau { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon); }
.panneau__titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 18px 11px; border-bottom: 1px solid var(--filet); }
.panneau__titre h2 { font-size: 15px; color: var(--sapin); }
.panneau__titre span { color: var(--encre-2); font-size: 13px; }
.carte-info { padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.carte-info h2 { font-size: 16px; color: var(--sapin); }

/* Compteurs de l'en-tête : grands chiffres en Bebas */
.compteurs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.compteurs div { display: grid; }
.compteurs dt { font-size: 13px; color: var(--encre-2); order: 2; }
.compteurs dd { margin: 0; order: 1; }
.chiffre { font: 400 44px/1 var(--titre); letter-spacing: 0.01em; color: var(--sapin); }
.compteurs__alerte .chiffre { color: var(--alerte); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--sapin); color: #fff; border: 1px solid var(--sapin);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.bouton:hover { background: var(--sapin-2); }
.bouton[aria-disabled='true'] { opacity: 0.4; cursor: default; }
.bouton--large { width: 100%; }
.bouton--discret { background: var(--feuille); color: var(--sapin); border-color: var(--filet-fort); }
.bouton--discret:hover { background: var(--papier); }

.suite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.muet { color: var(--encre-2); }
.devise { margin-top: 30px; font-weight: 700; font-style: italic; font-size: 20px; color: var(--sapin); }

.legende { list-style: none; margin: 0; padding: 10px 18px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--encre-2); }
.legende li { display: flex; align-items: center; gap: 7px; }
.legende i { width: 18px; height: 4px; border-radius: 2px; }
.legende__semi { background: var(--semi); }
.legende__p19 { background: var(--p19); }
.legende__p12 { background: var(--p12); }
.legende__vl { background: var(--vl); }

.statut { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.statut--ok { background: var(--ok-voile); color: var(--ok); }
.statut--manque { background: var(--alerte-voile); color: var(--alerte); }
.statut--avarie { background: var(--peche-voile); color: #8a4a0c; }
.statut--lecture { background: var(--anis-voile); color: var(--sapin); }

.coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.coches li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.coches li::before { content: '✓'; color: var(--olive); font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--sapin); color: #fff; padding: 12px 18px; border-radius: var(--rayon);
  box-shadow: var(--ombre); font-size: 14px; max-width: min(560px, calc(100vw - 32px)); z-index: 20;
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .barre { gap: 12px; }
  .barre__marque { font-size: 20px; }
  .barre__marque small, .barre__heure { display: none; }
  .barre__titre { padding-left: 12px; }
  .barre__titre strong { font-size: 15px; }
  .page { padding-top: 20px; }
  .chiffre { font-size: 36px; }
  .compteurs { gap: 8px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
