:root {
  --papier: #F4F6F9;
  --carte: #FFFFFF;
  --creux: #EAEEF3;
  --encre: #0D1B30;
  --encre-2: #3F4E66;
  --encre-3: #56647A;
  --trait: #D7DEE8;
  --accent: #1E3F77;
  --accent-texte: #FFFFFF;
  --route-texte: #1E3F77;
  --tampon: #7C8796;
  --focus: #2F6BD8;
  --marine: #0F2344;
  --marine-texte: #EEF2F8;
  --marine-doux: #A8B4C8;
  --marine-accent: #9EBBF0;
  --etoile: #C4CBD5;
  --ok: #1B6E47;
  --ok-doux: #DDF0E5;
  --alerte: #B42318;
  --alerte-doux: #FCE6E3;
  --route-doux: #E2EAF6;
  --neutre-doux: #E6EAF0;
  --chrome: linear-gradient(180deg, #4E5A70 0%, #7F8A9C 40%, #2F3A4E 54%, #66728A 100%);
  --heros-fond: linear-gradient(180deg, #FFFFFF 0%, #F4F6F9 100%);
  --plaque: transparent;
  --plaque-marge: 0px;
  --voile: rgba(13, 27, 48, 0.55);
  --ombre: 0 22px 44px -26px rgba(13, 27, 48, 0.38);
  --titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --texte: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --largeur: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #0A1220;
    --carte: #111B2D;
    --creux: #0B1424;
    --encre: #E9EEF5;
    --encre-2: #B2BCCB;
    --encre-3: #8F9AAC;
    --trait: #243149;
    --accent: #9EBBF0;
    --accent-texte: #0A1220;
    --route-texte: #BCD0F5;
    --tampon: #8E99AA;
    --focus: #9EBBF0;
    --marine: #070E1B;
    --marine-texte: #E9EEF5;
    --marine-doux: #8F9AAC;
    --ok: #5CC08A;
    --ok-doux: #12301F;
    --alerte: #F28B82;
    --alerte-doux: #3B1916;
    --route-doux: #18294A;
    --neutre-doux: #1C2638;
    --chrome: linear-gradient(180deg, #F6F8FB 0%, #C3CAD4 44%, #8C96A6 56%, #E2E6EC 100%);
    --heros-fond: linear-gradient(180deg, #0D1728 0%, #0A1220 100%);
    --plaque: #EEF2F7;
    --plaque-marge: 5px 10px;
    --voile: rgba(2, 6, 14, 0.72);
    --ombre: 0 22px 44px -26px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --papier: #0A1220;
  --carte: #111B2D;
  --creux: #0B1424;
  --encre: #E9EEF5;
  --encre-2: #B2BCCB;
  --encre-3: #8F9AAC;
  --trait: #243149;
  --accent: #9EBBF0;
  --accent-texte: #0A1220;
  --route-texte: #BCD0F5;
  --tampon: #8E99AA;
  --focus: #9EBBF0;
  --marine: #070E1B;
  --marine-texte: #E9EEF5;
  --marine-doux: #8F9AAC;
  --ok: #5CC08A;
  --ok-doux: #12301F;
  --alerte: #F28B82;
  --alerte-doux: #3B1916;
  --route-doux: #18294A;
  --neutre-doux: #1C2638;
  --chrome: linear-gradient(180deg, #F6F8FB 0%, #C3CAD4 44%, #8C96A6 56%, #E2E6EC 100%);
  --heros-fond: linear-gradient(180deg, #0D1728 0%, #0A1220 100%);
  --plaque: #EEF2F7;
  --plaque-marge: 5px 10px;
  --voile: rgba(2, 6, 14, 0.72);
  --ombre: 0 22px 44px -26px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.insecable { white-space: nowrap; }
img, svg { max-width: 100%; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.agence-ouverte { overflow: hidden; }

h1, h2, h3,
.corridor .ville, .engagements strong, .est-total output {
  font-family: var(--titre);
  font-stretch: 118%;
}
h1, h2, h3 {
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .chrome { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
}

.enveloppe { width: min(var(--largeur), 100% - 2.5rem); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.surtitre, .etiquette {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-3);
}
.surtitre { color: var(--accent); }

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
main [id] { scroll-margin-top: 6.25rem; }
@media (max-width: 720px) { main [id] { scroll-margin-top: 7rem; } }
.section + .section { border-top: 1px solid var(--trait); }
.section-tete { display: grid; gap: 0.75rem; max-width: 44rem; margin-bottom: 2.5rem; }
.section-tete .chapo { color: var(--encre-2); font-size: 1.0625rem; max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--encre);
  background: transparent;
  color: var(--encre);
  font: 600 0.9375rem/1 var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--encre); color: var(--papier); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-plein { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.btn-plein:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-petit { min-height: 2.25rem; padding: 0.4rem 0.95rem; font-size: 0.875rem; }

/* Bandeau et navigation */
.bandeau { background: var(--marine); color: var(--marine-texte); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; }
.bandeau .enveloppe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.5rem; }
.bandeau span { color: var(--marine-doux); }
.bandeau strong { color: var(--marine-texte); font-weight: 500; }

.entete { border-bottom: 1px solid var(--trait); background: var(--carte); position: sticky; top: 0; z-index: 20; }
.entete .enveloppe { display: flex; align-items: center; gap: 1.5rem; min-height: 5.25rem; }
.marque { display: inline-flex; flex: none; border-radius: 10px; text-decoration: none; }
.logo-marque { display: block; width: auto; height: 58px; max-width: none; }
.marque .logo-marque { box-sizing: content-box; padding: var(--plaque-marge); border-radius: 10px; background: var(--plaque); }
.plaque-claire { box-sizing: content-box; padding: 8px 14px; border-radius: 12px; background: #EEF2F7; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 0.45rem 0.7rem; border-radius: 999px; color: var(--encre-2); font-weight: 500; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--encre); background: var(--creux); }
.entete .btn { flex: none; }

/* Héros */
.heros { position: relative; overflow: hidden; background: var(--heros-fond); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.75rem); }
.heros .enveloppe { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heros h1 { font-size: clamp(2.2rem, 4.7vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
.heros h1 em { font-style: normal; }
.heros-texte { display: grid; gap: 1.5rem; }
.heros-chapo { font-size: 1.125rem; color: var(--encre-2); max-width: 36rem; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0.5rem 0 0; border-top: 1px solid var(--trait); }
.faits div { padding: 0.9rem 0.9rem 0 0; }
.faits div + div { padding-left: 0.9rem; border-left: 1px solid var(--trait); }
.faits dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-3); }
.faits dd { margin: 0.2rem 0 0; font-family: var(--titre); font-size: 1.3rem; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--accent); }

.orbite { position: absolute; top: 50%; right: -4%; width: min(720px, 62%); transform: translateY(-50%); pointer-events: none; }
.orbite ellipse { fill: none; stroke: var(--tampon); }
.orbite .o1 { stroke-width: 1.2; opacity: 0.55; }
.orbite .o2 { stroke-width: 1; stroke-dasharray: 3 7; opacity: 0.45; }
.orbite .etoile-a { fill: var(--accent); }
.orbite .etoile-b { fill: var(--tampon); }
.orbite .comete { fill: var(--accent); }

/* Bordereau de suivi */
.bordereau {
  position: relative;
  min-width: 0;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 6px 18px 18px 6px;
  box-shadow: var(--ombre);
  padding: 1.5rem 1.5rem 1.35rem 2.35rem;
  display: grid;
  gap: 1.1rem;
}
.bordereau::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.1rem;
  border-right: 2px dashed var(--trait);
  background: radial-gradient(circle at 0 50%, var(--papier) 0.3rem, transparent 0.32rem) 0 0 / 100% 1.1rem repeat-y;
}
.bordereau-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bordereau-tete h2 { font-size: 1.4rem; }
.tampon {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  transform: rotate(-3deg);
}
.form-suivi { display: grid; gap: 0.45rem; }
.form-suivi .ligne { display: flex; gap: 0.5rem; }
.form-suivi input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--trait);
  border-radius: 10px;
  background: var(--creux);
  color: var(--encre);
  font: 500 1.125rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-suivi input::placeholder { color: var(--encre-3); text-transform: none; letter-spacing: 0.04em; }
.form-suivi input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--route-doux); }
.form-suivi .btn { min-height: 3.1rem; padding-inline: 1.4rem; border-radius: 10px; }
.exemples { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--encre-3); }
.puce-code {
  border: 1px dashed var(--trait);
  background: transparent;
  color: var(--encre-2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font: 500 0.75rem/1.4 var(--mono);
  cursor: pointer;
}
.puce-code:hover { border-color: var(--accent); color: var(--accent); }
.trajet { border-top: 1px solid var(--trait); padding-top: 0.9rem; }
.trajet svg { display: block; width: 100%; height: auto; }
.trajet .arc { fill: none; stroke: var(--tampon); stroke-width: 1.5; stroke-dasharray: 5 5; }
.trajet .noeud { fill: var(--carte); stroke: var(--accent); stroke-width: 2; }
.trajet .avion { fill: var(--accent); }
.trajet .code { fill: var(--encre); font: 600 12px var(--mono); letter-spacing: 0.08em; }
.trajet .ville { fill: var(--encre-3); font: 400 10.5px var(--texte); }
.trajet .distance { fill: var(--encre-3); font: 500 10px var(--mono); letter-spacing: 0.06em; }

/* Suivi */
.suivi { background: var(--creux); }
.suivi-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.suivi-tete > div { display: grid; gap: 0.6rem; }
.maj-globale { font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-2); }
.resultat {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 18px;
  box-shadow: var(--ombre);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1.6rem;
}
.attente, .introuvable { display: grid; gap: 0.5rem; color: var(--encre-2); max-width: 62ch; }
.introuvable .res-code { color: var(--alerte); }
.exemple-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--encre-2); }
.tag-exemple, .tag-demo {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--trait);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  color: var(--encre-2);
}
.tag-demo { font-size: 0.625rem; margin-left: 0.35rem; vertical-align: middle; }
.res-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.res-code { font-family: var(--mono); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; }
.res-statut { display: grid; justify-items: end; gap: 0.4rem; text-align: right; }
.res-eta { font-family: var(--mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.res-eta .etiquette { margin-right: 0.35rem; }

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
}
.pastille::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.pastille.ton-neutre { background: var(--neutre-doux); color: var(--encre-2); }
.pastille.ton-route { background: var(--route-doux); color: var(--route-texte); }
.pastille.ton-alerte { background: var(--alerte-doux); color: var(--alerte); }
.pastille.ton-ok { background: var(--ok-doux); color: var(--ok); }

.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rail li { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.45rem; text-align: center; }
.rail li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--trait);
  transform: translateY(-50%);
}
.rail li:first-child::before { display: none; }
.rail li.fait::before, .rail li.actuel::before { background: var(--accent); }
.rail-pt { position: relative; z-index: 1; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--trait); background: var(--carte); }
.rail li.fait .rail-pt { background: var(--accent); border-color: var(--accent); }
.rail li.actuel .rail-pt { border-color: var(--accent); box-shadow: 0 0 0 4px var(--route-doux); }
.rail li.actuel .rail-pt::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); }
.rail li.alerte .rail-pt { border-color: var(--alerte); box-shadow: 0 0 0 4px var(--alerte-doux); }
.rail li.alerte .rail-pt::after { background: var(--alerte); }
.rail.rail-livre li::before { background: var(--ok); }
.rail.rail-livre .rail-pt { background: var(--ok); border-color: var(--ok); }
.rail.rail-livre li.actuel .rail-pt { box-shadow: 0 0 0 4px var(--ok-doux); }
.rail.rail-livre li.actuel .rail-pt::after { display: none; }
.rail-nom { font-size: 0.75rem; line-height: 1.25; color: var(--encre-3); }
.rail li.fait .rail-nom, .rail li.actuel .rail-nom { color: var(--encre); }
.rail li.actuel .rail-nom { font-weight: 600; }
.rail-legende { display: none; margin-top: -0.9rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-2); }

