/* Maquette « réserver » — charte Cinquième Massey (bloc brand du project.json) :
   noir laqué, ivoire, taupes ; or en accent rare (sélection, focus). Cormorant Garamond pour les titres, Montserrat pour le reste. */

:root {
  --noir: #0B0E0E;
  --surface: #131615;
  --surface-2: #191917;
  --ivoire: #D7D3CB;
  --ivoire-vif: #ECE9E2;
  --taupe: #AFA99E;
  --taupe-moyen: #767168;
  --taupe-sombre: #413D37;
  --or: #C9A962;
  --or-voile: rgba(201, 169, 98, .09);
  --alerte: #E8A898;
  --trait: rgba(215, 211, 203, .14);
  --trait-fort: rgba(215, 211, 203, .34);

  --titre: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --texte: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 14px;
  --rayon-s: 10px;
  --marge: 20px;
  --sortie: cubic-bezier(.25, 1, .5, 1);

  --z-barre: 10;
  --z-dialogue: 20;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: #060808; color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 15px/1.5 var(--texte);
  color: var(--ivoire);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
h1:focus-visible { outline: none; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- cadre ---------- */

.app {
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--noir);
}
@media (min-width: 600px) { .app { border-inline: 1px solid var(--trait); } }

.tete {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
}
.logo { grid-column: 2; justify-self: center; height: 58px; width: auto; display: block; }
.langue { grid-column: 3; font-size: 12px; font-weight: 500; letter-spacing: .08em; }

.rond {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--ivoire);
  transition: background-color .16s var(--sortie), border-color .16s var(--sortie);
}
.rond:hover { background: rgba(215, 211, 203, .07); }
.rond:active { background: rgba(215, 211, 203, .13); }
.rond:disabled { color: var(--taupe-moyen); cursor: default; background: none; }

.avance { padding: 14px var(--marge) 0; }
.avance-traits { display: flex; gap: 5px; }
.avance-traits i { flex: 1; height: 2px; border-radius: 2px; background: var(--trait); transition: background-color .25s var(--sortie); }
.avance-traits i.fait { background: var(--ivoire); }
.avance-texte {
  display: flex; justify-content: space-between; align-items: center;
  margin: 10px 0 0;
  font-size: 12px; font-weight: 500; color: var(--taupe);
}
.marque {
  padding: 2px 8px;
  border: 1px solid var(--trait-fort); border-radius: 999px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.marques { display: flex; gap: 6px; }
.marque--site { border-color: var(--or); color: var(--or); }

main { flex: 1; padding: 0 var(--marge) 28px; }

.vue { animation: entree .22s var(--sortie); }
.vue[data-sens="retour"] { animation-name: entree-retour; }
@keyframes entree { from { opacity: 0; transform: translateX(14px); } }
@keyframes entree-retour { from { opacity: 0; transform: translateX(-14px); } }

h1 {
  margin: 18px 0 22px;
  font: 500 34px/1.08 var(--titre);
  letter-spacing: -.005em;
  color: var(--ivoire-vif);
  text-wrap: balance;
}

.etiquette {
  display: block;
  margin: 0;
  font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--taupe);
}
.etiquette i { font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--taupe-moyen); }

.aide { margin: 18px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--taupe); text-wrap: pretty; }

/* ---------- trajet ---------- */

.trajet { position: relative; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); }
.lieu {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 72px;
  padding: 14px 64px 14px 18px;
  border: 0; background: none; text-align: left;
  border-radius: var(--rayon);
  transition: background-color .16s var(--sortie);
}
.lieu + .lieu { border-top: 1px solid var(--trait); border-radius: 0 0 var(--rayon) var(--rayon); }
.lieu:first-child { border-radius: var(--rayon) var(--rayon) 0 0; }
.lieu:hover { background: rgba(215, 211, 203, .04); }
.lieu:active { background: rgba(215, 211, 203, .08); }
.lieu-puce { width: 9px; height: 9px; border: 1.5px solid var(--ivoire); border-radius: 50%; flex: none; }
.lieu-puce--arr { border-radius: 1px; background: var(--ivoire); }
.lieu-texte { min-width: 0; display: grid; gap: 4px; }
.lieu-valeur { font-size: 16px; line-height: 1.3; color: var(--ivoire-vif); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lieu-valeur.vide { color: var(--taupe); }
.lieu.erreur { box-shadow: inset 0 0 0 1px var(--alerte); }
.inverser {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%;
  border-color: var(--trait-fort); background: var(--surface-2);
}
.inverser:hover { background: var(--taupe-sombre); }
.inverser svg { transition: rotate .3s var(--sortie); }
.inverser.tourne svg { rotate: 180deg; }

/* trajet ou mise à disposition : deux segments au-dessus du lieu (demande de Seb, 02/11) */
.bascule { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 16px; border: 1px solid var(--trait); border-radius: 999px; background: var(--surface); }
.bascule-choix {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  font: 500 13px/1.2 var(--texte); letter-spacing: .04em; color: var(--taupe); cursor: pointer;
  transition: background-color .16s var(--sortie), color .16s var(--sortie);
}
.bascule-choix:hover { color: var(--ivoire-vif); }
.bascule-choix[aria-checked="true"] { background: var(--ivoire); color: var(--noir); }
.bascule-choix:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.trajet--seul .lieu { border-radius: var(--rayon); padding-right: 18px; }
.bloc-duree { margin-top: 26px; }
.jours.durees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; padding: 0; overflow: visible; }
.jours.durees .jour { width: auto; }
@media (min-width: 1000px) { .jours.durees { grid-template-columns: repeat(4, 1fr); } }
.champ--fin { margin-top: 18px; }

