:root {
  --bg: #0e0f11;
  --panel: #17191c;
  --panel-2: #1f2226;
  --line: #2a2d33;
  --text: #f3f1ea;
  --muted: #9a9ca3;
  --gold: #b89b40;
  --gold-soft: rgba(184, 155, 64, .16);
  --green: #5fcf80;
  --green-soft: rgba(95, 207, 128, .14);
  --green-flash: rgba(95, 207, 128, .08);
  --red: #ef6a6a;
  --red-soft: rgba(239, 106, 106, .15);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
.wrap { max-width: 620px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* En-tête */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 500; background: linear-gradient(var(--bg) 75%, transparent); }
.top .logo { height: 30px; width: auto; display: block; }
.top .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Onglets */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 16px; }
.tabs button { flex: 1; background: none; border: 0; padding: 12px 4px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-color: var(--gold); }

/* Liste */
.list { padding: 4px 16px 110px; }
.row { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 0; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.row:hover .ring { transform: scale(1.04); }
.ring { cursor: pointer; flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .15s; }
.ring b { font-size: 18px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ring.soon { border-color: var(--green); background: var(--green-soft); }
.ring.done { border-color: var(--line); background: var(--panel); }
.ring-plane { display: block; color: var(--gold); margin-top: 3px; line-height: 0; }
.ring-plane svg { width: 14px; height: 14px; fill: currentColor; }
.ring-plane.fly { animation: flyBob 1.6s ease-in-out infinite; }
.ring-plane.landed svg { transform: rotate(180deg); }
@keyframes flyBob {
  0%, 100% { transform: translateY(1px) rotate(90deg); }
  50% { transform: translateY(-2px) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .ring-plane.fly { animation: none; } }
.ring.done b { font-size: 13px; }
.ring.bad { border-color: var(--red); background: var(--red-soft); }
.ring.bad b { font-size: 13px; }
.info { flex: 1; min-width: 0; }
.line1 { display: flex; align-items: center; gap: 8px; }
.line1 .num { font-weight: 600; letter-spacing: .02em; }
.line1 .date { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.route { font-size: 17px; margin: 3px 0 4px; overflow-wrap: anywhere; }
.times { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.times b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.times s { opacity: .6; font-variant-numeric: tabular-nums; }
.times .late { color: var(--red); }
.times > span { white-space: nowrap; }
.term { background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; margin-left: 6px; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.al { width: 22px; height: 22px; border-radius: 5px; background: var(--panel-2); display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--muted); overflow: hidden; position: relative; flex: none; }
.al img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.late, .pill.bad { color: var(--red); border-color: var(--red); background: var(--red-soft); }
/* Retard : l'étiquette clignote (liste et fiche). */
.pill.late { animation: delayBlink 1.2s ease-in-out infinite; }
@keyframes delayBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.late { animation: none; } }
.pill.ok { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.pill.gold { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
/* Barre d'outils : langue et thème */
.tools { display: flex; gap: 4px; align-items: center; }
.top a.icon-btn[href="#reglages"] { margin-left: -6px; }
.top > button.tool-btn:first-of-type { margin-left: -16px; }
/* Drapeau de langue sans cercle, en mode sombre. */
html:not([data-theme="light"]) .tool-btn[data-act="lang"] { background: transparent; border-color: transparent; }
.icon-btn, .tool-btn { flex: none; aspect-ratio: 1; }
.tool-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; padding: 0; }
.tool-btn:hover { border-color: var(--gold); }
.tool-btn img { width: 24px; height: 17px; object-fit: cover; border-radius: 2px; }
.tool-btn svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Thème clair */
html { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ef; --panel: #ffffff; --panel-2: #eeece6; --line: #dcd8cd;
  --text: #17150d; --muted: #6d6a60; --gold: #9a7f2e; --gold-soft: rgba(154, 127, 46, .14);
  --green: #1f9d55; --green-soft: rgba(31, 157, 85, .12); --green-flash: rgba(31, 157, 85, .07); --red: #d64545; --red-soft: rgba(214, 69, 69, .10);
}
html[data-theme="light"] .fab { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
/* En mode clair, les trois icônes de l'en-tête (langue, thème, réglages) sans cercle blanc. */
html[data-theme="light"] .tool-btn, html[data-theme="light"] a.icon-btn[href="#reglages"] { background: transparent; border-color: transparent; }

/* Vols / Transferts : barre fixe en bas de l'écran (comme une application mobile). */
.tabs.mode-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; margin: 0; border-top: 1px solid var(--line); border-bottom: 0; background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.tabs.mode-tabs button { padding: 8px 4px 8px; border-bottom: 0; border-top: 2px solid transparent; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.tabs.mode-tabs button svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs.mode-tabs button.on { background: var(--gold); color: #fff; border-top-color: var(--gold); }
.tabs.mode-tabs button.on svg { color: #fff; }
#app:has(> .tabs.mode-tabs) { padding-bottom: 96px; }
@media print { .tabs.mode-tabs, .fab { display: none !important; } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.tsearch-wrap { padding: 8px 16px 0; }
.tsearch-wrap input[type=search] { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; color-scheme: dark; }
.tsearch-wrap input[type=search]:focus { border-color: var(--gold); }
html[data-theme="light"] .tsearch-wrap input[type=search] { color-scheme: light; }
.chip-filter { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 99px; padding: 6px 14px; white-space: nowrap; }
.chip-filter.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.tcard { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tcard-ref { color: var(--muted); font-size: 13px; margin-top: 6px; }
.tcard-client { font-weight: 600; font-size: 16px; margin-top: 2px; }
.tcard-route { margin-top: 6px; }
.tcard-flight { color: var(--text); letter-spacing: .02em; }
.tcard-extras { margin-top: 6px; font-size: 13px; color: var(--gold); }
/* Sièges enfant : moins d'1 an = rouge clignotant ; 1 à 4 ans = bleu fixe. */
.xbadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-right: 6px; white-space: nowrap; vertical-align: 1px; }
.xbadge.infant { color: #fff; background: var(--red); animation: delayBlink 1s ease-in-out infinite; }
.xbadge.toddler { color: #fff; background: #1e88e5; }
@media (prefers-reduced-motion: reduce) { .xbadge.infant { animation: none; } }
.trow b { text-align: left; }
.tcard-foot { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.tcard-foot b { color: var(--text); }
.troute { margin: 10px 0 0; }
.tstop { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.tstop small { display: block; color: var(--muted); font-size: 13px; }
/* Adresses sur une seule ligne, coupées par « … » si trop longues (liste et fiche). */
.tstop > div { flex: 1; min-width: 0; }
.tline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tstop .addr-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.tstop .addr-text { flex: 1; min-width: 0; font-weight: 600; color: var(--gold); overflow-wrap: anywhere; text-decoration: none; }   /* touche : navigation */
.tstop a.gmap-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.tstop a.gmap-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Texte de la fiche : sélectionnable et copiable (appui long). */
.sheet, .tdetail, .tdetail b, .tdetail span, .sub, .head, .head .num, .troute, .tstop small { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
.tdot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.tdot.g { background: #1faa6b; }
.tdot.r { background: #d64545; }
/* Détails en deux colonnes (libellé au-dessus de la valeur) ; lignes longues et contacts sur toute la largeur. */
.tdetail { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.tdetail .wide { grid-column: 1 / -1; }
.tdetail .contact-btns { grid-column: 1 / -1; border-bottom: 0; padding: 4px 0 6px; }
/* Valeurs sur une seule ligne : police plus petite dans les colonnes. */
.tdetail .trow:not(.wide) b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdetail .trow a { font-size: 13px; }
/* Contacter le client : WhatsApp (vert), SMS, appel. */
.contact-btns { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.contact-btns .btn { flex: 1 1 0; min-width: 90px; text-decoration: none; color: var(--text); }
.contact-btns .btn.wa { background: #25d366; border-color: #25d366; color: #fff; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; margin: 0 0 6px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tmap .leaflet-control-attribution { background: transparent; color: rgba(255, 255, 255, .35); font-size: 8px; line-height: 1.2; padding: 0 4px 1px; }
html[data-theme="light"] #tmap .leaflet-control-attribution { color: rgba(0, 0, 0, .35); }
.tmap { height: 110px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
a.gmap { color: inherit; text-decoration: none; }
a.gmap b { color: var(--gold); border-bottom: 1px dotted var(--gold); }
a.gmap:hover b { border-bottom-style: solid; }
.trow { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; min-width: 0; overflow-wrap: anywhere; }
.trow span { color: var(--muted); font-size: 12px; }
.trow a { color: var(--gold); }
.day-title { font-size: 14px; font-weight: 600; color: var(--gold); margin: 22px 0 0; letter-spacing: .02em; text-transform: capitalize; }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.route .flag { margin: 0 6px 0 0; vertical-align: middle; position: relative; top: -2px; }
.flag.big { width: 30px; height: 21px; margin: 0; vertical-align: middle; }
.leg .city .flag { margin-right: 6px; vertical-align: middle; position: relative; top: -1px; }
.leg.r .city, .leg.r .iata, .leg.r s, .leg.r .time, .leg.r .day { text-align: right; }
.row { touch-action: pan-y; transition: transform .2s ease; }
.row[data-hint="delete"] { background: var(--red-soft); }
.row[data-hint="refresh"] { background: var(--green-soft); }
/* Vol qui vient d'être ajouté : toute la ligne clignote d'un vert très léger, d'un bord à l'autre, sans contour.
   La marge négative compense le retrait de la liste (16 px) : le contenu ne bouge pas. */
.row.flash { animation: flashGreen .7s ease-in-out 2; border-radius: 0; box-shadow: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; width: calc(100% + 32px); }
@keyframes flashGreen { 0%, 100% { background: transparent; } 50% { background: var(--green-flash); } }
@media (prefers-reduced-motion: reduce) { .row.flash { animation: none; background: var(--green-flash); } }
.empty { text-align: center; color: var(--muted); padding: 64px 24px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; font-weight: 600; }
/* Bouton + : 20 px au-dessus de la barre d'onglets du bas (hauteur mesurée par l'application, 64 px par défaut). */
.fab { position: fixed; right: max(20px, calc(50vw - 290px)); bottom: calc(var(--tabbar-h, 64px) + 20px); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; font-size: 32px; line-height: 1; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); z-index: 600; }
.fab:hover { filter: brightness(1.1); }
/* Archives (vols passés) : même taille que le +, en bas à gauche. */
/* Archives dans l'en-tête, à côté du thème : icône nue, sans cercle. */
.icon-plain { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--text); display: grid; place-items: center; }
.icon-plain svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-plain.on { color: var(--gold); }
.fab-archive { left: auto; right: max(20px, calc(50vw - 290px)); bottom: 152px; background: var(--panel); color: var(--text); border: 1px solid var(--line); font-size: 0; display: grid; place-items: center; }
.fab-archive:hover { border-color: var(--gold); filter: none; }
.fab-archive svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fab-archive.on { background: var(--gold); border-color: var(--gold); color: #fff; }
html[data-theme="light"] .fab-archive { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }


/* Fiche */
.sheet { background: var(--bg); border-radius: 20px 20px 0 0; margin-top: 0; position: relative; z-index: 2; padding: 14px 14px 28px; flex: 1; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.head .num { font-size: 20px; font-weight: 600; }
.head .pill { margin-left: auto; font-size: 13px; padding: 4px 12px; }
.head-l { display: flex; align-items: center; gap: 10px; }
a.num { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.head-r { position: static; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }   /* durée du vol sous le statut */
.head-r .pill { margin-left: 0; }
.dur { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.legs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; border-top: 1px dashed var(--line); padding-top: 12px; }
.leg .city { color: var(--muted); font-size: 14px; }
.leg .iata { font-size: 38px; font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.leg .time { font-size: 22px; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.leg .time.late { color: var(--red); }
.leg s { display: block; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.leg .day { color: var(--muted); font-size: 13px; }
.leg.r { text-align: right; }
.mid { text-align: center; color: var(--muted); font-size: 13px; }
.mid svg { width: 26px; height: 26px; fill: var(--text); display: block; margin: 0 auto 4px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.chips > div { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chips > div.r { justify-content: flex-end; grid-column: 2; }
.chip { border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; font-size: 14px; background: var(--panel); }
.chip.gold { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
.chip small { color: var(--muted); font-size: 12px; margin-right: 4px; }
.chip.gold small { color: #fff; }
/* Terminaux : 1 = violet, 2 = bleu (liste et fiche). */
.term.t1, .chip.t1 { background: #7e57c2; border-color: #7e57c2; color: #fff; }
.term.t2, .chip.t2 { background: #1e88e5; border-color: #1e88e5; color: #fff; }
.chip.t1 small, .chip.t2 small { color: #fff; }
.banner { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); border: 1px solid var(--red); font-size: 15px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Formulaires */
label.f { display: block; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
label.f > span { display: block; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; color-scheme: dark; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); padding: 11px 20px; min-height: 46px; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.cal-on { background: var(--gold); border-color: var(--gold); color: #14120a; font-weight: 600; }
.btn.cal-off { background: #c0392b; border-color: #c0392b; color: #fff; font-weight: 600; }
.btn.wide { width: 100%; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1em; }
.msg.err { color: var(--red); }

/* Connexion */
.auth { margin: auto; width: 100%; max-width: 400px; padding: 32px 20px; }
.auth .logo { height: 44px; display: block; margin: 0 0 26px; }
.auth h1 { font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.auth p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.auth .check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; cursor: pointer; }
.auth .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
/* Lien texte sans bordure ni fond (ex. « Pas encore de compte ? »). */
.auth .text-link-wrap { position: fixed; left: 0; right: 0; bottom: 50px; margin: 0; text-align: center; }
/* Écran de connexion : formulaire remonté de 80 px. */
.auth:has(.text-link-wrap) { position: relative; top: -80px; }
.auth .text-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--gold); font-size: 15px; text-decoration: underline; cursor: pointer; }

/* Fenêtre d'ajout */
.overlay { position: fixed; inset: 0 0 var(--tabbar-h, 0px) 0; background: rgba(0, 0, 0, .65); z-index: 900; display: flex; align-items: flex-start; justify-content: center; }
.dialog { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; width: calc(100% - 20px); max-width: 620px; margin-top: 60px; max-height: calc(100dvh - 76px - var(--tabbar-h, 0px)); overflow: auto; padding: 20px 16px 30px; }
.dialog h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; display: flex; align-items: center; }
.dialog h2 button { margin-left: auto; }
/* Espace sous « Rechercher le vol » : 20 px au total (le bloc d'erreur n'ajoute plus de hauteur quand il est vide). */
#addMsg { margin-top: 0; min-height: 0; }
/* Accès rapide aux 10 prochains jours (pastilles). */
.day-picks { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; }
.day-pick { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; line-height: 1.1; }
.day-pick small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.day-pick b { font-size: 16px; font-weight: 600; }
.day-pick.on { background: var(--gold); border-color: var(--gold); }
.day-pick.on small, .day-pick.on b { color: #fff; }

/* Réglages */
.settings { padding: 0 16px 60px; }
.settings h1 { font-size: 24px; margin: 6px 0 14px; font-weight: 600; }
details.sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; }
details.sec > summary { padding: 15px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 20px; font-weight: 400; }
details.sec[open] > summary::after { content: "–"; }
details.sec > summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
details.sec > div { padding: 0 16px 18px; }
.bar { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--gold); }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.item small { color: var(--muted); display: block; font-size: 13px; }
.logbox { font-size: 13px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.logbox div { padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.logbox time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.logbox .error { color: var(--red); }

/* Bon de commande : document blanc, imprimable (la barre d'outils n'est pas imprimée). */
.voucher-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 14px 64px; }
.v-close { position: fixed; top: 12px; right: 16px; z-index: 600; }
.v-back { position: fixed; top: 12px; left: 16px; z-index: 600; }
.voucher { background: #fff; color: #17150d; max-width: 760px; margin: 0 auto 40px; padding: 28px 28px 22px; border-radius: 6px; font-size: 14px; line-height: 1.45; }
.voucher h1 { margin: 0; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: #1b365d; }
.voucher h2 { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6d6a60; }
.v-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 2px solid #1b365d; padding-bottom: 12px; }
.v-head p { margin: 4px 0 0; color: #6d6a60; font-size: 13px; }
.v-ref { text-align: right; } .v-ref b { display: block; font-size: 16px; } .v-ref small { color: #6d6a60; }
.v-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.v-missing { color: #d64545; font-weight: 600; }
.v-table { width: 100%; border-collapse: collapse; }
.v-table th, .v-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid #e6e2d8; }
.v-table th { width: 38%; font-weight: 500; color: #6d6a60; }
.v-table tr:nth-child(odd) { background: #f8f6f1; }
.v-price { margin: 18px 0 0 auto; max-width: 300px; }
.v-price div { display: flex; justify-content: space-between; padding: 4px 0; }
.v-price .v-total { border-top: 2px solid #1b365d; margin-top: 4px; padding-top: 8px; font-size: 17px; }
.v-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #e6e2d8; font-size: 11px; color: #6d6a60; }
@media (max-width: 560px) { .v-parties { grid-template-columns: 1fr; } .voucher { padding: 20px 16px; } .v-head { flex-direction: column; } .v-ref { text-align: left; } }
@media print {
  .no-print, #toast { display: none !important; }
  html, body { background: #fff !important; }
  .voucher { margin: 0; padding: 0; max-width: none; border-radius: 0; }
}

#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #f3f1ea; color: #14120a; padding: 10px 18px; border-radius: 99px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; }
#toast.err { background: #c0392b; color: #fff; left: 40px; right: 40px; transform: none; max-width: none; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Croix pour vider le champ du numéro de vol */
.clear-wrap { position: relative; display: block; }
.clear-wrap input { padding-right: 40px; }
.clear-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.clear-x[hidden] { display: none; }
.clear-x:hover { color: var(--text); }
.clear-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* Code aéroport cliquable (Google Maps) */
.iata-link { color: inherit; text-decoration: none; }
.iata-link:hover { color: var(--gold); }

/* Carte de la fiche vol : 20 px sous les notes */
.fmap { margin-top: 20px; }
#notes { display: block; }   /* sans l'espace sous la zone de texte */

/* Carte plein écran d'un aéroport (clic sur le code IATA) */
.ap-overlay { align-items: stretch; }
.ap-sheet { background: var(--bg); width: 100%; max-width: 620px; height: 100%; display: flex; flex-direction: column; }
.ap-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
.ap-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-head b { font-size: 22px; font-weight: 600; }
.ap-head span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-map { flex: 1; min-height: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-hint { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13px; text-align: center; }
/* Étiquette d'aéroport sur la carte : posée au-dessus du point, cliquable (Google Maps) */
.ap-pin { background: none; border: 0; }
.ap-label { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 2px 7px; border-radius: 7px; color: #fff; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.45); max-width: 220px; }
.ap-label.dep { background: #1faa6b; }
.ap-label.arr { background: #d64545; }
.ap-label b { font-size: 12px; line-height: 1.2; letter-spacing: .03em; }
.ap-label small { font-size: 11px; opacity: .95; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ap-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }
.ap-label.dep::after { border-top-color: #1faa6b; }
.ap-label.arr::after { border-top-color: #d64545; }
.fmap { cursor: pointer; }

/* Fiche vol : numéro et date en haut à gauche, statut et durée en haut à droite */
.head.fl { align-items: flex-start; }
.fl-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.head.fl .head-r { flex: none; }
.ap-pin a.ap-label, .ap-pin a.ap-label b, .ap-pin a.ap-label small { color: #fff; text-decoration: none; }

/* Avancement estimé du vol : barre toute largeur sous les terminaux et portes */
.fprog { margin-top: 14px; }
.fprog[hidden] { display: none; }
.fprog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; white-space: nowrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.fprog-top b { color: var(--text); font-weight: 600; font-size: 14px; }
.fprog-bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin: 0 12px 6px; }
.fprog-fill { height: 100%; border-radius: 99px; background: var(--gold); }
.fprog-plane { position: absolute; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%) rotate(90deg); color: var(--gold); }
.fprog-plane svg { width: 24px; height: 24px; fill: currentColor; stroke: var(--bg); stroke-width: 1; }
/* Avion sur les cartes (position estimée) */
.plane-pin { background: none; border: 0; }
.plane-ico { display: block; width: 26px; height: 26px; color: #b89b40; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.plane-ico svg { width: 26px; height: 26px; fill: currentColor; stroke: #fff; stroke-width: 1; }
.plane-lbl { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 6px; }

/* Barre d'alerte en haut : notifications push non activées sur cet appareil */
.push-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #c0392b; color: #fff; font-size: 14px; line-height: 1.35; }
.push-bar span { flex: 1; }
.push-bar .btn.small { background: #fff; color: #c0392b; border-color: #fff; font-weight: 600; flex: none; }
.push-bar-x { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.push-bar-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.fprog-note { font-size: 11px; color: var(--muted); text-align: right; }



/* Tirer pour actualiser : pas de rafraîchissement natif du navigateur, indicateur de l'app */
html, body { overscroll-behavior-y: contain; }
.ptr { position: fixed; left: 50%; top: 0; z-index: 950; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.35); display: grid; place-items: center; opacity: 0; transform: translate(-50%, -50px); pointer-events: none; transition: opacity .15s; }
.ptr svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ptr.spin { transform: translate(-50%, 70px) !important; }
.ptr.spin svg { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Fiche transfert : note sous « M'assigner » */
.assign-hint { margin: 6px 4px 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Choix de l'application de navigation (fiche transfert) : feuille en bas, au-dessus de la barre d'onglets */
.nav-overlay { align-items: flex-end; }
.nav-sheet { background: var(--bg); width: 100%; max-width: 620px; border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.nav-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.nav-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-head b { font-size: 18px; font-weight: 600; }
.nav-head span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-app { color: var(--text); text-decoration: none; font-weight: 600; }
.nav-app { justify-content: flex-start; gap: 12px; padding-left: 16px; }
.nav-ico { width: 28px; height: 28px; border-radius: 7px; flex: none; object-fit: contain; }
.nav-ico.gen { display: grid; place-items: center; background: var(--line); }
.nav-ico.gen svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-always { margin-top: 4px; font-size: 14px; }
/* Réglages : choix de l'application de navigation */
.nav-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nav-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.nav-opt:has(input:checked) { border-color: var(--gold); }
.nav-opt input { accent-color: var(--gold); margin: 0; }

/* Barre du bas : Réglages en bas à droite, bouton plus étroit */
.tabs.mode-tabs button.tab-settings { flex: 0 0 72px; border-left: 1px solid var(--line); }

/* ==================== Dispatch, partenaires, messagerie, planning ==================== */
input[type=color] { width: 100%; height: 46px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.text-link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: 14px; }
.hint.center { text-align: center; padding: 30px 0; }
.bad-txt { color: var(--red); } .gold-txt { color: var(--gold); }
[hidden] { display: none !important; }

/* Barre du bas : libellés et logo cachés sur téléphone (montrés sur ordinateur), pastilles de compteur */
.tabs.mode-tabs .tab-lbl, .tabs.mode-tabs .side-logo { display: none; }
.tabs.mode-tabs button { position: relative; }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; font-style: normal; }

/* Inscription : client ou chauffeur partenaire */
.seg { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 14px 0 4px; background: var(--panel); }
.seg button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 99px; color: var(--muted); }
.seg button.on { background: var(--gold); color: #fff; font-weight: 600; }

/* Liste des transferts : chauffeur ou état du dispatch */
.tcard-disp { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.tcard-disp svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tcard-disp.ok { color: var(--green); } .tcard-disp.gold { color: var(--gold); } .tcard-disp.bad { color: var(--red); }

/* Fiche transfert : une colonne sur téléphone (carte sous le trajet), deux sur ordinateur */
.tsheet { display: flex; flex-direction: column; }
.tcol-a, .tcol-b { display: contents; }
.tsheet .o1 { order: 1; } .tsheet .o2 { order: 2; } .tsheet .o3 { order: 3; } .tsheet .o4 { order: 4; } .tsheet .o5 { order: 5; } .tsheet .o6 { order: 6; }
#teamPanel:empty { display: none; }
.dpanel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; }
.dpanel-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.btns.tight { gap: 8px; margin-top: 10px; }
.btns.tight .btn { flex: 1 1 0; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.gold-line { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.btn.danger-fill { background: #c0392b; border-color: #c0392b; color: #fff; font-weight: 600; }
.drv-card { display: flex; align-items: center; gap: 12px; }
.drv-card .grow { flex: 1; min-width: 0; }
.drv-card b { display: block; }
.drv-card small { display: block; color: var(--muted); font-size: 13px; }
.drv-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.drv-ava.sm { width: 32px; height: 32px; font-size: 12px; }
.drv-pending { display: flex; gap: 14px; align-items: center; }
.drv-pending small { display: block; color: var(--muted); font-size: 13px; }
.pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 155, 64, .6); } 100% { box-shadow: 0 0 0 14px rgba(184, 155, 64, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse, .plan-item.soon .pdot { animation: none; } }
.dp-open b { display: block; }
.dp-open small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dp-note { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 6px; font-size: 14px; }
.dp-note small { display: block; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.collect { font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.collect small { color: var(--muted); font-weight: 400; }
.dpanel > .btn.wide { margin-top: 8px; }
.fi-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 600; }
.fi-line.late { background: var(--red-soft); color: var(--red); }
.fi-line svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Étapes de la course */
.stage-steps { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stage-steps li { position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 22px; line-height: 1.25; }
.stage-steps li i { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); z-index: 1; }
.stage-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stage-steps li:first-child::before { display: none; }
.stage-steps li.done { color: var(--text); }
.stage-steps li.done i { background: var(--green); border-color: var(--green); }
.stage-steps li.done::before { background: var(--green); }
.stage-steps li.next i { border-color: var(--gold); }
.stage-steps time { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-next { font-size: 17px; min-height: 54px; }
.stage-undo { display: block; margin: 10px auto 0; }
.warn-box { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); border: 1px solid var(--red); color: var(--text); font-size: 14px; margin-top: 10px; }
.warn-box > b { color: var(--red); font-size: 20px; line-height: 1; }

/* Fenêtre « Proposer à un partenaire » */
.dp-dialog .sub { margin-bottom: 6px; }
.dp-sel.off { opacity: .4; pointer-events: none; }
div.f { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
div.f > span { display: block; margin-bottom: 6px; }
.grp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 6px 12px; color: var(--text); cursor: pointer; font-size: 14px; }
.grp-chip input { display: none; }
.grp-chip i, .gtag i, .gdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.grp-chip small { color: var(--muted); }
.grp-chip:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.dp-filter { margin-bottom: 8px; }
.dp-list { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.dp-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }
.dp-row:last-child { border-bottom: 0; }
.dp-row input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.dp-row .grow { min-width: 0; }
.dp-row b { display: block; font-weight: 600; font-size: 15px; }
.dp-row small { display: block; color: var(--muted); font-size: 12px; }
.dp-row em { font-style: normal; } .dp-row em.bad { color: var(--red); }
.gtag { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.gdot { width: 14px; height: 14px; }

/* Partenaire : propositions et courses */
.cards { display: grid; gap: 12px; }
.cards .tcard { margin-bottom: 0; cursor: pointer; }
.tcard.offer { border-color: var(--gold); }
.offer-price { color: var(--gold); font-size: 18px; }
.tcard .btns.tight { margin-top: 12px; }

/* Messagerie */
.chat-page { height: calc(100dvh - var(--tabbar-h, 64px)); min-height: 0; }
#app:has(.chat-page) { padding-bottom: var(--tabbar-h, 64px); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.chat-head .spacer { flex: 1; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.msg-b { max-width: 82%; padding: 8px 12px 6px; border-radius: 16px; font-size: 15px; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.msg-b.me { align-self: flex-end; background: var(--gold); color: #fff; border-bottom-right-radius: 4px; }
.msg-b.them { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-b time { display: block; font-size: 11px; opacity: .7; text-align: right; margin-top: 2px; }
.msg-ref { display: inline-block; font-size: 12px; font-weight: 700; color: inherit; margin-bottom: 2px; }
.chat-form { border-top: 1px solid var(--line); padding: 8px 12px 10px; background: var(--bg); }
.chat-ref { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.chat-ref button { border: 0; background: none; color: var(--muted); padding: 0; width: 20px; height: 20px; }
.chat-ref svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row textarea { min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; }
.chat-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; }
.chat-send svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.thread .grow { flex: 1; min-width: 0; }
.thread b { display: block; }
.thread small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.unread b, .thread.unread small { color: var(--text); font-weight: 700; }
.thread-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 12px; }
.thread-r .tab-badge { position: static; }

/* Planning du jour */
.plan { padding: 0 16px 20px; }
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 12px; }
.plan-bar h1 { font-size: 22px; font-weight: 600; margin: 0; flex: 1 1 auto; }
.plan-date { display: flex; align-items: center; gap: 8px; }
.plan-date .icon-btn { font-size: 22px; line-height: 1; color: var(--text); }
.plan-day { position: relative; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); white-space: nowrap; }
.plan-day input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.plan-map-wrap { position: relative; }
.plan-map { height: 56vh; min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-slider { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); }
.plan-slider .icon-btn svg { fill: var(--text); stroke: none; }
.plan-slider input[type=range] { flex: 1; accent-color: var(--gold); min-width: 0; }
.plan-slider select { width: auto; padding: 6px 8px; border-radius: 99px; }
.ps-time { font-variant-numeric: tabular-nums; font-size: 18px; min-width: 52px; }
.plan-est { margin: 6px 4px 0; }
.plan-list { margin-top: 12px; }
.plan-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; margin-bottom: 8px; background: var(--panel); cursor: pointer; transition: opacity .2s; }
.plan-item .grow { flex: 1; min-width: 0; }
.plan-item small { color: var(--muted); font-size: 13px; }
.pi-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pi-top span { color: var(--muted); font-size: 13px; }
.pdot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.plan-item.active { box-shadow: 0 0 0 2px var(--c); }
.plan-item.done { opacity: .5; }
.plan-item.soon .pdot { animation: pulse 1.4s ease-out infinite; }
.plan-car { background: none; border: 0; }
.plan-car span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.plan-car svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leaflet-tooltip.plan-lbl { background: rgba(14, 15, 17, .82); color: #fff; border: 0; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; box-shadow: none; }
.leaflet-tooltip.plan-lbl::before { display: none; }

/* ==================== Ordinateur : barre latérale, pages larges ==================== */
@media (min-width: 1000px) {
  :root { --side-w: 236px; }
  .tabs.mode-tabs { top: 0; bottom: 0; right: auto; width: var(--side-w); flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 14px 18px; border-top: 0; border-right: 1px solid var(--line); background: var(--panel); }
  .tabs.mode-tabs .side-logo { display: block; padding: 4px 12px 26px; }
  .tabs.mode-tabs .side-logo img { height: 34px; width: auto; display: block; }
  .tabs.mode-tabs button { flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-radius: 10px; font-size: 15px; color: var(--muted); }
  .tabs.mode-tabs button svg { width: 22px; height: 22px; }
  .tabs.mode-tabs button:hover { background: var(--panel-2); color: var(--text); }
  .tabs.mode-tabs button.on { background: var(--gold); color: #fff; }
  .tabs.mode-tabs .tab-lbl { display: inline; }
  .tabs.mode-tabs button.tab-settings { margin-top: auto; flex: none; border-left: 0; }
  .tabs.mode-tabs .tab-badge { position: static; margin-left: auto; }
  #app:has(> .tabs.mode-tabs) { padding-bottom: 0; padding-left: var(--side-w); }
  body:has(.tabs.mode-tabs) .push-bar { margin-left: var(--side-w); }
  .overlay { left: var(--side-w); }
  #toast { left: calc(50% + var(--side-w) / 2); bottom: 40px; }
  #toast.err { left: calc(var(--side-w) + 40px); }
  .fab { right: 40px; bottom: 40px; }

  .wrap { max-width: 1180px; padding: 0 28px; }
  .wrap.wide { max-width: 1520px; }
  .wrap:has(> .sheet:not(.tsheet)) { max-width: 860px; }
  .top { padding: 18px 0 12px; }
  #app:has(> .tabs.mode-tabs) .top > a:first-child .logo { display: none; }   /* logo dans la colonne de gauche ; pages de connexion : logo dans l'en-tête */
  .tsearch-wrap { padding: 8px 0 0; max-width: 560px; }

  /* Listes en grille */
  .list { padding: 4px 0 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 28px; align-content: start; }
  .list > :not(.row):not(.tcard) { grid-column: 1 / -1; }
  .list > .tcard { margin-bottom: 14px; }
  .list:has(> .tcard) { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 16px; }
  .list .row { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .list.pr { display: block; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

  /* Fiche transfert : détails à gauche, carte et actions à droite (fixes au défilement) */
  .sheet { padding: 6px 0 40px; }
  .tsheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 32px; align-items: start; }
  .tcol-a, .tcol-b { display: block; }
  .tcol-b { position: sticky; top: 76px; }
  .tcol-b .tmap { height: 320px; margin-top: 0; }
  .tsheet .head .num { font-size: 26px; }
  .tdetail { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Réglages sur deux colonnes */
  .settings { padding: 0 0 60px; }

  .dialog { margin-top: 70px; max-width: 680px; }
  .chat-page { max-width: 980px; height: 100dvh; }
  #app:has(.chat-page) { padding-bottom: 0; }

  /* Planning : carte à gauche, liste à droite, sur toute la hauteur */
  .plan { padding: 0 0 20px; }
}
.dpanel a.btn, .chat-head a.btn, .plan-item a.btn, .thread a.btn { color: var(--text); text-decoration: none; }
.list.pr .day-title { text-transform: none; }

/* ==================== Connexion des espaces client et chauffeur : présentation de marque ==================== */
.brand-login { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; margin: 0 auto; padding: 0 20px 40px; }
.bl-intro { padding: 0 0 6px; }
.bl-logo { height: 46px; width: auto; max-width: 100%; display: block; margin: 0 0 24px; align-self: flex-start; object-fit: contain; object-position: left center; }
.bl-kicker { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.bl-intro h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 10px; font-weight: 600; letter-spacing: -.01em; }
.bl-intro p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.5; }
.bl-book { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.bl-book b { font-weight: 600; }
.bl-book .btn { text-decoration: none; min-height: 40px; padding: 8px 18px; }
.auth.bl-form { margin: 6px 0 0; padding: 22px 20px 24px; max-width: none; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.bl-form h2 { margin: 0 0 2px; font-size: 20px; font-weight: 600; }
.bl-form > p { margin-top: 4px; }
.bl-reg { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.bl-reg .btn { margin-top: 8px; }
@media (min-width: 1100px) {
  .brand-login { max-width: 1100px; flex-direction: row; align-items: center; gap: 56px; padding: 3vh 28px 60px; min-height: calc(100dvh - 90px); }
  .bl-intro { flex: 1 1 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 8px 0 0; }
  .bl-logo { height: 60px; margin-bottom: 44px; }
  .bl-intro h1 { font-size: 44px; }
  .bl-intro p { font-size: 18px; max-width: 480px; }
  .bl-book { margin-top: 36px; max-width: 480px; background: var(--bg); }
  .auth.bl-form { flex: 0 0 400px; margin: 0; }
}

/* ==================== Photos de profil et onglet Utilisateurs ==================== */
.drv-ava { overflow: hidden; }
.drv-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drv-ava.lg { width: 52px; height: 52px; font-size: 17px; }
.drv-ava.xl { width: 76px; height: 76px; font-size: 24px; }
.av-edit { display: flex; align-items: center; gap: 16px; margin: 2px 0 14px; }
.av-btns { flex: 1; min-width: 0; }
.av-btns .btns.tight { margin-top: 0; }
.av-btns .btns.tight .btn { flex: 0 0 auto; }
.av-btns small { display: block; margin-top: 6px; }
.chat-head .drv-ava { font-size: 12px; }

.users-page .us-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.users-page .us-head h1 { margin: 6px 0 10px; }
.us-search { padding: 0 0 4px; }
.chip-filter small { opacity: .7; margin-left: 2px; }
.ugrid { display: grid; gap: 12px; }
.ucard { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ucard.pending { border-color: var(--gold); }
.ucard.off { opacity: .6; }
.uc-top { display: flex; gap: 12px; align-items: center; }
.uc-top .grow { flex: 1; min-width: 0; }
.uc-top b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.uc-lines { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.uc-lines a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-lines a:hover { color: var(--gold); }
.uc-meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.uc-groups { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.uc-since { font-size: 12px; color: var(--muted); }
.ucard .btns.tight { margin-top: auto; padding-top: 4px; }
.ucard a.btn { color: var(--text); text-decoration: none; }
.us-groups-title { text-transform: none; margin-top: 28px; }
.us-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.grp-card { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; color: var(--text); text-align: left; }
.grp-card span { display: flex; flex-direction: column; }
.grp-card small { color: var(--muted); font-size: 12px; }
.grp-card.add { border-style: dashed; color: var(--gold); font-weight: 600; }
@media (min-width: 700px) { .ugrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

/* Espace client : photos du site (vipazur.fr) derrière la présentation, fondu de 3 s et zoom lent, voile sombre pour le texte */
.bl-intro.has-photo { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 22px; padding: 26px 22px 22px; background: #0e0f11; border: 0; }
.bl-slides, .bl-slides i { position: absolute; inset: 0; }
.bl-slides { z-index: -1; }
.bl-slides i { background-size: cover; background-position: center; opacity: 0; transition: opacity 2.5s ease-in-out; transform: scale(1); will-change: opacity, transform; z-index: 0; }
.bl-slides i.on { opacity: 1; z-index: 2; animation: heroZoom 10s linear forwards; }
/* Photo sortante : reste visible sous la nouvelle pendant son fondu, et garde son zoom (même animation, qui continue). */
.bl-slides i.prev { opacity: 1; z-index: 1; animation: heroZoom 10s linear forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.bl-slides::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, .45) 40%, rgba(8, 9, 11, .82) 100%); }
.bl-intro.has-photo .bl-kicker { color: #d9be6a; }
.bl-intro.has-photo h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.bl-intro.has-photo p { color: rgba(255, 255, 255, .88); }
.bl-intro.has-photo .bl-book { background: rgba(14, 15, 17, .55); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .bl-slides i { transition: none; } .bl-slides i.on { animation: none; } }
@media (min-width: 1100px) {
  .bl-intro.has-photo { padding: 56px 52px; border-radius: 28px; justify-content: flex-end; min-height: 560px; }
  .bl-intro.has-photo .bl-book { background: rgba(14, 15, 17, .55); }


}

/* Connexion et inscription : en-tête comme sur vipazur.fr (logo en haut à gauche, drapeau juste après) */
.bl-page .top .logo, .wrap:has(> .auth) .top .logo { height: 38px; }
.bl-page .top { padding-top: 18px; }
@media (min-width: 900px) { .bl-page .top { width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 28px 8px; } }

/* ==================== Survol des boutons comme sur vipazur.fr ====================
   Le bouton prend les couleurs inverses en 0,3 s : clair/doré → foncé (thème clair) ou foncé → clair (thème sombre),
   soit fond var(--text) et texte var(--bg). Rouge pour les boutons « danger », WhatsApp reste vert.
   Seulement avec une vraie souris (pas d'état de survol bloqué sur téléphone après un appui). */
.btn, .chip-filter, .icon-btn, .tool-btn, .fab, .chat-send, .grp-card, .grp-chip, .seg button, .day-pick, .icon-plain, .text-link,
.tabs.mode-tabs button, .icon-btn svg, .tool-btn svg, .chat-send svg, .fab svg {
  transition: background-color .3s, color .3s, border-color .3s, stroke .3s, fill .3s;
}
@media (hover: hover) {
  .btn:not(:disabled):hover, .chip-filter:hover, .fab:hover, .grp-card:hover, .day-pick:hover {
    background: var(--text); color: var(--bg); border-color: var(--text); filter: none;
  }
  .grp-card:hover small, .day-pick:hover small, .day-pick:hover b, .chip-filter:hover small { color: var(--bg); }
  .btn.danger:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
  .btn.danger-fill:not(:disabled):hover, .btn.cal-off:not(:disabled):hover { background: #101010; border-color: #101010; color: #fff; }
  .contact-btns .btn.wa:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
  .icon-btn:hover, .tool-btn:hover, .chat-send:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .icon-btn:hover svg, .tool-btn:hover svg, .chat-send:hover svg { stroke: var(--bg); }
  .plan-slider .icon-btn:hover svg { fill: var(--bg); stroke: none; }
  html:not([data-theme="light"]) .tool-btn[data-act="lang"]:hover, html[data-theme="light"] .tool-btn:hover { background: var(--text); border-color: var(--text); }
  .icon-plain:hover, .text-link:hover { color: var(--gold); }
  .grp-chip:hover { border-color: var(--text); }
  .seg button:not(.on):hover { color: var(--text); }
  /* Bandeau rouge des notifications : bouton blanc → noir. */
  .push-bar .btn.small:hover { background: #101010; border-color: #101010; color: #fff; }
  /* Espace client, sur la photo : bouton doré → blanc, comme le bouton doré de l'accueil du site. */
  .bl-intro.has-photo .btn:not(:disabled):hover { background: #fafafa; border-color: #fafafa; color: #101010; }
  /* Colonne de gauche (ordinateur) : lien survolé en clair, onglet actif inchangé. */
  .tabs.mode-tabs button:not(.on):hover { color: var(--text); }
}

/* Carte plein écran du vol sur ordinateur : grande fenêtre centrée (et non une bande étroite), fond cliquable pour fermer */
@media (min-width: 1000px) {
  .ap-overlay { align-items: center; justify-content: center; padding: 32px; }
  .ap-sheet { width: min(1200px, 100%); height: min(860px, 100%); max-width: none; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
  .ap-head { padding: 16px 20px; }
}

/* Boutons-liens : jamais soulignés, comme les boutons du site. */
a.btn { text-decoration: none; }

/* Carte de trajet (transfert, proposition) : cliquable comme celle du vol ; arrêt intermédiaire en or */
.tmap.clickable { cursor: pointer; }
.ap-label.mid { background: #b89b40; }
.ap-label.mid::after { border-top-color: #b89b40; }

/* ==================== Réglages : rubriques à gauche, rubrique choisie à droite (ordinateur) ==================== */
.set-nav { display: none; }
@media (min-width: 1000px) {
  .settings h1 { margin: 6px 0 20px; }
  #sbody.set-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; }
  .set-nav { display: flex; flex-direction: column; gap: 4px; grid-column: 1; grid-row: 1; position: sticky; top: 80px; }
  .set-nav button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; background: none; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; }
  .set-nav button small { font-size: 12px; opacity: .8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .set-nav button.on { background: var(--gold); color: #fff; font-weight: 600; }
  .set-nav button.on small { font-weight: 400; }
  .set-panel { grid-column: 2; grid-row: 1 / span 2; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 28px; min-height: 420px; }
  .set-layout details.sec { display: none; border: 0; background: none; margin: 0; }
  .set-layout details.sec.cur { display: block; }
  .set-layout details.sec > summary { padding: 18px 0 6px; font-size: 22px; cursor: default; pointer-events: none; }
  .set-layout details.sec > summary::after { display: none; }
  .set-layout details.sec > summary small { font-size: 14px; }
  .set-layout details.sec > div { padding: 0; max-width: 760px; }
  .set-layout .set-save { margin: 22px 0 0 !important; max-width: 760px; }
  .set-layout .set-save-off { display: none; }
  /* Se déconnecter : sous la liste des rubriques. */
  #sbody.set-layout > .btns:last-child { grid-column: 1; grid-row: 2; margin: 18px 0 0 !important; }
  #sbody.set-layout > .btns:last-child .btn { min-height: 40px; }
  .set-layout .logbox { max-height: 60vh; }
}
@media (hover: hover) and (min-width: 1000px) {
  .set-nav button:not(.on):hover { background: var(--text); color: var(--bg); }
}

/* Réglages : icône devant chaque rubrique (liste sur ordinateur, titre sur téléphone) */
.set-ico { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--gold); font-style: normal; }
.set-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
details.sec > summary .set-ico { margin-right: 2px; }
@media (min-width: 1000px) {
  .set-nav button { flex-direction: row; align-items: center; gap: 12px; }
  .set-txt { display: flex; flex-direction: column; min-width: 0; }
  .set-nav button.on .set-ico { color: #fff; }
  .set-layout details.sec > summary .set-ico { width: 26px; height: 26px; }
  .set-layout details.sec > summary .set-ico svg { width: 24px; height: 24px; }
}
@media (hover: hover) and (min-width: 1000px) { .set-nav button:not(.on):hover .set-ico { color: var(--bg); } }

/* Planning : bouton de date (ouvre le calendrier) */
button.plan-day { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: inherit; }
button.plan-day svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-dayhead { margin: 14px 0 8px; text-transform: none; }
.plan-dayhead:first-child { margin-top: 0; }
@media (hover: hover) { button.plan-day:hover { background: var(--text); color: var(--bg); border-color: var(--text); } button.plan-day:hover svg { stroke: var(--bg); } }

/* Calendrier du Planning : choix rapides, jours ronds, période en bande arrondie (bouts de semaine et de mois) */
.cal-overlay { align-items: center; }
.cal-dialog { max-width: 420px; margin-top: 0; padding: 20px 18px 22px; }
.cal-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.cal-presets .chip-filter { padding: 6px 12px; font-size: 13px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.cal-head b { font-size: 16px; font-weight: 600; }
.cal-head .icon-btn { width: 36px; height: 36px; font-size: 20px; line-height: 1; color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.cal-grid i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal-grid button { position: relative; height: 42px; padding: 0; border: 0; background: none; color: var(--text); font-size: 15px; display: grid; place-items: center; }
.cal-grid button span { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, color .2s; }
/* Bande de la période : derrière les ronds, arrondie aux extrémités */
.cal-grid button.in::before, .cal-grid button.from::before, .cal-grid button.to::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: var(--gold-soft); }
.cal-grid button.from::before { left: 50%; }
.cal-grid button.to::before { right: 50%; }
.cal-grid button.in.ws::before { left: 2px; border-radius: 99px 0 0 99px; }
.cal-grid button.in.we::before { right: 2px; border-radius: 0 99px 99px 0; }
.cal-grid button.from.we::before, .cal-grid button.to.ws::before { display: none; }
.cal-grid button.edge span { background: var(--gold); color: #fff; font-weight: 700; }
.cal-grid button.today:not(.edge) span { box-shadow: inset 0 0 0 1.5px var(--gold); font-weight: 600; }
.cal-sel { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.cal-sel b { color: var(--text); }
.cal-hint { text-align: center; margin-top: 4px; }
.cal-dialog .btns { margin-top: 14px; }
@media (hover: hover) { .cal-grid button:not(.edge):hover span { background: var(--text); color: var(--bg); } }

/* Barre « Installer l'app » (téléphone) */
.install-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--gold); color: #fff; font-size: 14px; line-height: 1.35; }
.install-bar img { flex: none; border-radius: 50%; }
.install-bar span { flex: 1; }
.install-bar .btn.small { background: #fff; color: #101010; border-color: #fff; font-weight: 600; flex: none; }

/* Fenêtres au-dessus des cartes (les boutons +/− de Leaflet ont z-index 1000) ; messages au-dessus des fenêtres */
.overlay { z-index: 1100; }
#toast { z-index: 1200; }

/* Planning : transferts en bande horizontale au-dessus (défilement sur le côté), carte sur toute la largeur en dessous */
.plan-main { display: flex; flex-direction: column; gap: 12px; }
.plan-list { order: -1; margin: 0; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.plan-list > .empty, .plan-list > .hint { flex: 1; padding: 18px 0; }
.plan-list .plan-item { position: relative; flex: 0 0 250px; margin: 0; align-items: flex-start; padding: 10px 12px 10px 14px; scroll-snap-align: start; }
.plan-list .plan-item .pdot { margin-top: 5px; }
.plan-list .plan-item .tline { font-size: 14px; margin: 2px 0; }
.plan-list .plan-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-list .plan-item .pi-top { padding-right: 58px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.plan-list .plan-item a.btn { position: absolute; top: 8px; right: 8px; min-height: 28px; padding: 2px 10px; font-size: 12px; }
/* Plusieurs jours : la date en tête de chaque groupe, dans la bande */
.plan-list .plan-dayhead { scroll-snap-align: start; flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; margin: 0; padding: 0 10px; max-width: 92px; font-size: 13px; line-height: 1.25; border-left: 2px solid var(--gold); white-space: normal; }
.plan-list .plan-dayhead:first-child { border-left: 0; padding-left: 2px; }
.plan-map { height: 62vh; }
@media (min-width: 1000px) {
  .plan-map { height: calc(100dvh - 330px); min-height: 420px; }
}
/* Téléphone : curseur du temps sur sa propre ligne, sous lecture / heure / vitesse */
@media (max-width: 699px) {
  .plan-slider { flex-wrap: wrap; border-radius: 18px; row-gap: 6px; }
  .plan-slider .ps-time { flex: 1; font-size: 16px; }
  .plan-slider input[type=range] { order: 5; flex: 1 0 100%; }
}
/* Bande du Planning : main pour glisser à la souris ; pas d'aimantation ni de sélection de texte pendant le glissement */
@media (hover: hover) { .plan-list { cursor: grab; } .plan-list .plan-item a.btn { cursor: pointer; } }
.plan-list.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.plan-list.dragging * { cursor: grabbing; }

/* Ordinateur : drapeau de langue juste à côté du logo, dans la colonne de gauche (comme sur vipazur.fr) */
.tabs.mode-tabs .side-top { display: none; }
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-top { display: flex; align-items: center; gap: 2px; padding: 4px 0 26px 12px; }
  .tabs.mode-tabs .side-top .side-logo { padding: 0; }
  .tabs.mode-tabs .side-top .tool-btn { background: transparent; border-color: transparent; }
  #app:has(> .tabs.mode-tabs) .top .tool-btn[data-act="lang"] { display: none; }
}
/* Drapeau à côté du logo : petit bouton rond centré, collé au logo (n'hérite pas du style des onglets de la colonne) */
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-top { gap: 8px; }
  .tabs.mode-tabs .side-top .tool-btn { flex: none; width: 30px; height: 30px; padding: 0; margin: 0; display: grid; place-items: center; place-content: center; gap: 0; border: 0; border-radius: 50%; background: transparent; }
  .tabs.mode-tabs .side-top .tool-btn img { width: 24px; height: 17px; display: block; }
}
@media (hover: hover) and (min-width: 1000px) {
  html .tabs.mode-tabs .side-top .tool-btn:hover, html .tabs.mode-tabs .side-top .tool-btn:focus { background: transparent !important; border-color: transparent !important; opacity: .75; }
}

/* Espace client : flèche de retour à gauche du logo */
.top-back { flex: none; width: 36px; height: 36px; margin-right: -4px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.top-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .top-back:hover { background: var(--text); color: var(--bg); } }
/* Espace client (ordinateur) : panneau photo à la hauteur du formulaire de connexion, pas de toute la page */
@media (min-width: 1100px) {
  .bl-intro.has-photo { align-self: center; height: 800px; min-height: 0; max-height: calc(100dvh - 120px); padding: 40px 44px; }
  .bl-intro.has-photo h1 { font-size: 38px; }
  .bl-intro.has-photo .bl-book { margin-top: 26px; }
}

/* Inscription client sans réservation */
.nb-panel h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.nb-panel p { color: var(--muted); margin: 0; line-height: 1.5; }
/* Tablette et petits écrans (moins de 1100 px) : présentation au-dessus, formulaire en dessous, centrés */
@media (min-width: 700px) and (max-width: 1099px) {
  .brand-login { max-width: 640px; }
  .bl-intro.has-photo { min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 34px; }
  .bl-intro.has-photo h1 { font-size: 34px; }
  .bl-page .top { width: 100%; max-width: 640px; margin: 0 auto; padding: 22px 20px 8px; }
}

/* ==================== Inscription chauffeur (dossier VTC) ==================== */
.reg-wrap { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 4px 16px 60px; }
.reg-intro h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 10px; font-weight: 600; }
.reg-intro p { color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.reg-steps { display: none; }
.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; scroll-margin-top: 20px; }
.reg-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.reg-sec h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.reg-sec label.f { margin-top: 12px; }
.reg-grid { display: grid; grid-template-columns: 1fr; column-gap: 16px; }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.doc-tile { border: 1.5px dashed var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.doc-tile.done { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.doc-head b { font-size: 14px; }
.doc-tile small { color: var(--muted); font-size: 12px; }
.doc-files { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-files li { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.doc-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-files button, .mf-file button { border: 0; background: none; color: var(--muted); padding: 0; width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.doc-files svg, .mf-file svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.doc-add { align-self: flex-start; margin-top: 6px; cursor: pointer; }
@media (min-width: 700px) {
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .reg-sec { padding: 22px 24px 24px; }
}
@media (min-width: 1100px) {
  .reg-wrap { flex-direction: row; align-items: flex-start; gap: 40px; padding: 10px 28px 80px; }
  .reg-intro { flex: 0 0 300px; position: sticky; top: 24px; }
  .reg-intro h1 { font-size: 34px; }
  .reg-steps { display: flex; flex-direction: column; gap: 2px; list-style: none; padding: 0; margin: 18px 0 20px; counter-reset: st; }
  .reg-steps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; counter-increment: st; }
  .reg-steps a::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; }
  .reg-form { flex: 1; min-width: 0; }
  .doc-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (hover: hover) { .reg-steps a:hover { background: var(--text); color: var(--bg); } .doc-tile:not(.done):hover { border-color: var(--gold); } }

/* Dossier du chauffeur : alertes, informations, pièces */
.dos-dialog { max-width: 760px; }
.dos-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.dos-flags { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dos-flag { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.dos-flags .dos-flag { margin-top: 0; }
.dos-flag.bad { background: var(--red-soft); color: var(--red); }
.dos-flag.warn { background: var(--gold-soft); color: var(--gold); }
.dos-flag.ok { background: var(--green-soft); color: var(--green); }
.dos-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dos-docs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dos-doc { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.dos-doc.miss { border-color: var(--red); }
.dos-doc em { color: var(--muted); font-style: normal; font-size: 13px; }
.dos-doc.miss em { color: var(--red); font-weight: 600; }
.dos-doc a { color: var(--gold); overflow-wrap: anywhere; }
.mf-docs { margin-top: 16px; }
.mf-file { display: flex; align-items: center; gap: 6px; }
.mf-docs .text-link { margin-top: 4px; font-size: 13px; cursor: pointer; align-self: flex-start; }
.dos-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; margin-left: 4px; }
@media (min-width: 700px) { .dos-docs { grid-template-columns: 1fr 1fr; } .dos-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==================== Choix de la langue (11 langues du site) ==================== */
.lang-drop-bg { position: fixed; inset: 0; z-index: 1150; }
.lang-list.drop { position: fixed; min-width: 220px; max-height: 72vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); padding: 6px; }
.lang-opt { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: var(--text); padding: 9px 12px; border-radius: 10px; font-size: 15px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.lang-opt img { width: 24px; height: 17px; border-radius: 2px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-opt span { flex: 1; }
.lang-opt i { font-style: normal; color: var(--gold); font-weight: 700; }
.lang-opt.on { background: var(--gold-soft); }
@media (hover: hover) { .lang-opt:hover { background: var(--text); color: var(--bg); } .lang-opt:hover i { color: var(--bg); } }
/* Téléphone : plein écran */
.overlay.lang-full { align-items: stretch; justify-content: stretch; background: var(--bg); }
.lang-list.full { width: 100%; height: 100%; overflow: auto; padding: 14px 16px 24px; padding-top: max(14px, env(safe-area-inset-top)); }
.lang-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 10px; }
.lang-head b { font-size: 22px; font-weight: 600; }
.lang-list.full .lang-opt { padding: 15px 8px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
.lang-list.full .lang-opt img { width: 32px; height: 23px; }

/* ==================== Arabe : de droite à gauche ==================== */
[dir="rtl"] .back-link svg, [dir="rtl"] .top-back svg, [dir="rtl"] .chat-head .icon-plain svg { transform: scaleX(-1); }
[dir="rtl"] .fab { right: auto; left: max(20px, calc(50vw - 290px)); }
[dir="rtl"] .tabs.mode-tabs button.tab-settings { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .plan-list .plan-item a.btn { right: auto; left: 8px; }
[dir="rtl"] .plan-list .plan-item .pi-top { padding-right: 0; padding-left: 58px; }
[dir="rtl"] .reg-steps a::before { margin: 0; }
[dir="rtl"] input[type=email], [dir="rtl"] input[type=tel], [dir="rtl"] input[type=password], [dir="rtl"] input[type=number] { direction: ltr; text-align: right; }
@media (min-width: 1000px) {
  [dir="rtl"] .tabs.mode-tabs { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); }
  [dir="rtl"] #app:has(> .tabs.mode-tabs) { padding-left: 0; padding-right: var(--side-w); }
  [dir="rtl"] .overlay { left: 0; right: var(--side-w); }
  [dir="rtl"] body:has(.tabs.mode-tabs) .push-bar { margin-left: 0; margin-right: var(--side-w); }
  [dir="rtl"] .fab { left: 40px; right: auto; }
  [dir="rtl"] #toast { left: calc(50% - var(--side-w) / 2); }
  [dir="rtl"] #toast.err { left: 40px; right: calc(var(--side-w) + 40px); }
  [dir="rtl"] .tabs.mode-tabs .side-top { padding: 4px 12px 26px 0; }
}

/* Client : réserver un nouveau transfert sur vipazur.fr (onglet + bouton en haut de la liste) */
.tabs.mode-tabs button.tab-book { color: var(--gold); }
.cbook { margin: 4px 0 12px; }
.cbook .btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cbook .btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (min-width: 1024px) { .cbook .btn { width: auto; display: inline-flex; padding-left: 26px; padding-right: 26px; } }
/* Client : contacter le chauffeur attribué (WhatsApp, SMS, appel) */
.drv-contact { border-bottom: 0; padding: 12px 0 4px; }
/* Arabe (droite à gauche) : le trait entre deux étapes part vers la droite */
[dir="rtl"] .stage-steps li::before { left: auto; right: -50%; }
/* Photo du chauffeur : cartes de la liste des transferts et ligne « Attribué à » de la fiche */
.drv-ava.xs { width: 22px; height: 22px; font-size: 9px; }
.as-who { display: inline-flex; align-items: center; gap: 8px; }
/* Planning sur ordinateur : transferts sur la moitié haute (grille qui défile), carte sur la moitié basse ; plus de curseur du temps */
@media (min-width: 1000px) {
  .plan-page .plan-main { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; height: calc(100dvh - 230px); min-height: 520px; }
  .plan-page .plan-list { order: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; gap: 10px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; padding: 2px 4px 2px 2px; cursor: auto; }
  .plan-page .plan-list .plan-item { flex: none; min-width: 0; }
  .plan-page .plan-list .plan-dayhead { grid-column: 1 / -1; max-width: none; border-left: 0; padding: 6px 2px 0; }
  .plan-page .plan-map-wrap { display: flex; flex-direction: column; min-height: 0; }
  .plan-page .plan-map { flex: 1; height: auto; min-height: 0; }
  .plan-page .plan-est { margin: 6px 0 0; }
  .wrap.plan-page { min-height: 0; }
}
/* Téléphone : la barre de dates du Planning passe à la ligne au lieu de déborder */
@media (max-width: 699px) {
  .plan-date { flex-wrap: wrap; max-width: 100%; }
  .plan-day { min-width: 0; max-width: calc(100vw - 132px); }
  .plan-day b { overflow: hidden; text-overflow: ellipsis; }
}

/* ==================== Réservation dans l'app (#reserver, book.js) ==================== */
.bk-page { padding: 0 16px 120px; }
.bk-title { font-size: 24px; font-weight: 600; margin: 6px 0 12px; }
.bk-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; }
.bk-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--line); min-width: 0; }
.bk-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-steps li i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; }
.bk-steps li i svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-steps li.on { color: var(--text); border-color: var(--gold); }
.bk-steps li.on i { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-steps li.done { color: var(--text); border-color: var(--gold); }
.bk-steps li.done i { border-color: var(--gold); color: var(--gold); }
.bk-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.bk-h { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
/* Adresses : deux champs l'un sous l'autre, bouton pour inverser */
.bk-places { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.bk-place { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 56px 8px 12px; }
.bk-place[data-side="to"] { border-top: 1px solid var(--line); }
.bk-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.bk-mark.to { background: var(--panel-2); color: var(--text); }
.bk-mark svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-mark svg path[d^="M11 3h2"], .bk-sugg-ic svg path[d^="M11 3h2"] { fill: currentColor; stroke: none; }
.bk-pl { flex: 1; min-width: 0; display: block; }
.bk-pl small { display: block; font-size: 12px; color: var(--muted); }
.bk-pl input[type=text] { width: 100%; border: 0; background: transparent; padding: 2px 0; min-height: 0; font-size: 16px; outline: none; box-shadow: none; border-radius: 0; }
.bk-swap { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; z-index: 2; color: var(--text); }
.bk-swap svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-sugg { position: absolute; left: 8px; right: 8px; top: calc(100% - 4px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.bk-sugg button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; background: none; border: 0; border-radius: 9px; padding: 9px 8px; }
.bk-sugg button.on, .bk-sugg button:focus-visible { background: var(--panel-2); }
.bk-sugg b { display: block; font-weight: 600; font-size: 15px; }
.bk-sugg small { display: block; color: var(--muted); font-size: 13px; }
.bk-sugg-ic { flex: none; color: var(--muted); padding-top: 2px; }
.bk-sugg-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bk-quick { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.bk-quick::-webkit-scrollbar { display: none; }
.bk-quick .chip-filter { font-size: 14px; }
.bk-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: bkspin .8s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }
/* Véhicules */
.bk-vehs { display: grid; gap: 10px; }
.bk-veh { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 6px; color: var(--text); }
.bk-veh.on { border-color: var(--gold); background: var(--gold-soft); }
.bk-veh-img img { width: 112px; height: 63px; object-fit: contain; display: block; }
.bk-veh-name { display: block; font-size: 16px; font-weight: 600; }
.bk-veh-meta { display: flex; gap: 12px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.bk-veh-meta span { display: inline-flex; align-items: center; gap: 4px; }
.bk-veh-meta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-veh-price { text-align: right; }
.bk-veh-price b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-veh-price small { display: inline-block; margin-top: 4px; font-size: 12px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.bk-veh.on .bk-veh-price small { background: var(--gold); border-color: var(--gold); color: #fff; }
/* Sièges enfant */
.bk-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bk-h + .bk-extra { border-top: 0; padding-top: 0; }
.bk-extra b { display: block; font-weight: 600; }
.bk-extra small { color: var(--muted); font-size: 13px; }
.bk-qty { display: flex; align-items: center; gap: 4px; flex: none; }
.bk-qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-qty button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--text); }
.bk-qty button:disabled { opacity: .35; cursor: default; }
.bk-extra.on .bk-qty button[data-d="1"]:not(:disabled) { border-color: var(--gold); color: var(--gold); }
/* Pourboire : cercles comme sur le formulaire du site */
.bk-tipcard { text-align: center; }
.bk-tips { display: flex; justify-content: center; gap: 12px; }
.bk-tips button { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--text); font-weight: 600; }
.bk-tips button.on { background: var(--gold); color: #fff; }
/* Récapitulatif */
.bk-recap-head { display: flex; align-items: baseline; justify-content: space-between; }
.bk-when { font-weight: 600; margin-bottom: 8px; }
.bk-route { display: grid; gap: 6px; }
.bk-route div { display: flex; gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.bk-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: translateY(1px); }
.bk-dot.to { background: transparent; border: 2px solid var(--text); }
.bk-lines { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.bk-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bk-line span { color: var(--muted); }
.bk-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-line.total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; }
.bk-line.total span { color: var(--text); font-weight: 600; }
/* Barre du bas : total + boutons, collée au-dessus de la barre d'onglets */
.bk-bar { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 10px); z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); margin: 4px 0 14px; }
.bk-bar .btn { min-height: 44px; }
.bk-bar-total { flex: 1; text-align: center; line-height: 1.15; }
.bk-bar-total small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bk-bar-total b { font-size: 19px; font-variant-numeric: tabular-nums; }
.bk-ov { align-items: center; }
.bk-dialog { margin: 16px; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.bk-dialog h2 { margin: 0 0 8px; font-size: 19px; }
.bk-dialog p { margin: 0; color: var(--muted); }
.bk-dialog a.btn { text-decoration: none; }
html[data-theme="light"] .bk-sugg, html[data-theme="light"] .bk-bar { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
@media (max-width: 420px) {
  .bk-veh { grid-template-columns: 84px 1fr auto; gap: 8px; }
  .bk-veh-img img { width: 84px; height: 48px; }
  .bk-bar .btn { padding: 8px 14px; }
}
/* Ordinateur : formulaire à gauche, récapitulatif collant à droite */
@media (min-width: 1000px) {
  .bk-page { padding: 0 0 60px; }
  .bk-steps { max-width: 560px; }
  .bk-grid.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .bk-grid:not(.has-aside) .bk-main { max-width: 640px; }
  .bk-aside { position: sticky; top: 76px; }
  .bk-bar { bottom: 16px; }
}
.bk-swap, .bk-qty button, .bk-tips button, .bk-veh { transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) {
  .bk-swap:hover, .bk-qty button:not(:disabled):hover, .bk-tips button:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .bk-veh:not(.on):hover { border-color: var(--text); }
  .bk-sugg button:hover { background: var(--panel-2); }
}
[dir="rtl"] .bk-place { padding: 8px 12px 8px 56px; }
[dir="rtl"] .bk-swap { right: auto; left: 10px; }
[dir="rtl"] .bk-veh, [dir="rtl"] .bk-sugg button { text-align: right; }
[dir="rtl"] .bk-veh-price { text-align: left; }