.res-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--trait); }
.res-details div { padding: 0.85rem 1rem 0.85rem 0; min-width: 0; }
.res-details div + div { padding-left: 1rem; border-left: 1px solid var(--trait); }
.res-details dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-3); }
.res-details dd { margin: 0.25rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.res-details dd span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--encre-2); }

.journal { list-style: none; margin: 0; padding: 0; display: grid; }
.journal li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1.25rem; padding: 0.95rem 0; border-top: 1px dashed var(--trait); }
.journal li:first-child { border-top: 0; padding-top: 0; }
.journal time { font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-3); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.j-titre { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.j-titre::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--encre-3); flex: none; }
.journal .ton-route .j-titre::before { background: var(--accent); }
.journal .ton-alerte .j-titre::before { background: var(--alerte); }
.journal .ton-ok .j-titre::before { background: var(--ok); }
.journal li.dernier .j-titre { font-size: 1.0625rem; }
.j-lieu { color: var(--encre-2); font-size: 0.9375rem; }
.j-note { display: inline-block; margin-top: 0.35rem; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--creux); color: var(--encre-2); font-size: 0.875rem; }
.journal .ton-alerte .j-note { background: var(--alerte-doux); color: var(--alerte); }

/* Étapes */
.etapes-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: etape; }
.etapes-liste li { position: relative; display: grid; align-content: start; gap: 0.6rem; padding-top: 3.25rem; counter-increment: etape; }
.etapes-liste li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--papier);
  color: var(--accent);
  font: 600 0.8125rem/1 var(--mono);
}
.etapes-liste li::after { content: ""; position: absolute; top: 1.2rem; left: 2.4rem; right: -1.5rem; border-top: 1.5px dashed var(--trait); }
.etapes-liste li:last-child::after { display: none; }
.etapes-liste h3 { font-size: 1.25rem; }
.etapes-liste p { color: var(--encre-2); font-size: 0.9375rem; }