/* ---------- date et heure ---------- */

.jours {
  display: flex; gap: 8px;
  margin: 10px calc(var(--marge) * -1) 0;
  padding: 2px var(--marge) 10px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.jours::-webkit-scrollbar { display: none; }
.jour {
  position: relative; flex: none; scroll-snap-align: start;
  width: 62px; height: 82px;
  display: grid; align-content: center; justify-items: center; gap: 1px;
  padding: 0;
  border: 1px solid var(--trait); border-radius: var(--rayon-s);
  background: var(--surface); color: var(--ivoire);
  transition: background-color .16s var(--sortie), border-color .16s var(--sortie), color .16s var(--sortie);
}
.jour:hover { border-color: var(--trait-fort); }
.jour span { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--taupe); }
.jour b { font-size: 21px; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; }
.jour[aria-pressed="true"], .jour.choisi { background: var(--ivoire); border-color: var(--ivoire); color: var(--noir); }
.jour[aria-pressed="true"] span, .jour.choisi span { color: var(--taupe-sombre); }
.jour--autre:focus-within { outline: 2px solid var(--or); outline-offset: 2px; }
.jour--autre { width: 84px; }
.jour--autre svg { margin-bottom: 4px; }
.jour--autre input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.champ { display: grid; gap: 8px; margin-top: 18px; }
.champ input, .champ textarea {
  width: 100%; min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--trait); border-radius: 12px;
  background: var(--surface); color: var(--ivoire-vif);
  font-size: 16px;                       /* 16 px : pas de zoom à la saisie sur iPhone */
  transition: border-color .16s var(--sortie), background-color .16s var(--sortie);
}
.champ textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.champ input::placeholder, .champ textarea::placeholder { color: #8F897E; }
.champ input:hover, .champ textarea:hover { border-color: var(--trait-fort); }
.champ input:focus-visible, .champ textarea:focus-visible { outline: none; border-color: var(--or); background: var(--surface-2); }
.champ.erreur input { border-color: var(--alerte); }
.champ-erreur { font-size: 13px; color: var(--alerte); }
.champ-note { font-size: 12.5px; color: var(--taupe); }
.champ--heure { margin-top: 22px; }
.champ--heure input { min-height: 64px; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo .champ { margin-top: 0; }

.case { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; line-height: 1.45; color: var(--ivoire); cursor: pointer; }
.case input {
  appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0;
  border: 1px solid var(--trait-fort); border-radius: 6px;
  background: var(--surface) center / 14px no-repeat;
  transition: background-color .16s var(--sortie), border-color .16s var(--sortie);
}
.case input:checked { background-color: var(--ivoire); border-color: var(--ivoire); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230B0E0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.4l2.7 2.6L11 4.3'/%3E%3C/svg%3E"); }
#erreur-accord { display: block; margin-top: 8px; }

/* ---------- passagers et bagages ---------- */

.compteurs { border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); }
.compteur { display: grid; grid-template-columns: 22px 1fr 44px 34px 44px; align-items: center; gap: 10px; padding: 16px 14px 16px 18px; }
.compteur + .compteur { border-top: 1px solid var(--trait); }
.compteur > svg { color: var(--taupe); }
.compteur-nom { font-size: 16px; }
.compteur .rond { border-color: var(--trait-fort); }
.compteur .rond:disabled { border-color: var(--trait); }
.compteur output { text-align: center; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ivoire-vif); }

/* ---------- véhicules ---------- */

.lecture { min-height: 44px; margin-bottom: 16px; }
.lecture-ligne { margin: 0; font-size: 15px; font-weight: 500; color: var(--ivoire-vif); }
.lecture-detail { margin: 2px 0 0; font-size: 13px; color: var(--taupe); }
.lecture-remarque { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--surface-2); font-size: 13.5px; line-height: 1.5; color: var(--ivoire); text-wrap: pretty; }

