/* =========================================================
   RÉSERVER UN VTC — façon appli (carte plein écran + panneau)
   Téléphone : panneau en bas qui glisse vers le haut.
   Ordinateur : panneau flottant à gauche, carte derrière.
   ========================================================= */
:root {
  --bg: #13110f; --sheet: #0e0e11; --surface: #16161a; --surface-2: #1d1d22; --surface-3: #26262d;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --gold: #b69054; --gold-light: #ceb58d; --gold-soft: rgba(182, 144, 84, .13);
  --gold-grad: linear-gradient(135deg, #ceb48c 0%, #b69054 50%, #876a3a 100%);
  --text: #f3f6fc; --text-2: #e0d5c3; --muted: #8390ad; --red: #ef6b6b; --green: #4cc38a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --panneau: 440px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--bg); color: var(--text-2); font: 15px/1.5 "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--mini { width: 14px; height: 14px; opacity: .6; }

/* ---------- Carte ---------- */
.carte { position: fixed; inset: 0; z-index: 0; background: #23201c; }
.carte .leaflet-tile-pane { filter: invert(1) hue-rotate(190deg) brightness(.7) contrast(1.15) saturate(.28); }
.carte .leaflet-control-attribution { background: rgba(19, 17, 15, .7); color: #7d7970; font-size: 9px; }
.carte .leaflet-control-attribution a { color: #b5b0a5; }
.carte .leaflet-control-zoom { display: none; }
.repere { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 4px solid #181612; box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0, 0, 0, .6); }
.repere::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--gold); animation: onde 2s ease-out infinite; }
.repere--arrivee { background: #fff; border-radius: 5px; box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(0, 0, 0, .6); }
.repere--arrivee::after { display: none; }
@keyframes onde { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }
.voiture-repere { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #181612; border: 2px solid var(--gold-light); box-shadow: 0 6px 16px rgba(0, 0, 0, .7), 0 0 18px rgba(232, 207, 149, .35); color: var(--gold-light); }
.voiture-repere svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trace-route { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: trace 1.2s var(--ease) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.etiquette-carte { padding: 5px 10px; border-radius: 10px; background: rgba(19, 17, 15, .85); border: 1px solid rgba(182, 144, 84, .5); color: var(--text); font: 600 12px/1.2 "Poppins", sans-serif; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.etiquette-carte small { display: block; color: var(--gold-light); font-weight: 500; font-size: 10.5px; }

/* ---------- Barre du haut ---------- */
.haut { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.haut > * { pointer-events: auto; }
.marque { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(19, 17, 15, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.marque__logo { width: 34px; height: auto; }
.marque b { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 15px; color: var(--text); line-height: 1.1; }
.marque small { display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.haut__actions { display: flex; gap: 8px; }
.rond { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(19, 17, 15, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); color: var(--text); transition: border-color .2s, background-color .2s; }
.rond:hover { border-color: var(--gold); }
.rond--plat { width: 40px; height: 40px; background: var(--surface); backdrop-filter: none; }
.rond__badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #0b0b0c; font: 700 10.5px/18px "Poppins", sans-serif; font-style: normal; text-align: center; }

/* ---------- Panneau ---------- */
.feuille { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; max-height: 82svh; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; background: var(--sheet); border-top: 1px solid var(--line-2); box-shadow: 0 -24px 60px -10px rgba(0, 0, 0, .8); transition: transform .45s var(--ease); touch-action: pan-y; }
.feuille.is-reduite { transform: translateY(calc(100% - 118px)); }
.feuille.is-glisse { transition: none; }
.feuille__poignee { display: grid; place-items: center; width: 100%; height: 26px; flex: none; cursor: grab; touch-action: none; }
.feuille__poignee span { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); }
.feuille__defile { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px max(14px, env(safe-area-inset-bottom)); }
.vue { display: none; }
.vue.is-active { display: block; animation: vue .45s var(--ease); }
@keyframes vue { from { opacity: 0; transform: translateY(10px); } }
.salut { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.titre { margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 30px; line-height: 1.12; color: var(--text); }
.titre--petit { font-size: 22px; margin: 0; }
.titre--centre, .texte-centre { text-align: center; }
.entete-vue { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.entete-vue .titre { flex: 1; }

/* Modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.modes button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: background-color .25s, color .25s; }
.modes .ic { width: 18px; height: 18px; }
.modes button.is-actif { background: var(--gold-grad); color: #0b0b0c; font-weight: 600; }

/* Barre de recherche */
.barre-recherche { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 8px 8px 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: left; transition: border-color .2s, transform .2s; }
.barre-recherche:hover { border-color: rgba(182, 144, 84, .6); }
.barre-recherche:active { transform: scale(.99); }
.barre-recherche > .ic { color: var(--gold); width: 22px; height: 22px; }
.barre-recherche > span:first-of-type { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-recherche__quand { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 12px; border-radius: 12px; background: var(--surface-3); font-size: 12.5px; color: var(--text); }
.barre-recherche__quand .ic { width: 15px; height: 15px; color: var(--gold); }
.barre-recherche__quand b { font-weight: 600; }

.raccourcis { display: flex; gap: 8px; overflow-x: auto; margin: 14px -18px 6px; padding: 0 18px 4px; scrollbar-width: none; }
.raccourcis::-webkit-scrollbar { display: none; }
.raccourci { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); transition: border-color .2s; }
.raccourci:hover { border-color: rgba(182, 144, 84, .5); }
.raccourci .ic { width: 16px; height: 16px; color: var(--gold); }

.lieux-liste { list-style: none; margin: 4px 0 8px; padding: 0; }
.lieux-liste li button, .lieux-liste li.option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; border-radius: 0; }
.lieux-liste li:last-child button, .lieux-liste li.option:last-child { border-bottom: 0; }
.lieux-liste li button:hover, .lieux-liste li.option:hover, .lieux-liste li.option[aria-selected="true"] { background: rgba(255, 255, 255, .03); }
.lieux-liste .pictos { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.lieux-liste .pictos .ic { width: 18px; height: 18px; }
.lieux-liste .pictos--or { color: var(--gold); }
.lieux-liste b { display: block; color: var(--text); font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lieux-liste small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lieux-liste span:last-child { min-width: 0; }
.lieux-liste .titre-liste { padding: 14px 4px 4px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border: 0; }
.lieux-liste .vide { padding: 24px 4px; color: var(--muted); font-size: 13.5px; text-align: center; border: 0; }

.atouts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; padding: 0; }
.atouts li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--muted); line-height: 1.35; }
.atouts .ic { color: var(--gold); width: 20px; height: 20px; }
.atouts b { display: block; color: var(--text); font-size: 12.5px; font-weight: 600; }

/* ---------- Choix du véhicule ---------- */
.trajet-carte { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.trajet-carte__lieux { position: relative; flex: 1; min-width: 0; display: grid; gap: 6px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.trajet-carte__lieux:hover { border-color: rgba(182, 144, 84, .5); }
.trajet-carte__lieux span { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; color: var(--text); }
.trajet-carte__lieux em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-depart, .pt-arrivee { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.pt-arrivee { border-radius: 2px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.pastilles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pastille-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--text); }
.pastille-btn .ic:first-child { width: 16px; height: 16px; color: var(--gold); }
.vehicules { display: grid; gap: 10px; margin-bottom: 10px; }
.vehicule { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 8px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); text-align: left; transition: border-color .25s, background-color .25s, transform .2s; }
.vehicule:active { transform: scale(.99); }
.vehicule.is-actif { border-color: var(--gold); background: linear-gradient(120deg, rgba(182, 144, 84, .14), var(--surface) 65%); }
.vehicule:disabled { opacity: .4; cursor: not-allowed; }
.vehicule__img { width: 104px; height: 44px; transition: transform .5s var(--ease); }
.vehicule.is-actif .vehicule__img { transform: translateX(4px) scale(1.04); }
.vehicule__txt b { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15.5px; font-weight: 600; }
.vehicule__txt b i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.vehicule__txt b i .ic { width: 13px; height: 13px; }
.vehicule__txt small { display: block; color: var(--muted); font-size: 12px; }
.vehicule__txt .arrivee { color: var(--gold-light); font-size: 12px; font-weight: 500; }
.vehicule__prix { text-align: right; }
.vehicule__prix b { display: block; font-size: 19px; font-weight: 700; color: var(--text); }
.vehicule__prix small { font-size: 10.5px; color: var(--muted); }
.badge-top { position: absolute; top: -9px; left: 16px; padding: 2px 9px; border-radius: 99px; background: var(--gold-grad); color: #0b0b0c; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.nuit { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; color: var(--gold-light); }
.nuit .ic { width: 16px; height: 16px; }
.options { margin-bottom: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.options summary { display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; list-style: none; color: var(--text); font-size: 14px; font-weight: 500; }
.options summary::-webkit-details-marker { display: none; }
.options summary .ic { width: 16px; height: 16px; color: var(--gold); transition: transform .3s; }
.options[open] summary .ic { transform: rotate(45deg); }
.options summary small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.options__corps { display: grid; gap: 10px; padding: 0 14px 14px; }
.lien-detail { display: block; margin: 4px auto 6px; padding: 6px 10px; color: var(--gold-light); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.detail-prix { display: grid; gap: 6px; margin: 0 0 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px dashed rgba(182, 144, 84, .4); font-size: 13px; }
.detail-prix div { display: flex; justify-content: space-between; gap: 12px; }
.detail-prix dt { color: var(--muted); }
.detail-prix dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.detail-prix .total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.detail-prix .total dd { color: var(--gold-light); }
.detail-prix p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------- Champs et boutons ---------- */
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champ { display: grid; gap: 6px; margin-bottom: 12px; }
.champ > span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.champ small { color: var(--muted); font-weight: 400; }
.champ input, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: none; font-size: 16px; color-scheme: dark; transition: border-color .2s; }
.champ textarea { resize: vertical; min-height: 64px; }
.champ input:focus, .champ textarea:focus { border-color: var(--gold); }
.compteur { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; }
.compteur > span { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.compteur > span .ic { width: 18px; height: 18px; color: var(--gold); }
.compteur small { color: var(--muted); font-size: 12px; }
.compteur button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-3); color: var(--text); font-size: 20px; line-height: 1; }
.compteur button:disabled { opacity: .3; cursor: default; }
.compteur b { min-width: 26px; text-align: center; color: var(--text); font-size: 16px; }
.interrupteur { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--text); }
.interrupteur > span { flex: 1; }
.interrupteur small { display: block; color: var(--muted); font-size: 12px; }
.interrupteur input { position: absolute; opacity: 0; pointer-events: none; }
.interrupteur i { position: relative; width: 46px; height: 28px; flex: none; border-radius: 99px; background: var(--surface-3); transition: background-color .25s; }
.interrupteur i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.interrupteur input:checked + i { background: var(--gold); }
.interrupteur input:checked + i::after { transform: translateX(18px); }
.interrupteur input:focus-visible + i { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.bas-fixe { position: sticky; bottom: calc(-1 * max(14px, env(safe-area-inset-bottom))); z-index: 5; margin: 8px -18px 0; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(14, 14, 17, 0), var(--sheet) 28%); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 58px; padding: 10px 10px 10px 22px; border-radius: 18px; background: var(--gold-grad); color: #0b0b0c; font-weight: 700; font-size: 15.5px; box-shadow: 0 16px 36px -18px rgba(182, 144, 84, .9); transition: transform .2s, opacity .2s; }
.cta:only-child, .cta:not(:has(b)) { justify-content: center; padding: 10px 20px; }
.cta b { padding: 9px 14px; border-radius: 12px; background: rgba(0, 0, 0, .14); font-size: 16px; }
.cta b:empty { display: none; }
.cta:active { transform: scale(.985); }
.cta:disabled { opacity: .45; cursor: default; box-shadow: none; }
.cta.is-loading { position: relative; color: transparent; }
.cta.is-loading b { visibility: hidden; }
.cta.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .2); border-top-color: #fff; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.cta .ic { width: 20px; height: 20px; }
.bouton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; font-size: 14px; }
.bouton--discret { border-color: transparent; color: var(--muted); }
.bouton--danger { border-color: rgba(239, 107, 107, .4); color: #f4a0a0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recap { display: grid; gap: 8px; margin: 4px 0 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; }
.recap span:first-child { color: var(--muted); }
.recap span:last-child { color: var(--text); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.recap .total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; }
.recap .total span:last-child { font-weight: 700; color: var(--gold-light); }
.accord { display: flex; gap: 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.accord input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.accord a { color: var(--gold-light); text-decoration: underline; }
.erreur { margin: 0 0 8px; color: #f4a0a0; font-size: 13px; font-weight: 500; }
.erreur:empty { display: none; }
.mention { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ---------- Confirmation ---------- */
.bravo { position: relative; display: grid; place-items: center; height: 120px; margin: 4px 0 6px; }
.bravo__cercle { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--gold-grad); color: #0b0b0c; box-shadow: 0 20px 50px -15px rgba(182, 144, 84, .8); animation: pop .6s var(--ease); }
.bravo__cercle .ic { width: 42px; height: 42px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: coche .6s .3s forwards; }
.bravo__onde { position: absolute; width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--gold); animation: onde 1.8s ease-out infinite; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes coche { to { stroke-dashoffset: 0; } }
.texte-centre { margin: 0 0 16px; }
.texte-centre b { color: var(--gold-light); }
.course-carte { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.course-carte svg { width: 96px; height: 40px; }
.course-carte b { display: block; color: var(--text); font-size: 14px; }
.course-carte small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-fin { display: grid; gap: 10px; }
.actions-fin__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Suivi ---------- */
.statut { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.statut::before { content: ""; position: absolute; left: 16%; right: 16%; top: 17px; height: 2px; background: var(--surface-3); }
.statut div { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); }
.statut i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-style: normal; font-weight: 600; }
.statut i .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.statut .is-fait i { background: var(--gold); color: #0b0b0c; }
.statut .is-fait { color: var(--gold-light); }
.statut--annulee { padding: 12px; border-radius: 14px; background: rgba(239, 107, 107, .12); color: #f4a0a0; text-align: center; margin-bottom: 14px; font-weight: 500; }
.suivi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }

/* ---------- Recherche d'adresses ---------- */
.recherche { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 16px 16px; background: var(--sheet); animation: monte .35s var(--ease); }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }
.recherche__tete { display: flex; align-items: center; gap: 10px; }
.recherche__champs { position: relative; flex: 1; min-width: 0; display: grid; gap: 8px; }
.recherche__trait { position: absolute; left: 19px; top: 28px; bottom: 28px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 4px, transparent 4px 8px); pointer-events: none; }
.champ-lieu { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .2s; }
.champ-lieu:focus-within { border-color: var(--gold); }
.champ-lieu input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; outline: none; color: var(--text); font-size: 16px; }
.champ-lieu input::placeholder { color: #6f6c66; }
.ma-position { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 10px 4px; color: var(--text); font-weight: 500; font-size: 14.5px; text-align: left; }
.ma-position span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.ma-position .ic { width: 18px; height: 18px; }
.lieux-liste--resultats { flex: 1; min-height: 0; overflow-y: auto; margin-top: 4px; }

/* ---------- Petites fenêtres ---------- */
.fenetre { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; }
.fenetre__fond { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: fondu .25s; }
@keyframes fondu { from { opacity: 0; } }
.fenetre__corps { position: relative; width: 100%; max-height: 86svh; overflow-y: auto; display: grid; gap: 12px; padding: 22px 18px max(18px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #111114; border-top: 1px solid var(--line-2); animation: monte .4s var(--ease); }
.fenetre__corps .compteur { margin: 0; }
.choix-rapides { display: flex; gap: 8px; flex-wrap: wrap; }
.choix-rapides button { padding: 9px 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--text); }
.choix-rapides button:hover { border-color: var(--gold); }
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.courses a { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.courses b { color: var(--text); font-weight: 600; }
.courses small { color: var(--muted); font-size: 12.5px; }
.courses .vide { color: var(--muted); font-size: 13.5px; text-align: center; padding: 24px 0; }

.pied { padding: 20px 0 4px; font-size: 11px; color: #6b6861; text-align: center; }
.pied a { color: var(--text-2); }
.toast { position: fixed; z-index: 60; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 58px); transform: translate(-50%, -10px); max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: #1b1b20; border: 1px solid rgba(182, 144, 84, .4); color: var(--text); font-size: 13px; opacity: 0; transition: opacity .25s, transform .3s; pointer-events: none; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ordinateur : panneau flottant à gauche ---------- */
@media (min-width: 980px) {
  .feuille { left: 24px; right: auto; top: 88px; bottom: 24px; width: var(--panneau); max-height: none; border-radius: 26px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
  .feuille.is-reduite { transform: none; }
  .feuille__poignee { display: none; }
  .feuille__defile { padding: 22px 24px 18px; }
  .bas-fixe { bottom: -18px; margin: 8px -24px 0; padding: 12px 24px 18px; }
  .recherche { left: 24px; right: auto; top: 88px; bottom: 24px; width: var(--panneau); border-radius: 26px; border: 1px solid var(--line-2); padding: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
  .fenetre { align-items: center; justify-content: center; }
  .fenetre__corps { width: 420px; border-radius: 24px; border: 1px solid var(--line-2); }
  .raccourcis { flex-wrap: wrap; margin: 14px 0 6px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .trace-route { stroke-dashoffset: 0; } }

/* ---------- Réservation pas encore ouverte au public ---------- */
.ferme { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 80% at 50% 0%, rgba(182, 144, 84, .10), transparent 60%), var(--bg); }
.ferme__boite { width: min(400px, 100%); text-align: center; animation: fermeEntree .5s var(--ease) both; }
.ferme__logo { width: 76px; height: auto; margin: 0 auto 18px; display: block; }
.ferme__badge { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-light); border: 1px solid rgba(182, 144, 84, .35); font: 600 11px/1 "Poppins", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.ferme h1 { margin: 0 0 12px; font: 500 26px/1.2 "Playfair Display", Georgia, serif; color: var(--text); }
.ferme p { margin: 0 0 26px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.ferme .cta { position: static; width: 100%; justify-content: center; gap: 10px; text-decoration: none; }
.ferme .cta .ic { width: 18px; height: 18px; }
.ferme__lien { display: block; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14.5px; }
.ferme__lien + .ferme__lien { border-color: transparent; color: var(--muted); margin-top: 4px; }
.ferme__lien:hover { border-color: var(--gold); }
@keyframes fermeEntree { from { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   THÈME BLANC 2.0 — couleurs de l'ancien thème éclaircies
   ========================================================= */
:root { --bg: #f7f3ec; --sheet: #ffffff; --surface: #f7f3ec; --surface-2: #eee8dd; --surface-3: #e5ddcf; --line: rgba(0, 0, 0, 0.08); --line-2: rgba(0, 0, 0, 0.14); --gold: #ac864a; --gold-light: #ac864a; --gold-soft: rgba(172, 134, 74, 0.08); --gold-grad: #ac864a; --text: #0b0b0c; --text-2: #3a3a3f; --muted: #86868b; --red: #ac864a; --green: #1f9d5c; --ease: cubic-bezier(0.22, 1, 0.36, 1); }
html { color-scheme: light; }
.carte { background: #ffffff; }
.carte .leaflet-control-attribution { background: rgba(255, 255, 255, 0.9); color: #6e6e73; }
.carte .leaflet-control-attribution a { color: #3a3a3f; }
.repere { border: 4px solid rgba(0, 0, 0, 0.08); box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0, 0, 0, 0.18); }
.repere--arrivee { box-shadow: 0 0 0 2px #ffffff, 0 8px 18px rgba(0, 0, 0, 0.18); }
.voiture-repere { background: #ffffff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.21), 0 0 18px rgba(232, 207, 149, .35); }
.etiquette-carte { background: rgba(255, 255, 255, 0.9); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.marque { background: rgba(255, 255, 255, 0.9); }
.rond { background: rgba(255, 255, 255, 0.9); }
.feuille { box-shadow: 0 -24px 60px -10px rgba(0, 0, 0, 0.22); }
.lieux-liste li button:hover, .lieux-liste li.option:hover, .lieux-liste li.option[aria-selected="true"] { background: rgba(0, 0, 0, 0.024); }
.pt-arrivee { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
.bas-fixe { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), var(--sheet) 28%); }
.cta b { background: rgba(255, 255, 255, 0.9); }
.cta.is-loading::after { border: 3px solid rgba(0, 0, 0, 0.08); border-top-color: rgba(0, 0, 0, 0.14); }
.bouton--danger { color: #ac0c0c; }
.erreur { color: #ac0c0c; }
.statut--annulee { color: #ac0c0c; }
.fenetre__fond { background: rgba(255, 255, 255, 0.9); }
.fenetre__corps { background: #ffffff; }
.toast { background: #ffffff; }
@media (min-width: 980px) {
.feuille { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.22); }
.recherche { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.22); }
}