/* Tarifs */
.tarifs-grille { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.tarifs-trajets { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; align-items: start; }
.tarif h3 { font-size: 1.25rem; }
.attente-liste { color: var(--encre-2); }
.tarif { display: grid; gap: 0.9rem; border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.tarif-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 0.75rem; }
.tarif-delai { font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-2); }
.tarif table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tarif th, .tarif td { padding: 0.6rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; text-align: left; }
.tarif th { font-weight: 500; padding-right: 0.75rem; }
.tarif th span, .tarif td span { display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--encre-3); }
.tarif td { text-align: right; font-family: var(--mono); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarif .note { font-size: 0.8125rem; color: var(--encre-2); }
.inclus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--trait); }
.inclus dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-3); }
.inclus dd { margin: 0.35rem 0 0; color: var(--encre-2); max-width: 60ch; }

/* Champs de formulaire */
.champ { display: grid; gap: 0.3rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.champ > span:first-child, .champ > legend { padding: 0; font-size: 0.8125rem; font-weight: 500; color: var(--encre-2); }
.champ em { font-style: normal; font-weight: 400; color: var(--encre-3); }
.champ input, .champ select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem 0.7rem;
  border: 1.5px solid var(--trait);
  border-radius: 8px;
  background: var(--carte);
  color: var(--encre);
  font: 400 0.9375rem/1.3 var(--texte);
}
.champ input:focus, .champ select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--route-doux); }
.avec-unite { display: flex; }
.avec-unite input { border-radius: 8px 0 0 8px; font-family: var(--mono); }
.avec-unite select { width: auto; border-left: 0; border-radius: 0 8px 8px 0; }