.vehicules { display: grid; gap: 10px; }
.vehicule {
  position: relative;
  display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 12px;
  min-height: 98px;
  padding: 10px 14px 10px 8px;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s var(--sortie), background-color .16s var(--sortie);
}
.vehicule:hover { border-color: var(--trait-fort); }
.vehicule input { position: absolute; opacity: 0; pointer-events: none; }
.vehicule.choisi { border-color: var(--or); background: linear-gradient(var(--or-voile), var(--or-voile)), var(--surface); }
.vehicule:has(input:focus-visible) { outline: 2px solid var(--or); outline-offset: 2px; }
.vehicule-image { aspect-ratio: 3 / 2; background: radial-gradient(ellipse 60% 26% at 50% 80%, rgba(215, 211, 203, .2), transparent 100%); }
.vehicule-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Courchevel : de vraies photos (neige), pas des détourés */
.vehicule-image--photo { background: none; }
.vehicule-image--photo img { object-fit: cover; border-radius: calc(var(--rayon) - 4px); }
.vehicule-nom { margin: 0; font-size: 16px; font-weight: 500; color: var(--ivoire-vif); }
.vehicule-gamme { margin: 1px 0 0; font-size: 12.5px; color: var(--taupe); }
.vehicule-place { display: flex; align-items: center; gap: 4px; margin: 7px 0 0; font-size: 12.5px; color: var(--taupe); font-variant-numeric: tabular-nums; }
.vehicule-place svg { width: 15px; height: 15px; }
.vehicule-place svg + span { margin-right: 8px; }
.vehicule-prix { text-align: right; font-variant-numeric: tabular-nums; }
.vehicule-prix b { display: block; font-size: 17px; font-weight: 600; color: var(--ivoire-vif); white-space: nowrap; }
.vehicule-prix small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--taupe); white-space: nowrap; }
.vehicule-prix .devis-mot { font-size: 13px; font-weight: 500; color: var(--taupe); }
.conseil {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  border: 1px solid rgba(201, 169, 98, .55); border-radius: 999px;
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--or);
  vertical-align: 2px;
}

.fantome { height: 98px; border-radius: var(--rayon); background: var(--surface); animation: pouls 1.2s ease-in-out infinite alternate; }
.fantome--ligne { height: 44px; }
.fantome--bloc { height: 240px; }
@keyframes pouls { to { opacity: .45; } }

.panne { padding: 18px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); }
.panne p { margin: 0 0 14px; font-size: 14px; color: var(--ivoire); }
.secondaire {
  min-height: 46px; padding: 0 18px;
  border: 1px solid var(--trait-fort); border-radius: 12px;
  background: none; color: var(--ivoire-vif); font-size: 14px; font-weight: 500;
  transition: background-color .16s var(--sortie);
}
.secondaire:hover { background: rgba(215, 211, 203, .07); }
.secondaire:active { background: rgba(215, 211, 203, .13); }
/* « Demander un devis sans payer », sous le formulaire d'une course chiffrée (demande de Seb, 02/11) */
.sans-carte { display: grid; gap: 8px; margin-top: 18px; }
.sans-carte .secondaire { width: 100%; }
.sans-carte .aide { margin: 0 2px; }

/* ---------- devis ---------- */

.billet { border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); }
.billet-part { padding: 16px 18px; }
.billet-part + .billet-part { border-top: 1px dashed var(--trait-fort); }
.parcours { display: grid; grid-template-columns: 9px 1fr; gap: 6px 14px; align-items: start; }
.parcours .lieu-puce { margin-top: 6px; }
.parcours p { margin: 0; font-size: 14.5px; line-height: 1.35; color: var(--ivoire-vif); }
.parcours-fil { grid-column: 1; width: 1px; height: 12px; margin: -4px auto; background: var(--trait-fort); }
.parcours-vide { grid-column: 2; }
.faits { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--taupe); }
.faits li { display: flex; align-items: center; gap: 6px; }
.faits svg { width: 15px; height: 15px; }

.lignes { margin: 0; display: grid; gap: 10px; }
.lignes div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lignes dt { font-size: 14.5px; color: var(--ivoire); }
.lignes dt small { display: block; font-size: 12.5px; color: var(--taupe); }
.lignes dd { margin: 0; font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ivoire-vif); }