.segment { display: flex; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: var(--creux); }
.segment label { position: relative; flex: 1; }
.segment input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.segment span { display: block; padding: 0.45rem 0.75rem; border-radius: 999px; text-align: center; font-weight: 600; font-size: 0.9375rem; color: var(--encre-2); }
.segment input:checked + span { background: var(--encre); color: var(--papier); }
.segment input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

/* Estimateur */
.estimateur { color-scheme: dark; display: grid; gap: 1rem; padding: 1.4rem; border-radius: 18px; background: var(--marine); color: var(--marine-texte); }
.estimateur h3 { font-size: 1.375rem; }
.estimateur .segment { background: rgba(255, 255, 255, 0.08); }
.estimateur .segment span { color: var(--marine-doux); }
.estimateur .segment input:checked + span { background: var(--marine-texte); color: var(--marine); }
.estimateur .champ > span:first-child { color: var(--marine-doux); }
.estimateur .champ input, .estimateur .champ select { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); color: var(--marine-texte); }
.estimateur .champ input:focus, .estimateur .champ select:focus { border-color: var(--marine-accent); box-shadow: none; }
.est-champs { display: grid; gap: 0.75rem; }
.est-champs.dimensions, .est-champs.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.est-total .est-conversions { font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; color: var(--marine-texte); }
.est-total { display: grid; gap: 0.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.est-total .etiquette { color: var(--marine-doux); }
.est-total output { font-size: 2.2rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--marine-texte); }
.est-total p { font-family: var(--mono); font-size: 0.8125rem; color: var(--marine-doux); }
.estimateur .petit { font-size: 0.75rem; color: var(--marine-doux); }