.option { display: flex; align-items: center; gap: 14px; padding: 4px 0; cursor: pointer; }
.option + .option { margin-top: 10px; }
.option-texte { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ivoire); }
.option-texte small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--taupe); }
.option-prix { font-size: 13.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ivoire); }
.option input {
  appearance: none; flex: none; position: relative;
  width: 46px; height: 28px; margin: 0;
  border-radius: 999px; background: var(--taupe-sombre);
  transition: background-color .18s var(--sortie);
  cursor: pointer;
}
.option input::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--ivoire);
  transition: translate .18s var(--sortie), background-color .18s var(--sortie);
}
.option input:checked { background: var(--or); }
.option input:checked::after { translate: 18px 0; background: var(--noir); }

.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.total span { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.total b { font: 500 34px/1 var(--titre); color: var(--ivoire-vif); font-variant-numeric: lining-nums; white-space: nowrap; }

.explication { margin-top: 26px; }
.explication .lecture-remarque { margin: 0 0 14px; }
.explication h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ivoire-vif); }
.explication ol { margin: 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 10px; }
.explication li { counter-increment: e; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ivoire); text-wrap: pretty; }
.explication li::before { content: counter(e); font-size: 12px; font-weight: 600; line-height: 1.75; color: var(--taupe); font-variant-numeric: tabular-nums; }
.source { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--taupe); }

details.dispatch { margin-top: 18px; border-top: 1px solid var(--trait); }
details.dispatch summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: 13.5px; font-weight: 500; color: var(--ivoire); cursor: pointer; list-style: none; }
details.dispatch summary::-webkit-details-marker { display: none; }
details.dispatch summary svg { width: 18px; height: 18px; color: var(--taupe); transition: rotate .2s var(--sortie); }
details.dispatch[open] summary svg { rotate: 180deg; }
details.dispatch p { margin: 0 0 6px; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--surface-2); font-size: 13.5px; line-height: 1.55; color: var(--ivoire); }

.avis { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); font-size: 13.5px; line-height: 1.5; color: var(--ivoire); }
.regle { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--taupe); text-wrap: pretty; }

/* ---------- fin ---------- */

.vue--fin { text-align: center; padding-top: 6px; }
.logo-fin { width: 190px; height: auto; margin: 0 auto -6px; display: block; }
.vue--fin h1 { margin-top: 0; }
.vue--fin p { margin: 0 auto 14px; max-width: 34ch; font-size: 14.5px; line-height: 1.55; color: var(--ivoire); text-wrap: pretty; }
.vue--fin .avis { text-align: left; }
.vue--fin .billet { text-align: left; margin: 22px 0; }
.vue--fin .billet p { margin: 0; max-width: none; }
.app[data-vue="fin"] .tete .logo { visibility: hidden; }      /* le logo complet est déjà dans la page */
.contact { color: var(--ivoire-vif); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- barre d'action ---------- */

.barre {
  position: sticky; bottom: 0; z-index: var(--z-barre);
  padding: 12px var(--marge) max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--trait);
  background: var(--noir);
}
.barre-message { margin: 0 0 10px; font-size: 13.5px; line-height: 1.4; color: var(--alerte); }
.barre-ligne { display: flex; align-items: center; gap: 16px; }
.barre-prix { flex: none; display: grid; gap: 2px; }
.barre-prix strong { font-size: 20px; font-weight: 600; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ivoire-vif); }
.action {
  flex: 1; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: 12px;
  background: var(--ivoire); color: var(--noir);
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  transition: background-color .16s var(--sortie), scale .12s var(--sortie);
}
.action:hover { background: var(--ivoire-vif); }
.action:active { scale: .985; }
.action:disabled { background: var(--taupe-sombre); color: var(--taupe); cursor: default; scale: 1; }
.action[aria-busy="true"] { cursor: progress; }

/* ---------- recherche de lieu ---------- */