/* Zones */
.zones-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
.zone h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.hors-axe { margin: 0; display: grid; gap: 0.6rem; }
.hors-axe div { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; border-top: 1px solid var(--trait); }
.hors-axe dt { font-weight: 600; }
.hors-axe dt span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--encre-2); }
.hors-axe dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 0.875rem; white-space: nowrap; }
.hors-axe dd span { display: block; font-size: 0.75rem; color: var(--encre-3); }

/* Engagements */
.engagements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.engagements li { display: grid; align-content: start; gap: 0.45rem; padding-left: 1rem; border-left: 1px solid var(--trait); }
.engagements .mesure { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.engagements strong { font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.engagements p { color: var(--encre-2); font-size: 0.9375rem; }

/* FAQ */
.faq-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 1.35rem/1 var(--mono); color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding-bottom: 1.1rem; color: var(--encre-2); }

/* Contact */
.contact { background: var(--marine); color: var(--marine-texte); }
.contact .surtitre { color: var(--marine-accent); }
.contact .section-tete .chapo { color: var(--marine-doux); }
.contact-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bureau { display: grid; align-content: start; gap: 0.5rem; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; }
.bureau .code-iata { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--marine-accent); }
.bureau h3 { font-size: 1.375rem; }
.bureau p { color: var(--marine-doux); font-size: 0.9375rem; }
.bureau .horaires { font-family: var(--mono); font-size: 0.8125rem; color: var(--marine-texte); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.contact-actions p { font-family: var(--mono); font-size: 0.875rem; color: var(--marine-doux); }
.contact .btn { border-color: var(--marine-texte); color: var(--marine-texte); }
.contact .btn:hover { background: var(--marine-texte); color: var(--marine); }
.contact .btn-plein { background: var(--marine-texte); border-color: var(--marine-texte); color: var(--marine); }
.contact .btn-plein:hover { background: var(--marine-accent); border-color: var(--marine-accent); }

/* Pied de page */
.pied { background: var(--marine); color: var(--marine-doux); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }
.pied .enveloppe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; padding-block: 1.75rem; }
.pied-marque { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.pied .logo-marque { height: 48px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.pied a { color: var(--marine-texte); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .lien-agence { color: var(--marine-doux); }

/* Espace agence */
.agence { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: clamp(0.5rem, 3vw, 2rem); overflow-y: auto; background: var(--voile); }
.agence-boite { display: grid; gap: 1.1rem; width: min(980px, 100%); padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--trait); border-radius: 18px; background: var(--papier); box-shadow: var(--ombre); }
.agence-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.agence-tete h1, .agence-tete h2 { font-size: 1.9rem; margin-top: 0.2rem; }
.agence-sous { margin-top: 0.3rem; font-size: 0.875rem; color: var(--encre-2); }
.btn-fermer { flex: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--trait); border-radius: 50%; background: var(--carte); color: var(--encre); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.btn-fermer:hover { background: var(--creux); }
.agence-avis { padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--creux); color: var(--encre-2); font-size: 0.875rem; }
.agence-etat { padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--neutre-doux); color: var(--encre); font-weight: 500; font-size: 0.9375rem; }
.agence-etat[data-ton="ok"] { background: var(--ok-doux); color: var(--ok); }
.agence-etat[data-ton="erreur"] { background: var(--alerte-doux); color: var(--alerte); }
.agence-etat[data-ton="lecture"] { background: var(--route-doux); color: var(--route-texte); }
.onglets { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--trait); }
.onglets button { margin-bottom: -1px; padding: 0.6rem 0.9rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--encre-3); font: 600 0.9375rem var(--texte); cursor: pointer; }
.onglets button[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--accent); }
.form-agence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; }
.form-agence .large { grid-column: 1 / -1; }
.maj-resume { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--encre-2); }
.maj-resume:empty { display: none; }
.agence-table { position: relative; overflow-x: auto; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); }
.agence-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; }
.agence-outils { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1rem; }
.recherche input { width: min(20rem, 70vw); min-height: 2.25rem; padding: 0.35rem 0.7rem; border: 1.5px solid var(--trait); border-radius: 999px; background: var(--papier); color: var(--encre); font: 400 0.875rem var(--texte); }
.recherche input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--route-doux); }
.agence-table th, .agence-table td { padding: 0.6rem 1rem; border-top: 1px solid var(--trait); text-align: left; vertical-align: middle; }
.agence-table th { font-weight: 500; font-size: 0.8125rem; color: var(--encre-3); }
.agence-table .sous { display: block; font-size: 0.8125rem; color: var(--encre-3); }
.agence-table .actions { text-align: right; white-space: nowrap; }
.btn-lien { padding: 0.3rem 0.45rem; border: 0; border-radius: 6px; background: none; color: var(--accent); font: 600 0.8125rem var(--texte); cursor: pointer; }
.btn-lien:hover { background: var(--creux); }
.btn-lien.danger { color: var(--alerte); }
.btn-lien[disabled] { opacity: 0.4; cursor: not-allowed; }
.vide { padding: 1rem; color: var(--encre-2); }

.maj-historique { display: grid; gap: 0.35rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.maj-historique ol { list-style: none; margin: 0; padding: 0; }
.maj-historique li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: center; gap: 0.4rem 1rem; padding: 0.55rem 0; border-top: 1px dashed var(--trait); font-size: 0.875rem; }
.maj-historique li:first-child { border-top: 0; }
.maj-historique time { font-family: var(--mono); font-size: 0.8125rem; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.maj-historique .quoi { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; min-width: 0; }
.maj-historique .qui { color: var(--encre-3); }
.maj-historique .pastille { font-size: 0.75rem; padding: 0.15rem 0.55rem; }

/* Espace agence, version serveur */
.page-agence { padding: clamp(1.25rem, 4vw, 2.5rem) 0 4rem; }
.page-agence .agence-boite { width: min(1100px, 100% - 1.5rem); margin-inline: auto; box-shadow: none; }
.chargement { padding: 4rem 1rem; text-align: center; color: var(--encre-2); }
.connexion { display: grid; place-items: center; padding: clamp(1.5rem, 6vw, 4rem) 1.25rem; }
.carte-connexion { display: grid; gap: 1rem; width: min(25rem, 100%); padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--trait); border-radius: 18px; background: var(--carte); box-shadow: var(--ombre); }
.carte-connexion h1 { font-size: 2.1rem; }
.carte-connexion .btn { justify-self: start; }

.toast { position: fixed; left: 1rem; right: 1rem; bottom: 1.25rem; z-index: 120; width: fit-content; max-width: 34rem; margin-inline: auto; padding: 0.75rem 1.1rem; border-radius: 12px; background: var(--encre); color: var(--papier); box-shadow: var(--ombre); font-weight: 500; }