.recherche {
  width: 100%; max-width: 430px; height: 100%; max-height: none;
  margin: 0 auto; padding: 0;
  border: 0; background: var(--noir); color: var(--ivoire);
  z-index: var(--z-dialogue);
}
.recherche[open] { display: flex; flex-direction: column; animation: monte .22s var(--sortie); }
.recherche::backdrop { background: rgba(6, 8, 8, .82); }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
@media (min-width: 600px) { .recherche { border-inline: 1px solid var(--trait); } }
.recherche-tete { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: end; padding: max(12px, env(safe-area-inset-top)) var(--marge) 14px 10px; border-bottom: 1px solid var(--trait); }
.recherche-champ { display: grid; gap: 6px; }
.recherche-champ input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--trait-fort); border-radius: 12px;
  background: var(--surface); color: var(--ivoire-vif); font-size: 16px;
}
.recherche-champ input::placeholder { color: #8F897E; }
.recherche-champ input:focus-visible { outline: none; border-color: var(--or); }
.recherche-champ input::-webkit-search-cancel-button { filter: invert(.8); }
.recherche-liste { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 24px; }
.recherche-liste h2 { margin: 18px var(--marge) 4px; font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--taupe); }
.resultat {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center;
  width: 100%; min-height: 58px; padding: 10px var(--marge);
  border: 0; background: none; text-align: left;
  transition: background-color .12s var(--sortie);
}
.resultat:hover, .resultat:focus-visible { background: rgba(215, 211, 203, .06); outline: none; }
.resultat:active { background: rgba(215, 211, 203, .11); }
.resultat svg { color: var(--taupe); }
.resultat { grid-template-columns: 22px 1fr auto; }
.resultat span { font-size: 15px; line-height: 1.35; color: var(--ivoire-vif); }
.resultat small { font-size: 12.5px; color: var(--taupe); white-space: nowrap; font-variant-numeric: tabular-nums; }
.recherche-autour { margin: 18px var(--marge) -6px; font: 500 22px/1.2 var(--titre); color: var(--ivoire-vif); }
.recherche-etat { margin: 22px var(--marge); font-size: 14px; line-height: 1.5; color: var(--taupe); }
.recherche-liste .fantome { height: 46px; margin: 8px var(--marge); }

/* ---------- version ordinateur ----------
   Détection par la largeur de l'écran, pas par le navigateur : à partir de 1000 px, deux colonnes.
   Le parcours à gauche, le récapitulatif fixe à droite ; même page, même adresse, mêmes écrans. */

.corps, .colonne { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.recap { display: none; }

@media (min-width: 1000px) {
  html { background: var(--noir); }
  .app { max-width: 1160px; padding: 0 40px; border: 0; }
  .tete { padding: 22px 0 0; }
  .logo { height: 66px; }

  .corps { display: grid; grid-template-columns: minmax(0, 600px) 360px; justify-content: space-between; align-items: start; gap: clamp(32px, 5vw, 80px); padding-top: 18px; }
  .colonne { display: block; }
  .avance { padding: 14px 0 0; }
  main { padding: 0 0 4px; }
  h1 { margin: 26px 0 28px; font-size: 44px; }
  .aide { font-size: 14px; }

  /* la barre d'action quitte le bas de l'écran : elle suit le contenu, le total est dans le récapitulatif */
  .barre { position: static; padding: 24px 0 64px; border-top: 0; background: none; }
  .barre-prix { display: none; }
  .barre-ligne { justify-content: flex-end; }
  .action { flex: none; min-width: 260px; }

  /* deux semaines visibles d'un coup, sans défilement horizontal */
  .jours { flex-wrap: wrap; margin: 10px 0 0; padding: 0; overflow: visible; }
  .jour { width: auto; flex: 1 0 calc((100% - 48px) / 7); }
  .jour--autre { flex: 1 0 100%; height: 52px; grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; }
  .jour--autre svg { margin: 0; }
  .champ--heure { max-width: 280px; }

  .vehicule { grid-template-columns: 150px 1fr auto; gap: 18px; padding: 12px 20px 12px 10px; }
  .vehicule-prix b { font-size: 19px; }

  .recap { display: block; position: sticky; top: 28px; margin-top: 14px; }
  .recap h2 { margin: 0; font: 500 26px/1.1 var(--titre); color: var(--ivoire-vif); }
  .recap > .billet-part { padding-bottom: 2px; }
  .recap .parcours p.vide, .recap dd.vide { color: var(--taupe); }
  .recap .lignes dt { font-size: 13.5px; color: var(--taupe); }
  .recap .lignes dd { font-size: 14.5px; font-weight: 400; white-space: normal; text-align: right; }
  .recap .total b { font-size: 32px; }
  .recap .total .devis-mot { font: 500 15px/1.4 var(--texte); color: var(--taupe); }

  /* la recherche de lieu : un panneau centré, plus un plein écran */
  .recherche { width: 560px; max-width: calc(100vw - 48px); height: min(680px, 86dvh); margin: auto; border: 1px solid var(--trait-fort); border-radius: 18px; overflow: hidden; }
  .recherche-tete { padding: 16px var(--marge) 16px 12px; }

  /* écran final : une seule colonne, centrée */
  .app[data-vue="fin"] .corps { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .app[data-vue="fin"] .recap { display: none; }
  .app[data-vue="fin"] .barre-ligne { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fantome { animation: none; opacity: .7; }
}