/* Formulaires de l'espace agence : cases, volume, aperçu du prix */
.case { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; cursor: pointer; }
.case input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.case em { font-style: normal; color: var(--encre-3); }
.case input:disabled + span { color: var(--encre-3); }
.form-agence .volume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.form-agence .volume > .champ:first-child, .form-agence .volume .aide { grid-column: 1 / -1; }
.aide { margin: 0; font-size: 0.8125rem; color: var(--encre-3); }
.avec-unite .unite { display: inline-flex; align-items: center; padding: 0 0.7rem; border: 1.5px solid var(--trait); border-left: 0; border-radius: 0 8px 8px 0; background: var(--creux); color: var(--encre-2); font: 500 0.875rem var(--mono); }
.equivalent { font-family: var(--mono); font-size: 0.75rem; color: var(--encre-3); }
.devis-agence { padding: 0.9rem 1rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); }
.devis-agence:empty { display: none; }
.devis-agence dl { margin: 0.4rem 0 0; display: grid; gap: 0.35rem; }
.devis-agence dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.devis-agence dd { margin: 0; font-family: var(--mono); text-align: right; white-space: nowrap; }
.devis-agence .devis-total { margin-top: 0.3rem; padding-top: 0.5rem; border-top: 1px solid var(--trait); font-weight: 700; }
.devis-agence .devis-total dd span { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--encre-2); }
.devis-note, .devis-attente { margin: 0.4rem 0 0; font-size: 0.8125rem; color: var(--encre-3); }
.devis-attente { margin: 0; }
.agence-table .montant, #agence-liste td:first-child { white-space: nowrap; }
.non { color: var(--encre-3); }

/* Onglet Paramètres */
.parametres { display: grid; gap: 1.75rem; }
.param-bloc { display: grid; gap: 0.75rem; }
.param-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1rem; }
.param-tete h2 { font-size: 1.35rem; }
.param-tete p { margin-top: 0.2rem; max-width: 62ch; font-size: 0.875rem; color: var(--encre-2); }
.param-form { display: grid; gap: 0.85rem; padding: 1rem; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--carte); }
.param-form-titre { font-weight: 700; }
.param-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; align-items: end; }
.param-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.param-taux { grid-template-columns: minmax(0, 18rem) max-content; justify-content: start; align-items: center; column-gap: 1.25rem; border-color: var(--trait); }
.param-taux .agence-etat { grid-column: 1 / -1; }
.param-table { min-width: 760px; }
.param-table td { vertical-align: top; }
.param-table .actions { vertical-align: top; }
.param-fixes { list-style: none; margin: 0 0 0.25rem; padding: 0; display: grid; gap: 0.35rem; }
.param-fixes li { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.param-fixes .sous { display: block; }

/* Adaptatif */
@media (max-width: 960px) {
  .orbite { display: none; }
  .heros .enveloppe, .faq-grille, .tarifs-grille { grid-template-columns: minmax(0, 1fr); }
  .etapes-liste, .engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .etapes-liste li:nth-child(2n)::after { display: none; }
  .contact-grille { grid-template-columns: minmax(0, 1fr); }
  .res-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-details div:nth-child(3) { padding-left: 0; border-left: 0; }
  .res-details div:nth-child(n+3) { border-top: 1px solid var(--trait); }
}
@media (max-width: 720px) {
  .entete .enveloppe { flex-wrap: wrap; gap: 0 1rem; padding-block: 0.4rem; }
  .entete .btn-plein { display: none; }
  .entete .btn-petit { margin-left: auto; }
  .entete .logo-marque { height: 40px; }
  .nav { order: 3; width: calc(100% + 0.7rem); margin-left: -0.7rem; }
  .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.9rem; }
  .faits div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tarifs-grille, .inclus, .form-agence { grid-template-columns: minmax(0, 1fr); }
  .journal li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .res-statut { justify-items: start; text-align: left; }
  .maj-historique li { grid-template-columns: minmax(0, 1fr) auto; }
  .maj-historique time { grid-column: 1 / -1; }
  .rail-nom { font-size: 0.6875rem; }
}
@media (max-width: 560px) {
  .etapes-liste, .engagements { grid-template-columns: minmax(0, 1fr); }
  .etapes-liste li::after { display: none; }
  .res-details { grid-template-columns: minmax(0, 1fr); }
  .res-details div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait); }
  .form-suivi .ligne { flex-direction: column; }
  .form-agence .volume { grid-template-columns: minmax(0, 1fr); }
  .param-champs { grid-template-columns: minmax(0, 1fr); }
  .param-taux { grid-template-columns: minmax(0, 1fr); }
  .rail-nom { display: none; }
  .rail-legende { display: block; }
}
