: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; }
.list > .day-title { font-size: 18px; }   /* titres de jour des listes Vols et Transferts, plus grands (demande du propriétaire) */
.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: #fff; font-weight: 600; }   /* fond doré : texte blanc (owner, 2026-11-18) */
.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); }
/* Se déconnecter : seulement dans la colonne de gauche sur ordinateur (téléphone : en bas des Réglages). */
.tabs.mode-tabs button.tab-signout { display: none; }

/* ==================== 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 button.tab-signout { display: flex; padding: 8px 14px; font-size: 14px; transition: background-color .3s, color .3s; }
  .tabs.mode-tabs button.tab-signout svg { width: 18px; height: 18px; margin: 0 2px; }
  .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; }
/* Connexion client en deux temps : adresse saisie rappelée au-dessus du mot de passe, avec « Modifier ». */
.cl-email { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 15px; }
.cl-email span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cl-email .text-link { flex: none; }
.cl-note { color: var(--muted); font-size: 13px; }
.cl-forgot { margin-top: 14px; text-align: center; }
/* Réglages enregistrés automatiquement : coche verte « Enregistré » à côté du titre du champ, 5 s. */
.saved-tick { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; color: var(--green); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .3s; vertical-align: middle; pointer-events: none; }
.saved-tick.show { opacity: 1; }
.saved-tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .saved-tick { margin-left: 0; margin-right: 10px; }
@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; }
  .tabs.mode-tabs button.tab-signout:hover { background: var(--red); color: #fff; }   /* Se déconnecter (colonne de gauche) : rouge comme « danger » */
  .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: #000; border-color: #000; color: #fff; }   /* WhatsApp : fond noir au survol (owner, 2026-11-18) */
  .icon-btn:hover, .tool-btn:hover, .chat-send:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  /* Calendrier et heures du formulaire : survol comme le sélecteur de vipazur.fr/reservation/ (cercle doré, texte doré) */
  .bk-pick-btn:hover { border-color: var(--gold); }
  .bk-mode button:not(.on):hover { background: var(--text); color: var(--bg); }
  .bk-cal-nav:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .bk-day:not(:disabled):not(.on):hover { border-color: var(--gold); color: var(--gold); }
  .bk-time:not(.on):hover { background: var(--panel); border-color: var(--gold); color: var(--gold); }
  .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; }
  /* Fiche transfert : ligne « position du chauffeur en direct » (ouvre la grande carte). */
  .tp-live:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  /* 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; }
  /* Colonne de droite : carte de la rubrique, puis carte liée (ex. serveur e-mail sous E-mail). */
  .set-main { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .set-panel-2 { min-height: 0; }
  .set-panel-off { display: none; }
  .set-panel { 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 Réglages dans la colonne de gauche (.tab-signout), plus dans la page Réglages. */
  .set-logout { display: none !important; }
  .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 dans l'app (onglet + bouton en haut de la liste) ; onglet ouvert : blanc sur or comme les autres */
.tabs.mode-tabs button.tab-book { color: var(--gold); }
.tabs.mode-tabs button.tab-book.on { color: #fff; }
.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) ====================
   Même formulaire dans l'app, sur la page publique /reservation/ et dans l'iframe de vipazur.fr (thème clair ou sombre).
   Motif commun : le trajet départ ● → arrivée ○ relié par un pointillé (étape 1 et récapitulatif).
   Propriétés logiques (inline-start / end) : l'arabe se retourne sans règle à part. */
.bk-page {
  --bk-r: 18px; --bk-ri: 13px;
  --bk-sh: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --bk-sh-pop: 0 22px 48px -18px rgba(0, 0, 0, .75);
  --bk-dash: color-mix(in srgb, var(--muted) 55%, transparent);
  padding: 0 16px 120px; caret-color: var(--gold);
}
html[data-theme="light"] .bk-page {
  --bk-sh: 0 1px 2px rgba(16, 16, 16, .05), 0 14px 34px -20px rgba(16, 16, 16, .22);
  --bk-sh-pop: 0 22px 48px -20px rgba(16, 16, 16, .3);
}
.bk-page ::selection { background: color-mix(in srgb, var(--gold) 32%, transparent); color: var(--text); }
.bk-title { font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; margin: 6px 0 18px; }

/* Étapes (owner, 2026-11-18 : « fit the design better ») : 3 colonnes égales, une barre de progression au-dessus de chacune
   (dorée jusqu'à l'étape en cours, remplie en glissant), puis la pastille et le nom de l'étape. */
.bk-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 9px; row-gap: 10px; min-width: 0;
  font-size: 14px; font-weight: 550; color: var(--muted); transition: color .3s; }
.bk-steps li::before { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 99px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left / 0% 100%, var(--line); transition: background-size .5s cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .bk-steps li::before { background-position: right; }
.bk-steps li.on::before, .bk-steps li.done::before { background-size: 100% 100%; }
.bk-steps li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 650;
  font-variant-numeric: tabular-nums; border: 1.5px solid var(--line); color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.bk-steps li i svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-steps li.on { color: var(--text); font-weight: 650; }
.bk-steps li.done { color: var(--text); }
.bk-steps li.on i { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-steps li.done i { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: transparent; color: var(--gold); }
.bk-enter .bk-steps li.on::before { animation: bkStepFill .7s cubic-bezier(.16, 1, .3, 1) both; }   /* nouvelle étape : sa barre se remplit */
@keyframes bkStepFill { from { background-size: 0% 100%; } }
@media (prefers-reduced-motion: reduce) { .bk-steps li::before { transition: none; } .bk-enter .bk-steps li.on::before { animation: none; } }

/* Transfert / Mise à disposition : onglets en haut du formulaire (book.js bkStep1) */
.bk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: calc(var(--bk-ri) + 2px); background: var(--bg); }
.bk-mode button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 10px; border: 0; border-radius: calc(var(--bk-ri) - 2px);
  background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background-color .3s, color .3s, box-shadow .3s; }
.bk-mode button svg { flex: none; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .bk-mode button svg { transform: scaleX(-1); }
.bk-mode button.on { background: var(--gold); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--gold) 80%, transparent); }
.bk-mode button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 420px) { .bk-mode button { font-size: 14px; gap: 6px; padding-inline: 6px; } }

/* Blocs */
.bk-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--bk-r); padding: 20px; margin-bottom: 16px; box-shadow: var(--bk-sh); }
.bk-sec { margin-bottom: 18px; }
.bk-h { font-size: 17px; font-weight: 650; letter-spacing: -.005em; margin: 0 0 14px; }
.bk-sec > .bk-h { margin: 2px 2px 12px; }
.bk-sec > .hint { margin: 10px 4px 0; }

/* Étape 1 : départ et arrivée, reliés par un pointillé ; bouton pour inverser sur le trait de séparation */
.bk-places { position: relative; border: 1px solid var(--line); border-radius: calc(var(--bk-ri) + 2px); background: var(--bg); transition: border-color .25s, box-shadow .25s; }
.bk-places:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-places::before { content: ""; position: absolute; inset-inline-start: 31px; top: 53px; bottom: 53px; border-inline-start: 2px dotted var(--bk-dash); pointer-events: none; }
.bk-place { position: relative; display: flex; align-items: center; gap: 14px; min-height: 70px; padding-block: 10px; padding-inline: 14px 64px; }
.bk-place[data-side="to"] { border-top: 1px solid var(--line); }
.bk-mark { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.bk-mark.from { background: var(--gold); color: #fff; }
.bk-mark.to { background: var(--bg); color: var(--text); border: 1.5px solid 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; font-weight: 550; letter-spacing: .01em; color: var(--muted); margin-bottom: 1px; }
.bk-pl input[type=text] { width: 100%; border: 0; background: transparent; padding: 2px 0; min-height: 0; font-size: 17px; font-weight: 550; outline: none; box-shadow: none; border-radius: 0; text-overflow: ellipsis; }
.bk-pl input[type=text]::placeholder { color: var(--muted); font-weight: 400; }
.bk-swap { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; box-shadow: var(--bk-sh); }
.bk-swap svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Adresses proposées */
.bk-sugg { position: absolute; inset-inline: 8px; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--bk-sh-pop); }
.bk-sugg button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: start; background: none; border: 0; border-radius: 11px; padding: 9px 10px; color: var(--text); }
.bk-sugg button.on, .bk-sugg button:focus-visible { background: var(--panel-2); outline: none; }
.bk-sugg b { display: block; font-weight: 600; font-size: 15px; }
.bk-sugg small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.bk-sugg-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.bk-sugg-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Date et heure : icône dorée dans le champ ; tout le champ ouvre le sélecteur du navigateur */
.bk-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.bk-field { display: block; min-width: 0; }
.bk-field > span:first-child { display: block; font-size: 12px; font-weight: 550; letter-spacing: .01em; color: var(--muted); margin: 0 0 6px 2px; }
.bk-field-in { position: relative; display: flex; align-items: center; }
.bk-field-in > svg { position: absolute; inset-inline-start: 13px; width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bk-field-in input { -webkit-appearance: none; appearance: none; min-width: 0; height: 54px; padding-block: 0; padding-inline: 40px 6px; border-radius: var(--bk-ri);
  background: var(--bg); font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: start; transition: border-color .25s, box-shadow .25s; }
.bk-field-in input::-webkit-date-and-time-value { text-align: start; }
.bk-field-in input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }

/* Date et heure : calendrier et liste d'heures comme vipazur.fr/reservation/ (book.js bkOpenPick) */
.bk-pickf { position: relative; }
.bk-pick-btn { width: 100%; height: 54px; margin: 0; padding-block: 0; padding-inline: 40px 10px; border: 1px solid var(--line); border-radius: var(--bk-ri);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: start; cursor: pointer;
  transition: border-color .3s, box-shadow .3s; }
.bk-pick-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-pick-val.ph { color: var(--muted); font-weight: 450; }
.bk-pickf.open .bk-pick-btn, .bk-pick-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-invalid .bk-pick-btn { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
.bk-pop { position: absolute; top: calc(100% + 8px); z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--bk-sh-pop); animation: bkPopIn .18s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bkPopIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .bk-pop { animation: none; } }
.bk-pop-date { inset-inline-start: 0; width: min(380px, calc(100vw - 40px)); padding: 16px 14px 18px; }
.bk-pop-time { inset-inline-end: 0; width: min(290px, calc(100vw - 40px)); max-height: 330px; overflow-y: auto; padding: 10px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.bk-cal-title { font-size: 18px; font-weight: 700; text-transform: capitalize; text-align: center; }
.bk-cal-nav { flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bk-cal-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-cal-nav.next svg, [dir="rtl"] .bk-cal-nav:not(.next) svg { transform: scaleX(-1); }
[dir="rtl"] .bk-cal-nav.next svg { transform: none; }
.bk-cal-nav:disabled { opacity: .35; cursor: default; }
.bk-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; justify-items: center; }
.bk-cal-wd { padding: 12px 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.bk-day { width: 100%; max-width: 46px; aspect-ratio: 1; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; color: var(--text);
  font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bk-day.today { border-color: var(--gold); color: var(--gold); }
.bk-day.on { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.bk-day:disabled { color: var(--muted); opacity: .45; cursor: default; border-color: transparent; }
.bk-day:focus-visible, .bk-time:focus-visible, .bk-cal-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-time { min-height: 0; padding: 11px 4px; border-radius: 8px; border: 2px solid transparent; background: var(--panel-2); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s; }
.bk-time.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-times-none { margin: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 420px) { .bk-cal-wd { padding: 8px 0 6px; } .bk-day { font-size: 15px; } }
.bk-go { margin-top: 18px; min-height: 54px; font-size: 16px; gap: 10px; }
.bk-go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .bk-go svg { transform: scaleX(-1); }
.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); } }

/* Champs (étape 3) */
.bk-page label.f { margin-top: 14px; font-size: 12px; font-weight: 550; letter-spacing: .01em; }
.bk-page label.f > span { margin: 0 0 6px 2px; }
.bk-page .f input, .bk-page .f select, .bk-page .f textarea { min-height: 52px; padding: 13px 14px; border-radius: var(--bk-ri); background: var(--bg); font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.bk-page .f textarea { min-height: 88px; }
.bk-page .f input:focus, .bk-page .f select:focus, .bk-page .f textarea:focus, .bk-field-in input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-page .two { gap: 12px; }
.bk-page .hint { font-size: 13px; }

/* Étape 2 : véhicules = choix à cocher (coche dorée), côte à côte sur grand écran */
.bk-vehs { display: grid; gap: 12px; }
.bk-veh { position: relative; display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: start;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--bk-r); padding-block: 14px; padding-inline: 8px 16px; color: var(--text); box-shadow: var(--bk-sh); }
.bk-veh.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.bk-veh-img img { width: 116px; height: 66px; object-fit: contain; display: block; }
.bk-veh-body { min-width: 0; }
.bk-veh-name { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.005em; }
.bk-veh-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.bk-veh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.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 { display: flex; align-items: center; gap: 14px; }
.bk-veh-price b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-radio { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--muted) 65%, transparent); display: grid; place-items: center; color: transparent; font-style: normal; }
.bk-veh.on .bk-radio { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-radio svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) {
  .bk-vehs { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
  .bk-veh { grid-template-columns: 1fr auto; grid-template-areas: "img img" "body price"; align-items: end; row-gap: 10px; padding: 14px 18px 18px; }
  .bk-veh-img { grid-area: img; justify-self: center; }
  .bk-veh-img img { width: 220px; height: 124px; }
  .bk-veh-body { grid-area: body; }
  .bk-veh-price { grid-area: price; }
}

/* Sièges enfant : quantité dans une pastille − 0 + */
.bk-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 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 { flex: none; display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); transition: border-color .3s; }
.bk-extra.on .bk-qty { border-color: var(--gold); }
.bk-qty span { min-width: 30px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.bk-qty button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--text); }
.bk-qty button:disabled { opacity: .3; cursor: default; }
.bk-extra.on .bk-qty button[data-d="1"]:not(:disabled) { 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: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.bk-tips button.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Récapitulatif : même trajet ● → ○ qu'à l'étape 1, total bien visible */
.bk-recap-head { display: flex; align-items: baseline; justify-content: space-between; }
.bk-recap-head .bk-h { margin-bottom: 10px; }
.bk-when { font-weight: 650; margin-bottom: 14px; }
.bk-route { display: grid; gap: 16px; padding-inline-start: 24px; }
.bk-route div { position: relative; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.bk-dot { position: absolute; inset-inline-start: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; }
.bk-dot.from { background: var(--gold); }
.bk-dot.to { background: var(--panel); border: 2px solid var(--text); }
.bk-route div:first-child::after { content: ""; position: absolute; inset-inline-start: -19px; top: 20px; bottom: -14px; border-inline-start: 2px dotted var(--bk-dash); }
.bk-recap > .hint { margin-top: 10px; }
.bk-lines { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 8px; }
.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; font-weight: 600; }
.bk-line.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; align-items: baseline; }
.bk-line.total span { color: var(--text); font-weight: 650; font-size: 16px; }
.bk-line.total b { font-weight: 750; letter-spacing: -.01em; }

/* Barre du bas : total + boutons, collée au-dessus de la barre d'onglets */
.bk-bar { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 20; display: flex; align-items: center; gap: 10px; margin: 8px 0 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px; box-shadow: var(--bk-sh-pop); }
.bk-bar .btn { min-height: 46px; }
.bk-bar-total { flex: 1; text-align: center; line-height: 1.15; }
.bk-bar-total small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bk-bar-total b { font-size: 20px; font-weight: 700; 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: 20px; padding: 24px; box-shadow: var(--bk-sh-pop); }
.bk-dialog h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.005em; }
.bk-dialog p { margin: 0; color: var(--muted); }
.bk-dialog a.btn { text-decoration: none; }

/* Clavier : anneau doré visible */
.bk-page :is(button, select, textarea, input[type=email], input[type=tel]):focus-visible, .bk-dialog :is(a, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-pl input:focus-visible, .bk-field-in input:focus-visible { outline: none; }

/* Changement d'étape : le contenu glisse en place (une seule animation, rien au survol ni aux quantités) */
@media (prefers-reduced-motion: no-preference) {
  .bk-enter .bk-main, .bk-enter .bk-aside { animation: bkIn .45s cubic-bezier(.16, 1, .3, 1) both; }
  .bk-enter .bk-aside { animation-delay: .07s; }
}
@keyframes bkIn { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 420px) {
  .bk-steps { gap: 8px; }   /* téléphone étroit : les 3 noms restent, en plus petit */
  .bk-steps li { font-size: 12.5px; column-gap: 6px; }
  .bk-steps li i { width: 22px; height: 22px; font-size: 11px; }
  .bk-card { padding: 16px; }
  .bk-veh { grid-template-columns: 88px 1fr auto; gap: 10px; padding-inline: 6px 12px; }
  .bk-veh-img img { width: 88px; height: 50px; }
  .bk-veh-price { gap: 10px; }
  .bk-veh-price b { font-size: 19px; }
  .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; }
}
/* Survol comme sur vipazur.fr : couleurs inverses en 0,3 s, souris seulement */
.bk-swap, .bk-qty button, .bk-tips button, .bk-veh, .bk-sugg button { transition: background-color .3s, color .3s, border-color .3s, box-shadow .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: color-mix(in srgb, var(--gold) 55%, var(--line)); }
  .bk-sugg button:hover { background: var(--panel-2); }
  .bk-go:not(:disabled):hover svg { transform: translateX(4px); }
  [dir="rtl"] .bk-go:not(:disabled):hover svg { transform: scaleX(-1) translateX(4px); }
}

/* Aller-retour : ligne avec interrupteur sous la date et l'heure ; cochée, la date et l'heure du retour apparaissent dessous */
.bk-rt { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-height: 54px; padding-block: 8px; padding-inline: 14px 12px; border: 1px solid var(--line); border-radius: var(--bk-ri);
  background: var(--bg); cursor: pointer; transition: border-color .3s, background-color .3s; -webkit-tap-highlight-color: transparent; }
.bk-rt.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--bg)); }
.bk-rt-ic { display: grid; place-items: center; color: var(--gold); }
.bk-rt-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bk-rt-txt { flex: 1; font-size: 16px; font-weight: 600; }
.bk-rt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bk-switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: background-color .3s; }
.bk-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.bk-rt input:checked + .bk-switch { background: var(--gold); }
.bk-rt input:checked + .bk-switch::after { transform: translateX(18px); }
[dir="rtl"] .bk-rt input:checked + .bk-switch::after { transform: translateX(-18px); }
.bk-rt input:focus-visible + .bk-switch { outline: 2px solid var(--gold); outline-offset: 2px; }
[dir="rtl"] .bk-rt-ic svg, [dir="rtl"] .bk-when-tag svg { transform: scaleX(-1); }
.bk-return .bk-dt { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { .bk-return-in { animation: bkIn .35s cubic-bezier(.16, 1, .3, 1) both; } }
@media (hover: hover) { .bk-rt:not(.on):hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); } }

/* Erreurs sous les champs (remplacent le message rouge plein écran) : bord rouge + message court avec icône */
.bk-err, .bk-alert { display: flex; align-items: flex-start; gap: 8px; color: var(--red); font-size: 13.5px; font-weight: 550; line-height: 1.35; letter-spacing: 0; }
.bk-err { margin: 7px 2px 0; animation: bkErrIn .25s ease-out both; }
.bk-err svg, .bk-alert svg { flex: none; width: 17px; height: 17px; margin-top: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.bk-alert { padding: 12px 14px; margin: 0 0 14px; border-radius: var(--bk-ri); background: var(--red-soft); animation: bkErrIn .25s ease-out both; }
.bk-go + .bk-alert, .bk-alert + .bk-go { margin-top: 14px; }
@keyframes bkErrIn { from { opacity: 0; transform: translateY(-4px); } }
.bk-invalid.bk-place { background: color-mix(in srgb, var(--red) 6%, transparent); flex-wrap: wrap; }
.bk-invalid.bk-place:first-child { border-radius: var(--bk-ri) var(--bk-ri) 0 0; }
.bk-invalid.bk-place .bk-mark.from { background: var(--red); }
.bk-invalid.bk-place .bk-mark.to { border-color: var(--red); color: var(--red); }
.bk-place > .bk-err { flex-basis: 100%; margin: 0 0 0 50px; }
.bk-invalid .bk-field-in input, .bk-page .bk-invalid.f input, .bk-page .bk-invalid.f select, .bk-invalid .bk-tel { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
.bk-invalid.bk-paycard { border-color: var(--red); }

/* Téléphone : « + » fixe devant le numéro (impossible à effacer), indicatif du pays obligatoire */
.bk-page label.f > .bk-tel { position: relative; display: flex; margin: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); transition: border-color .25s, box-shadow .25s; }
.bk-tel:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-tel b { display: grid; place-items: center; padding-inline: 14px 4px; font-size: 17px; font-weight: 650; color: var(--text); user-select: none; }
.bk-page .f .bk-tel input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; padding-inline-start: 2px; letter-spacing: .01em; }
.bk-page .f .bk-tel input:focus { box-shadow: none; }
[dir="rtl"] .bk-tel { direction: ltr; }   /* numéro toujours écrit de gauche à droite */

/* Âge de chaque enfant, sous le siège choisi */
.bk-extra-wrap + .bk-extra-wrap .bk-extra { border-top: 1px solid var(--line); }
.bk-h + .bk-extra-wrap .bk-extra { border-top: 0; padding-top: 0; }
.bk-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 0 0 14px; }
.bk-page .bk-ages label.f { margin-top: 0; }
.bk-page .bk-ages .f select { min-height: 46px; padding-block: 10px; }
.bk-line span small { display: block; font-size: 12.5px; margin-top: 1px; }

/* Paiement : carte bancaire (Stripe) ou espèces, choix à cocher comme les véhicules */
.bk-pays { display: grid; gap: 10px; }
.bk-pay { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); color: var(--text); }
.bk-pay.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.bk-pay.on .bk-radio { background: var(--gold); border-color: var(--gold); color: #fff; }
.bk-pay-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2, var(--panel)); color: var(--gold); }
.bk-pay-ic svg, .bk-line-pay svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bk-pay-body { flex: 1; min-width: 0; }
.bk-pay-body b { display: block; font-size: 16px; font-weight: 650; }
.bk-pay-body small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.bk-pay-brands { display: flex; gap: 4px; margin-top: 7px; }
.bk-pay-brands i { display: grid; place-items: center; height: 22px; min-width: 34px; padding: 0 4px; border-radius: 4px; font: 800 9.5px/1 Arial, sans-serif; font-style: italic; letter-spacing: .02em; }
.bk-pay-brands .visa { background: #1a1f71; color: #fff; font-size: 10.5px; }
.bk-pay-brands .amex { background: #2e77bb; color: #fff; font-style: normal; font-size: 8.5px; }
.bk-pay-brands .mc { position: relative; background: #252525; }
.bk-pay-brands .mc s { position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; left: 5px; }
.bk-pay-brands .mc s + s { left: 14px; background: #f79e1b; mix-blend-mode: screen; opacity: .95; }
.bk-line-pay b { display: inline-flex; align-items: center; gap: 6px; }
.bk-line-pay svg { width: 17px; height: 17px; color: var(--gold); }

/* Récapitulatif : aller / retour et petite carte du trajet (un appui l'ouvre en grand) */
.bk-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.bk-when:has(+ .bk-when-back) { margin-bottom: 6px; }
.bk-when-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); font-size: 12px; font-weight: 650; }
.bk-when-tag svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-map { position: relative; display: block; width: 100%; height: 170px; margin-top: 16px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); cursor: zoom-in; text-align: start; }
.bk-map-in { position: absolute; inset: 0; z-index: 0; }
.bk-map-in .leaflet-control-attribution { font-size: 9px; }
.bk-map-info { position: absolute; z-index: 500; inset-inline-start: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px;
  background: var(--panel); color: var(--text); font-size: 13px; box-shadow: var(--bk-sh); pointer-events: none; }
.bk-map-info svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; }
.bk-map-info b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-map-info span { color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-map-info em { font-style: normal; font-weight: 700; color: var(--gold); }
.bk-map.bk-map-off { height: auto; cursor: default; border: 0; background: none; }
.bk-map.bk-map-off .bk-map-info { position: static; box-shadow: none; padding: 0; background: none; }
.bk-pay { transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) {
  .bk-pay:not(.on):hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
  .bk-map:hover { border-color: var(--gold); }
}

/* Réglages › Paiement : intertitre « Connexion Stripe » */
.pay-sub { margin: 22px 0 2px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 650; font-size: 14px; }

/* Réglages > Serveur e-mail : adresse de test + bouton sur une ligne, résultat en vert ou rouge. */
.smtp-test { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 14px; }
.smtp-test .f { margin: 0; }
.smtp-test .btn { margin-bottom: 1px; }
.smtp-res { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.smtp-res.ok { color: var(--green); background: var(--green-soft); border-color: transparent; }
.smtp-res.bad { color: var(--red); background: var(--red-soft); border-color: transparent; }
.smtp-res small { display: block; margin-top: 6px; color: var(--muted); word-break: break-word; }
@media (max-width: 520px) { .smtp-test { grid-template-columns: 1fr; } }

/* Réglages sur téléphone : une seule colonne de cartes dans l'ordre de la page (la carte Serveur e-mail suit E-mail). */
@media (max-width: 999px) { .set-main { display: flex; flex-direction: column; } .set-main > .set-panel { display: contents; } }

/* ==================== Tarifs (#tarifs, pricing.js, super admin) ====================
   Lecture seule (étape 1) : comparaison app / vipazur.fr, grille, règles dans l'ordre d'application, carte des zones. */
.tabs.mode-tabs button.tab-desk { display: none; }   /* téléphone : accès par Réglages › Réservations du site */
@media (min-width: 1000px) { .tabs.mode-tabs button.tab-desk { display: flex; } }
.pr-page { padding-bottom: 60px; }
.pr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pr-head h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.015em; }
.pr-ver { color: var(--muted); font-size: 14px; }
.pr-src { margin: 8px 0 0; color: var(--muted); max-width: 72ch; }
.pr-seg { max-width: 680px; }
.pr-tab { margin-top: 16px; }
.pr-ro { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.pr-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.pr-card h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.005em; }
.pr-card > .hint { margin-top: 0; max-width: 80ch; }
.pr-two { display: grid; gap: 16px; }
@media (min-width: 800px) { .pr-two { grid-template-columns: 1fr 1fr; } }
.pr-tag { display: inline-block; font-style: normal; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pr-tag.fix { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }

/* Tableaux (grille, comparaison) */
.pr-tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pr-table th, .pr-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-table thead th { position: sticky; top: 0; background: var(--panel); font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.pr-table th small { display: block; font-weight: 500; }
.pr-table .num { text-align: end; white-space: nowrap; }
.pr-table .muted { color: var(--muted); }
.pr-table .off { color: var(--muted); }
.pr-grid tbody th { font-weight: 550; white-space: nowrap; }
.pr-grid td { font-weight: 600; }
.pr-grid .pr-km th, .pr-grid .pr-km td { border-bottom: 0; color: var(--gold); }
.pr-extras { list-style: none; margin: 8px 0 0; padding: 0; }
.pr-extras li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pr-extras li:first-child { border-top: 0; }
.pr-extras span { flex: 1; }
.pr-extras small { color: var(--muted); }

/* Règles */
.pr-order { margin: -4px 0 12px; }
.pr-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-rule { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pr-rule.is-off { background: transparent; }
.pr-rule.is-off .pr-rule-top b { color: var(--muted); }
.pr-idx { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pr-rule-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-rule-top b { font-weight: 600; }
.pr-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-conds span { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--text); }
.pr-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.pr-wp { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pr-rule-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pr-eff { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-state { font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pr-state.on { background: var(--green-soft); border-color: transparent; color: var(--green); }
.pr-skip summary, .pr-fixes summary { cursor: pointer; font-weight: 600; }
.pr-skip p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.pr-fixes ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pr-fixes li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 14px; }

/* Zones */
.pr-zones { display: grid; gap: 16px; }
.pr-map { height: 460px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.pr-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.pr-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.pr-legend i { width: 14px; height: 14px; border-radius: 4px; margin-top: 3px; background: var(--zc); }
.pr-legend small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (min-width: 1000px) { .pr-zones { grid-template-columns: minmax(0, 1fr) 320px; } .pr-map { height: 560px; } }

/* Comparer */
.pr-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 12px; }
.pr-ctl .f { margin: 0; width: 180px; }
.pr-times > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.pr-times > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-times .chip-filter { font-variant-numeric: tabular-nums; }
.pr-progress { position: relative; margin-top: 14px; height: 30px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.pr-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--gold) 35%, transparent); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.pr-progress span { position: relative; display: block; line-height: 30px; padding-inline: 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 10px; }
.pr-filter { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.pr-badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pr-badge.same { background: var(--green-soft); color: var(--green); }
.pr-badge.fix { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.pr-badge.check, .pr-badge.err { background: var(--red-soft); color: var(--red); }
.pr-cmp td.trip { min-width: 220px; }
.pr-cmp td.trip small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pr-cmp td.num small { display: block; font-size: 12px; font-weight: 650; }
.pr-cmp small.up { color: var(--gold); }
.pr-cmp small.down { color: var(--green); }
.pr-row { cursor: pointer; }
.pr-row.open td { background: var(--panel-2); }
.pr-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.pr-detail td { background: var(--panel-2); padding: 4px 12px 16px; }
.pr-empty { padding: 18px 0 4px; }
.pr-bds { display: grid; gap: 14px; }
@media (min-width: 900px) { .pr-bds { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.pr-bd h4 { margin: 10px 0 6px; font-size: 14px; }
.pr-bd ol { list-style: none; margin: 0; padding: 0; }
.pr-bd li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.pr-bd li:first-child { border-top: 0; }
.pr-bd li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-bd .pr-bd-total { border-top: 1px solid var(--line); font-weight: 650; }
.pr-bd .pr-bd-total b { color: var(--gold); }
.pr-offs { margin-top: 8px; display: grid; gap: 4px; }
.pr-offs small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pr-offs span { font-size: 12px; color: var(--muted); }
.pr-free { display: grid; gap: 12px; align-items: end; margin-top: 10px; }
.pr-free .f { margin: 0; position: relative; }
@media (min-width: 900px) { .pr-free { grid-template-columns: 1fr 1fr 130px auto; } }
.pr-free-veh { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pr-free-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pr-free-top b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pr-free-top span { color: var(--muted); font-size: 14px; }
#prFreeRes:not(:empty) { margin-top: 14px; }
@media (hover: hover) {
  .pr-row:hover td { background: var(--panel-2); }
}

/* ==================== Tarifs : modification (pricing.js) ====================
   Règles (interrupteur, flèches d'ordre, fenêtre d'édition), grille modifiable, véhicules, suppléments, zones, versions. */
.pr-head .pr-hist { margin-inline-start: auto; }
.pr-head .pr-hist svg, .pr-bar .btn svg, .pr-card-h .btn svg, .pr-veh .btn svg, .pr-zacts .btn svg, .pr-form .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.pr-bar .hint { margin: 0; flex: 1 1 320px; }
.pr-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pr-card-h h2 { margin: 0; }
.pr-acts { display: inline-flex; gap: 8px; }

/* Règle : carte cliquable, effet, interrupteur, ordre */
.pr-rule { grid-template-columns: 28px 1fr auto; }
.pr-rule-main { all: unset; box-sizing: border-box; display: block; min-width: 0; cursor: pointer; border-radius: 10px; }
.pr-rule-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pr-rule-main > span { display: flex; }
.pr-rule-main .pr-note { display: block; }
.pr-rule-side { flex-direction: row; align-items: center; gap: 12px; }
.pr-move { display: inline-flex; gap: 4px; }
.pr-move .icon-btn { width: 34px; height: 34px; }
.pr-move .icon-btn:disabled { opacity: .3; cursor: default; }
.pr-switch { position: relative; width: 46px; height: 26px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); padding: 0; flex: none; }
.pr-switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .25s; }
.pr-switch.on { background: var(--green); border-color: var(--green); }
.pr-switch.on i { background: #fff; transform: translateX(20px); }
[dir="rtl"] .pr-switch.on i { transform: translateX(-20px); }
@media (max-width: 640px) {
  .pr-rule { grid-template-columns: 1fr; }
  .pr-rule .pr-idx { display: none; }
  .pr-rule-side { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
}

/* Fenêtre d'édition */
.pr-ov { align-items: center; justify-content: center; padding: 16px; }
.pr-dlg { width: 100%; max-width: 520px; max-height: calc(100% - 8px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.pr-dlg.wide { max-width: 760px; }
.pr-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; border-bottom: 1px solid var(--line); }
.pr-dlg-h h2 { margin: 0; font-size: 18px; letter-spacing: -.005em; }
.pr-dlg-b { padding: 6px 20px 20px; overflow: auto; overscroll-behavior: contain; }
.pr-form .f { margin-top: 12px; }
.pr-form .check { margin-top: 12px; }
.pr-form input[type=url] { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; }
.pr-form input[type=url]:focus { border-color: var(--gold); }
.pr-h3 { margin: 22px 0 2px; font-size: 15px; }
.pr-lbl { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.pr-lbl small { font-size: 12px; }
.pr-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
@media (min-width: 640px) { .pr-row3 { grid-template-columns: 2fr 1fr auto; } .pr-row3 .pr-span2 { grid-column: span 2; } }
.pr-oncheck { margin: 0 0 12px; white-space: nowrap; }
.pr-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chk { position: relative; display: inline-flex; }
.pr-chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pr-chk span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
.pr-chk input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.pr-chk input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pr-fs { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 14px; margin: 14px 0 0; min-width: 0; }
.pr-fs legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.pr-fs .hint { margin-top: 8px; }
.pr-dates { display: grid; gap: 4px; margin-bottom: 8px; }
.pr-daterow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.pr-daterow .f { margin-top: 0; }
.pr-dlg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.pr-dlg-actions .spacer { flex: 1; }

/* Grille modifiable, véhicules, suppléments */
.pr-grid.editing td { padding: 6px 8px; }
.pr-grid input { width: 92px; min-height: 0; padding: 7px 8px; text-align: end; font-variant-numeric: tabular-nums; border-radius: 8px; }
.pr-vehs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-veh { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.pr-veh.is-off { opacity: .7; }
.pr-veh-img img { width: 96px; height: 54px; object-fit: contain; display: block; }
.pr-veh-body b { display: block; }
.pr-veh-body small { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pr-veh-body .pr-avail { color: var(--gold); }
@media (max-width: 560px) { .pr-veh { grid-template-columns: 72px 1fr; } .pr-veh-img img { width: 72px; height: 40px; } .pr-veh .pr-state { justify-self: start; } }
.pr-extras.editing li { display: grid; grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1fr) 84px 64px auto; gap: 8px; align-items: center; }
.pr-extras.editing .pr-xicon { text-align: center; font-size: 18px; padding-inline: 4px; }
@media (max-width: 640px) { .pr-extras.editing li { grid-template-columns: 52px 1fr 84px 64px auto; } .pr-extras.editing .pr-ximg { grid-column: 1 / -1; grid-row: 2; } }
.pr-extras.editing input { min-height: 0; padding: 8px 10px; }
.pr-xrow + .pr-xrow { border-top: 0; }

/* Zones : barre de dessin et boutons de la légende */
.pr-zbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--gold); border-radius: 14px; background: color-mix(in srgb, var(--gold) 10%, var(--panel)); }
.pr-zbar .hint { margin: 0; }
.pr-zbar .spacer { flex: 1; }
.pr-zacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-map .leaflet-draw-tooltip { font-size: 12px; }

/* Versions */
.pr-vers { list-style: none; margin: 0; padding: 0; }
.pr-vers li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pr-vers li:first-child { border-top: 0; }
.pr-vers b { display: block; font-weight: 550; font-size: 14px; }
.pr-vers small { color: var(--muted); font-size: 12px; }

/* Survol comme sur vipazur.fr (couleurs inverses en 0,3 s), souris seulement */
.pr-switch, .pr-rule-main { transition: background-color .3s, border-color .3s; }
@media (hover: hover) {
  .pr-switch:not(.on):hover { border-color: var(--text); }
  .pr-chk:hover input:not(:checked) + span { background: var(--text); border-color: var(--text); color: var(--bg); }
  .pr-rule:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
}

/* ==================== Tarifs › Règles : rangées par type, une ligne simple par règle ====================
   Effet en grand (avec « majoration », « prix fixe »…), nom, conditions en une phrase, interrupteur. */
.pr-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 960px; }
.pr-rview { margin: 0; flex: 0 1 340px; }
.pr-rcount { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pr-rhead .btn.primary { margin-inline-start: auto; }
.pr-rhead .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.pr-rhint { margin: 10px 2px 0; max-width: 72ch; }
.pr-rgroup { margin-top: 24px; max-width: 960px; }
.pr-rgroup h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px 4px; font-size: 16px; font-weight: 650; letter-spacing: -.005em; }
.pr-rgroup h3 small { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-rlist { list-style: none; margin: 0; padding: 0; max-width: 960px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
ol.pr-rlist { margin-top: 12px; }
.pr-r { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); transition: background-color .2s; }
.pr-r:first-child { border-top: 0; }
.pr-r .pr-idx { flex: none; }
.pr-pill { flex: none; width: 96px; display: flex; flex-direction: column; line-height: 1.15; }
.pr-pill b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-pill small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pr-pill.up b { color: var(--gold); }
.pr-pill.down b { color: var(--green); }
.pr-pill.fix b { color: var(--text); }
.pr-r-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; padding: 2px 0; border-radius: 8px; }
.pr-r-main b { font-size: 15px; font-weight: 600; }
.pr-r-main span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pr-r-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pr-r.is-off .pr-pill b, .pr-r.is-off .pr-r-main b { color: var(--muted); }
.pr-r.is-off .pr-r-main b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.pr-chev { flex: none; width: 18px; height: 18px; color: var(--muted); }
.pr-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .pr-chev svg { transform: scaleX(-1); }
@media (hover: hover) {
  .pr-r:hover { background: var(--panel-2); }
  .pr-r:hover .pr-chev { color: var(--text); }
}
@media (max-width: 560px) {
  .pr-r { gap: 12px; padding: 12px; }
  .pr-pill { width: 70px; }
  .pr-pill b { font-size: 16px; }
  .pr-chev { display: none; }
  .pr-r .pr-move { display: none; }
  ol.pr-rlist .pr-r .pr-move { display: inline-flex; flex-direction: column; }
  .pr-rhead .btn.primary { margin-inline-start: 0; }
}

/* ==================== Réglages › Modèles d'e-mails (pricing.js, mtMount / mtEdit) ==================== */
.mt-h { margin: 18px 0 8px 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mt-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mt-r { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); transition: background-color .2s; }
.mt-r:first-child { border-top: 0; }
.mt-r-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; border-radius: 8px; }
.mt-r-main b { font-size: 15px; font-weight: 600; }
.mt-r-main span { font-size: 13px; color: var(--muted); }
.mt-r-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.mt-r.is-off .mt-r-main b { color: var(--muted); }
.mt-tag { margin-inline-start: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); vertical-align: 1px; }
@media (hover: hover) { .mt-r:hover { background: var(--panel-2); } }

.pr-dlg.mt-dlg { max-width: 1180px; height: calc(100% - 8px); }
.mt-dlg .pr-dlg-b { flex: 1; display: flex; padding-top: 14px; }
.mt-ed { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; }
.mt-form { min-width: 0; overflow: auto; padding-inline-end: 4px; }
.mt-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mt-lang { margin: 0; flex: 0 1 260px; }
.mt-on { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.mt-f textarea { width: 100%; min-height: 90px; resize: vertical; font: inherit; line-height: 1.55; }
.mt-bh { margin-top: -4px; }
.mt-vars { margin-top: 14px; }
.mt-vars > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt-chip { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 99px; padding: 5px 11px; font-size: 13px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mt-prev { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f6f3ec; }
.mt-prev-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.mt-prev-h span { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-prev-h small { color: var(--muted); font-size: 12px; }
.mt-prev iframe { flex: 1; width: 100%; min-height: 420px; border: 0; background: #f6f3ec; }
@media (hover: hover) { .mt-chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (max-width: 860px) {
  .pr-dlg.mt-dlg { height: auto; }
  .mt-dlg .pr-dlg-b { display: block; }
  .mt-ed { display: block; }
  .mt-form { overflow: visible; padding: 0; }
  .mt-prev { margin-top: 20px; }
  .mt-prev iframe { height: 560px; flex: none; }
}

/* ==================== Réservation : aller-retour et mise à disposition côte à côte, sièges enfant en cartes ==================== */
.bk-hours { max-width: 340px; }
.bk-hours select { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 54px; padding-block: 0; padding-inline: 40px 40px; border: 1px solid var(--line); border-radius: var(--bk-ri); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 550; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.bk-hours .bk-field-in::after { content: ""; position: absolute; inset-inline-end: 16px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.bk-hours select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.bk-hourly-hint { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.bk-route-h { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }
.bk-route-h svg, .bk-rt-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.bk-seats-sec { margin-top: 26px; }
.bk-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.bk-seat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, box-shadow .3s; }
.bk-seat.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 32px -22px color-mix(in srgb, var(--gold) 70%, transparent); }
.bk-seat-img { display: block; width: 100%; height: 140px; margin: 0 0 12px; padding: 10px; border-radius: 14px; background: #fff; overflow: hidden; }
.bk-seat-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bk-seat-name { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.bk-seat-age { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.bk-seat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: start; }   /* nom + âge à gauche, prix à droite (owner, 2026-11-18) */
.bk-seat-txt { min-width: 0; }
.bk-seat-price { flex: none; margin: 0; font-size: 20px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.bk-seat-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bk-seat-qty > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-seat.on .bk-qty { border-color: var(--gold); }
.bk-seat.on .bk-qty button[data-d="1"]:not(:disabled) { color: var(--gold); }
.bk-seat-sel { margin-top: 12px; gap: 6px; }
.bk-seat-sel svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-seats-sec .bk-ages { margin-top: 14px; padding: 16px; }
@media (max-width: 520px) {
  .bk-seats { grid-template-columns: 1fr; }
  .bk-seat { display: grid; grid-template-columns: 92px 1fr; grid-template-areas: "img head" "qty qty" "sel sel"; column-gap: 14px; align-items: center; text-align: start; padding: 14px; }
  .bk-seat-img { grid-area: img; height: 92px; margin: 0; padding: 6px; }
  .bk-seat-head { grid-area: head; }
  .bk-seat-qty { grid-area: qty; }
  .bk-seat-sel { grid-area: sel; }
}
/* Modèles d'e-mails : encadré des langues (français et anglais modifiés, 9 langues traduites automatiquement) */
.mt-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.mt-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mt-note p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.mt-note small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.mt-note small.ok { color: var(--green); }
.mt-prev-h select { flex: none; max-width: 150px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.mt-pv-note { padding: 7px 14px; font-size: 12.5px; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }

/* Réglages : onglets en haut d'une rubrique à plusieurs cartes (E-mail : Notifications, Modèles, Serveur SMTP), ordinateur */
.set-tabs { display: none; }
@media (min-width: 1000px) {
  .set-tabs:not([hidden]) { display: inline-flex; gap: 4px; margin: 20px 0 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); }
  .set-tabs button { border: 0; background: none; padding: 9px 20px; border-radius: 99px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; transition: background-color .3s, color .3s; }
  .set-tabs button.on { background: var(--gold); color: #fff; font-weight: 600; }
  .set-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
}
@media (min-width: 1000px) and (hover: hover) { .set-tabs button:not(.on):hover { background: var(--text); color: var(--bg); } }
/* Modèles d'e-mails : question dans la fenêtre (modifications non enregistrées, texte d'origine) */
.mt-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); }
.mt-ask p { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.mt-ask div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: no-preference) { .mt-ask { animation: bkIn .3s cubic-bezier(.16, 1, .3, 1) both; } }

/* Aller-retour dans le récapitulatif (book.js bkRecap / bkBindRecap) : interrupteur, puis date et heure du retour */
.bk-recap-rt { margin-top: 14px; }
.bk-recap-rt .bk-rt { margin-top: 0; }
.bk-recap-rt .bk-dt { position: relative; margin-top: 10px; gap: 8px; }
.bk-recap-rt .bk-pickf { position: static; }   /* calendrier et heures : toute la largeur du récapitulatif */
.bk-recap-rt .bk-pop { inset-inline: 0; width: auto; }
.bk-recap-rt .bk-pick-btn { padding-inline: 36px 8px; font-size: 15px; }
.bk-recap-rt .bk-field-in > svg { inset-inline-start: 11px; }
.bk-lines.bk-stale { opacity: .45; }   /* aller-retour coché, prix pas encore recalculés */
.bk-aside.bk-busy .bk-lines { opacity: .45; transition: opacity .2s; }
.bk-aside.bk-busy .bk-recap-rt .bk-rt { pointer-events: none; }
.bk-aside.bk-busy .bk-recap-rt .bk-switch { opacity: .6; }
.bk-recap .bk-alert { margin: 14px 0 0; }

/* Transfert lié à un vol (app.js flightTransferTag / flightTransferCard) : étiquette dans la liste, bloc sur la fiche du vol */
.ftr { display: flex; align-items: center; gap: 7px; max-width: 100%; width: fit-content; margin-top: 8px; padding: 5px 10px 5px 8px; border: 1px solid var(--gold);
  border-radius: 99px; background: var(--gold-soft); color: var(--text); font-size: 13px; line-height: 1.3; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s; }
.ftr svg { flex: none; width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.ftr-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftr-txt b { color: var(--gold); font-weight: 650; transition: color .3s; }
.ftr-go { flex: none; font-style: normal; font-size: 17px; line-height: 1; color: var(--gold); }
[dir="rtl"] .ftr-go { transform: scaleX(-1); }
.ftr-card { display: block; margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 16px;
  background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .3s, background-color .3s; }
.ftr-head { display: flex; align-items: center; gap: 9px; }
.ftr-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); }
.ftr-ic svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftr-title { flex: 1; font-weight: 650; }
.ftr-card .ftr-go { font-size: 22px; }
.ftr-when { margin-top: 10px; font-size: 14px; }
.ftr-when b { color: var(--gold); }
.ftr-card .tcard-route { margin-top: 6px; }
.ftr-meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .row .ftr:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .row .ftr:hover svg { stroke: var(--bg); }
  .row .ftr:hover b, .row .ftr:hover .ftr-go { color: var(--bg); }
  .ftr-card:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, var(--panel)); }
}

/* ==================== Fiche transfert : en-tête, trajet, prix, sections (réservations du site et du formulaire de l'app) ==================== */
.td-head { margin: 4px 0 14px; }
.td-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.td-head-top .num { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.td-head-top .pill { font-size: 13px; padding: 4px 12px; }
.td-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; }
.td-when b { font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.td-when span { font-size: 26px; font-weight: 650; color: var(--gold); font-variant-numeric: tabular-nums; }
.td-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.td-tag { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--panel); }
.td-tag.gold { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--gold); font-weight: 600; }

.td-route { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.td-route .tstop { padding: 7px 0; }
.tdot.m { background: var(--gold); }
.td-hourly { display: block; font-weight: 600; color: var(--gold); }
.td-return { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.td-return svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); }
.td-return span { color: var(--muted); }

.td-price { margin-top: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--gold) 6%, var(--panel)); }
.td-price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.td-price-top span { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.td-price-top b { font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.td-lines { margin-top: 8px; border-top: 1px solid var(--line); }
.td-line, .td-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 14px; }
.td-line + .td-line { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.td-line span { min-width: 0; }
.td-line small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.td-line b, .td-pay b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-pay { border-top: 1px solid var(--line); margin-top: 2px; }
.td-pay span { color: var(--muted); }

.td-secs { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.td-sec { padding: 4px 16px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.td-sec h3 { margin: 10px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.td-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.td-grid .wide, .td-grid .contact-btns { grid-column: 1 / -1; }
.td-grid .contact-btns { border-bottom: 0; padding: 6px 0 4px; }
.td-grid .trow { padding: 8px 0; }
.td-grid .trow b { font-size: 14px; font-weight: 600; }
.td-grid .trow b.muted { color: var(--muted); font-weight: 500; }
.td-grid .as-who { display: inline-flex; align-items: center; gap: 6px; }
.td-seats { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.td-seat span { font-weight: 600; }
.td-seat small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) {
  .td-when b, .td-when span { font-size: 22px; }
  .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-price-top b { font-size: 24px; }
}

/* ==================== Factures (invoices.js, 2026-11-18) ====================
   Client : transferts effectués à cocher, barre « N sélectionné(s) · total » collée au-dessus de la barre du bas, factures créées.
   Admin : liste de toutes les factures. Document de facture : même feuille blanche que le bon de commande (.voucher). */
.users-page .us-head h1 { margin-inline-end: auto; }
.inv-page { padding: 0 16px; }
.inv-page h1 { margin: 6px 0 4px; }
.inv-page .tsearch-wrap { padding: 8px 0 4px; }
.inv-sec { margin: 18px 0 8px; }
.inv-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.inv-sec-h h2 { font-size: 17px; margin: 0; }
.inv-sec .empty { padding: 28px 16px; }
.inv-grid { display: grid; gap: 12px; margin-top: 10px; }
.inv-grid .tcard { margin: 0; }
@media (min-width: 1000px) { .inv-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.inv-pick { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.inv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.inv-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--muted); border-radius: 6px; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.inv-pick.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.inv-pick.on .inv-box { background: var(--gold); border-color: var(--gold); }
.inv-pick.on .inv-box::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.inv-pick input:focus-visible + .inv-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.inv-pick-main { flex: 1; min-width: 0; display: block; }
.inv-pick-main .tcard-ref, .inv-pick-main .tcard-route, .inv-pick-main .tline, .inv-card .tcard-client { display: block; }
.inv-card { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.inv-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.inv-bar { position: sticky; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.inv-bar span { font-weight: 600; }
.inv-bar .btn { flex: none; }
.inv-total { font-weight: 600; margin: 0 0 12px; }
.inv-dialog .warn-box { background: color-mix(in srgb, var(--gold) 10%, transparent); border-color: var(--gold); }
.inv-dialog .warn-box > b { color: var(--gold); }
/* Étape 2 « Vérifiez votre facture » : aperçu du document (feuille blanche réduite) + avertissement rouge + 2 boutons */
.inv-dialog.inv-step2 { max-width: 820px; }
.inv-dialog .warn-box.inv-stop { background: var(--red-soft); border-color: var(--red); }
.inv-dialog .warn-box.inv-stop > b { color: var(--red); }
.inv-stop strong { display: block; margin-bottom: 2px; }
.inv-prev { position: relative; margin-top: 12px; padding: 34px 10px 10px; border-radius: 14px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.inv-prev-tag { position: absolute; top: 9px; inset-inline-start: 12px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.inv-prev .voucher { margin: 0; font-size: 12.5px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.inv-prev .voucher h1 { font-size: 18px; }
.inv-prev .inv-logo { height: 34px; margin-bottom: 10px; }
.inv-prev .v-foot { font-size: 10px; }
.inv-nonum { display: block; font-size: 12px; font-weight: 500; color: #6d6a60; font-style: italic; }
.inv-confirm-btns .btn { flex: 1 1 200px; }
.inv-agree { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.inv-agree:has(input:checked) { border-color: var(--gold); }
@media (max-width: 560px) {
  .inv-prev { padding: 32px 6px 6px; }
  .inv-prev .voucher { padding: 14px 10px; overflow-x: auto; }
  .inv-prev .inv-lines { font-size: 11px; }
  .inv-prev .inv-lines th { font-size: 9px; letter-spacing: 0; }
  .inv-prev .inv-lines .num { white-space: normal; }
  .inv-confirm-btns { flex-direction: column-reverse; }
  .inv-confirm-btns .btn { flex: none; width: 100%; }
}
@media (hover: hover) { .inv-card:hover, .inv-pick:not(.on):hover { border-color: var(--gold); } }
/* Document de facture (toujours en français / anglais, de gauche à droite) */
.inv-en { color: #6d6a60; font-weight: 500; }
.inv-logo { display: block; height: 44px; width: auto; margin: 0 0 14px; }   /* logo du thème clair : « AZUR » foncé, lisible sur la feuille blanche */
.inv-lines { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.inv-lines th { text-align: left; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: #6d6a60; font-weight: 600; padding: 8px 6px; border-bottom: 2px solid #1b365d; }
.inv-lines td { padding: 9px 6px; border-bottom: 1px solid #e6e2d8; vertical-align: top; }
.inv-lines tr { break-inside: avoid; }
.inv-lines small { color: #6d6a60; }
.inv-lines .num { text-align: right; white-space: nowrap; }
.inv-lines .inv-d { white-space: nowrap; }
.inv-pay { margin: 14px 0 0; font-size: 13px; }
@media (max-width: 560px) { .inv-lines { font-size: 12px; } .inv-lines .inv-d { white-space: normal; } .inv-lines th, .inv-lines td { padding-left: 4px; padding-right: 4px; } }
/* PDF depuis un téléphone : la page est mise en largeur A4 le temps de la copie */
.voucher.invoice.inv-print { width: 760px; max-width: none; font-size: 14px; }
.voucher.invoice.inv-print .v-parties { grid-template-columns: 1fr 1fr; }
.voucher.invoice.inv-print .v-head { flex-direction: row; }
.voucher.invoice.inv-print .v-ref { text-align: right; }
.voucher.invoice.inv-print .inv-lines { font-size: 13px; }
.voucher.invoice.inv-print .inv-lines .inv-d { white-space: nowrap; }
/* Facture supprimée (admin) : carte estompée dans la liste, bandeau rouge au-dessus du document */
.inv-card.inv-del { opacity: .55; }
.inv-card.inv-del .tcard-top b:first-child { text-decoration: line-through; }
.inv-card .pill { font-size: 11px; vertical-align: 2px; margin-inline-start: 6px; text-decoration: none; display: inline-block; }
.inv-del-note { max-width: 760px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--red); background: var(--red-soft); color: var(--text); font-size: 14px; }

/* ==================== Fiche transfert « document » (owner, 2026-11-18, idée 5) ====================
   Une colonne sans cadres : en-tête (date, prix), trajet + petite carte, vol suivi, véhicule (photo), sièges (photo),
   client, chauffeur, prix, autres informations, historique (super admin). Barre d'actions flottante, fixée en bas. */
.tp { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 16px 150px; }
.tp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-top .back-link { margin: 0; }
.tp-edit { display: inline-flex; align-items: center; gap: 6px; border-color: var(--gold); color: var(--gold); }
.tp svg, .tp-bar svg, .tp-menu svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tp-head-l { min-width: 0; }
.tp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tp-ref { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.tp-when { margin: 6px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.tp-when span { color: var(--gold); margin-inline-start: 10px; font-variant-numeric: tabular-nums; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tp-head-r { text-align: end; flex: none; }
.tp-total { display: block; font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-head-r small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tp-route { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tp .tp-map { flex: none; width: 150px; height: 104px; margin: 0; border-radius: 12px; }
.tp-stops { flex: 1; min-width: 0; }
.tp-sec { padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.tp-sec:last-child { border-bottom: 0; }
.tp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tp-h svg { width: 17px; height: 17px; }
.tp-item { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.tp-item .grow, .tp .drv-card .grow { flex: 1; min-width: 0; }
.tp-item b { display: block; font-weight: 600; font-size: 15px; }
.tp-item small { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tp-item small svg { width: 15px; height: 15px; }
.tp-amt { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-car { flex: none; width: 168px; height: auto; max-height: 96px; object-fit: contain; }
.tp-car.none { width: 64px; height: 64px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.tp-plate { flex: none; width: 64px; height: 64px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.tp-plate img { width: 54px; height: 54px; object-fit: contain; }
.tp-plate.none { background: var(--panel); color: var(--muted); }
.tp-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; font-weight: 650; font-size: 14px; }
.tp-ava.none { background: none; border: 2px dashed var(--red); color: var(--red); }
.tp-none b { color: var(--red); }
.tp-contact { display: flex; gap: 6px; flex: none; }
.tp-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s; }
.tp-ico.wa { color: #25d366; }
.tp .dpanel { border: 0; background: none; padding: 0; margin: 0; }
.tp .dpanel + .dpanel { margin-top: 12px; }
.tp .dpanel-h { color: var(--muted); }
.tp .drv-card { padding: 4px 0; }
.tp .trow { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.tp .tp-h + .trow { border-top: 0; }
.tp .trow span { color: var(--muted); font-size: 14px; flex: none; max-width: 45%; }
.tp .trow b { font-weight: 550; font-size: 14px; text-align: end; overflow-wrap: anywhere; }
.tp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.tp .tp-h + .tp-row, .tp-fl-top + .tp-row { border-top: 0; }
.tp-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.tp-row span svg { color: var(--gold); width: 17px; height: 17px; }
.tp-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-sum { border-top: 1px solid var(--line); font-size: 16px; }
.tp-sum b { color: var(--gold); font-size: 18px; }
.tp-muted { color: var(--muted); font-size: 13.5px; margin: 6px 0; }
/* Vol suivi */
.tp-flight { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 4px; background: var(--panel); }
.tp-fl-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tp-fl-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); flex: none; }
.tp-fl-ico svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.tp-fl-top .grow { flex: 1; min-width: 0; }
.tp-fl-top small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.tp-fl-num { font-size: 19px; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: .02em; }
/* Historique */
.tp-hlist { list-style: none; margin: 0; padding: 0; position: relative; }
.tp-hlist li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.tp-hlist li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 15px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.tp-hico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); }
.tp-hico svg { width: 16px; height: 16px; }
.tp-hlist li.ok .tp-hico { color: var(--green); border-color: var(--green); }
.tp-hlist li.gold .tp-hico { color: var(--gold); border-color: var(--gold); }
.tp-hlist li.bad .tp-hico { color: var(--red); border-color: var(--red); }
.tp-hlist .grow { flex: 1; min-width: 0; padding-top: 5px; }
.tp-hlist b { display: block; font-weight: 600; font-size: 14.5px; }
.tp-hlist small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.tp-hlist time { flex: none; color: var(--muted); font-size: 12.5px; padding-top: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Barre d'actions flottante : fixée au-dessus de la barre d'onglets, toujours visible pendant le défilement */
.tp-bar { position: fixed; z-index: 800; left: 0; right: 0; bottom: calc(var(--tabbar-h, 64px) + 12px); display: flex; flex-direction: column; align-items: center; pointer-events: none; padding: 0 12px; }
.tp-bar-in { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 728px; padding: 8px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tp-bar .btn { margin: 0; border-radius: 999px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.tp-main { flex: 1 1 auto; min-width: 0; font-weight: 650; }
.tp-main span { overflow: hidden; text-overflow: ellipsis; }
.tp-side { flex: 0 0 auto; padding: 0 16px; }
.tp-bico { flex: none; width: 46px; padding: 0; color: var(--text); }
.tp-bar .assign-hint { pointer-events: auto; margin: 6px 0 0; padding: 4px 10px; border-radius: 8px; background: var(--panel); }
.tp-menu { pointer-events: auto; position: absolute; bottom: calc(100% + 8px); inset-inline-end: max(12px, calc(50% - 364px)); min-width: 230px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.tp-mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.tp-mi.danger { color: var(--red); }
/* Fenêtre « Modifier le transfert » */
.tp-e-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.tp-e-grid .tp-e-wide { grid-column: 1 / -1; }
.tp-e-grid .f { position: relative; }
/* « Modifier le transfert » : Client = liste déroulante de l'app avec recherche ; le nom du bouton ne déborde pas (owner, 2026-11-23). */
.tp-e-grid .sel-btn > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-sug { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); overflow: hidden; }
.tp-sug button { display: block; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.tp-sug button + button { border-top: 1px solid var(--line); }
.tp-sug b { display: block; font-size: 14px; }
.tp-sug small { color: var(--muted); font-size: 12.5px; }
.tp-edit-dlg .btns { justify-content: flex-end; }
@media (min-width: 1000px) {
  .tp-bar { left: var(--side-w); }
  .tp-when { font-size: 30px; }
}
@media (max-width: 640px) {
  .tp { padding-inline: 14px; }
  .tp-head { align-items: flex-start; }
  .tp-when { font-size: 22px; }
  .tp-when span { display: block; margin: 2px 0 0; }
  .tp-total { font-size: 22px; }
  .tp .tp-map { width: 104px; height: 88px; }
  .tp-car { width: 116px; }
  .tp-item { gap: 12px; }
  .tp-hlist li { flex-wrap: wrap; }
  .tp-hlist time { padding-top: 0; flex-basis: 100%; padding-inline-start: 44px; margin-top: -4px; }
  .tp-e-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-side { padding: 0 12px; }
  .tp-bar .btn { min-height: 44px; }
  .tp-bar-in { gap: 6px; padding: 6px; }
  .tp-main svg { display: none; }
  .tp-bar .assign-hint { display: none; }
  .tp-bar .tp-side { display: none; }   /* « M'assigner » : dans le menu … sur téléphone */
}
@media (min-width: 1000px) { [dir="rtl"] .tp-bar { left: 0; right: var(--side-w); } }
@media (hover: hover) {
  .tp-ico:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .tp-ico.wa:hover { background: #000; border-color: #000; color: #fff; }   /* WhatsApp : fond noir au survol (owner, 2026-11-18) */
  .tp-mi:hover { background: var(--text); color: var(--bg); }
  .tp-mi.danger:hover { background: var(--red); color: #fff; }
  .tp-sug button:hover { background: var(--panel); }
  .tp-edit:hover { border-color: var(--text); }
}

/* Message du bas (toast) : presque toute la largeur, 40 px de chaque côté (owner, 2026-11-18), centré ; au-dessus de la barre
   d'actions flottante sur la fiche transfert. */
#toast { left: 40px; right: 40px; transform: none; max-width: none; text-align: center; border-radius: 18px; }
body:has(.tp-bar) #toast { bottom: calc(var(--tabbar-h, 64px) + 92px); }
@media (min-width: 1000px) {
  #toast, #toast.err { left: calc(var(--side-w) + 40px); right: 40px; }
  [dir="rtl"] #toast, [dir="rtl"] #toast.err { left: 40px; right: calc(var(--side-w) + 40px); }
  body:has(.tp-bar) #toast { bottom: 96px; }
}
.tp-e-seats { margin: 4px 0 6px; }
.tp-e-lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tp-e-seat { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.tp-e-seat .grow { flex: 1; min-width: 0; }
.tp-e-seat b { display: block; font-size: 14px; font-weight: 600; }
.tp-e-seat small { color: var(--muted); font-size: 12.5px; }
.tp-plate.sm { width: 44px; height: 44px; border-radius: 10px; }
.tp-plate.sm img { width: 38px; height: 38px; }
.tp-step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.tp-qty { width: 54px !important; text-align: center; }
.tp-e-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
@media (hover: hover) { .tp-step:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
/* ==================== Client sur ordinateur : liste à gauche, fiche à droite (option 4, owner 2026-11-18) ====================
   viewTransferSplit() (app.js) : la fiche « document » de viewTransfer() est déplacée dans .tsplit-detail.
   La liste garde sa position et défile seule ; la barre d'actions flottante se centre sur la colonne de la fiche. */
@media (min-width: 1000px) {
  .wrap.tsplit-wrap { max-width: none; padding: 0; }
  .tsplit-wrap > .top { padding-inline: 28px; }
  .tsplit { --tsplit-w: 400px; display: grid; grid-template-columns: var(--tsplit-w) minmax(0, 1fr); align-items: start; flex: 1; }
  .tsplit-list { position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 40px 28px; border-inline-end: 1px solid var(--line); }
  .tsplit-list .tsearch-wrap { max-width: none; }
  .tsplit-list .list { display: block; padding: 0 0 24px; }
  .tsplit-list .list > .tcard { margin-bottom: 10px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
  .tsplit-list .list > .day-title { font-size: 15px; margin-top: 18px; }
  .tsplit-list .tcard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
  .tsplit-list .tcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .tsplit-list .filters { flex-wrap: wrap; }
  .tsplit-detail { min-width: 0; padding: 0 12px; }
  .tsplit-detail .tp { margin-inline: 0; }   /* fiche collée à gauche contre la liste, sans vide (owner, 2026-11-18) */
  .tsplit .tp-bar { align-items: flex-start; padding-inline-start: 28px; }   /* barre d'actions alignée sur la fiche */
  .tsplit .tp-top .back-link { display: none; }   /* la liste est à côté : pas de « Retour » */
  .tsplit .tp-bar { left: calc(var(--side-w) + var(--tsplit-w)); }
  [dir="rtl"] .tsplit .tp-bar { left: 0; right: calc(var(--side-w) + var(--tsplit-w)); }
}
@media (hover: hover) and (min-width: 1000px) { .tsplit-list .tcard:not(.on):hover { border-color: var(--gold); } }
/* Bouton de vue « Liste / Liste + détails » (client sur ordinateur), à droite des filtres ; survol comme vipazur.fr */
.tview { display: inline-flex; margin-inline-start: 0; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.tview-b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: background-color .3s, color .3s; }
.tview-b svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tview-b.on { background: var(--gold); color: #fff; }
.tsplit-list .tview { margin-inline-start: 0; }
.tview-b span { display: none; }   /* icônes seules, juste après le tri, dans les deux vues (owner, 2026-11-18 ; titre au survol) */
@media (hover: hover) { .tview-b:not(.on):hover { background: var(--text); color: var(--bg); } }

/* ==================== Position GPS du chauffeur (2026-11-18) ==================== */
/* Bandeau bleu « Activer la localisation » (chauffeurs), même forme que celui des notifications. */
.geo-bar { background: #1f6fb2; }
.geo-bar .btn.small { color: #1f6fb2; }
/* Chauffeur, panneau des étapes : « Position partagée avec le client ». */
.geo-live { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--green-soft); color: var(--text); font-size: 13.5px; line-height: 1.4; }
.geo-live svg { flex: none; width: 17px; height: 17px; margin-top: 1px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.geo-live.bad { background: var(--red-soft); }
.geo-live.bad svg { stroke: var(--red); }
/* Client, super admin : ligne sous le trajet. */
.tp-live { display: flex; align-items: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.tp-live[hidden] { display: none; }
.tp-live span:last-child { color: var(--muted); }
.tp-live:hover span:last-child { color: inherit; }
.tp-live.stale .live-dot { background: var(--muted); animation: none; }
.live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1faa6b; box-shadow: 0 0 0 0 rgba(31, 170, 107, .6); animation: live-pulse 1.8s infinite; }
.live-dot.wait { background: var(--gold); animation: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 170, 107, .55); } 70% { box-shadow: 0 0 0 9px rgba(31, 170, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 170, 107, 0); } }
/* Voiture du chauffeur sur les cartes (petite carte, grande carte, planning). */
.live-car { background: none; border: 0; }
.live-car-dot { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.live-car-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; animation: live-pulse 1.8s infinite; }
.live-car-dot.stale { filter: grayscale(1); opacity: .7; }
.live-car-dot.stale::after { animation: none; }
.live-car-dot svg { width: 62%; height: 62%; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-car-dot::after { animation: none; } }

/* Liste des transferts sur ordinateur : collée à la colonne de gauche, toute la largeur (owner, 2026-11-18) */
@media (min-width: 1000px) { .wrap.tlist-wrap { max-width: none; margin: 0; } }
/* Filtre « Statut » : une pastille avec liste déroulante (Tous, Confirmés, En attente, Terminés) */
.chip-filter.tf-status { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; cursor: pointer; }
.tf-status > span { color: var(--muted); }
.tf-status.on > span { color: inherit; opacity: .85; }
.tf-status select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 6px 18px 6px 0; margin-inline-end: -18px; cursor: pointer; outline: none; }
.tf-status select option { color: var(--text); background: var(--bg); font-weight: 400; }
.tf-status svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; flex: none; }
.tf-status:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .chip-filter.tf-status:hover > span { color: var(--bg); } }
.tsplit.has-back .tp-top .back-link { display: flex; }   /* ouvert depuis le planning, un vol… : « Retour » y ramène */
/* Ordinateur : le contenu de chaque page démarre contre la colonne de gauche, jamais centré avec un vide (owner, 2026-11-18).
   Pages de connexion (sans colonne) : restent centrées. */
@media (min-width: 1000px) { #app:has(> .tabs.mode-tabs) > .wrap { margin-inline: 0 auto; } }

/* Tri de la liste des transferts : petite icône ronde (owner, 2026-11-18) ; flèche vers le haut = plus ancien d'abord. */
/* Même cadre que le choix de présentation (.tview) : 38 px, rond doré de 30 px à l'intérieur (owner, 2026-11-18). */
.chip-filter.t-sort { width: 38px; height: 38px; min-height: 0; padding: 3px; display: inline-grid; place-items: center; align-self: center; flex: none;
  border: 1px solid var(--line); background: linear-gradient(var(--gold), var(--gold)) content-box, var(--panel); color: #fff; }
.t-sort svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.t-sort.asc svg { transform: scaleY(-1); }

/* Colonne de gauche (ordinateur) : logo aligné sur les icônes du menu, puis drapeau et bouton clair/sombre (owner, 2026-11-18).
   Le bouton thème de l'en-tête est caché quand la colonne est là. */
@media (min-width: 1000px) {
  .tabs.mode-tabs .side-top { padding-inline-start: 7px; gap: 4px; }
  [dir="rtl"] .tabs.mode-tabs .side-top { padding: 4px 7px 26px 0; }
  .tabs.mode-tabs .side-top .side-logo { margin-inline-end: 4px; }
  .tabs.mode-tabs .side-top .tool-btn[data-act="theme"] { color: var(--muted); }
  .tabs.mode-tabs .side-top .tool-btn[data-act="theme"] svg { width: 19px; height: 19px; }
  #app:has(> .tabs.mode-tabs) .top .tool-btn[data-act="theme"] { display: none; }
}

/* Recherche des transferts : même largeur en « Liste » et en « Liste + fiche » (owner, 2026-11-18), celle de la colonne de liste. */
@media (min-width: 1000px) {
  .tsearch-wrap, .tsplit-list .tsearch-wrap { max-width: 338px; }   /* 338 : la place de la colonne une fois sa barre de défilement comptée */
  .inv-page .tsearch-wrap { max-width: 560px; }
}

/* Liste des transferts sur ordinateur (owner, 2026-11-18) : Statut + tri + présentation forment une ligne aussi large que la
   recherche (le choix de présentation finit au bord droit de la recherche), et rien ne bouge quand on change de présentation. */
@media (min-width: 1000px) {
  .filters:has(> .t-sort) { max-width: 338px; flex-wrap: nowrap; }
  .filters:has(> .t-sort) > .tf-status { flex: 1 1 auto; min-width: 0; }
  .filters:has(> .t-sort) > .tf-status b { flex: 1 1 auto; min-width: 0; text-align: start; }   /* la flèche reste au bout du champ */
  .tsplit .tsplit-list { padding-top: 0; }
  .tsplit .tsplit-list .list { padding-top: 4px; }
}
/* Menu « Statut » de la liste des transferts (owner, 2026-11-18) : remplace la liste du navigateur. */
.tf-status b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-status[aria-expanded="true"] svg { transform: rotate(180deg); }
.tf-status svg { transition: transform .2s; }
.tf-menu { position: fixed; z-index: 1100; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); animation: tfIn .14s ease-out; }
@keyframes tfIn { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tf-menu { animation: none; } }
.tf-opt { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text);
  font: inherit; font-size: 14.5px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.tf-opt svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; flex: none; transition: stroke .3s; }
.tf-opt.on { color: var(--gold); font-weight: 600; }
.tf-opt.on svg { visibility: visible; }
.tf-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (hover: hover) {
  .tf-opt:hover { background: var(--text); color: var(--bg); }
  .tf-opt:hover svg { stroke: var(--bg); }
}

/* ==================== Chauffeur : prêt à recevoir des courses (2026-11-18) ==================== */
.ready { margin: 4px 0 18px; padding: 14px; border: 1px solid var(--red); border-radius: 14px; background: var(--red-soft); }
.ready.all { padding: 10px 14px; border-color: var(--green); background: var(--green-soft); }
.ready-msg { margin: 0 0 10px; font-weight: 600; line-height: 1.4; }
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ready-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel); }
.ready-list .grow { flex: 1; min-width: 0; }
.ready-list li small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ready-list .btn.small { flex: none; }
.ready-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.ready-list li.ok .ready-ico { background: var(--green); }
.ready-list li.ok b { color: var(--muted); font-weight: 500; }
.ready-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ready-ok svg { flex: none; width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ready { max-width: 640px; }   /* ordinateur : liste étroite, une colonne (owner : « pas si large ») */
/* Téléphone : rond à gauche, texte à droite, bouton sous le texte (owner : le bouton écrasait le texte). */
@media (max-width: 699px) {
  .ready-list li { display: grid; grid-template-columns: 24px 1fr; align-items: start; column-gap: 10px; row-gap: 10px; }
  .ready-ico { margin-top: 1px; }
  .ready-list .btn.small { grid-column: 2; justify-self: start; }
}

/* Dialogue « Proposer à un chauffeur » : chauffeur pas prêt (notifications, position exacte, dossier VTC), non cochable. */
.dp-row.unready { opacity: .65; cursor: not-allowed; }
.dp-unready { display: block; margin-top: 2px; color: var(--red); font-size: 12px; font-style: normal; }
.dp-unready-n { color: var(--red); }

/* Fenêtre « Activer la position exacte » : étapes numérotées. */
.geo-fix-steps { margin: 6px 0 12px; padding-inline-start: 22px; display: grid; gap: 8px; line-height: 1.45; }

/* Mon dossier VTC : pièces en liste à cocher (owner, 2026-11-18). Envoyée = vert ; obligatoire manquante = rouge. */
.mf-check { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mf-check li { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mf-check li.ok { border-color: var(--green); background: var(--green-soft); }
.mf-check li.todo { border-color: var(--red); }
.mf-check .grow { min-width: 0; }
.mf-check small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.mf-check .mf-file { margin-top: 6px; overflow-wrap: anywhere; }
.mf-ico { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.mf-check li.ok .mf-ico { background: var(--green); }
.mf-check li.todo .mf-ico { background: var(--red); }
.mf-up { margin-top: 10px; cursor: pointer; }
.mf-up.busy { opacity: .6; pointer-events: none; }
/* Filtre par dates (owner, 2026-11-18) : bouton calendrier au bout de la recherche (même largeur totale), doré quand une période est choisie. */
.tsearch-row { display: flex; gap: 8px; align-items: stretch; }
.tsearch-row input[type=search] { flex: 1 1 auto; min-width: 0; }
.t-date { flex: none; width: 47px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; padding: 0; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s; }
.t-date svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-date.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.t-range { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-size: 13.5px; font-weight: 600; }
.t-range button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s; }
.t-range svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) {
  .t-date:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .t-range button:hover { background: var(--text); color: var(--bg); }
}
/* Utilisateurs : onglets Chauffeurs / Clients en haut, comme Tarifs (owner, 2026-11-18). */
.us-seg { max-width: 560px; margin: 6px 0 12px; }   /* 3 onglets sur une ligne (Vérification des documents) */

/* Petit cercle qui tourne (vérification de la position exacte). */
.mini-spin { display: inline-block; width: 13px; height: 13px; margin-inline-end: 7px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vpz-mini-spin .8s linear infinite; }
@keyframes vpz-mini-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mini-spin { animation-duration: 2s; } }
/* ==================== Chauffeurs : prêt à recevoir des courses, vérification des documents (owner, 2026-11-18) ==================== */
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.rd-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rd-chip.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.rd-chip.no { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 9%, transparent); }
.dr { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dr-list { display: flex; flex-direction: column; gap: 10px; }
.dr-list .us-search { padding: 0 0 4px; }
.dr-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-align: start; cursor: pointer; font: inherit;
  transition: border-color .2s, box-shadow .2s; }
.dr-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.dr-card .grow { flex: 1; min-width: 0; }
.dr-card b { display: block; font-size: 15px; }
.dr-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-sum { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.dr-sum .pill { font-size: 11.5px; padding: 1px 8px; }
.dr-detail { min-width: 0; }
.dr-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dr-head .grow { flex: 1; min-width: 0; }
.dr-head h2 { margin: 0; font-size: 22px; }
.dr-head small { color: var(--muted); font-size: 13.5px; }
.dr-ready { margin: 4px 0 10px; }
.dr-docs { display: flex; flex-direction: column; gap: 8px; }
.dr-type { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dr-type-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dr-type-h b { font-size: 14.5px; }
.dr-type-h small { color: var(--muted); font-size: 12px; }
.dr-type-h em { font-style: normal; color: var(--muted); font-size: 13px; }
.dr-type.miss .dr-type-h em { color: var(--red); font-weight: 600; }
.dr-file { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.dr-file.rejected { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.dr-file.approved { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.dr-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.dr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dr-thumb svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.dr-file .grow { flex: 1; min-width: 0; }
.dr-file b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.dr-file b a { color: var(--text); }
.dr-file small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dr-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dr-act .pill { font-size: 12px; }
.dr-rej { margin-top: 8px; }
.dr-rej textarea { width: 100%; }
@media (min-width: 1000px) {
  .dr { grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
  .dr-list { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 6px; }
}
@media (max-width: 640px) {
  .dr-file { flex-wrap: wrap; }
  .dr-act { flex-direction: row; align-items: center; flex-wrap: wrap; width: 100%; justify-content: flex-start; }
  .dr-head .grow { flex: 1 1 calc(100% - 90px); }
  .dr-head .btn { width: 100%; }   /* « Valider les N pièces » sur sa propre ligne */
}

/* Mon dossier VTC : statut de chaque pièce donné par VIPAZUR (en attente, validée, refusée + motif). */
.mf-check li.wait { border-color: var(--gold); }
.mf-check li.wait .mf-ico { background: var(--gold); }
.mf-check li.rej { border-color: var(--red); }
.mf-check li.rej .mf-ico { background: var(--red); }
.mf-st { margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-style: normal; white-space: nowrap; border: 1px solid currentColor; }
.mf-st.pending { color: var(--gold); }
.mf-st.approved { color: var(--green); }
.mf-st.rejected { color: var(--red); }
.mf-file.rej a { text-decoration: line-through; opacity: .7; }
.mf-note { display: block; margin-top: 2px; color: var(--red); font-size: 12.5px; }
/* Liste « Nouvelles propositions » : étapes « position exacte » numérotées. */
.ready-steps { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
/* Vérification des documents : pièce en pleine largeur, boutons dessous, plein écran dans une fenêtre (owner, 2026-11-18). */
.dr-file { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
.dr-file-h { display: flex; align-items: center; gap: 10px; }
.dr-file-h .grow { flex: 1; min-width: 0; }
.dr-file-h b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.dr-full { flex: none; width: 36px; height: 36px; }
.dr-full svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dr-view { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.dr-view img { display: block; width: 100%; max-height: 70vh; object-fit: contain; cursor: zoom-in; }
.dr-view iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.dr-note { margin: 0; font-size: 13.5px; }
.dr-file .dr-act { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.dr-file .dr-act .btn { min-width: 130px; }
.dv-overlay { align-items: stretch; }
.dv-sheet { width: min(1200px, calc(100% - 32px)); margin: 16px auto; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.dv-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-body { flex: 1; min-height: 0; display: grid; place-items: center; background: #111; }
.dv-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dv-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 640px) {
  .dr-view iframe { height: 420px; }
  .dv-sheet { width: calc(100% - 16px); margin: 8px auto; }
}

/* Page « Mon dossier VTC » (#dossier, son propre onglet) : une colonne de lecture sur ordinateur. */
.settings.mf-page { max-width: 760px; }

/* Plein écran : la pièce défile dans la fenêtre (rien de caché en bas), Valider / Refuser dans une barre en bas (owner, 2026-11-18). */
.dv-sheet { max-height: calc(100% - 32px); }
.dv-body { overflow: auto; overscroll-behavior: contain; }
.dv-body.img { display: block; text-align: center; padding: 12px; }
.dv-body.img img { max-width: 100%; max-height: none; height: auto; }
.dv-foot { border-top: 1px solid var(--line); padding: 10px 14px; background: var(--bg); }
.dv-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dv-btns .grow { flex: 1; }
.dv-btns .btn { min-width: 130px; }
.dv-rej { margin-bottom: 8px; }
.dv-rej textarea { width: 100%; }
@media (max-width: 640px) { .dv-sheet { max-height: calc(100% - 16px); } .dv-btns .btn { flex: 1; min-width: 0; } }

/* Utilisateurs : « Vérification des documents » en bouton à côté de « + Ajouter », pastille = pièces à vérifier (owner, 2026-11-18). */
.us-docbtn { display: inline-flex; align-items: center; gap: 2px; }
.dos-count[hidden] { display: none; }

/* Mon dossier VTC, design 1 (owner, 2026-11-18) : progression, puis une carte dépliable par sujet. */
.mf-prog { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.mf-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mf-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.mfg-list { display: grid; gap: 10px; }
.mfg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.mfg-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.mfg-head::-webkit-details-marker { display: none; }
.mfg-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mfg-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--line); color: var(--muted); }
.mfg-ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfg-ico.ok { background: var(--green-soft); color: var(--green); } .mfg-ico.wait { background: rgba(184, 155, 64, .16); color: var(--gold); } .mfg-ico.bad { background: var(--red-soft); color: var(--red); }
.mfg-chip { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; border: 1px solid currentColor; color: var(--muted); }
.mfg-chip.ok { color: var(--green); } .mfg-chip.wait { color: var(--gold); } .mfg-chip.bad { color: var(--red); }
.mfg-chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .2s; }
.mfg[open] .mfg-chev { transform: rotate(-135deg); margin-top: 4px; }
.mfg[open] .mfg-head { border-bottom: 1px solid var(--line); }
.mfg-body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.mfg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.mfg-fields .f { margin: 0 0 4px; }
.mfg-note { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mfg-note.bad { background: var(--red-soft); color: var(--red); } .mfg-note.wait { background: rgba(184, 155, 64, .14); color: var(--gold); }
.mf-doc { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.mf-doc.ok { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.mf-doc.wait { border-style: solid; border-color: var(--gold); }
.mf-doc.rej, .mf-doc.todo:not(.opt) { border-color: var(--red); }
.mf-doc-h { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.mf-doc small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.mf-doc .mf-file { margin-top: 6px; overflow-wrap: anywhere; }
.mf-doc .mf-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.mf-doc.ok .mf-ico { background: var(--green); } .mf-doc.wait .mf-ico { background: var(--gold); } .mf-doc.rej .mf-ico, .mf-doc.todo:not(.opt) .mf-ico { background: var(--red); }
.mf-optl { color: var(--muted); font-size: 12px; font-weight: 400; }
@media (hover: hover) { .mfg-head:hover { background: var(--panel-2); } }

/* Mon dossier VTC : pièce pas encore transmise (champs du sujet vides) et champ vide à remplir (owner, 2026-11-18). */
.mf-doc.draft { border-style: solid; border-color: var(--line); }
.mf-doc.draft .mf-ico { background: var(--muted); }
.mf-st.draft { color: var(--muted); }
.mfg-fields input.mf-miss { border-color: var(--red); }

/* Grande carte du trajet : voiture du chauffeur bien visible (dorée, 46 px, bord épais) et étiquette « Votre chauffeur » (owner, 2026-11-18) */
.live-car.xl .live-car-dot { border-width: 3px; box-shadow: 0 0 0 4px rgba(184, 155, 64, .35), 0 4px 14px rgba(0, 0, 0, .5); }
.leaflet-tooltip.live-tip { background: #B89B40; border: 0; color: #fff; font-weight: 650; font-size: 13px; padding: 4px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.leaflet-tooltip.live-tip::before { border-top-color: #B89B40; }

/* Mon dossier VTC : carte et permis en deux faces, une ligne Recto et une ligne Verso (owner, 2026-11-18). */
.mf-slot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mf-slot-l { min-width: 52px; font-size: 13px; }
.mf-slot .mf-up, .mf-slot .mf-file { margin-top: 0; }
.mf-side { margin-inline-end: 6px; font-size: 12px; color: var(--muted); }

/* Mon dossier VTC : calendrier des fins de validité (celui de la réservation) ; la carte ne coupe plus la fenêtre du calendrier. */
.mfg { overflow: visible; }
.mfg-head { border-radius: 14px; }
.mfg[open] .mfg-head { border-radius: 14px 14px 0 0; }
.mfg-fields .mf-pick { margin: 0 0 4px; }
.mfg-fields .mf-pick > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.mf-pick.mf-miss .bk-pick-btn { border-color: var(--red); }

/* Documents VTC : carte VTC ou permis avec un seul cote envoye (recto + verso exiges). */
.dr-type-h em.dr-side-miss { color: var(--red); font-weight: 600; }

/* Étapes de la course : bouton à glisser (owner, 2026-11-18). Doré, rond blanc à gauche, la partie glissée s'assombrit. */
.slide-btn { position: relative; flex: 1; min-width: 0; height: 48px; border-radius: 999px; background: var(--gold); color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; cursor: default; }
.slide-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0, 0, 0, .2); border-radius: 999px; pointer-events: none; }
.slide-lbl { position: relative; padding: 0 50px; font-weight: 600; font-size: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--gold); display: grid; place-items: center; touch-action: none; cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.slide-btn.tp-main .slide-knob svg { display: block; }   /* .tp-main svg est caché ailleurs */
.slide-knob svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slide-btn.drag .slide-knob { cursor: grabbing; }
.slide-btn.busy .slide-lbl { opacity: .75; }
.slide-btn.nudge .slide-knob { animation: slide-nudge .55s ease; }
@keyframes slide-nudge { 30% { transform: translateX(26px); } 65% { transform: translateX(-3px); } 100% { transform: translateX(0); } }
.slide-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (hover: hover) { .slide-knob:hover { background: var(--text); color: var(--bg); } }
@media (prefers-reduced-motion: reduce) { .slide-btn.nudge .slide-knob { animation: none; } }

/* Fins de validité : case JJ/MM/AAAA + bouton calendrier (owner, 2026-11-18). */
.mf-datebox { display: flex; gap: 8px; }
.mf-datetxt { flex: 1; min-width: 0; }
.mf-datetxt.bad, .mf-pick.mf-miss .mf-datetxt { border-color: var(--red); }
.mf-calbtn { flex: none; width: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--gold); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mf-calbtn.bk-pick-btn { width: 54px; height: auto; min-height: 46px; padding: 0; }
.mf-calbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@media (hover: hover) { .mf-calbtn:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

/* Grande carte : la voiture du chauffeur et son étiquette s'ouvrent dans l'application de navigation. */
.live-car.big, .leaflet-tooltip.live-tip { cursor: pointer; }
.leaflet-tooltip.live-tip { pointer-events: auto; }

/* Fiche transfert : « Voir mon chauffeur sur la carte » dans la section du trajet, à droite des adresses (sous elles sur
   téléphone), avec un halo doré qui pulse (owner, 2026-11-18). */
.tp-route { flex-wrap: wrap; }
.tp-see { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--gold); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; animation: see-pulse 1.8s infinite; transition: background-color .3s, color .3s; }
.tp-see[hidden] { display: none; }
.tp-see svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes see-pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 155, 64, .6); } 70% { box-shadow: 0 0 0 14px rgba(184, 155, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 155, 64, 0); } }
@media (max-width: 640px) { .tp-see { flex-basis: 100%; margin-top: 4px; } }
@media (hover: hover) { .tp-see:hover { background: var(--text); color: var(--bg); } }
@media (prefers-reduced-motion: reduce) { .tp-see { animation: none; } }

/* Messages sur ordinateur (super admin) : conversations à gauche, conversation à droite (owner, 2026-11-18). */
@media (min-width: 1000px) {
  .chat-page.chs-wrap { max-width: none; }
  .chs { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
  .chs-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 24px 28px; border-inline-end: 1px solid var(--line); }
  .chs-list h1 { margin: 6px 0 12px; }
  .chs-list .thread { padding: 10px 12px; margin-bottom: 4px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 14px; transition: border-color .2s, background-color .2s; }
  .chs-list .thread.on { border-color: var(--gold); background: var(--panel); }
  .chs-detail { min-height: 0; display: flex; flex-direction: column; }
  .chs-detail .chat-head { padding-top: 14px; }
  .chs-detail .chat-head .icon-plain { display: none; }   /* la liste est à côté : pas de retour */
}
@media (hover: hover) and (min-width: 1000px) { .chs-list .thread:not(.on):hover { background: var(--panel); } }

/* Messagerie : la page ne défile pas, seuls les messages (owner, 2026-11-18). */
html:has(.chat-page), body:has(.chat-page) { overflow: hidden; overscroll-behavior: none; }
.chat-msgs { overscroll-behavior: contain; }
#app:has(> .tabs.mode-tabs):has(.chat-page) { padding-bottom: 0; }   /* hauteur calculée en JS (fit), barre du bas comprise */

/* Messagerie : courses proposées en direct (owner, 2026-11-18). */
.chat-offer { flex: none; width: 42px; height: 42px; align-self: flex-end; border-radius: 50%; border: 1px solid var(--gold); background: var(--panel); color: var(--gold); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s, border-color .3s; }
.chat-offer svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg-b.has-offer { max-width: min(420px, 92%); width: 100%; }
.co-card { display: flex; flex-direction: column; gap: 4px; text-align: start; }
.co-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-top .pill { font-size: 11.5px; }
.co-ref { opacity: .75; font-size: 12px; }
.co-route { display: flex; flex-direction: column; font-weight: 600; }
.co-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 2px; font-size: 13.5px; }
.co-pay { display: flex; flex-direction: column; align-items: flex-end; }
.co-pay small { opacity: .75; font-size: 11px; }
.co-pay b { font-size: 16px; }
.co-note { margin: 4px 0 0; font-style: italic; font-size: 13px; }
.co-btns { display: flex; gap: 8px; margin-top: 6px; }
.co-btns .btn { flex: 1; }
.co-card.withdrawn, .co-card.expired, .co-card.cancelled { opacity: .7; }
.co-dialog .co-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; margin: 8px 0 10px; }
.co-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.co-row.on { border-color: var(--gold); background: var(--panel); }
.co-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.co-row small { color: var(--muted); font-size: 12.5px; }
.co-row em { color: var(--gold); font-style: normal; }
.co-r { font-size: 14px; }
.co-price { flex: none; display: flex; align-items: center; gap: 4px; }
.co-price input { width: 82px; text-align: end; }
.co-price input:disabled { opacity: .45; }
@media (hover: hover) { .chat-offer:hover { background: var(--gold); border-color: var(--gold); color: #fff; } .co-row:not(.on):hover { border-color: var(--muted); } }

/* Documents VTC : une carte par sujet, numéros + dates + pièces ensemble (owner, 2026-11-18). */
.drg-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.drg { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 14px 16px; }
.drg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drg-h b { flex: 1; font-size: 16px; }
.drg-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.drg-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drg-exp { font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.drg-exp.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.drg-exp.warn { color: var(--gold); border-color: var(--gold); }
.drg-exp.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.drg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.drg-fields dt { color: var(--muted); font-size: 12.5px; }
.drg-fields dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.drg-empty { color: var(--red); font-weight: 500; font-size: 13.5px; }
.drg-doc { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.drg .dr-file { background: var(--bg); }

/* Liste « Nouvelles propositions » : progression des pièces du dossier VTC (owner, 2026-11-18). */
.rd-prog { margin: 8px 0 2px; font-size: 12.5px; }

/* Documents VTC : sujets validés repliés en bas (owner, 2026-11-18). */
.drg.closed > :not(.drg-h) { display: none; }
.drg.done .drg-h { cursor: pointer; }
.drg.done.closed { padding-block: 10px; opacity: .85; }
.drg-chev { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.drg.done:not(.closed) .drg-chev { transform: rotate(180deg); }
@media (hover: hover) { .drg.done.closed:hover { opacity: 1; border-color: var(--muted); } }

/* Messagerie : bouton corbeille sur les messages de VIPAZUR (super admin). */
.msg-b { position: relative; }
.msg-del { position: absolute; top: -9px; inset-inline-start: -9px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--red); display: grid; place-items: center; padding: 0; cursor: pointer; transition: opacity .2s, background-color .3s, color .3s; }
.msg-del svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .msg-b .msg-del { opacity: 0; } .msg-b:hover .msg-del, .msg-del:focus-visible { opacity: 1; } .msg-del:hover { background: var(--red); border-color: var(--red); color: #fff; } }

/* Messagerie : heure, coches (✓ envoyé, ✓✓ lu) et corbeille en bas à droite du message (owner, 2026-11-18). */
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 2px; }
.msg-meta time { display: inline; margin: 0; }
.msg-tick { display: inline-flex; opacity: .8; }
.msg-tick svg { width: 17px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.msg-tick.wait svg { width: 13px; height: 13px; stroke-width: 2; }
.msg-tick.read { opacity: 1; color: #2f9bff; }
.msg-b.me .msg-tick.read { color: #0a5fd8; }
html:not([data-theme="light"]) .msg-b.me .msg-tick.read { color: #8fd0ff; }
.msg-b.sending { opacity: .8; }
.msg-meta .msg-del { position: static; order: 3; width: 22px; height: 22px; margin-inline-start: 2px; }
.msg-meta .msg-del svg { width: 12px; height: 12px; }

/* Messagerie comme WhatsApp : heure et coches sur une ligne, en bas à droite, à la suite du texte quand la place le permet. */
.msg-b:not(.has-offer) > div:not(.msg-meta) { display: inline; }
.msg-b:not(.has-offer) > .msg-meta { display: inline-flex; float: right; margin: 6px 0 -3px 12px; white-space: nowrap; }
.msg-b:not(.has-offer)::after { content: ""; display: block; clear: both; }
.msg-meta time { white-space: nowrap; }

/* Barres de défilement aux couleurs de VIPAZUR (owner, 2026-11-18) : fines, poignée dorée arrondie, piste invisible, sans flèches. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--gold) 85%, transparent); }
::-webkit-scrollbar-thumb:active { background-color: var(--gold); }
/* Firefox (pas de ::-webkit-scrollbar) : barre fine dorée. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--gold) 55%, transparent) transparent; }
}

/* Messagerie sur téléphone : page fixée sur la partie visible de l'écran, la case reste au-dessus de la barre du bas (owner, 2026-11-18). */
@media (max-width: 999px) { .chat-page.chat-fixed { position: fixed; left: 0; right: 0; margin: 0 auto; width: 100%; min-height: 0; z-index: 1; } }

/* Messagerie : coches blanches (✓ envoyé un peu pâle, ✓✓ lu bien blanc) et état de la carte de course sur fond plein, bien lisible (owner, 2026-11-18). */
.msg-b.me .msg-tick, .msg-b.me .msg-tick.read, html:not([data-theme="light"]) .msg-b.me .msg-tick.read { color: #fff; }
.msg-b.me .msg-tick { opacity: .75; }
.msg-b.me .msg-tick.read { opacity: 1; }
.co-top .pill { font-weight: 700; padding: 3px 10px; border: 0; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.co-top .pill.ok { background: var(--green); }
.co-top .pill.bad { background: var(--red); }
.co-top .pill.gold { background: var(--gold); }
.msg-b.me .co-top .pill.gold { background: #fff; color: var(--gold); }

/* Messagerie : jour au-dessus de ses messages, comme WhatsApp (owner, 2026-11-18). */
.msg-day { align-self: center; margin: 8px 0 2px; }
.msg-day span { display: inline-block; padding: 4px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }

/* Bulle : référence, texte, heure, coches et corbeille sur une ligne, tous centrés verticalement ; l'heure passe dessous à droite si le texte est long (owner, 2026-11-18). */
.msg-b:not(.has-offer) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; padding: 7px 10px 7px 12px; }
.msg-b:not(.has-offer)::after { content: none; }
.msg-b:not(.has-offer) > div:not(.msg-meta) { display: block; flex: 0 1 auto; min-width: 0; }
.msg-b:not(.has-offer) > .msg-ref { margin: 0; }
.msg-b:not(.has-offer) > .msg-meta { display: flex; float: none; align-items: center; margin: 0 0 0 auto; padding-inline-start: 6px; white-space: nowrap; }
.msg-meta time { line-height: 1; }
.msg-meta .msg-tick { align-items: center; }

/* Proposer des courses (messagerie) : seule la liste défile, le bouton d'envoi reste visible en bas de la fenêtre ; espace sous l'avertissement (owner, 2026-11-18). */
.co-dialog { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.co-dialog > * { flex: none; }
.co-dialog .warn-box { margin-bottom: 14px; }
.co-dialog .co-list { flex: 1 1 auto; min-height: 140px; max-height: none; }
.co-dialog .btns { margin-top: 8px; }

/* Facturation des chauffeurs (earnings.js) et commission VIPAZUR sur les courses payées à bord (owner, 2026-11-18). */
.dp-board { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 4px 0 12px; background: var(--panel); }
.dp-board-t { margin: 0 0 10px; font-weight: 600; color: var(--gold); font-size: 14px; }
.dp-board .two { margin-bottom: 8px; }
.dp-pcts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dp-pcts .hint { flex: 1 1 100%; margin: 0 0 2px; }
.dp-pcts .chip-filter { padding: 5px 12px; font-size: 13px; }
.collect-comm { font-size: 13.5px; color: var(--muted); margin: -4px 0 8px; }
.offer-board { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); font-weight: 600; font-size: 13.5px; }
.offer-board small { display: block; font-weight: 500; color: var(--text); margin-top: 2px; }
.ea-page { max-width: 860px; }
.ea-page h1 { margin-bottom: 12px; }
.ea-who { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.ea-who h1 { margin: 0; }
.ea-bal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.ea-bal small { flex: 1 1 100%; color: var(--muted); font-size: 13.5px; }
.ea-bal b { font-size: 30px; font-variant-numeric: tabular-nums; flex: 1 1 auto; }
.ea-bal.pos b { color: #2e9d5b; }
.ea-bal.neg b { color: var(--gold); }
.ea-seg { margin: 14px 0 12px; }
.ea-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ea-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ea-tile small { color: var(--muted); font-size: 12.5px; }
.ea-tile b { font-size: 19px; font-variant-numeric: tabular-nums; }
.ea-h { font-size: 16px; margin: 22px 0 8px; }
.ea-months { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ea-mrow { display: grid; grid-template-columns: 1.6fr .7fr 1fr 1fr; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 14px; }
.ea-mrow span:not(:first-child) { text-align: right; }
.ea-mrow span:first-child { text-transform: capitalize; }
.ea-mhead { border-top: 0; color: var(--muted); font-size: 12.5px; background: var(--panel); }
.ea-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ea-line { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ea-line:first-child { border-top: 0; }
.ea-l-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ea-l-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-l-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ea-l-amt small { color: var(--muted); font-size: 12px; }
.ea-pos { color: #2e9d5b; }
.ea-neg { color: var(--gold); }
.ea-soft { color: var(--muted); font-weight: 500; }
.ea-pay { background: var(--panel); }
.ea-del { flex: 0 0 auto; }
.ea-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--text); }
.ea-card-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ea-card-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ea-card-who small { color: var(--muted); font-size: 12.5px; }
.ea-card-bal { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ea-card-bal small { color: var(--muted); font-size: 12px; }
.ea-card-bal.pos b { color: #2e9d5b; }
.ea-card-bal.neg b { color: var(--gold); }
.ea-dirs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
@media (max-width: 640px) {
  .ea-tiles { grid-template-columns: 1fr 1fr; }
  .ea-bal b { font-size: 26px; }
  .ea-seg button { padding: 8px 4px; font-size: 13px; white-space: nowrap; }
  .ea-mrow { grid-template-columns: 1.3fr .6fr 1fr 1fr; font-size: 13px; padding: 8px 10px; }
}

/* Proposer des courses : avertissement sur une ligne, fermable ; pas d'espace vide au-dessus du bouton (owner, 2026-11-18). */
.co-dialog .co-warn { align-items: center; gap: 10px; padding: 8px 8px 8px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.co-dialog .co-warn > b { font-size: 16px; }
.co-dialog .co-warn > div { flex: 1; min-width: 0; }
.co-warn-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--red); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s; }
.co-warn-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
@media (hover: hover) { .co-warn-x:hover { background: var(--red); color: #fff; } }
.co-dialog #coMsg { margin-top: 4px; min-height: 0; }
.co-dialog #coMsg:empty { display: none; }
.co-dialog .co-list { min-height: 110px; }
.co-dialog label.f textarea { min-height: 0; height: 64px; }
.co-dialog .btns { margin-top: 10px; }

/* Proposer des courses : message au chauffeur sur une ligne, texte indicatif dans la case (owner, 2026-11-18). */
.co-dialog .co-note-in { min-height: 0; height: 46px; max-height: 120px; margin-top: 10px; resize: none; }

/* Boutons −20 % / −30 % à côté du prix proposé (owner, 2026-11-18). */
.pct-cut { display: flex; gap: 6px; margin-top: 6px; }
.pct-cut button { flex: 1; min-height: 0; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pct-cut button.on { background: var(--gold); color: #fff; }
@media (hover: hover) { .pct-cut button:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.co-price { flex-wrap: wrap; justify-content: flex-end; max-width: 128px; }
.co-price .pct-cut { flex-basis: 100%; gap: 4px; }
.co-price .pct-cut button { padding: 0 6px; height: 28px; font-size: 12px; }
.co-row:not(.on) .pct-cut { opacity: .45; pointer-events: none; }

/* Proposer des courses, ligne « design D » (owner, 2026-11-18) : détails à gauche, gros prix doré à droite, boutons de prix dessous. */
.co-row.co-d { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 2px 10px; padding: 12px 12px 12px 14px; }
.co-d > input[type=checkbox] { margin-top: 3px; }
.co-d .grow { gap: 1px; }
.co-d .co-when { font-size: 15px; }
.co-d .co-ex { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.co-pr { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.co-was { font-size: 12px; color: var(--muted); }
.co-big { font-size: 24px; line-height: 1.15; color: var(--gold); white-space: nowrap; }
.co-pr small { font-size: 12px; color: var(--muted); }
.co-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.co-acts button { flex: 1; min-height: 0; height: 34px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.co-acts button.on { background: var(--gold); color: #fff; }
.co-acts button[data-edit] { flex: none; width: 40px; padding: 0; display: grid; place-items: center; }
.co-acts button[data-edit] svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-acts .co-in { flex-basis: 100%; text-align: end; font-size: 17px; }
.co-row.co-d:not(.on) .co-acts { opacity: .6; }
@media (hover: hover) { .co-acts button:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

/* « Enregistrer un paiement » sur téléphone : rien ne dépasse, montant et date l'un sous l'autre (owner, 2026-11-18). */
.ea-dialog .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.ea-dialog .mf-pick { margin: 14px 0 0; min-width: 0; }
.ea-dialog .mf-pick > span:first-child { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 400; color: var(--muted); }
.ea-dialog .mf-datebox, .ea-dialog .mf-datetxt { min-width: 0; }
.ea-dialog input { max-width: 100%; }
@media (max-width: 520px) { .ea-dialog .two { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Bouton « Réserver un nouveau transfert » : marges de 16 px sur téléphone comme la recherche dessous (owner, 2026-11-18). */
.cbook { margin: 8px 16px 4px; }
@media (min-width: 1000px) { .cbook { margin: 4px 0 8px; } }

/* Liste des transferts « design D » (owner, 2026-11-18) : bande de couleur à gauche (vert attribué, doré proposé, orange à attribuer, rouge annulé). */
.tcard.tk { border-left: 5px solid var(--strip, var(--line)); padding: 12px 14px 12px 12px; }
.tk-main { display: flex; align-items: flex-start; gap: 10px; }
.tk-l { flex: 1; min-width: 0; }
.tk-when { display: block; font-size: 15px; }
.tk-route { font-size: 14px; margin-top: 2px; }
.tk-meta { color: var(--muted); font-size: 13px; margin-top: 1px; }
.tk-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: end; }
.tk-price { font-size: 18px; white-space: nowrap; }
.tk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tk-acts .btn { min-height: 0; height: 32px; padding: 0 14px; font-size: 13px; width: auto; }
.tk-acts .tk-me { margin-inline-start: auto; }
.pill.tk-todo { color: #b26a00; border-color: #e0a33a; background: rgba(224, 163, 58, .14); }
html:not([data-theme="light"]) .pill.tk-todo { color: #f0b85a; }

/* Cartes de transfert : bande d'état fine et droite à gauche, sans arrondi (owner, 2026-11-18). */
.tcard.tk { position: relative; border-left: 1px solid var(--line); padding-left: 16px; }
.tcard.tk::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; background: var(--strip, var(--line)); border-radius: 0; }

/* Cartes de transfert : couleur d'état en dégradé depuis la gauche, qui s'efface vers l'intérieur, sur toute la hauteur (owner, 2026-11-18). */
.tcard.tk::before { content: none; }
.tcard.tk { background: linear-gradient(90deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }

/* « Proposer à un chauffeur » puis « Moi », poussés à droite (owner, 2026-11-18). */
.tk-acts .tk-me { margin-inline-start: 0; }
.tk-acts .tk-offer { margin-inline-start: auto; }

/* Liste des transferts : chauffeur attribué cliquable pour en choisir un autre (owner, 2026-11-18). */
.tk-drv { border: 0; background: none; padding: 4px 8px 4px 0; margin-top: 6px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; text-align: start; border-radius: 99px; transition: background-color .3s, color .3s; }
.tk-drv > svg:last-child { width: 14px; height: 14px; opacity: .7; }
@media (hover: hover) { .tk-drv:hover { background: var(--text); color: var(--bg); padding-inline-start: 8px; } }
.tk-dialog .tk-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; margin: 10px 0; }
.tk-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: start; cursor: pointer; font: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.tk-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tk-row small { color: var(--muted); font-size: 12.5px; }
.tk-row em { font-style: normal; font-size: 12px; color: var(--gold); }
.tk-row.on { border-color: var(--gold); }
@media (hover: hover) { .tk-row:not(.on):hover { background: var(--text); color: var(--bg); border-color: var(--text); } .tk-row:not(.on):hover small { color: inherit; opacity: .7; } }

/* Planning : cartes avec la couleur du trajet en dégradé depuis le bord, comme la liste des transferts (owner, 2026-11-18). */
.plan-item { border-left: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--c, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .plan-item { border-left: 1px solid var(--line); background: linear-gradient(270deg, color-mix(in srgb, var(--c, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--c, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .tcard.tk { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }   /* arabe : depuis la droite */

/* Fiche transfert sur téléphone (owner, 2026-11-18) : véhicule en grand au-dessus, nom puis prix dessous ; sièges enfant : photo à gauche, texte et prix l'un sous l'autre. */
@media (max-width: 640px) {
  .tp-sec .tp-item.tp-seatrow, .tp-sec .tp-item.tp-veh { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 4px; }
  .tp-sec .tp-item.tp-seatrow > .tp-amt { grid-column: 2; justify-self: start; font-size: 16px; }
  .tp-sec .tp-item.tp-veh { grid-template-columns: minmax(0, 1fr) auto; }
  .tp-veh .tp-car { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 300px; max-height: 150px; margin-bottom: 6px; }
  .tp-veh .tp-car.none { width: 64px; justify-self: start; }
  .tp-veh .grow { grid-column: 1; }
  .tp-sec .tp-item.tp-veh > .tp-amt { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
}

/* Véhicule sur téléphone comme les sièges enfant : petite photo à gauche, texte puis prix à droite (owner, 2026-11-18). */
@media (max-width: 640px) {
  .tp-sec .tp-item.tp-veh { grid-template-columns: auto minmax(0, 1fr); }
  .tp-veh .tp-car { grid-column: 1; grid-row: 1 / span 2; justify-self: start; width: 96px; max-width: none; max-height: 72px; margin: 0; }
  .tp-veh .grow { grid-column: 2; grid-row: 1; }
  .tp-sec .tp-item.tp-veh > .tp-amt { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; font-size: 16px; }
}

/* Sièges enfant sur téléphone : même cadre que la photo du véhicule (96 × 72), textes alignés (owner, 2026-11-18). */
@media (max-width: 640px) {
  .tp-seatrow .tp-plate { width: 96px; height: 72px; }
  .tp-seatrow .tp-plate img { width: 84px; height: 62px; }
  .tp-seatrow .tp-plate { grid-row: 1 / span 2; align-self: start; }
  .tp-veh .tp-car { align-self: start; height: 72px; object-fit: contain; }
}

/* Recherche d'entreprise (inscription chauffeur, Mon dossier VTC › Entreprise), owner 2026-11-18. */
.co-look { position: relative; grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 14px; background: var(--panel); }
.co-head { display: flex; align-items: center; gap: 8px; }
.co-head svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; }
.co-hint { margin: 6px 0 10px; color: var(--muted); font-size: 13.5px; }
.co-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 6px 0 12px; background: var(--bg); }
.co-box:focus-within { border-color: var(--gold); }
.co-box > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.co-box input.co-q { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 16px; color: var(--text); outline: none; box-shadow: none; }
.co-box input.co-q::-webkit-search-cancel-button { display: none; }
.co-x { flex: none; border: 0; background: transparent; color: var(--muted); padding: 6px; display: grid; place-items: center; cursor: pointer; }
.co-x svg { width: 18px; height: 18px; }
.co-x[hidden], .co-res[hidden] { display: none; }
.co-res { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden auto; max-height: 320px; background: var(--bg); }
.co-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); padding: 11px 12px; cursor: pointer; font: inherit; }
.co-item:first-child { border-top: 0; }
.co-item > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.co-item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item small { color: var(--muted); font-size: 13px; white-space: pre; letter-spacing: .02em; }
.co-item.closed { opacity: .5; cursor: default; }
.co-msg { display: flex; align-items: center; gap: 8px; padding: 12px; color: var(--muted); font-size: 14px; }
@media (hover: hover) { .co-item:not(.closed):hover { background: var(--panel); } .co-x:hover { color: var(--text); } }

/* Entreprise : raison sociale, SIRET (et ville à l'inscription) en lecture seule, remplis seulement par la recherche (owner, 2026-11-18). */
input.co-ro, input.co-ro:focus { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); border-color: transparent; cursor: default; box-shadow: none; outline: none; }
input.co-ro::placeholder { color: transparent; }
.co-look.co-bad { border-color: var(--red, #d64545); }
.co-look.co-bad .co-box { border-color: var(--red, #d64545); }

/* Messagerie : cartes de course avec le dégradé d'état depuis le bord, comme la liste des transferts (owner, 2026-11-18). */
.msg-b.has-offer:has(.co-top .pill.ok) { --strip: var(--green); }
.msg-b.has-offer:has(.co-top .pill.gold) { --strip: var(--gold); }
.msg-b.has-offer:has(.co-top .pill.bad) { --strip: var(--red); }
.msg-b.has-offer.them { background: linear-gradient(90deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
.msg-b.has-offer.me { background: linear-gradient(90deg, color-mix(in srgb, var(--strip, transparent) 55%, transparent) 0%, color-mix(in srgb, var(--strip, transparent) 15%, transparent) 35%, transparent 70%), var(--gold); }
.msg-b.has-offer.me:has(.co-top .pill.gold) { --strip: transparent; }   /* en attente sur la bulle dorée : sans halo */
[dir="rtl"] .msg-b.has-offer.them { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .msg-b.has-offer.me { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, transparent) 55%, transparent) 0%, color-mix(in srgb, var(--strip, transparent) 15%, transparent) 35%, transparent 70%), var(--gold); }

/* Cartes de course (messagerie) sans fond doré : couleur d'état → transparent, sur fond de carte, des deux côtés (owner, 2026-11-18). */
.msg-b.has-offer.me, [dir="rtl"] .msg-b.has-offer.me { color: var(--text); border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
[dir="rtl"] .msg-b.has-offer.me { background: linear-gradient(270deg, color-mix(in srgb, var(--strip, var(--line)) 30%, transparent) 0%, color-mix(in srgb, var(--strip, var(--line)) 8%, transparent) 35%, transparent 70%), var(--panel); }
.msg-b.has-offer.me:has(.co-top .pill.gold) { --strip: var(--gold); }
.msg-b.has-offer.me .co-top .pill.gold { background: var(--gold); color: #fff; }
.msg-b.has-offer.me .msg-meta, .msg-b.has-offer.me .msg-tick { color: var(--muted); }
.msg-b.has-offer.me .msg-tick.read { color: var(--gold); }

/* Détails de l'entreprise sous la recherche (lecture seule, annuaire officiel), owner 2026-11-18. */
.co-details { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-bottom: 4px; }
.co-details .co-wide { grid-column: 1 / -1; }
.co-details input.co-ro { text-overflow: ellipsis; }
@media (max-width: 560px) { .co-details { grid-template-columns: 1fr; } }

/* Carte de course (messagerie) comme la liste des transferts (owner, 2026-11-18). */
.co-card.tkc { gap: 0; }
.co-card.tkc .tk-r { gap: 0; }
.co-paylbl { font-size: 11px; color: var(--muted); }
.co-card.tkc .co-stat { justify-content: flex-start; margin-top: 8px; }
.co-card.tkc .co-note { margin-top: 6px; }
.co-card.tkc .co-btns { margin-top: 10px; }

/* Messagerie : corbeille avant l'heure, pas après les coches (owner, 2026-11-18). */
.msg-meta .msg-del { order: -1; margin-inline-start: 0; margin-inline-end: 2px; }

/* Messagerie : corbeille · heure · coches en bas à droite, sur la dernière ligne du texte (place réservée à la fin du texte), comme WhatsApp (owner, 2026-11-18). */
.msg-b:not(.has-offer) { display: block; position: relative; padding: 7px 10px 7px 12px; --metaw: 44px; }
.msg-b.me:not(.has-offer) { --metaw: 64px; }
.msg-b:not(.has-offer):has(.msg-del) { --metaw: 92px; }
.msg-b:not(.has-offer) > .msg-ref { display: inline; margin: 0 6px 0 0; }
.msg-b:not(.has-offer) > div:not(.msg-meta) { display: inline; }
.msg-b:not(.has-offer) > div:not(.msg-meta)::after { content: ""; display: inline-block; width: var(--metaw); height: 1px; }
.msg-b:not(.has-offer) > .msg-meta { position: absolute; right: 10px; bottom: 6px; margin: 0; padding: 0; float: none; }
[dir="rtl"] .msg-b:not(.has-offer) > .msg-meta { right: auto; left: 10px; }
/* Carte de course : sur la ligne du bas de la carte (message ou état), sauf quand les boutons Accepter / Refuser sont là. */
.msg-b.has-offer { position: relative; }
.msg-b.has-offer:not(:has(.co-btns)) > .msg-meta { position: absolute; right: 12px; bottom: 10px; margin: 0; }
[dir="rtl"] .msg-b.has-offer:not(:has(.co-btns)) > .msg-meta { right: auto; left: 12px; }
.msg-b.has-offer:not(:has(.co-btns)) .co-card > :last-child { padding-inline-end: 96px; }
/* Messagerie : étiquette « Client » sur les conversations des clients (owner, 2026-11-18). */
.pill.ch-client { font-size: 11px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: 2px; color: var(--gold); border-color: var(--gold); font-weight: 600; }

/* Inscription chauffeur : champs obligatoires marqués d'un astérisque (owner, 2026-11-18) ; détails de l'entreprise cachés tant qu'elle n'est pas choisie. */
#preg .f:has(> input[required]) > span::after, #preg .co-head b::after, .co-req > span::after { content: ' *'; color: #d64545; font-weight: 700; }
.reg-req { margin: 0 0 10px; }
.co-details[hidden] { display: none; }

/* Propositions reçues par le chauffeur (onglet Courses) : même carte que la messagerie et la liste des transferts (owner, 2026-11-18). */
.tcard.tk.offer .co-stat { display: flex; justify-content: flex-start; margin-top: 8px; }
.tcard.tk.offer .co-paylbl { color: var(--muted); font-size: 12px; }
.tcard.tk.offer .offer-board, .tcard.tk.offer .dp-note { margin-top: 8px; }
.tcard.tk.offer .btns { margin-top: 10px; }

/* ==================== Messagerie client (ridechat.js, owner 2026-11-18) ====================
   « VIPAZUR Client Support » toujours en haut, puis « Discuter avec votre chauffeur » (une conversation par course).
   Bulles : classes .msg-b de la messagerie existante. Chauffeur / admin : même fenêtre dans une boîte de dialogue. */
.rc-page { padding-bottom: 40px; }
.rc-page > h1 { margin: 6px 16px 14px; }
.rc-card { margin: 0 16px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.rc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; }
.rc-head .grow { flex: 1; min-width: 0; }
.rc-head b { display: block; font-size: 16px; font-weight: 650; }
.rc-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.rc-head small.rc-last { white-space: nowrap; color: var(--text); opacity: .8; }
.rc-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #000; object-fit: cover; }
.rc-support .rc-head { border-bottom: 1px solid var(--line); }
.rc-support .rc-head b { color: var(--gold); }
.rc-h2 { display: flex; align-items: center; gap: 8px; margin: 22px 16px 10px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.rc-h2 svg, .rc-open svg, .rc-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-none { margin: 0 16px; color: var(--muted); font-size: 14px; }
.rc-toggle { cursor: pointer; }
.rc-chev { flex: none; color: var(--muted); transition: transform .3s; }
.rc-ride.open .rc-chev { transform: rotate(180deg); }
.rc-ride.open .rc-toggle { border-bottom: 1px solid var(--line); }
.rc-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.rc-win { display: flex; flex-direction: column; background: var(--bg); }
.rc-msgs { height: min(46vh, 380px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rc-empty { margin: auto; max-width: 360px; text-align: center; color: var(--muted); font-size: 14px; }
.rc-tick { letter-spacing: -2px; }
.rc-tick.read { color: #8fd3ff; }
.rc-note { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.rc-form textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; overflow-y: hidden; border-radius: 22px; padding: 11px 16px; }
.rc-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s; }
.rc-send svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }   /* flèche blanche (owner, 2026-11-18) */
.rc-send:disabled { opacity: .55; }
.rc-dialog { padding: 16px 0 0; overflow: hidden; display: flex; flex-direction: column; }
.rc-dialog h2 { padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.rc-dialog h2 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.rc-dialog .rc-msgs { height: min(56vh, 460px); }
@media (min-width: 1000px) {
  .rc-page { max-width: 860px; }
  .rc-page > h1, .rc-card, .rc-h2, .rc-none { margin-inline: 0; }
  .rc-msgs { height: 360px; }
}
@media (hover: hover) {
  .rc-send:not(:disabled):hover { background: var(--text); color: var(--bg); }
  .rc-toggle:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
}

/* Recherche d'entreprise : adresse du siège sous le SIREN dans la liste (owner, 2026-11-18). */
.co-item small.co-addr { white-space: normal; letter-spacing: 0; line-height: 1.3; }
.co-look, .co-details, .co-details .f { min-width: 0; }   /* noms longs dans la liste : rien ne dépasse sur téléphone */

/* Fiche transfert du client : grande carte sur toute la largeur, adresses dessous (owner, 2026-11-18). */
.tp .tp-route-big { flex-wrap: wrap; }
.tp .tp-route-big .tp-map { flex: 1 1 100%; width: 100%; height: 240px; }
@media (max-width: 640px) { .tp .tp-route-big .tp-map { width: 100%; height: 200px; } }
.tp .tp-route-big .tp-stops { flex: 1 1 100%; }

/* Inscription chauffeur : « Créer mon compte » sous les cadres, pas dedans (owner, 2026-11-18). */
.reg-submit { margin-top: 16px; }
.reg-submit .msg:empty { display: none; }
#rs2 .co-look { margin-bottom: 0; }
#rs2 .co-details:not([hidden]) { margin-top: 14px; }

/* Carte de la fiche transfert : le calque SVG de Leaflet (trajet, repères) garde sa taille, pas celle des icônes (.tp svg 18 px) (owner, 2026-11-18). */
.tp .leaflet-container svg, .tp-bar .leaflet-container svg { width: auto; height: auto; stroke: none; stroke-width: 0; }

/* Inscription chauffeur : téléphone = indicatif pays (liste, France par défaut) + numéro (owner, 2026-11-18). */
.ph-box { display: flex; gap: 8px; min-width: 0; }
.ph-box .ph-cc { flex: none; width: auto; min-width: 0; padding-inline: 10px 6px; }
.ph-box input { flex: 1; min-width: 0; }
.f > .ph-box { display: flex; margin: 0; }   /* la règle « .f span » mettait la boîte en bloc */
.f > .ph-box .ph-cc { width: auto; }
.f > .ph-box input { width: auto; }
.co-req > .ph-box::after { content: none; }

/* Messagerie client : date de la course à gauche de chaque conversation avec le chauffeur (owner, 2026-11-18). */
.rc-date { flex: none; width: 52px; padding: 5px 0 6px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); text-align: center; line-height: 1.05; }
.rc-date b { display: block; font-size: 21px; font-weight: 700; margin: 1px 0; }
.rc-head .rc-date small { display: block; margin: 0; color: var(--gold); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; overflow: visible; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* date lue par les lecteurs d'écran, vue dans la case */

/* Messagerie client : bouton WhatsApp « Urgent ? » dans l'en-tête du Service client (vert WhatsApp, reste vert au survol) */
.rc-wa { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: #25D366; color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .3s; }
.rc-wa svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 420px) { .rc-wa-u { display: none; } }
@media (hover: hover) { .rc-wa:hover { background: #000; color: #fff; } }   /* WhatsApp : fond noir au survol (owner, 2026-11-18) */

/* Téléphone : indicatif pays en liste moderne avec drapeaux et recherche, comme la recherche d'entreprise (owner, 2026-11-18). */
.ph-box { position: relative; align-items: stretch; }
.ph-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: border-color .3s, background-color .3s; }
.ph-box.open .ph-btn, .ph-btn:focus-visible { border-color: var(--gold); outline: none; }
.ph-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.ph-code { font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; }
.ph-box.open .ph-chev { transform: rotate(180deg); }
.ph-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-width: 360px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); overflow: hidden; }
.ph-pop[hidden] { display: none; }
.ph-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ph-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.f > .ph-box .ph-pop input.ph-q { flex: 1; width: auto; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-size: 16px; color: var(--text); outline: none; box-shadow: none; }
.ph-q::-webkit-search-cancel-button { display: none; }
.ph-list { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.ph-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.ph-item:first-child { border-top: 0; }
.ph-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-dial { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.ph-item.on { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.ph-item.on .ph-name { color: var(--gold); font-weight: 700; }
.ph-empty { padding: 14px; color: var(--muted); font-size: 14px; }
@media (hover: hover) { .ph-item:hover { background: var(--text); color: var(--bg); } .ph-item:hover .ph-dial, .ph-item:hover .ph-name { color: var(--bg); } .ph-btn:hover { border-color: var(--gold); } }

/* Messagerie client : fenêtres en accordéon (VIPAZUR ↔ chauffeur) et « Partager ma position » (owner, 2026-11-18) */
.rc-sup-head { padding: 0 16px 0 0; cursor: pointer; }
.rc-sup-toggle { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 14px 0 14px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.rc-support:not(.open) .rc-head { border-bottom: 0; }
.rc-support.open .rc-chev { transform: rotate(180deg); }
.rc-share { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; }
.rc-share small { color: var(--muted); font-size: 12.5px; }
.rc-loc-btn { display: inline-flex; align-items: center; gap: 8px; border-color: var(--gold); color: var(--gold); font-weight: 600; }
.rc-loc-btn svg, .rc-locb svg, .rc-loc svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rc-locb { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--gold); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rc-locb[hidden] { display: none; }
.msg-b.is-loc { min-width: 220px; }
.rc-loc { display: flex; align-items: center; gap: 10px; }
.rc-loc svg { width: 26px; height: 26px; }
.rc-loc b { display: block; font-weight: 650; }
.rc-loc small { display: block; font-size: 12px; opacity: .8; }
.rc-loc-go { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 650; text-decoration: none; transition: background-color .3s, color .3s; }
.msg-b.me .rc-loc-go { background: rgba(255, 255, 255, .22); color: #fff; }
.msg-b.them .rc-loc-go { background: var(--gold); color: #fff; }
@media (hover: hover) {
  .rc-locb:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .rc-loc-go:hover, .msg-b.me .rc-loc-go:hover { background: var(--text); color: var(--bg); }
  .rc-sup-head:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
}

/* Utilisateurs : bouton « + » seul, rond (owner, 2026-11-18). */
.us-head .us-add { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: 22px; font-weight: 500; line-height: 1; flex: none; }

/* Fiche transfert du chauffeur : position partagée par le client (carte et repère), owner 2026-11-18. */
.cli-loc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, #2e9d5b 45%, var(--line)); background: color-mix(in srgb, #2e9d5b 12%, var(--panel)); }
.cli-loc[hidden] { display: none; }
.cli-pin { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2e9d5b; }
.cli-pin svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.cli-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cli-txt small { color: var(--muted); font-size: 12.5px; }
.cli-loc .cli-go { flex: none; width: auto; }
.cli-mark span { display: grid; place-items: center; width: 30px; height: 30px; }
.cli-mark svg { width: 30px; height: 30px; fill: #2e9d5b; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.cli-mark svg circle { fill: #fff; stroke: none; }
.cli-mark.big span, .cli-mark.big svg { width: 38px; height: 38px; }
.cli-mark.big span, .cli-mark.big svg { width: 38px; height: 38px; }

/* Messages du client : course à venir sans chauffeur encore, avec le rappel « attribué 12 à 24 h avant » (owner, 2026-11-18). */
.rc-ride-pend { border-style: dashed; }
.rc-pend-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.rc-pend-av .pulse { width: 10px; height: 10px; }
.rc-ride-pend .rc-head b { font-size: 15px; }
.rc-head small.rc-pend-hint { color: var(--gold); }

/* Messages du client : en-tête « VIPAZUR Client Support » doré, texte blanc, pour le distinguer des conversations avec les
   chauffeurs (owner, 2026-11-18). Survol comme vipazur.fr : passe en sombre, texte clair. Le bouton WhatsApp reste vert. */
.rc-support .rc-sup-head { background: var(--gold); color: #fff; border-bottom-color: transparent; transition: background-color .3s, color .3s; }
.rc-support .rc-sup-head b, .rc-support .rc-sup-head .rc-chev { color: inherit; }
@media (hover: hover) { .rc-support .rc-sup-head:hover { background: var(--text); color: var(--bg); } }

/* Messages du client, maquette « 2 · Next ride first » choisie par l'owner (2026-11-18). */
.rc-page .rc-h2 { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; margin: 22px 16px 8px; }
.rc-hero { border: 1.5px solid #1faa6b; }
.rc-hero-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.rc-hero-top .drv-ava { width: 40px; height: 40px; font-size: 14px; }
.rc-hero-top .grow { flex: 1; min-width: 0; }
.rc-hero-top b { display: block; font-size: 16px; font-weight: 650; }
.rc-hero-top small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-live { display: inline-flex; align-items: center; gap: 6px; color: #1faa6b; }
.rc-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px 68px; }
.rc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--gold); border-radius: 99px; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rc-pill[aria-expanded="true"] { background: var(--gold); color: #fff; }
.rc-hero .rc-body { border-top: 1px solid var(--line); }
@media (hover: hover) { .rc-pill:hover, .rc-pill[aria-expanded="true"]:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
@media (max-width: 520px) { .rc-hero-acts { padding-inline-start: 16px; } }
#rcNow:empty { display: none; }
.rc-support .rc-sup-toggle { padding-block: 12px; }
.rc-support .rc-sup-head small { color: inherit; margin-top: 1px; }
.rc-support.open .rc-sup-head { border-bottom: 0; }
.rc-pend-av { color: var(--gold); }
.rc-pend-av svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-ride-pend .rc-head small { white-space: nowrap; }
.rc-ride-pend .rc-head small { white-space: nowrap; }
/* Transferts sans chauffeur connu regroupés sur une ligne repliable (owner, 2026-11-18). */
.rc-pend-group { border-style: dashed; }
.rc-pend-toggle { cursor: pointer; }
.rc-pend-group.open .rc-chev { transform: rotate(180deg); }
.rc-pend-group.open .rc-pend-toggle { border-bottom: 1px dashed var(--line); }
.rc-pend-row { padding-block: 10px; }
.rc-pend-row + .rc-pend-row { border-top: 1px solid var(--line); }
.rc-pend-row small { white-space: nowrap; }
@media (hover: hover) { .rc-pend-toggle:hover { background: color-mix(in srgb, var(--text) 5%, transparent); } }

/* Fiche transfert du client : bulle « Besoin d'aide ? » en bas à droite, ouvre le Service client VIPAZUR (owner, 2026-11-18, design 4). */
.rc-fab { position: fixed; z-index: 700; right: 16px; bottom: calc(var(--tabbar-h, 64px) + 16px); display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; pointer-events: auto; }
.rc-fab-l { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: background-color .3s, color .3s, border-color .3s; }
.rc-fab-b { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); transition: background-color .3s, color .3s; }
.rc-fab-b svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) { .rc-fab { right: 28px; bottom: 28px; } }
@media (hover: hover) { .rc-fab:hover .rc-fab-b { background: var(--text); color: var(--bg); } .rc-fab:hover .rc-fab-l { background: var(--text); color: var(--bg); border-color: var(--text); } }
.tp:has(.rc-fab), .wrap:has(.rc-fab) { padding-bottom: 96px; }
.rc-sup-dialog { padding-top: 0; }
.rc-sup-dialog h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 12px 14px 16px; background: var(--gold); color: #fff; border-bottom: 0; }
.rc-sup-dialog h2 > span { flex: 1; min-width: 0; }
.rc-sup-dialog h2 small { color: inherit; opacity: 1; }
.rc-sup-dialog h2 .icon-btn { margin-left: 0; background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.rc-sup-dialog .rc-wa .rc-wa-u { display: none; }
/* Fond doré : texte et symboles toujours blancs (owner, 2026-11-18) — croix de fermeture du Service client VIPAZUR. */
.rc-sup-dialog h2 .icon-btn svg { stroke: #fff; }
@media (hover: hover) { .rc-sup-dialog h2 .icon-btn:hover { background: var(--text); border-color: var(--text); } .rc-sup-dialog h2 .icon-btn:hover svg { stroke: var(--bg); } }

/* Service client VIPAZUR de la fiche transfert : fenêtre dans le coin, au-dessus de la bulle, sans voile (owner, 2026-11-18). */
.rc-sup-panel { position: fixed; z-index: 750; right: 16px; bottom: calc(var(--tabbar-h, 64px) + 84px); width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100dvh - var(--tabbar-h, 64px) - 150px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 44px rgba(0, 0, 0, .3); animation: rc-pop .2s ease-out; transform-origin: bottom right; }
@keyframes rc-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .rc-sup-panel { animation: none; } }
@media (min-width: 1000px) { .rc-sup-panel { right: 28px; bottom: 100px; height: min(560px, calc(100dvh - 140px)); } }
.rc-sup-ph { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; background: var(--gold); color: #fff; }
.rc-sup-ph > span { flex: 1; min-width: 0; font-size: 16px; font-weight: 650; }
.rc-sup-ph small { display: block; font-size: 12.5px; font-weight: 400; color: inherit; }
.rc-sup-ph .rc-wa { padding: 7px 12px; }
.rc-sup-ph .rc-wa .rc-wa-u { display: none; }
.rc-sup-ph .icon-btn { width: 36px; height: 36px; background: transparent; border-color: rgba(255, 255, 255, .6); }
.rc-sup-ph .icon-btn svg { stroke: #fff; }
@media (hover: hover) { .rc-sup-ph .icon-btn:hover { background: var(--text); border-color: var(--text); } .rc-sup-ph .icon-btn:hover svg { stroke: var(--bg); } }
.rc-sup-pw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rc-sup-pw .rc-win { flex: 1; min-height: 0; }
.rc-sup-pw .rc-msgs { flex: 1; height: auto; min-height: 0; }
.rc-fab-chat, .rc-fab-x { display: grid; place-items: center; }
.rc-fab-x, .rc-fab.open .rc-fab-chat, .rc-fab.open .rc-fab-l { display: none; }
.rc-fab.open .rc-fab-x { display: grid; }
.rc-fab-x svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.rc-fab, .rc-sup-panel { z-index: 1100; }   /* au-dessus des commandes de la carte (Leaflet : 1000) */
body:has(.overlay) .rc-fab, body:has(.overlay) .rc-sup-panel { display: none; }   /* une autre fenêtre (grande carte…) passe devant */
@media (max-width: 420px) { .rc-sup-ph .rc-wa > span { display: none; } .rc-sup-ph .rc-wa { padding: 8px; } }

/* Réponses rapides (super admin, chauffeurs) : éclair à gauche de la case, menu au-dessus, rubrique des Réglages (owner, 2026-11-18). */
.qr-btn { flex: none; width: 42px; height: 42px; align-self: flex-end; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--gold); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.qr-btn[hidden] { display: none; }
.qr-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.qr-btn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.rc-form .qr-btn { width: 44px; height: 44px; }
.qr-host { position: relative; }
.qr-menu { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 60; max-height: min(320px, 50vh); overflow-y: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.qr-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.qr-item b { display: block; font-size: 14px; font-weight: 650; }
.qr-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-item.on { background: var(--gold-soft); }
.qr-none { margin: 8px 10px; color: var(--muted); font-size: 13px; }
.qr-edit { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 10px 4px; border-top: 1px solid var(--line); color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; }
.qr-edit svg, .qr-add svg { width: 16px; height: 16px; fill: currentColor; stroke: none; flex: none; }
.qr-list { display: flex; flex-direction: column; }
.qr-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qr-row .qr-t { grid-column: 1; font-weight: 600; }
.qr-row .qr-b { grid-column: 1; resize: vertical; min-height: 60px; }
.qr-row .qr-del { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.qr-row .saved-tick { grid-column: 1; }
@media (hover: hover) {
  .qr-btn:hover, .qr-btn[aria-expanded="true"]:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .qr-item:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
  .qr-item.on:hover { background: var(--gold-soft); }
  .qr-edit:hover { text-decoration: underline; }
  .qr-row .qr-del:hover { background: var(--red); border-color: var(--red); }
  .qr-row .qr-del:hover svg { stroke: #fff; }
}

/* Accueil du chauffeur (home.js), owner 2026-11-19 : chiffres du jour, prochaine course avec compte à rebours, courses suivantes. */
.hm { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 620px; width: 100%; margin: 0 auto; }
.hm-hi small { color: var(--muted); font-size: 13px; display: block; }
.hm-hi h1 { margin: 2px 0 0; font-size: 24px; font-weight: 600; }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; min-width: 0; }
.hm-tile b { display: block; font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tile b.gold { color: var(--gold); }
.hm-tile small { color: var(--muted); font-size: 12px; }
.hm-offers { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--text); text-decoration: none; transition: background .3s, color .3s; }
.hm-offers b { flex: 1; font-weight: 600; font-size: 14.5px; }
.hm-offers-dot { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.hm-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm-next { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-align: center; cursor: pointer; }
.hm-next.hm-empty { cursor: default; display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; }
.hm-next.hm-empty small { color: var(--muted); }
.hm-lbl { display: flex; justify-content: space-between; align-items: center; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.hm-lbl .hm-chev { color: var(--muted); }
.hm-ringbox { position: relative; width: 132px; height: 132px; margin: 6px auto 8px; }
.hm-ring { width: 100%; height: 100%; display: block; }
.hm-ring circle { fill: none; stroke-width: 6; }
.hm-ring-bg { stroke: var(--line); }
.hm-ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.hm-ring.live .hm-ring-fg { stroke: var(--green); }
.hm-ring.due .hm-ring-bg { stroke: var(--red); }
.hm-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0 18px; }
.hm-ring-c b { font-size: 30px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.hm-ring-c small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.hm-ring-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-who { font-size: 16px; }
.hm-who b { font-weight: 600; }
.hm-flrow { margin-top: 8px; }
.hm-fl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; background: var(--panel-2); color: var(--muted); max-width: 100%; }
.hm-fl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.hm-fl b { font-weight: 600; }
.hm-fl.ok { background: var(--green-soft); color: var(--green); }
.hm-fl.late { background: var(--red-soft); color: var(--red); }
.hm-route { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px 10px; align-items: center; text-align: left; margin: 14px 0 6px; font-size: 14.5px; }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }
.hm-sq { width: 10px; height: 10px; background: var(--gold); border-radius: 2px; }
.hm-to { color: var(--muted); }
.hm-meta { text-align: left; color: var(--muted); font-size: 13px; padding-left: 22px; }
.hm-acts { display: flex; gap: 8px; margin: 14px 0 10px; }
.hm-acts .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.hm-acts .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-next .slide-btn { width: 100%; }
.hm-h { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 6px 2px -4px; }
.hm-list { display: flex; flex-direction: column; gap: 8px; }
.hm-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: background .3s, color .3s; }
.hm-row-t { display: flex; flex-direction: column; min-width: 48px; }
.hm-row-t b { font-size: 16px; font-weight: 600; }
.hm-row-t small, .hm-row-m small { color: var(--muted); font-size: 12px; }
.hm-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-row-m > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.hm-row-p { color: var(--gold); font-weight: 600; white-space: nowrap; }
.hm-all { align-self: center; text-decoration: none; }
@media (hover: hover) {
  .hm-row:hover, .hm-offers:hover { background: var(--text); color: var(--bg); }
  .hm-row:hover small, .hm-row:hover .hm-row-p { color: var(--bg); }
}

/* Accueil du chauffeur : liste « pour recevoir des courses » en haut, contenu aligné à gauche sur ordinateur (owner 2026-11-19). */
.hm .ready { margin: 0; }
@media (min-width: 1000px) { .wrap:has(> .hm) { margin-left: 0; } .hm { margin: 0; padding-left: 0; padding-right: 0; } .hm-all { align-self: flex-start; } }

/* Bouton à glisser : prise n'importe où sur le bouton (owner 2026-11-19). Accueil : course en cours = rond vert plein, icône et texte blancs. */
.slide-btn { touch-action: pan-y; cursor: grab; }
.slide-btn.drag { cursor: grabbing; }
.hm-ring.live .hm-ring-bg { fill: var(--green); stroke: var(--green); }
.hm-ring-c.live small { color: #fff; font-weight: 600; }
.hm-ring-c.live .hm-ring-ico svg { stroke: #fff; }

/* Accueil du chauffeur : carte « Prochaine course » en design B (owner 2026-11-19) : bandeau or avec texte blanc. */
.hm-next { padding: 0; overflow: hidden; text-align: left; }
.hm-band { background: var(--gold); color: #fff; padding: 14px 16px 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hm-band.live { background: var(--green); }
.hm-band .hm-lbl { display: block; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.hm-time { display: block; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.hm-left { text-align: right; display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 4px; }
.hm-left small { font-size: 13px; color: #fff; }
.hm-left b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.hm-body { padding: 14px 16px 16px; }
.hm-who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 17px; }
.hm-who b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pay { color: var(--gold); flex: none; }
.hm-body .hm-meta { padding-left: 0; margin-top: 2px; }
.hm-body .hm-route { margin: 12px 0 4px; }
.hm-icos { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.hm-ico { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); display: grid; place-items: center; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.hm-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-ico:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Donneurs d'ordre (orderers.js) et facturation électronique SUPER PDP (invoices.js), owner 2026-11-19. */
.od-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.od-tools .tsearch-wrap { flex: 1 1 240px; margin: 0; }
.od-card { text-align: start; display: flex; flex-direction: column; gap: 4px; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.od-card .tcard-top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.od-card .od-line { font-size: 13px; overflow-wrap: anywhere; }
.od-card .od-muted { color: var(--muted); }
.od-card.od-off { opacity: .6; }
.od-dialog .two, .od-imp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .od-dialog .two { grid-template-columns: 1fr; } }
.od-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.od-btns .danger { margin-inline-end: auto; }
.od-imp { max-width: 760px; }
.od-imp .od-h { font-size: 15px; margin: 18px 0 8px; }
.od-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.od-cols .f span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-groups { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.od-sum { margin: 16px 0 8px; }
.od-rows { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.od-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.od-row:last-child { border-bottom: 0; }
.od-row .pill { flex: none; min-width: 92px; text-align: center; }
.od-rc { display: flex; flex-direction: column; min-width: 0; }
.od-rc small { color: var(--muted); overflow-wrap: anywhere; }
.od-imp-go { position: sticky; bottom: -1px; background: var(--panel); padding-top: 10px; }
.inv-pro { margin-top: 6px; }
.inv-siren-row { display: flex; gap: 8px; }
.inv-siren-row input { flex: 1; min-width: 0; }
.inv-hits { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.inv-hit { text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.inv-hit small { color: var(--muted); }
@media (hover: hover) { .inv-hit:hover { background: var(--text); color: var(--bg); } .inv-hit:hover small { color: inherit; } }
.inv-card .inv-ei { display: block; margin-top: 6px; }
.inv-ei-box { max-width: 820px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.inv-ei-box.bad { border-color: var(--red); background: var(--red-soft); }
.inv-ei-err { flex: 1 1 100%; color: var(--red); font-size: 13px; overflow-wrap: anywhere; }
.inv-ei-panel { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.inv-ei-panel summary { cursor: pointer; font-weight: 600; }
.inv-ei-panel summary small { color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.inv-ei-panel h3 { font-size: 14px; margin: 12px 0 6px; }
.inv-ei-panel ul { margin: 0; padding-inline-start: 18px; font-size: 13px; }
.inv-ei-panel li { margin: 4px 0; }
.inv-ei-panel li.bad { color: var(--red); }
label.f > .inv-siren-row { display: flex; gap: 8px; align-items: center; margin: 0; }
label.f > .inv-siren-row .btn { flex: none; }
/* Fenêtre Support du coin : logo VIPAZUR (blanc, fond doré) + « Support » au lieu du texte (owner, 2026-11-19). */
.rc-sup-brand { display: flex; align-items: center; gap: 7px; }
.rc-sup-brand img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.rc-sup-brand b { font-size: 16px; font-weight: 650; }
.rc-support .rc-sup-head .rc-sup-brand { margin-bottom: 2px; }   /* carte Support de la page Messages : logo blanc + « Support » (owner, 2026-11-19) */
/* Logo rond VIPAZUR (badge noir) dans les deux en-têtes Support : page Messages et fenêtre du coin (owner, 2026-11-19). */
.rc-sup-brand { gap: 10px; }
.rc-sup-brand img.rc-sup-badge { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; filter: none; background: #000; flex: none; box-shadow: none; }
.rc-sup-head .rc-sup-brand img.rc-sup-badge { width: 40px; height: 40px; }
.rc-sup-brand { flex: 1; min-width: 0; }
.rc-sup-brand > span { flex: 1; min-width: 0; }
.rc-sup-brand b { display: block; }
.rc-sup-ph > .rc-sup-brand { font-size: 16px; }
.rc-sup-ph .rc-wa > span { display: none; }   /* fenêtre du coin : WhatsApp en icône (titre au survol), place pour « À propos du transfert VIP-… » */
.rc-sup-ph .rc-wa { padding: 9px; }
.rc-sup-ph .rc-wa svg { width: 20px; height: 20px; }
.rc-sup-ph small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Page Messages : en-tête Support clair comme les conversations du dessous (owner, 2026-11-19 : « light colors »). La fenêtre du coin reste dorée. */
.rc-support .rc-sup-head { background: var(--panel); color: var(--text); border-bottom: 1px solid var(--line); }
.rc-support:not(.open) .rc-sup-head { border-bottom: 0; }
.rc-support .rc-sup-head small { color: var(--muted); }
@media (hover: hover) { .rc-support .rc-sup-head:hover { background: color-mix(in srgb, var(--text) 5%, var(--panel)); color: var(--text); } }

/* Paiements › Factures donneurs d'ordre (orderinv.js, design B), owner 2026-11-19. */
.oi-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.oi-head h1 { margin: 0; }
.oi-head .oi-seg { width: auto; margin: 0; }
.oi-head .oi-seg button { padding-inline: 14px; white-space: nowrap; }
.oi-head .oi-sp { flex: 1; }
.oi-saved { color: var(--muted); font-size: 13px; }
.oi-page { max-width: 1400px; }
.oi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .oi-grid { grid-template-columns: 1fr; } }
.oi-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.oi-sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.oi-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.oi-sec-h h3 { margin: 0; }
.oi-in, .oi-sec select, .oi-sec input { width: 100%; }
.oi-who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.oi-who a.pill { text-decoration: none; }
.oi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .oi-two { grid-template-columns: 1fr; } }
.oi-two .f small { color: var(--muted); font-weight: 400; }
.oi-mode { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.oi-mode .seg { width: auto; margin: 0; }
.oi-warn { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.oi-line { display: flex; gap: 12px; width: 100%; text-align: start; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; cursor: pointer; transition: background-color .3s; }
.oi-line:last-child { border-bottom: 0; }
@media (hover: hover) { .oi-line:hover { background: var(--panel-2); } }
.oi-l-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oi-l-main small, .oi-l-price small { color: var(--muted); font-size: 12.5px; }
.oi-l-price { text-align: end; white-space: nowrap; display: flex; flex-direction: column; }
.oi-tot .tot-row { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; align-items: baseline; color: var(--muted); font-size: 14px; }
.oi-tot .tot-row b { color: var(--text); }
.oi-tot .oi-big b { font-size: 22px; color: var(--gold); }
.oi-deldraft { align-self: flex-start; }
.oi-prev { position: sticky; top: 76px; min-width: 0; }
.oi-prev .voucher.invoice { zoom: .7; margin: 0; max-width: none; }
@media (max-width: 1100px) { .oi-prev .voucher.invoice { zoom: .5; } }
.oi-card { position: relative; }
.oi-card .oi-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; }
.oi-card .oi-st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.oi-card[data-draft] { cursor: pointer; padding-inline-end: 44px; }
.oi-ldlg { max-width: 620px; }
.oi-ldlg .oi-other { display: block; color: var(--muted); margin-top: 4px; }
.oi-lbtns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.oi-lbtns .danger { margin-inline-end: auto; }
.oi-paidbox { gap: 10px; }
.voucher.invoice .v-ref small { display: block; }
.oi-mode .seg button { white-space: nowrap; padding-inline: 14px; }
/* Paiements › Factures, design 2 « Totaux d'abord » (owner, 2026-11-23) : 3 totaux, bouton, filtres, lignes. */
.oi-list { max-width: 980px; }
.oi-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.oi-kpi { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oi-kpi small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oi-kpi b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oi-kpi b.bad { color: var(--red); }
.oi-newbtn { width: 100%; }
.oi-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 8px; }
.oi-rows { display: flex; flex-direction: column; gap: 6px; }
.oi-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--panel-2); border-radius: 10px;
  color: var(--text); text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.oi-r-main { display: flex; flex-direction: column; min-width: 0; }
.oi-r-main b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.oi-r-main small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.oi-r-end { display: flex; align-items: center; gap: 6px; flex: none; }
.oi-r-end .pill { white-space: nowrap; }
.oi-row .oi-x { width: 30px; height: 30px; }
.oi-row.inv-del .oi-r-main b { text-decoration: line-through; color: var(--muted); }
@media (hover: hover) { .oi-row:hover { background: var(--gold-soft); } }
@media (min-width: 1000px) { .oi-newbtn { width: auto; padding-inline: 22px; } .oi-kpi b { font-size: 24px; } }
@media (max-width: 420px) { .oi-kpi { padding: 10px; } .oi-kpi b { font-size: 16px; } .oi-head .oi-seg button { padding-inline: 10px; } }
/* Paiements › Autofactures et espace chauffeur « Autofacturation » (selfbill.js, owner 2026-11-23). */
.sb-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .sb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sb-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); margin: 4px 0 14px; }
.sb-mode p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.sb-mode > div { flex: 1 1 260px; min-width: 0; }
.sb-mode.on { background: var(--panel-2); }
.sb-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sb-sec-h .ea-h { margin: 0; }
.sb-build { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-build .sel-btn { width: auto; min-width: 170px; min-height: 0; height: 36px; padding-block: 0; }
.sb-empty { margin: 4px 0 0; }
.sb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-warn { color: var(--red) !important; }
.sb-mrow { flex-wrap: wrap; cursor: default; }
@media (max-width: 560px) { .sb-mrow .oi-r-end, .sb-myrow .oi-r-end { width: 100%; justify-content: flex-end; flex-wrap: wrap; } .sb-myrow { flex-wrap: wrap; } }
.sb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 6px; }
.sb-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.sb-head .hint { margin: 4px 0 0; }
.sb-info { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.sb-info b { color: var(--text); }
.sb-frhint { background: var(--red-soft); color: var(--text); padding: 10px 12px; border-radius: 10px; }
.sb-lines { display: flex; flex-direction: column; gap: 6px; }
.sb-line { background: var(--panel-2); border-radius: 10px; padding: 11px 12px; }
.sb-l-top { display: flex; justify-content: space-between; gap: 12px; }
.sb-l-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-l-amt small { color: var(--muted); font-size: 12.5px; }
.sb-l-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.sb-l-edit .f { margin: 0; flex: 0 0 150px; min-width: 0; }
.sb-l-edit .f:has(input[data-k="note"]) { flex: 1 1 200px; }
.sb-l-x { width: 34px; height: 34px; margin-bottom: 4px; flex: none; }
@media (max-width: 640px) { .sb-l-edit .f { flex: 1 1 130px; } .sb-l-edit .f:has(input[data-k="note"]) { flex-basis: 100%; } }
.sb-tot { margin-top: 12px; background: var(--panel-2); border-radius: 12px; padding: 12px 14px; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.sb-revoke { text-align: end; margin-top: 18px; }
.sb-revoke .text-link { color: var(--red); }
.ea-sb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.sb-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--panel-2); color: var(--text);
  text-decoration: none; margin-bottom: 14px; transition: background .3s, color .3s; }
.sb-card.gold { background: var(--gold); color: #fff; }
.sb-card b { white-space: nowrap; }
.sb-todo { display: block; color: var(--gold); margin-top: 2px; }
@media (hover: hover) { a.sb-card:hover, a.sb-card.gold:hover { background: var(--text); color: var(--bg); } a.sb-card:hover .sb-todo { color: var(--bg); } }
.sb-my { max-width: 760px; padding-bottom: 110px; }   /* dernier bouton jamais sous la bulle de discussion flottante */
.sb-page { padding-bottom: 96px; }
.sb-intro { color: var(--muted); }
.sb-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-co { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.sb-co span { color: var(--muted); }
.sb-vat .nav-opt span { display: flex; flex-direction: column; }
.sb-vat .nav-opt small { color: var(--muted); font-size: 12.5px; }
.sb-text { max-height: 340px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); font-size: 13.5px; line-height: 1.5; }
.sb-text h4 { margin: 12px 0 4px; font-size: 14px; }
.sb-text h4:first-child { margin-top: 0; }
.sb-text p { margin: 0; }
.sb-agree { margin: 16px 0 14px; }
.sb-signbtns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
a.oi-card, a.oi-card:visited { color: var(--text); text-decoration: none; }

/* Page Messages, carte Support « Hairline » (design 1 choisi par l'owner, 2026-11-19) : tout blanc, titre sur une ligne
   « Support · we reply here », logo rond 28 px, WhatsApp en rond vert, jour en texte gris, n° de transfert en petite ligne. */
.rc-page .rc-support .rc-win, .rc-page .rc-support .rc-msgs { background: var(--panel); }
.rc-page .rc-support .rc-sup-toggle { padding-block: 10px; gap: 10px; }
.rc-page .rc-support .rc-sup-head { padding-right: 12px; }
.rc-page .rc-support .rc-sup-head img.rc-sup-badge { width: 28px; height: 28px; }
.rc-page .rc-support .rc-sup-brand > span { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.rc-page .rc-support .rc-sup-brand b { display: inline; font-size: 16px; }
.rc-page .rc-support .rc-sup-head small { display: inline; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-page .rc-support .rc-sup-brand b::after { content: " ·"; font-weight: 400; color: var(--muted); }
.rc-page .rc-support .rc-sup-head small::first-letter { text-transform: lowercase; }
.rc-page .rc-support .rc-wa { width: 34px; height: 34px; padding: 0; justify-content: center; }
.rc-page .rc-support .rc-wa > span { display: none; }
.rc-page .rc-support .rc-wa svg { width: 19px; height: 19px; }
.rc-page .rc-support .msg-day span { padding: 0; border: 0; background: none; font-weight: 400; font-size: 11.5px; }
.rc-page .rc-support .msg-b:not(.has-offer) > .msg-ref { display: block; flex-basis: 100%; margin: 0; font-size: 11px; font-weight: 500; text-decoration: none; opacity: .85; }
.rc-page .rc-support .rc-form { padding: 8px 12px; }
.rc-page .rc-support .rc-form textarea { min-height: 40px; padding: 9px 16px; }
.rc-page .rc-support .rc-send { width: 38px; height: 38px; }
.rc-page .rc-support .rc-send svg { width: 17px; height: 17px; }
a.oi-card, a.oi-card:visited { color: var(--text); text-decoration: none; }
.rc-page .rc-support.open .rc-sup-head { border-bottom: 1px solid var(--line); }

/* Page Messages, carte Support : en-tête plus haut, logo et WhatsApp plus grands (owner, 2026-11-19). */
.rc-page .rc-support .rc-sup-toggle { padding-block: 14px; gap: 12px; }
.rc-page .rc-support .rc-sup-head img.rc-sup-badge { width: 42px; height: 42px; }
.rc-page .rc-support .rc-sup-brand b { font-size: 18px; }
.rc-page .rc-support .rc-sup-head small { font-size: 14px; }
.rc-page .rc-support .rc-wa { width: 44px; height: 44px; }
.rc-page .rc-support .rc-wa svg { width: 24px; height: 24px; }

/* Utilisateurs › Clients : bouton Factures à droite des filtres (owner, 2026-11-19). */
.us-frow { display: flex; align-items: center; gap: 10px; }
.us-frow .filters { flex: 1; min-width: 0; }
.us-frow .us-inv { flex: none; margin-bottom: 8px; }

/* Utilisateurs : bouton + en icône, plus grand et bien centré (owner, 2026-11-19). */
.us-head .us-add { width: 40px; height: 40px; }
.us-head .us-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; display: block; }
.us-head .us-add { color: #fff; }
@media (hover: hover) { .us-head .us-add:hover { color: var(--bg); } }

/* Fiche Partenaire, design 1 (owner, 2026-11-19) : bandeau d'état, SIREN + annuaire, TVA calculée grisée. */
.od-d1 { max-width: 560px; }
.od-d1 .od-req { color: var(--red); font-weight: 600; }
.od-d1 .od-state { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.od-d1 .od-state.ok { background: var(--green-soft); color: var(--green); }
.od-d1 .od-state.bad { background: var(--red-soft); color: var(--red); }
.od-d1 .od-sirow { display: flex; gap: 8px; margin: 0; }
.od-d1 .od-sirow input { flex: 1; min-width: 0; }
.od-d1 .od-sirow .btn { flex: none; }
.od-d1 .od-hint { margin: -4px 0 10px; }
.od-d1 .od-ro { background: var(--panel-2); color: var(--muted); }
.od-d1 label.f > span small { color: var(--muted); font-weight: 400; }
.od-d1 .od-three { display: grid; grid-template-columns: 110px 1fr 140px; gap: 0 12px; }
@media (max-width: 520px) { .od-d1 .od-three { grid-template-columns: 1fr 1fr; } .od-d1 .od-three .f:last-child { grid-column: 1 / -1; } .od-d1 .od-sirow { flex-wrap: wrap; } .od-d1 .od-sirow .btn { width: 100%; } }
.od-d1 .inv-hits { margin: -4px 0 12px; }

/* Utilisateurs : pastille rouge sur l'onglet Chauffeurs du sélecteur (owner, 2026-11-19). */
.us-seg .tab-badge { position: static; display: inline-block; margin-inline-start: 8px; vertical-align: 1px; }
.us-seg .tab-badge[hidden] { display: none; }

/* Réglages → Mon compte : adresse e-mail et son changement (owner, 2026-11-19) */
.em-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.em-row .em-k { color: var(--muted); font-size: 14px; }
.em-row .em-v { font-weight: 600; overflow-wrap: anywhere; }
.em-row .btn { margin-inline-start: auto; }
.em-form { margin-top: 16px; }
.em-form .em-sent { margin: 0 0 10px; }

/* Réglages → Mon compte : interrupteur des notifications du client (owner, 2026-11-19) */
.push-sw { margin-top: 4px; }
.push-sw .push-sw-row { margin-top: 0; font-weight: 600; }
.push-sw .push-sw-l { margin: 0; font-weight: 600; }
.push-sw .hint { margin: 6px 0 0; }
.push-sw .push-try { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .push-sw .push-try:hover { text-decoration: underline; } }

/* Client sur ordinateur : la liste reste exactement en place pendant que la fiche défile (owner, feedback 2026-11-19).
   --tsplit-top = où la liste commence (sous le bandeau éventuel), mesuré par tSplitPin() dans app.js. */
@media (min-width: 1000px) {
  /* Colonne fixe (pas « sticky ») : une colonne collante remontait en bas d'une longue fiche, poussée par la fin de la grille
     (owner, 2026-11-19 : « it should always stay static »). La fiche garde sa place grâce au retrait de la grille. */
  .tsplit.pin { display: block; padding-inline-start: var(--tsplit-w); }
  .tsplit.pin .tsplit-list { position: fixed; top: var(--tsplit-top, 0px); bottom: 0; height: auto; width: var(--tsplit-w); inset-inline-start: var(--tsplit-x, var(--side-w, 0px)); z-index: 5; background: var(--bg); }
}

/* Se déconnecter au survol : fond rouge et texte BLANC (une règle plus générale remettait le texte en noir, owner 2026-11-19). */
@media (hover: hover) { .tabs.mode-tabs button.tab-signout:not(.on):hover, .tabs.mode-tabs button.tab-signout:not(.on):hover svg { color: #fff; stroke: #fff; } }

/* Factures : transferts payés en ligne pas encore effectués, verrouillés (owner, 2026-11-19), comme « Vos chauffeurs » de Messages. */
.inv-soon-h { margin: 28px 0 4px; font-size: 17px; font-weight: 600; }
.inv-soon { max-width: 520px; }
.inv-soon-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-inline: -14px; border-radius: 10px; color: var(--text); text-decoration: none; transition: background-color .3s; }
.inv-lock { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px dashed var(--gold); color: var(--gold); display: grid; place-items: center; }
.inv-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inv-soon-row .grow { flex: 1; min-width: 0; }
.inv-soon-row b { display: block; font-size: 16px; font-weight: 600; }
.inv-soon-row small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.inv-soon-row small.inv-soon-route { font-size: 13px; }
.inv-soon-row .inv-soon-price { flex: none; align-self: flex-start; font-size: 15px; color: var(--muted); }
@media (hover: hover) { .inv-soon-row:hover { background: var(--panel-2); } }
@media (max-width: 999px) { .inv-soon-row { margin-inline: 0; padding-inline: 0; } }

/* Factures, rien à facturer : encadré doré pâle, à gauche (design 2, owner 2026-11-19). */
.inv-empty { display: flex; gap: 14px; align-items: flex-start; max-width: 520px; margin: 14px 0 6px; padding: 16px 18px; border-radius: 12px; background: var(--gold-soft); }
.inv-empty svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.inv-empty b { display: block; font-size: 16px; font-weight: 600; }
.inv-empty span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }

/* Bulle du Support sur tous les écrans (owner, 2026-11-19) : au-dessus de la barre de prix collante de la réservation sur téléphone. */
@media (max-width: 999px) { body:has(.bk-bar) .rc-fab-all { bottom: calc(var(--tabbar-h, 64px) + 92px); } }

/* ===== « Se connecter en tant que » (owner, 2026-11-19), loginas.js ===== */
@media (min-width: 1000px) {
  .tabs.mode-tabs button.tab-loginas { margin-top: auto; }
  .tabs.mode-tabs button.tab-loginas + button.tab-settings { margin-top: 0; }
}
.btn.la-phone { width: 100%; margin: 0 0 14px; gap: 10px; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.btn.la-phone svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 1000px) { .btn.la-phone { display: none; } }
@media (hover: hover) { .btn.la-phone:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.la-box { display: flex; flex-direction: column; gap: 10px; }
.la-q { width: 100%; box-sizing: border-box; }
.la-hint { margin: 0; }
.la-list { display: flex; flex-direction: column; gap: 6px; max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.la-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: start; cursor: pointer; font: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.la-row:disabled { opacity: .6; cursor: progress; }
.la-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--gold); color: #fff; font-size: 14px; font-weight: 650; }
.la-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.la-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-who small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-n { flex: none; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: #fff; white-space: nowrap; }
.la-n.zero { background: var(--panel-2); color: var(--muted); }
@media (hover: hover) {
  .la-row:not(:disabled):hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .la-row:not(:disabled):hover small { color: var(--bg); opacity: .75; }
}
.as-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--gold); color: #fff; font-size: 14px; line-height: 1.35; }
.as-bar > svg { width: 20px; height: 20px; flex: none; }
.as-bar span { flex: 1; min-width: 0; }
.as-bar .btn.small { flex: none; background: #fff; color: #14120a; border-color: #fff; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .as-bar .btn.small:hover { background: #101010; border-color: #101010; color: #fff; } }
@media (min-width: 1000px) { body:has(.tabs.mode-tabs) .as-bar { margin-left: var(--side-w); } [dir="rtl"] body:has(.tabs.mode-tabs) .as-bar { margin-left: 0; margin-right: var(--side-w); } }
.la-open { width: 100%; box-sizing: border-box; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.la-open svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .btn.primary.la-open:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
/* Login As : filtre « Tous / Transfert à venir » (owner, 2026-11-19) */
.la-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.la-chip { cursor: pointer; font: inherit; font-size: 14px; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .la-chip:not(.on):hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.la-who small.la-next { color: var(--gold); font-weight: 600; }
@media (hover: hover) { .la-row:not(:disabled):hover small.la-next { color: var(--bg); } }
.la-who small.la-next { white-space: normal; overflow: visible; }
@media (min-width: 1000px) { .tabs.mode-tabs button.tab-loginas svg { width: 18px; height: 18px; margin: 0 2px; } }   /* même taille que Se déconnecter (owner, 2026-11-19) */

/* ===== Carte partenaire, design B (owner, 2026-11-19), orderers.js ===== */
.odb { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.odb.off { opacity: .6; }
.odb-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.odb .drv-ava.odb-av { width: 40px; height: 40px; font-size: 14px; flex: none; }
.odb-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.odb-name { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.odb-name b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.odb-id small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odb-tag { font-size: 11px; line-height: 1.4; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; flex: none; }
.odb-tag.bad { border-color: var(--red); color: var(--red); }
.odb-tag.gold { border-color: var(--gold); color: var(--gold); }
.odb-ib { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); background: var(--panel); transition: background-color .3s, color .3s, border-color .3s; }
.odb-ib svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.odb-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel-2); border-radius: 10px; padding: 8px 4px; text-align: center; }
.odb-figs > div { min-width: 0; padding: 0 6px; }
.odb-figs > div + div { border-left: 1px solid var(--line); }
.odb-figs small { display: block; font-size: 11px; color: var(--muted); }
.odb-figs b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.odb-foot > small { font-size: 11.5px; color: var(--muted); }
.odb-acts { display: flex; gap: 2px; margin-right: -8px; }
.odb-acts button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 99px; cursor: pointer; transition: background-color .3s, color .3s; }
.odb-acts button.gold { color: var(--gold); font-weight: 600; }
.odb-acts button.red { color: var(--red); }
[dir="rtl"] .odb-figs > div + div { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .odb-acts { margin-right: 0; margin-left: -8px; }
@media (hover: hover) {
  .odb-ib:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .odb-acts button:hover { background: var(--text); color: var(--bg); }
  .odb-acts button.red:hover { background: var(--red); color: #fff; }
}
.odb-name b { flex: 0 0 auto; }   /* le nom garde sa largeur : les étiquettes passent dessous si besoin */
.odb .drv-ava.odb-av.logo { background: #fff; border: 1px solid var(--line); }
.odb .drv-ava.odb-av.logo img { object-fit: contain; padding: 5px; box-sizing: border-box; background: #fff; }   /* logo entier, sur fond blanc */

/* Bulle pendant la course : discussion avec le chauffeur, sa photo ronde dans l’en-tête doré (owner, 2026-11-19). */
.rc-drv-panel .rc-sup-brand > .drv-ava { width: 36px; height: 36px; flex: none; border: 2px solid #fff; font-size: 13px; }

/* Dossier VTC, sujet Véhicule : liste des places à remplir en rouge comme les autres champs, owner 2026-11-19. */
.mfg-fields select.mf-miss { border-color: var(--red); }

/* Listes déroulantes : bouton-champ + menu de l'app (selMenu() dans app.js), jamais la liste du système. Owner, 2026-11-19. */
.tf-menu { overflow-y: auto; overscroll-behavior: contain; }
.tf-menu > .tf-opt { flex-shrink: 0; }
.sel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: start; cursor: pointer; font: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); transition: border-color .3s, color .3s; }
.sel-btn .sel-ph { color: var(--muted); }
.sel-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s; }
.sel-btn[aria-expanded="true"], .sel-btn:focus-visible { outline: none; border-color: var(--gold); }
.sel-btn[aria-expanded="true"] .sel-chev { transform: rotate(180deg); }
.sel-btn.mf-miss { border-color: var(--red); }
.sel-btn:disabled { opacity: .55; cursor: default; }
@media (hover: hover) { .sel-btn:not(:disabled):hover { border-color: var(--gold); } }

/* « Continuer avec Google » sur la connexion de l'espace client (owner, 2026-11-19), googlelogin.js */
.gsi-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.gsi-or::before, .gsi-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gsi-btn { display: flex; justify-content: center; min-height: 44px; }

/* Réglages › Authentification (owner, 2026-11-19) */
.auth-h { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.auth-steps { margin: 14px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.auth-steps b { color: var(--text); font-weight: 600; }
.auth-steps a { color: var(--gold); text-underline-offset: 2px; }

/* Messages du chauffeur (home.js, viewDriverChat), owner 2026-11-19 : barre dorée du Support en haut, cadenas jusqu'à « Arrivé ». */
.wrap.dc-page .rc-sup-bar { position: static; display: flex; gap: 12px; align-items: center; margin: 0 16px 14px; width: auto; padding: 14px 16px; border-radius: 14px; background: var(--gold); color: #fff; text-decoration: none; transition: background-color .3s, color .3s; }
.dc-page .rc-sup-bar .grow { flex: 1; min-width: 0; }
.dc-page .rc-sup-bar b { display: block; font-size: 16px; font-weight: 600; }
.dc-page .rc-sup-bar small { display: block; font-size: 13.5px; color: inherit; margin-top: 2px; }
.dc-page .rc-sup-bar-i svg, .dc-arrow svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc-arrow svg { width: 20px; height: 20px; }
.dc-sup-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #fff; color: var(--gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dc-sup-n[hidden] { display: none; }
@media (hover: hover) { .wrap.dc-page .rc-sup-bar:hover { background: var(--text); color: var(--bg); } .dc-page .rc-sup-bar:hover .dc-sup-n { background: var(--bg); color: var(--text); } }
.rc-head small.dc-ok { color: #1faa6b; }
small.dc-lock { display: flex; align-items: center; gap: 5px; color: var(--gold); white-space: normal; margin-top: 3px; }
small.dc-lock svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-page .rc-lock-row { display: flex; gap: 14px; align-items: center; margin: 0 16px 8px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color .3s; }
.dc-page .rc-lock { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px dashed var(--gold); color: var(--gold); display: grid; place-items: center; }
.dc-page .rc-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc-page .rc-lock-row .grow { flex: 1; min-width: 0; }
.dc-page .rc-lock-row b { display: block; font-size: 16px; font-weight: 600; }
.dc-page .rc-lock-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dc-page .rc-lock-row small.dc-lock-t { color: var(--gold); }
@media (hover: hover) { .dc-page .rc-lock-row:hover { background: var(--panel-2); } }
.dc-none { margin: 0 16px 14px; }
.dc-page a.rc-pill { text-decoration: none; color: var(--text); }
.wrap.dc-page .rc-card, .wrap.dc-page .rc-lock-row, .wrap.dc-page .dc-none { margin-inline: 0; }
.wrap.dc-page .rc-sup-bar { margin-inline: 0; }
@media (max-width: 999px) { .wrap.dc-page > .rc-sup-bar, .wrap.dc-page > :is(#rcNow, .rc-h2, #rcRides, #rcOld) { margin-inline: 16px; } }
@media (min-width: 1000px) { .dc-page { max-width: 760px; } }

/* Adresse Gmail : Google d'abord, le mot de passe en second choix sous « ou » (owner, 2026-11-19), googlelogin.js */
.gsi-btn.gsi-top { margin-top: 18px; }
.gsi-first .gsi-or { margin: 20px 0 6px; }
.gsi-first .btns .btn.primary { background: transparent; color: var(--text); border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .gsi-first .btns .btn.primary:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Inscription chauffeur : même espace sous « 2 Votre entreprise » que sous « 1 Vous » (h2 4 px + champ 12 px), owner 2026-11-19. */
#rs2 .co-look { margin-top: 12px; }

/* Réglages › Authentification, version simple avec image (owner, 2026-11-19), googlelogin.js authSecHtml */
.ag { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ag-txt { flex: 1 1 280px; min-width: 0; }
.ag-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-head b { font-size: 17px; font-weight: 700; }
.ag-g svg, .ag-btn svg { width: 22px; height: 22px; display: block; }
.ag-st { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.ag-st.on { background: var(--gold); color: #fff; }
.ag-txt p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.ag-txt p.ag-who { color: var(--muted); font-size: 14px; }
.ag-pic { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ag-scr { width: 230px; box-sizing: border-box; padding: 16px; border-radius: 18px; background: var(--panel-2); display: flex; flex-direction: column; gap: 9px; }
.ag-scr > b { font-size: 14px; font-weight: 700; }
.ag-mail { font-size: 11.5px; padding: 7px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.ag-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--text); box-shadow: 0 0 0 3px var(--gold-soft, rgba(177, 149, 64, .15)); }
.ag-btn svg { width: 16px; height: 16px; }
.ag-or { font-size: 10.5px; color: var(--muted); text-align: center; }
.ag-field { height: 22px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); opacity: .6; }
.ag-pic figcaption { font-size: 12px; color: var(--muted); text-align: center; max-width: 230px; }
.ag-tech { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.ag-tech > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.ag-tech > summary::-webkit-details-marker { display: none; }
.ag-tech > summary::before { content: "›"; display: inline-block; transition: transform .2s; font-size: 18px; line-height: 1; }
.ag-tech[open] > summary::before { transform: rotate(90deg); }
.ag-tech > summary small { font-weight: 500; color: var(--gold); }
.ag-tech[open] > summary { margin-bottom: 12px; }
@media (hover: hover) { .ag-tech > summary:hover { color: var(--text); } }
@media (max-width: 640px) { .ag { gap: 20px; } .ag-pic { flex: 1 1 100%; } }

/* Carte client : rond « site web » en haut à droite (adresse d'entreprise), owner 2026-11-19 */
.uc-top .uc-web { align-self: flex-start; margin-inline-start: auto; }
@media (hover: hover) { .uc-top .uc-web:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Historique : position GPS du chauffeur à l'étape (owner, 2026-11-19) */
.tp-hpos { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--gold); text-decoration: none; }
.tp-hpos svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tp-hpos:hover { text-decoration: underline; text-underline-offset: 2px; } }
.tp-hpos { white-space: nowrap; }

/* Fiche transfert : boutons Modifier + PDF ensemble ; version PDF sans boutons (owner, 2026-11-19), team.js tpPdf */
.tp-top-r { display: inline-flex; gap: 8px; align-items: center; }
.tp-pdf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-print { max-width: none !important; padding: 0 !important; }
.tp-print :is(.tp-top, .tp-bar, button, .icon-btn, .contact-btns, .slide-btn, .tp-see, .rc-fab, .tp-hist-more) { display: none !important; }
.tp-print a { color: inherit !important; text-decoration: none !important; }
.tp-print :is(.tp-ico, .gmap-ico) { display: none !important; }   /* boutons ronds (message, WhatsApp, appel, carte) : pas dans le PDF */
.tp-print { width: auto !important; margin: 0 !important; box-sizing: border-box; }
.html2pdf__container { right: auto !important; margin: 0 !important; }   /* cadre du PDF collé à gauche, page et copie identiques (sinon bord coupé) */

/* Rapport de transfert en PDF (owner, 2026-11-19 : document à envoyer au client en cas de litige), team.js tpPdf */
.rep { width: 700px; box-sizing: border-box; background: #fff; color: #17150d; font-size: 12.5px; line-height: 1.5; font-family: Manrope, system-ui, sans-serif; }
.rep i { font-style: normal; color: #8a857a; font-weight: 400; }
.rep-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid #B19540; }
.rep-logo { height: 30px; width: auto; display: block; }
.rep-title { text-align: right; }
.rep-title h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: #17150d; }
.rep-title p { margin: 2px 0 0; color: #8a857a; font-size: 13px; }
.rep-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; padding: 12px 14px; background: #f7f5ef; border-radius: 8px; }
.rep-meta small { display: block; font-size: 10.5px; color: #6d6a60; }
.rep-meta b { display: block; font-size: 14px; margin-top: 2px; }
.rep-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 4px 0 6px; }
.rep-parties h2, .rep-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #B19540; text-transform: none; letter-spacing: 0; }
.rep-h { margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #e6e2d8; }
.rep-parties b { font-size: 14px; }
.rep-table { width: 100%; border-collapse: collapse; }
.rep-table th, .rep-table td { text-align: left; vertical-align: top; padding: 7px 10px; border-top: 1px solid #eeeae0; }
.rep-table tr:first-child th, .rep-table tr:first-child td { border-top: 0; }
.rep-table th { width: 34%; font-weight: 500; color: #6d6a60; }
.rep-table tbody tr:nth-child(odd), .rep-table > tr:nth-child(odd) { background: #faf9f5; }
.rep-steps thead th { width: auto; font-size: 11px; color: #6d6a60; border-bottom: 1px solid #e6e2d8; background: #fff; }
.rep-steps td:first-child { font-weight: 600; }
.rep-note { margin: 8px 0 0; padding: 8px 12px; background: #f7f5ef; border-left: 3px solid #B19540; font-size: 12px; }
.rep-map { display: block; width: 100%; height: auto; border-radius: 8px; }
.rep-price { margin: 0 0 0 auto; max-width: 320px; }
.rep-price div { display: flex; justify-content: space-between; padding: 4px 0; }
.rep-price .rep-total { border-top: 2px solid #B19540; margin-top: 4px; padding-top: 8px; font-size: 15px; font-weight: 700; }
.rep-hist td:first-child { width: 30%; color: #6d6a60; white-space: nowrap; }
.rep-hist span { color: #6d6a60; font-size: 11.5px; }
.rep-foot { margin-top: 26px; padding-top: 10px; border-top: 1px solid #e6e2d8; font-size: 10.5px; color: #6d6a60; line-height: 1.45; }

/* Messages du chauffeur : logo rond VIPAZUR dans la barre du Support (owner, 2026-11-19). */
.dc-sup-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: #000; }

/* Fiche transfert : vrai logo WhatsApp (plein) sur le bouton rond vert, owner 2026-11-19. */
.tp-ico.wa svg.wa-logo { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.rep-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 0; font-size: 11px; color: #17150d; }
.rep-legend span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9d5ca; margin-left: 8px; }
.rep-legend span:first-child { margin-left: 0; }
.rep-legend .lg-a { background: #2e9d5b; } .rep-legend .lg-b { background: #c0392b; }
.rep-legend .lg-n { width: 15px; height: 15px; background: #17150d; color: #fff; font-size: 9px; font-weight: 700; text-align: center; line-height: 15px; }
.rep-contact { margin-top: 8px; font-size: 11.5px; color: #17150d; }
.rep-contact b { color: #B19540; font-weight: 700; }

/* Fiche transfert, client : bouton Appel | SMS (design 7, owner 2026-11-19), entre la discussion de l'app et WhatsApp */
.tp-callsms { display: inline-flex; align-items: stretch; height: 44px; box-sizing: border-box; border: 1px solid var(--gold); border-radius: 99px; overflow: hidden; background: var(--panel); flex: none; }
.tp-callsms a { display: flex; align-items: center; justify-content: center; padding: 0 14px; color: var(--text); text-decoration: none; transition: background-color .3s, color .3s; }
.tp-callsms a + a { border-inline-start: 1px solid var(--line); }
.tp-callsms svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-cs-sms { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
@media (hover: hover) { .tp-callsms a:hover { background: var(--text); color: var(--bg); } }
.tp-print .tp-callsms { display: none !important; }

/* Accueil chauffeur : pièces du dossier VTC qui expirent (hmExpRender, home.js), owner 2026-11-19. */
.hm-exps { display: flex; flex-direction: column; gap: 8px; }
.hm-exps[hidden] { display: none; }
.hm-exp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hm-exp.wait { background: color-mix(in srgb, var(--gold) 10%, var(--panel)); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.hm-exp.bad { background: color-mix(in srgb, var(--red) 8%, var(--panel)); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.hm-exp .grow { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hm-exp b { font-weight: 600; font-size: 14.5px; }
.hm-exp small { flex-basis: 100%; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hm-exp-go { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 600; transition: background-color .3s, color .3s; }
.hm-exp.bad .hm-exp-go { background: var(--red); }
@media (hover: hover) { .hm-exp:hover .hm-exp-go { background: var(--text); color: var(--bg); } }
@media (max-width: 420px) { .hm-exp { flex-wrap: wrap; } .hm-exp .grow { flex: 1 1 calc(100% - 46px); } .hm-exp-go { margin-left: 46px; } }

/* Page Courses : pièces qui expirent, sous la liste « pour recevoir des courses » (owner, 2026-11-19). */
.pr-exps { max-width: 640px; margin: -6px 0 18px; }

/* Charte des chauffeurs VIPAZUR (home.js, viewCharter), owner 2026-11-19. */
.chr { max-width: 640px; width: 100%; margin: 0 auto; padding: 4px 16px 40px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1000px) { .wrap:has(> .chr) { margin-left: 0; } .chr { margin: 0; padding-left: 0; padding-right: 0; } }
.chr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.chr-hico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.chr-hico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-head h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.chr-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.chr-grp { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.chr-grp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chr-grp.must { color: var(--red); } .chr-grp.road, .chr-grp.look { color: var(--gold); } .chr-grp.info { color: var(--muted); }
.chr-r { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.chr-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.chr-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-r.must .chr-ic { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.chr-r.road .chr-ic, .chr-r.look .chr-ic { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.chr-r.info .chr-ic { background: var(--panel-2); color: var(--muted); }
.chr-r b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; padding-top: 2px; }
.chr-r small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.chr-end { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--gold); color: #fff; }
.chr-end svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-end p { margin: 0; font-size: 14px; line-height: 1.5; color: #fff; }
.chr-agree { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 600; font-size: 15px; line-height: 1.4; cursor: pointer; }
.chr-agree.todo { border-color: var(--red); }
.chr-agree.done { border-color: var(--green); cursor: default; }
.chr-agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.chr-note { margin: 2px 4px 0; font-size: 13px; }
.chr-note.todo { color: var(--red); }
.chr-note.done { color: var(--green); }
.chr-r { align-items: center; }   /* une ligne : texte centré sur l'icône */

/* Accueil chauffeur : carte « Prochaine course », design 5 (carte du trajet + sections), owner 2026-11-19. */
.hm5 .hm-map { height: 170px; margin: 0; border: 0; border-radius: 0; }
.hm5 .hm-left { justify-content: flex-end; gap: 2px; }
.hm5 .hm-day { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.hm5 .hm-left-in { display: flex; align-items: baseline; gap: 5px; }
.hm-sec { margin: 14px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: left; }
.hm-body > .hm-sec:first-child { margin-top: 0; }
.hm-li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hm-li-i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.hm-li-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-li-t { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.hm-li-t b { font-weight: 600; }
.hm-li-t small { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
.hm-li-t .ok { color: var(--green); }
.hm-li-t .bad { color: var(--red); }
.hm-note { color: var(--muted); font-style: italic; }
.hm-payrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0 2px; color: var(--muted); font-size: 13.5px; text-align: left; }
.hm-payrow .hm-pay { flex: none; font-size: 20px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.hm5 .hm-icos { margin-top: 14px; }

/* Crédit des cartes (« Tiles © Esri, OpenStreetMap contributors ») : petit ⓘ discret dans le coin, sur toutes les cartes ;
   le texte s'affiche au survol (souris) ou à l'appui (attrClick, home.js). Owner, 2026-11-19 : « hide it everywhere » ;
   Esri et OpenStreetMap exigent la mention, elle reste donc accessible. */
.leaflet-container .leaflet-control-attribution { width: 16px !important; height: 16px !important; margin: 0 6px 6px 0 !important; padding: 0 !important; border-radius: 50% !important;
  overflow: hidden; white-space: nowrap; font-size: 0 !important; line-height: 16px !important; background: rgba(255, 255, 255, .7) !important; color: #444 !important; cursor: pointer; opacity: .55; transition: opacity .3s; }
.leaflet-container .leaflet-control-attribution::before { content: 'i'; display: block; width: 16px; text-align: center; font: italic 700 10px/16px Georgia, serif; color: #444; }
.leaflet-container .leaflet-control-attribution.open { width: auto !important; height: auto !important; padding: 1px 6px !important; border-radius: 6px !important; font-size: 10px !important; opacity: 1; }
.leaflet-container .leaflet-control-attribution.open::before { display: none; }
@media (hover: hover) {
  .leaflet-container .leaflet-control-attribution:hover { width: auto !important; height: auto !important; padding: 1px 6px !important; border-radius: 6px !important; font-size: 10px !important; opacity: 1; }
  .leaflet-container .leaflet-control-attribution:hover::before { display: none; }
}

/* Accueil chauffeur : carte « Prochaine course », design 2 (bandeau de paiement, heure, rémunération, carte), owner 2026-11-19. */
.hm2.live { border-color: var(--green); }
.hm-paybar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; line-height: 1.35; text-align: left; }
.hm-paybar svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-paybar b { font-weight: 700; }
.hm-paybar.collect { background: rgba(239, 159, 39, .16); color: #e9a23b; }
.hm-paybar.none { background: rgba(95, 207, 128, .14); color: var(--green); }
.hm-paybar.unknown { background: var(--panel-2); color: var(--muted); }
html[data-theme="light"] .hm-paybar.collect { background: #faeeda; color: #854f0b; }
html[data-theme="light"] .hm-paybar.none { background: #e6f4ea; color: #1f7a3e; }
.hm2-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 16px 12px; }
.hm2-tl { min-width: 0; }
.hm2 .hm-time { color: var(--text); }
.hm2-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.hm2-when .hm-left-in { display: inline-flex; align-items: baseline; gap: 4px; }
.hm2-when b { color: var(--gold); font-weight: 700; }
.hm2.live .hm2-when b { color: var(--green); }
.hm2-when .live-dot { align-self: center; }
.hm2-pay { flex: none; text-align: right; }
.hm2-pay small { display: block; color: var(--muted); font-size: 12.5px; }
.hm2-pay b { font-size: 26px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.hm2 .hm-map { height: 160px; margin: 0; border: 0; border-radius: 0; }
.hm2 .hm-body { padding: 6px 16px 16px; }
.hm2-meta { padding: 8px 0 0; color: var(--muted); font-size: 12.5px; text-align: left; }
.hm2 .hm-icos { margin-top: 12px; }

/* Société avec plusieurs chauffeurs (owner, 2026-11-19), fleet.js : Réglages › Mes chauffeurs, « Qui conduit ? », invitation. */
.fl-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.fl-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); flex-wrap: wrap; }
.fl-card.off { opacity: .55; }
.fl-card .grow { min-width: 0; flex: 1 1 180px; }
.fl-card b { display: block; }
.fl-card small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.fl-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--gold); color: #fff; font-weight: 600; font-size: 14px; }
.fl-ava img { width: 100%; height: 100%; object-fit: cover; }
.fl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fl-st, .fl-up { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.fl-st.ok { color: var(--green); }
.fl-st.bad { color: var(--red); }
.fl-st.wait { color: var(--gold); }
.fl-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.fl-form { margin: 6px 0 14px; padding: 14px; border-radius: 12px; background: var(--panel-2); }
.fl-emp-note { margin: 0; line-height: 1.5; }
.fl-pick select, .fl-pick .sel-btn { width: 100%; }
.fl-pick .hint { margin: 8px 0 0; }
.tcard-drv { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--gold); font-weight: 600; }
.tcard-drv svg { width: 16px; height: 16px; flex: none; }
.fl-join { max-width: 420px; }
@media (max-width: 640px) { .fl-acts { margin-inline-start: 52px; } }

/* Dossier VTC : lien « Tout télécharger (.zip) » en haut à droite, owner 2026-11-19. */
.mf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mf-top .hint { flex: 1; min-width: 0; }
.mf-zip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.mf-zip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .mf-zip:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
@media (max-width: 520px) { .mf-top { flex-direction: column; gap: 4px; } .mf-zip { margin-bottom: 10px; } }

/* Carte « Prochaine course » : date plus grande, sans compte à rebours (owner, 2026-11-19). */
.hm2-date { font-size: 17px; font-weight: 600; color: var(--text); }

/* Carte « Prochaine course » : « Avant de partir », prise en charge (vert) et dépose (rouge) comme sur la carte, owner 2026-11-19. */
.hm-before { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
.hm-li-i.pick { color: #1faa6b; }
.hm-li-i.drop { color: #d64545; }

/* Onglet Partenaires : sociétés de chauffeurs au-dessus des donneurs d'ordre (owner, 2026-11-20). */
.od-fleet-h small { color: var(--muted); font-weight: 500; }
.od-fleet { margin-bottom: 18px; }
.uc-emps { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Champs téléphone de toute l'app : indicatif pays (phoneCcEnhance), owner 2026-11-20. */
.ph-auto { display: flex; gap: 8px; min-width: 0; position: relative; }
.ph-auto input[name="phone_local"] { flex: 1; min-width: 0; }
.ph-box input.ph-bad { border-color: var(--red); }
/* Pages de connexion et d'inscription : bouton clair / sombre juste après le drapeau, comme dans l'app (owner, 2026-11-20). */
.bl-page > .top .spacer { order: 10; }
.bl-page > .top { gap: 10px; }

/* Véhicules de la société (owner, 2026-11-20), fleetveh.js : Réglages › Mes véhicules, « Quel véhicule ? ». */
.fv-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.fv-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); flex-wrap: wrap; }
.fv-card .grow { min-width: 0; flex: 1 1 180px; }
.fv-card b, .fv-card small { display: block; }
.fv-card small { color: var(--muted); overflow-wrap: anywhere; }
.fv-card.main b { margin-top: 2px; }
.fv-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.fv-ico svg { width: 20px; height: 20px; }
.fv-cg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; }
.fv-cg a { color: var(--gold); font-weight: 600; }
.fv-up { cursor: pointer; font-size: 13px; }
.fv-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.fv-form { padding: 14px; border-radius: 12px; background: var(--panel-2); }
.fv-ride b { display: block; }
@media (max-width: 640px) { .fv-acts { margin-inline-start: 52px; } }
.fv-ico svg, .tcard-drv svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Accueil chauffeur : pastilles de gains (hmEarnFill), design 5, owner 2026-11-20. */
.hm-earn { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-earn[hidden] { display: none; }
.hm-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13.5px; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.hm-chip span { color: var(--muted); }
.hm-chip b { font-weight: 700; }
.hm-chip svg { align-self: center; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.hm-chip.due { border-color: var(--gold); }
.hm-chip.due b { color: var(--gold); }
.hm-chip.owe { border-color: var(--red); }
.hm-chip.owe b { color: var(--red); }
@media (hover: hover) { .hm-chip:hover { background: var(--text); border-color: var(--text); } .hm-chip:hover span, .hm-chip:hover b, .hm-chip:hover svg { color: var(--bg); } }
@media (max-width: 520px) { .hm-earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .hm-chip { flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px; border-radius: 14px; font-size: 12.5px; text-align: center; } .hm-chip b { font-size: 15px; } .hm-chip svg { display: none; } }   /* téléphone : 3 colonnes, une seule ligne */

@media (max-width: 600px) { .two:has(.ph-auto) { grid-template-columns: 1fr; } }   /* téléphone : un champ téléphone avec indicatif prend toute la ligne (owner, 2026-11-20) */

/* Photo de profil validée par VIPAZUR (home.js), owner 2026-11-20. */
.av-st { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; font-size: 12px; }
.av-st.none, .av-st.rejected { color: var(--red); } .av-st.pending { color: var(--gold); } .av-st.approved { color: var(--green); }
.uc-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 2px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); font-size: 13px; font-weight: 600; color: var(--gold); }
.uc-photo span { flex: 1; min-width: 0; }
.uc-photo .btn { width: auto; }
.uc-photo.muted { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.uc-photo-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: block; background: var(--panel-2); }

/* Bandeau de paiement : précision sur une 2e ligne (owner, 2026-11-20). */
.hm-paybar { padding-block: 12px; }
.hm-paybar small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: inherit; }

/* Mon compte (chauffeur) : champ du profil encore vide en rouge (owner, 2026-11-20). */
.f input.pf-miss { border-color: var(--red); }

/* Mon compte (chauffeur) : la photo en haut, un peu d'espace avant le prénom (owner, 2026-11-20). */
.settings .av-edit + .two { margin-top: 14px; }

/* Admin : pièces à vérifier dans la carte du chauffeur et dossier en grand (home.js, openDossier), owner 2026-11-20. */
.us-docbtn { display: none !important; }   /* plus de bouton « Documents » en haut : la vérification est dans chaque carte */
.uc-docs { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 2px; padding: 9px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
@media (hover: hover) { .uc-docs:hover { background: var(--text); color: var(--bg); } }
.dv-dialog { width: min(980px, calc(100vw - 24px)); max-width: 980px; }
.dv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
.dv-bar .btn { width: auto; }
.dv-none { margin: 12px 0; color: var(--green); font-weight: 600; }
.dv-list { display: flex; flex-direction: column; gap: 12px; }
.dv-doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.dv-prev { display: grid; place-items: center; min-height: 220px; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.dv-prev a { display: block; }
.dv-prev img { display: block; max-width: 100%; max-height: 440px; object-fit: contain; }
.dv-prev object { display: block; width: 100%; height: 440px; border: 0; }
.dv-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dv-info > b { font-size: 16px; }
.dv-f { display: flex; flex-direction: column; font-size: 13px; }
.dv-f span { color: var(--muted); }
.dv-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.dv-acts .btn { flex: 1; }
.dv-more { margin-top: 16px; }
.dv-more summary { padding: 8px 0; font-weight: 600; cursor: pointer; }
@media (max-width: 700px) { .dv-doc { grid-template-columns: 1fr; } .dv-prev img { max-height: 360px; } .dv-prev object { height: 360px; } }

/* Journal des e-mails (owner, 2026-11-20), maillog.js : Réglages › E-mail › Journal, aperçu en fenêtre. */
.ml-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 12px; }
.ml-bar input[type=search] { flex: 1 1 220px; min-width: 0; }
.ml-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ml-list { display: flex; flex-direction: column; gap: 4px; }
.ml-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: start; font: inherit; cursor: pointer; transition: background-color .3s; }
@media (hover: hover) { .ml-row:hover { background: var(--panel-2); } }
.ml-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.ml-ico.ok { background: var(--green); }
.ml-ico.bad { background: var(--red); }
.ml-main { flex: 1; min-width: 0; }
.ml-main b, .ml-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-main small { color: var(--muted); }
.ml-err { color: var(--red) !important; white-space: normal !important; }
.ml-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ml-side time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ml-st { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.ml-st.ok { color: var(--green); background: var(--green-soft); }
.ml-st.bad { color: var(--red); background: var(--red-soft); }
.ml-dialog { width: min(860px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.ml-dialog h2 { display: flex; align-items: flex-start; gap: 10px; }
.ml-dialog h2 span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ml-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.ml-meta div { min-width: 0; }
.ml-meta dt { font-size: 12px; color: var(--muted); }
.ml-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.ml-frame { flex: 1; width: 100%; min-height: 60vh; border: 0; border-radius: 10px; background: #fff; }
@media (max-width: 640px) { .ml-side time { display: none; } .ml-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); } }

/* Coche verte de réussite à côté du bouton (okTick, home.js), owner 2026-11-20. */
.ok-tick { flex: none; white-space: nowrap; align-self: center; }

/* Coche verte de réussite : flotte sous le bouton, ne déplace rien (owner, 2026-11-20). */
.ok-float { position: absolute; z-index: 3000; margin: 0 !important; padding: 4px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); background: var(--panel); white-space: nowrap; pointer-events: none; }

/* Gmail : « Continuer avec Google » tout en bas, sous le formulaire mot de passe (owner, 2026-11-20), googlelogin.js */
.gsi-or.gsi-or-end { margin: 22px 0 14px; }
.gsi-btn.gsi-end { margin-bottom: 4px; }

/* Véhicule du dossier VTC en haut de « Mes véhicules » (mountMyFile(…, 'vehicle')), owner 2026-11-20. */
.veh-main { margin: 4px 0 14px; }
.veh-main:empty { display: none; }

/* Ma société (salarié) : coordonnées en lecture seule (fleet.js fleetEmpCoHtml), owner 2026-11-20. */
.fl-emp-co { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.fl-emp-co > div { min-width: 0; }
.fl-emp-co dt { color: var(--muted); font-size: 12px; }
.fl-emp-co dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Réponse rapide en cours de traduction (ridechat.js qrAttach), owner 2026-11-20. */
.qr-menu.busy { opacity: .6; pointer-events: none; }

/* Pièces à vérifier en haut de Utilisateurs › Chauffeurs, sociétés comprises (owner, 2026-11-20), fleet.js usPendHtml. */
.us-pend { margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: var(--gold-soft); }
.us-pend-h { display: block; margin-bottom: 8px; }
.us-pend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.us-pend-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.us-pend-item .grow { min-width: 0; }
.us-pend-item b, .us-pend-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-pend-item small { color: var(--muted); }
.us-pend-n { flex: none; color: var(--gold); font-weight: 700; font-size: 13px; white-space: nowrap; }
@media (hover: hover) { .us-pend-item:hover { background: var(--text); color: var(--bg); } .us-pend-item:hover small, .us-pend-item:hover .us-pend-n { color: var(--bg); } }
.fl-dos-emp { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); }
.fl-dos-emp p { margin: 0 0 10px; line-height: 1.45; }

/* Message traduit : lien « Voir l'original » sous le texte (ridechat.js msgTextHtml), owner 2026-11-20. */
.msg-trb { display: block; margin: 4px 0 0; padding: 0; border: 0; background: none; color: inherit; opacity: .6; font: inherit; font-size: 11px; text-align: start; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: opacity .3s; }
@media (hover: hover) { .msg-trb:hover { opacity: 1; } }

/* Dossier du chauffeur : aperçus plus grands, bouton plein écran en haut à droite (owner, 2026-11-20). */
.dv-prev { position: relative; }
.dv-prev object { height: 78vh; }
.dv-prev img { max-height: 70vh; }
.dv-fs { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(23, 21, 13, .72); color: #fff; cursor: pointer; transition: background-color .3s, color .3s; }
.dv-fs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .dv-fs:hover { background: #fff; color: #17150d; } }
.dv-full { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(0, 0, 0, .92); padding: 56px 12px 12px; }
.dv-full img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dv-full object { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 6px; }
.dv-full-x { position: fixed; top: 10px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #17150d; cursor: pointer; transition: background-color .3s, color .3s; }
.dv-full-x svg { width: 20px; height: 20px; }
@media (hover: hover) { .dv-full-x:hover { background: var(--gold); color: #fff; } }
@media (max-width: 700px) { .dv-prev object { height: 70vh; } .dv-prev img { max-height: 60vh; } }
.dv-full img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.dv-full-x svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dv-full img, .dv-full object { position: absolute; top: 60px; left: 12px; width: calc(100% - 24px); height: calc(100% - 72px); max-width: none; max-height: none; object-fit: contain; }

/* « Salarié de … » cliquable (owner, 2026-11-20) : ouvre la société dans Partenaires, carte mise en évidence. */
.pill.pill-link { cursor: pointer; font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--text); transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .pill.pill-link:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.ucard.uc-flash { box-shadow: 0 0 0 2px var(--gold); transition: box-shadow .3s; }

/* Dossier : bouton plein écran d'un PDF en bas à droite (en haut, il cachait la barre d'outils du PDF) ; image en plein écran :
   un clic la referme (owner, 2026-11-20). */
.dv-fs.pdf { top: auto; bottom: 12px; right: 22px; }
.dv-full img { cursor: zoom-out; }

/* « Salarié de … » : même taille que l'étiquette « Chauffeur » (owner, 2026-11-20). */
.pill.pill-link { font-family: inherit; font-size: 12px; font-weight: 400; line-height: 17.4px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted); }
@media (hover: hover) { .pill.pill-link:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Filtre « Salariés de … » (owner, 2026-11-20). */
.us-emp-row { margin: 0 0 12px; }
.us-emp-chip span { margin-inline-start: 6px; }

/* Étiquettes dorées cliquables (« N chauffeurs », « Vérification en attente ») : restent dorées (owner, 2026-11-20). */
.pill.gold.pill-link { color: var(--gold); border-color: var(--gold); }
.pill.pill-link.uc-chk { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
@media (hover: hover) { .pill.gold.pill-link:hover, .pill.pill-link.uc-chk:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Carte utilisateur : icône « Se connecter en tant que » en haut à droite (à côté du site web s'il y en a un), owner 2026-11-20. */
.uc-top .uc-la { align-self: flex-start; margin-inline-start: auto; flex: none; }
.uc-top .uc-web + .uc-la { margin-inline-start: 6px; }
.uc-top .uc-la svg { width: 18px; height: 18px; }
@media (hover: hover) { .uc-top .uc-la:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.dv-prev a img { cursor: zoom-in; }   /* un clic : plein écran (owner, 2026-11-20) */

/* Aperçu PDF du dossier : une page entière, sans la barre d'outils du PDF ni le début de la page suivante (owner, 2026-11-20). */
.dv-prev object { height: auto; aspect-ratio: 210 / 297; max-height: 78vh; }

/* Plein écran d'un PDF : en haut à droite comme les images (la barre d'outils du PDF est cachée dans l'aperçu), owner 2026-11-20. */
.dv-fs.pdf { top: 8px; bottom: auto; right: 22px; }

/* Utilisateurs : recherche puis filtres sur la même ligne (Chauffeurs, Partenaires, Clients), owner 2026-11-20. Téléphone : l'un sous l'autre. */
.us-frow.us-bar { flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; margin-bottom: 8px; }
.us-bar .us-search { flex: 0 1 340px; max-width: 340px; padding: 0; }
.us-bar .filters { padding: 0; align-items: center; }
.us-bar .us-inv { margin-bottom: 0; }
@media (max-width: 700px) { .us-bar .us-search { flex-basis: 100%; max-width: none; margin-bottom: 10px; } .us-bar .filters { padding-bottom: 4px; } }
.dv-pdf-hit { position: absolute; inset: 0; z-index: 1; cursor: zoom-in; }   /* clic sur l'aperçu PDF : plein écran (owner, 2026-11-20) */

/* Boutons dorés « Approuver » (dossier du chauffeur, cartes) : fond noir et texte blanc au survol, fondu 0,3 s (owner, 2026-11-20). */
.dv-dialog .btn.primary, .ucard .btn.primary { transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .dv-dialog .btn.primary:hover, .ucard .btn.primary:hover { background: #17150d; border-color: #17150d; color: #fff; } }

/* Dispatchers : sociétés de chauffeurs puis donneurs d'ordre, une seule liste (owner, 2026-11-20). */
#odFleet .od-fleet { margin-bottom: 16px; }

.dv-pdfjs { width: 100%; overflow-y: auto; padding: 8px; background: #e9e8e4; border-radius: 10px; cursor: zoom-in; box-sizing: border-box; }
.dv-pdfjs canvas { display: block; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* Dossier : boutons sous le titre de la pièce ; « changer d'avis » dans Toutes les pièces (owner, 2026-11-20). */
.dv-info > .dv-acts { margin: 8px 0 12px; }
.dv-chs { display: inline-flex; gap: 6px; margin: 4px 0 6px 6px; vertical-align: middle; }
.dv-ch { font: inherit; font-size: 12px; padding: 2px 10px; border-radius: 99px; cursor: pointer; background: var(--bg); transition: background-color .3s, color .3s, border-color .3s; }
.dv-ch.no { border: 1px solid var(--red); color: var(--red); }
.dv-ch.ok { border: 1px solid var(--gold); color: var(--gold); }
@media (hover: hover) { .dv-ch.no:hover { background: var(--red); color: #fff; } .dv-ch.ok:hover { background: #17150d; border-color: #17150d; color: #fff; } }

/* Réglages › Sauvegarde (owner, 2026-11-20), backup.js. */
.bk-h { font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
.bk-kept { display: flex; flex-direction: column; gap: 4px; }
.bk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--text); text-decoration: none; transition: background-color .3s, color .3s; }
.bk-row small { color: var(--muted); }
@media (hover: hover) { .bk-row:hover { background: var(--text); color: var(--bg); } .bk-row:hover small { color: var(--bg); } }
.bk-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); line-height: 1.45; }

/* Prochaine course : ligne client (home.js hmClientRow), owner 2026-11-20. */
.hm-client { margin: 12px 0 10px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.hm-client .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .hm-client { flex-wrap: wrap; row-gap: 10px; } .hm-client .tp-contact { width: 100%; gap: 8px; } .hm-client .tp-callsms { flex: 1; } .hm-client .tp-callsms a { flex: 1; } }

.bk-row .grow { flex: 1; min-width: 0; }
.bk-kind { flex: none; min-width: 108px; font-size: 12px; font-weight: 600; color: var(--gold); }
.bk-row:hover .bk-kind { color: var(--bg); }

/* Charte : une case par règle (home.js viewCharter), owner 2026-11-20. */
.chr-r, .chr-end { cursor: pointer; }
.chr-r .grow, .chr-end .grow { flex: 1; min-width: 0; }
.chr-tk { flex: none; position: relative; width: 28px; height: 28px; align-self: center; }
.chr-tk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chr-tk i { display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: background-color .3s, border-color .3s; pointer-events: none; }
.chr-tk i::after { content: ''; width: 7px; height: 12px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.chr-tk input:checked + i { background: var(--gold); border-color: var(--gold); }
.chr-tk input:checked + i::after { opacity: 1; }
.chr-tk input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.chr-end .chr-tk i { border-color: rgba(255, 255, 255, .7); background: transparent; }
.chr-end .chr-tk input:checked + i { background: #fff; border-color: #fff; }
.chr-end .chr-tk input:checked + i::after { border-color: var(--gold); }
.chr-r small.chr-2w { color: var(--text); margin-top: 6px; }
.chr-wa { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 12px; border-radius: 99px; background: #25d366; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .3s, color .3s; }
.chr-wa svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
@media (hover: hover) { .chr-wa:hover { background: #000; color: #fff; } }
.chr-agree input:disabled { cursor: not-allowed; }
.chr-agree:has(input:disabled:not(:checked)) { opacity: .6; cursor: not-allowed; }

/* Import de sauvegarde : zone de fichier moderne, prénom + nom pour confirmer (owner, 2026-11-20). */
.bk-drop { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--panel-2); cursor: pointer; transition: border-color .3s, background-color .3s; }
.bk-drop.on { border-style: solid; border-color: var(--gold); }
.bk-drop.drag { border-color: var(--gold); background: var(--gold-soft); }
@media (hover: hover) { .bk-drop:hover { border-color: var(--gold); } }
.bk-drop-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; }
.bk-drop-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-drop-txt { min-width: 0; }
.bk-drop-txt b, .bk-drop-txt small { display: block; overflow-wrap: anywhere; }
.bk-drop-txt small { color: var(--muted); margin-top: 2px; }
#bkImp:disabled { opacity: .45; cursor: not-allowed; }

/* Charte : case « J'ai lu la charte… » au design de l'app (rond doré), pas la case du navigateur (owner, 2026-11-20). */
.chr-agree input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: background-color .3s, border-color .3s; }
.chr-agree input::after { content: ''; width: 7px; height: 12px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.chr-agree input:checked { background: var(--gold); border-color: var(--gold); }
.chr-agree input:checked::after { opacity: 1; }
.chr-agree input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chr-agree.todo input:not(:disabled) { border-color: var(--gold); }

/* Accueil chauffeur : tout dans la carte, courses terminées (home.js hmExtraHtml, hmFootHtml, hmDoneHtml), owner 2026-11-20. */
.hm-xtra { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 12px; }
.hm-xtra .dpanel { margin: 0; }
.hm-dnote { margin: 0; }
.hm-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hm-steps { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.hm-steps-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hm-steps-h .text-link { text-transform: none; letter-spacing: 0; font-weight: 500; }
.hm-steps .stage-steps { margin: 0; }
.hm-foot { flex-direction: row; justify-content: center; gap: 8px; margin: 10px 0 0; }
.hm-fbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.hm-fbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-fbtn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
@media (hover: hover) { .hm-fbtn:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-fbtn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); } }
.hm-offs { display: flex; flex-direction: column; gap: 10px; }
.hm-dchk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); font-size: 12px; font-weight: 700; }
.hm-canc { margin: 4px 2px 0; text-align: center; }
@media (max-width: 480px) { .hm-foot { flex-direction: column; } }
/* Charte : imprévu de dernière minute, encadré rouge et texte blanc (très important, owner 2026-11-20). */
.chr-urg { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #d32f2f; color: #fff; }
.chr-r .chr-urg small.chr-2w { margin: 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; }
.chr-urg .chr-wa { margin-top: 10px; box-shadow: 0 0 0 2px #fff; }

/* Charte : « Pas de sous-traitance » entièrement en rouge, texte blanc (owner, 2026-11-20). */
.chr-r.chr-red { background: #d32f2f; border-color: #d32f2f; color: #fff; }
.chr-r.chr-red b, .chr-r.chr-red small, .chr-r.chr-red small.chr-2w { color: #fff; }
.chr-r.chr-red .chr-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.chr-r.chr-red .chr-urg { padding: 0; background: none; border-radius: 0; }
.chr-r.chr-red .chr-tk i { border-color: rgba(255, 255, 255, .75); background: transparent; }
.chr-r.chr-red .chr-tk input:checked + i { background: #fff; border-color: #fff; }
.chr-r.chr-red .chr-tk input:checked + i::after { border-color: #d32f2f; }

/* Bouton à glisser plus épais : +20 px (owner, 2026-11-20). */
.slide-btn, .slide-btn.tp-main { height: 68px; min-height: 68px; }
.slide-knob { width: 60px; height: 60px; }
.slide-knob svg { width: 26px; height: 26px; }
.slide-lbl { padding: 0 72px; font-size: 16px; }

/* Conversation VIPAZUR : logo plus grand, sans cadre (owner, 2026-11-20). */
.chat-head .drv-ava:has(.ch-vip) { width: 44px; height: 44px; border: 0; background: none; box-shadow: none; }

/* Étape franchie : le point vert apparaît et pulse (home.js hmRefreshCard), owner 2026-11-20. */
@keyframes st-pop { 0% { transform: translateX(-50%) scale(.3); } 70% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 65%, transparent); } 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--green) 0%, transparent); } }
.stage-steps li.st-pulse i { animation: st-pop .45s ease-out, st-pulse 1.3s ease-out .3s 3; }
@media (prefers-reduced-motion: reduce) { .stage-steps li.st-pulse i { animation: none; } }

/* Étape en cours : le point vert pulse sans arrêt (owner, 2026-11-20) ; « pop » seulement quand il vient d'être franchi. */
.hm-steps .stage-steps li.done:is(:has(+ li:not(.done)), :last-child) i { animation: st-pulse 1.6s ease-out infinite; }
.hm-steps .stage-steps li.done.st-pulse:is(:has(+ li:not(.done)), :last-child) i { animation: st-pop .45s ease-out, st-pulse 1.6s ease-out .3s infinite; }

/* Carte de la prochaine course : plus cliquable (owner, 2026-11-20). */
.hm-next.hm2 { cursor: default; }


/* Accueil : carte ouverte dans la liste (home.js hmExpand), owner 2026-11-20. */
.hm-list > .hm-next { margin: 4px 0; text-align: left; }

/* Charte : règle rouge qui pulse ; case cochée dorée comme les autres (owner, 2026-11-20). */
@keyframes chr-red-pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); } 100% { box-shadow: 0 0 0 14px rgba(211, 47, 47, 0); } }
.chr-r.chr-red { animation: chr-red-pulse 1.8s ease-out infinite; }
.chr-r.chr-red .chr-tk input:checked + i { background: var(--gold); border-color: var(--gold); }
.chr-r.chr-red .chr-tk input:checked + i::after { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .chr-r.chr-red { animation: none; } }

/* Charte : signature par le nom complet dans l'encadré doré (home.js), owner 2026-11-20. */
.chr-sign { cursor: default; }
.chr-sign .grow p { margin: 0; }
.chr-name { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.chr-name span { font-size: 13px; font-weight: 600; color: #fff; }
.chr-name input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .85); background: #fff; color: #1a1a1a; font: inherit; font-size: 16px; font-weight: 600; }
.chr-name input::placeholder { color: #9a9a9a; font-weight: 400; }
.chr-name input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.chr-name input[readonly] { background: rgba(255, 255, 255, .9); }
.chr-sign .chr-tk { align-self: flex-end; margin-bottom: 9px; }
.chr-sign .chr-tk input { cursor: default; }

/* Adresses cliquables de la carte de course (home.js hmAddrLink), owner 2026-11-20. */
.hm-addr { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .hm-addr:hover { color: var(--gold); } }

/* Charte : engagement et signature dans l'encadré doré, remerciement (home.js), owner 2026-11-20. */
.chr-commit { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .35); font-weight: 700; font-size: 15px; color: #fff; }
.chr-signbtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 99px; background: #fff; color: var(--gold); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s, opacity .3s; }
@media (hover: hover) { .chr-signbtn:not(:disabled):hover { background: #1a1a1a; color: #fff; } }
.chr-signbtn:disabled { opacity: .55; cursor: not-allowed; }
.chr-sign .chr-note { margin: 8px 0 0; color: #fff; font-size: 13px; opacity: .9; }
.chr-signed { margin: 12px 0 0 !important; font-weight: 700; color: #fff; }
.chr-sign .chr-tk { align-self: flex-start; margin-top: 2px; margin-bottom: 0; }
.chr-thanks { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 10%, var(--panel)); }
.chr-thx-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.chr-thx-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chr-thanks b { display: block; font-size: 16px; }
.chr-thanks p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Bandeau du haut de la carte de course (home.js hmLblHtml), owner 2026-11-20. */
.hm-tag { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-align: left; }
.hm-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hm-tag.next { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.hm-tag.up { background: rgba(239, 140, 30, .16); color: #e8891c; }
.hm-tag.past { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
html[data-theme="light"] .hm-tag.up { color: #b25e00; }
.hm-next .hm-tag { justify-content: flex-start; }

/* « Prochaine course » : fond vert, texte blanc (owner, 2026-11-20). */
.hm-next .hm-tag.next { background: #23944a; color: #fff; }

/* « À venir » : doré comme l'ancien « Prochaine course » (owner, 2026-11-20). */
.hm-next .hm-tag.up, html[data-theme="light"] .hm-next .hm-tag.up { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }

/* Équipements à préparer (home.js hmExtrasHtml, hmExtrasPopup), owner 2026-11-20. */
.hm-xh { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.hm-x { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.hm-xk { flex: none; position: relative; width: 24px; height: 24px; }
.hm-xk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hm-xk i { display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); transition: background-color .3s, border-color .3s; pointer-events: none; }
.hm-xk i::after { content: ''; width: 6px; height: 10px; margin-top: -3px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.hm-xk input:checked + i { background: var(--gold); border-color: var(--gold); }
.hm-xk input:checked + i::after { opacity: 1; }
.hm-xk input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.hm-xdlg { max-width: 440px; }
.hm-xlist { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 16px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.hm-xdlg .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Étapes : la barre verte se remplit doucement jusqu'à l'étape franchie, puis le point passe au vert (owner, 2026-11-20). */
.stage-steps li.done::before { background: var(--line); }
.stage-steps li::after { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--green); transform-origin: left center; transform: scaleX(0); }
.stage-steps li:first-child::after { display: none; }
.stage-steps li.done::after { transform: scaleX(1); }
[dir="rtl"] .stage-steps li::after { left: auto; right: -50%; transform-origin: right center; }
@keyframes st-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes st-arrive {
  0%, 68% { background: var(--panel); border-color: var(--gold); transform: translateX(-50%) scale(1); }
  82% { background: var(--green); border-color: var(--green); transform: translateX(-50%) scale(1.35); }
  100% { background: var(--green); border-color: var(--green); transform: translateX(-50%) scale(1); }
}
@keyframes st-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.stage-steps li.st-pulse::after { animation: st-fill 1.1s cubic-bezier(.65, 0, .35, 1) both; }
.stage-steps li.st-pulse i, .hm-steps .stage-steps li.done.st-pulse:is(:has(+ li:not(.done)), :last-child) i { animation: st-arrive 1.6s ease-out both, st-pulse 1.6s ease-out 1.6s infinite; }
.stage-steps li.st-pulse time { animation: st-fade .4s ease-out 1.1s both; }
@media (prefers-reduced-motion: reduce) { .stage-steps li.st-pulse::after, .stage-steps li.st-pulse i, .stage-steps li.st-pulse time { animation: none !important; } }

/* Photo de l'équipement (home.js hmXImgs), owner 2026-11-20. */
.hm-ximg { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 3px; box-sizing: border-box; }
.hm-x { gap: 12px; }

/* Charte : règle rouge plus aérée en haut et en bas (owner, 2026-11-20). */
.chr-r.chr-red { padding-top: 20px; padding-bottom: 20px; }

/* Photo de l'équipement plus grande (owner, 2026-11-20). */
.hm-ximg { width: 84px; height: 84px; padding: 4px; border-radius: 12px; }

/* Facturation : course ouverte sur place (home.js eaMoreHtml), owner 2026-11-20. */
a.ea-line.open { background: var(--panel); border-radius: 12px 12px 0 0; }
.ea-more { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; background: var(--panel); border-radius: 0 0 12px 12px; margin-bottom: 6px; }
.ea-more-r { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.ea-more-r span { color: var(--muted); }
.ea-more-r b { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ea-more-r { grid-template-columns: 1fr; gap: 2px; } }

/* Étapes : « Client prévenu » ; fenêtre « Paiement encaissé ? » (home.js), owner 2026-11-20. */
.stage-steps .st-note { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.stage-steps .st-note.ok { color: var(--green); font-weight: 600; }
.stage-steps li.st-pulse .st-note { animation: st-fade .4s ease-out 1.2s both; }
.hm-cash { max-width: 420px; }
.hm-cash-amt { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; padding: 14px 16px; border-radius: 14px; background: rgba(239, 159, 39, .16); color: #e9a23b; }
html[data-theme="light"] .hm-cash-amt { background: #faeeda; color: #854f0b; }
.hm-cash-amt svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-cash-amt b { display: block; font-size: 22px; }
.hm-cash-amt small { display: block; font-size: 13px; }
.hm-cash .btns { display: flex; gap: 8px; }
.hm-cash .btns .btn { flex: 1; }

/* Calendrier du chauffeur (home.js viewDriverCalendar), owner 2026-11-20. */
.cal { max-width: 720px; width: 100%; margin: 0 auto; padding: 4px 16px 40px; box-sizing: border-box; }
@media (min-width: 1000px) { .wrap:has(> .cal) { margin-left: 0; } .cal { margin: 0; padding-left: 0; padding-right: 0; } }
.cal h1 { margin: 0 0 4px; }
.cal-sum { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.cal-sum b { color: var(--gold); }
.cal-month { margin: 18px 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.cal-day { margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.cal-dh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
.cal-dh span { flex: 1; min-width: 0; }
.cal-dh b { color: var(--gold); font-weight: 600; white-space: nowrap; }
.cal-chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0; transition: transform .3s; }
.cal-day.open .cal-chev { transform: rotate(-135deg); margin-top: 4px; }
@media (hover: hover) { .cal-dh:hover { background: var(--text); color: var(--bg); } .cal-dh:hover b { color: var(--bg); } .cal-dh:hover .cal-chev { border-color: var(--bg); } }
.cal-rows { border-top: 1px solid var(--line); }
.cal-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
.cal-rows > .cal-row:first-child { border-top: 0; }
.cal-row b { flex: none; width: 46px; font-variant-numeric: tabular-nums; }
.cal-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-row small { flex: none; color: var(--muted); }
.cal-row.open { background: var(--panel-2); font-weight: 600; }
@media (hover: hover) { .cal-row:hover { background: var(--text); color: var(--bg); } .cal-row:hover small { color: var(--bg); } }
.cal-raw { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px 70px; background: var(--panel-2); font-size: 13px; line-height: 1.45; }
.cal-raw > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.cal-raw > div > span:first-child { color: var(--muted); }
.cal-raw > div > span:last-child { overflow-wrap: anywhere; }
.cal-link { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .cal-link:hover { color: var(--gold); } }
@media (max-width: 480px) { .cal-raw { padding-left: 14px; } .cal-raw > div { grid-template-columns: 1fr; gap: 0; } .cal-raw > div > span:first-child { font-size: 12px; } }

/* Compte à rebours avant archivage de la course déposée (home.js hmArchive), owner 2026-11-20. */
.hm-arch { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hm-arch i { display: block; width: 100%; max-width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hm-arch b { display: block; height: 100%; background: var(--green); transform-origin: left center; animation: hm-arch 20s linear forwards; }
@keyframes hm-arch { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Calendrier : section des courses terminées (home.js), owner 2026-11-20. */
.cal-month.cal-past { margin-top: 28px; color: var(--muted); scroll-margin-top: 80px; }
a.btn.hm-all { text-decoration: none; }

/* Calendrier : bouton des courses plus anciennes (home.js), owner 2026-11-20. */
.cal-older { width: 100%; margin: 6px 0 10px; }

/* Bas de la carte : boutons plus hauts, Écrire à VIPAZUR | WhatsApp VIPAZUR (home.js hmFootHtml), owner 2026-11-20. */
.hm-foot, .hm-xtra.hm-foot { flex-direction: column; gap: 8px; }
.hm-foot-row { display: flex; gap: 8px; }
.hm-foot-row .hm-fbtn { flex: 1; min-width: 0; }
.hm-fbtn { min-height: 52px; text-decoration: none; }
.hm-fbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-fbtn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.hm-fbtn.wa svg { fill: currentColor; stroke: none; width: 19px; height: 19px; }
@media (hover: hover) { .hm-fbtn.wa:hover { background: #000; border-color: #000; color: #fff; } }
@media (max-width: 480px) { .hm-fbtn { padding: 0 10px; gap: 6px; font-size: 12.5px; } }
@media (max-width: 480px) { .hm-foot-row .hm-fbtn span { white-space: normal; overflow: visible; text-align: center; line-height: 1.2; } }

/* Bandeau d'encaissement : commission et ⚠ espèces qui clignote (home.js), owner 2026-11-20. */
.hm-paybar .grow { flex: 1; min-width: 0; }
.hm-paybar small.hm-comm { margin-top: 3px; font-weight: 700; }
.hm-cash-warn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #d32f2f; color: #fff; animation: hm-blink 1s steps(1, end) infinite; }
.hm-cash-warn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* « Ajouter à l'agenda » sur la carte de course (home.js calAddChooser), owner 2026-11-20. */
.hm-tag .grow { flex: 1; min-width: 0; }
.hm-caladd { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0; padding: 5px 11px; border: 1px solid currentColor; border-radius: 99px; background: transparent; color: inherit; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background-color .3s, color .3s; }
.hm-caladd svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-caladd:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-tag.next .hm-caladd:hover { background: #fff; color: #23944a; border-color: #fff; } }
.cal-add { max-width: 420px; }
.cal-add-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cal-add-btns .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; text-decoration: none; }
.cal-add-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Coordonnées masquées (home.js) ; ⚠ espèces : fondu doux et halo (owner, 2026-11-20). */
.hm-client small.hm-ct { color: var(--muted); font-style: italic; white-space: normal; }
@keyframes hm-warn-fade { 0%, 100% { opacity: .45; transform: scale(.94); box-shadow: 0 0 0 0 rgba(211, 47, 47, .5); } 50% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); } }
.hm-cash-warn { animation: hm-warn-fade 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* Jour au-dessus de l'heure de la carte (home.js hmDayLabel), owner 2026-11-20. */
.hm2-tl .hm2-day { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hm2-when:empty { display: none; }

/* ⚠ espèces : pulsation seule, sans fondu (owner, 2026-11-20). */
@keyframes hm-warn-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); } 50% { transform: scale(1.08); } 70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } }
.hm-cash-warn { opacity: 1; animation: hm-warn-pulse 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* Remerciement de la charte : lien WhatsApp (owner, 2026-11-20). */
.chr-thanks p.chr-thx-wa { margin-top: 8px; }
.chr-thx-wa a { color: #1f9d55; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .chr-thx-wa a:hover { color: var(--text); } }

/* ⚠ espèces : seul le contour pulse, l'icône ne bouge pas (owner, 2026-11-20). */
@keyframes hm-warn-ring { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(211, 47, 47, 0); } }
.hm-cash-warn { transform: none; opacity: 1; animation: hm-warn-ring 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-cash-warn { animation: none; } }

/* Encaissement à bord, design 1 (home.js hmCollectHtml), owner 2026-11-20. */
.hm-collect { align-items: center; padding-top: 14px; padding-bottom: 14px; }
.hm-collect .hm-cl-k { display: block; font-size: 12px; font-weight: 600; }
.hm-collect .hm-cl-amt { display: block; font-size: 30px; font-weight: 700; line-height: 1.15; }
.hm-cl-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-cl-pills span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; }
html[data-theme="light"] .hm-cl-pills span { background: #fff; }
.hm-cl-pills .keep { color: var(--green); }
.hm-cl-pills .comm { color: var(--red); }

/* Équipements : la case alignée sur les icônes des lignes au-dessus (owner, 2026-11-20). */
.hm-xli .hm-x { margin-left: -32px; }

/* « Écrire à VIPAZUR » : logo VIPAZUR (owner, 2026-11-20). */
.hm-vip-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; }

/* ⚠ espèces devant le montant (owner, 2026-11-20). */
.hm-collect .hm-cl-amt { display: flex; align-items: center; gap: 10px; }
.hm-cl-amt .hm-cash-warn { width: 32px; height: 32px; }
.hm-cl-amt .hm-cash-warn svg { width: 18px; height: 18px; }

/* Calendrier : nom du client sous le trajet (home.js), owner 2026-11-20. */
.cal-row .cal-rt em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .cal-row:hover .cal-rt em { color: var(--bg); } }

/* Encaissement à droite de l'heure, design 1 (home.js hmCollectTop), owner 2026-11-20. */
.hm2-collect b { color: #e9a23b; }
html[data-theme="light"] .hm2-collect b { color: #854f0b; }
.hm2-split { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hm2-split i { font-style: normal; }
.hm2-split .k { color: var(--green); }
.hm2-split .r { color: var(--red); }

/* Encaissement, version 1 : badge Espèces au contour qui pulse (home.js hmCollectTop), owner 2026-11-20. */
.hm2-collect { display: flex; flex-direction: column; align-items: flex-end; }
.hm2-cbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: rgba(239, 159, 39, .16); color: #e9a23b; font-size: 12px; font-weight: 700; }
html[data-theme="light"] .hm2-cbadge { background: #faeeda; color: #854f0b; }
.hm2-cbadge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hm-cb-ring { 0% { box-shadow: 0 0 0 0 rgba(233, 162, 59, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(233, 162, 59, 0); } }
.hm2-cbadge.cash { animation: hm-cb-ring 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm2-cbadge.cash { animation: none; } }
.hm2-collect b { margin-top: 4px; line-height: 1.15; }
.hm2-dont { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.hm2-dont i { font-style: normal; font-weight: 700; color: var(--red); }

/* Étapes : « Encaisser X € » sous Client déposé (home.js hmStepsHtml), owner 2026-11-20. */
.stage-steps .st-note.cash { color: #e9a23b; font-weight: 700; }
html[data-theme="light"] .stage-steps .st-note.cash { color: #b25e00; }

/* « Encaisser X € » sous Client déposé : fondu doux (owner, 2026-11-20). */
@keyframes st-cash-fade { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.stage-steps .st-note.cash { animation: st-cash-fade 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .stage-steps .st-note.cash { animation: none; } }

/* Bandeau « En cours » (home.js hmLblHtml), owner 2026-11-20. */
.hm-next .hm-tag.live { background: #23944a; color: #fff; justify-content: flex-start; }
@keyframes hm-live-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 80%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.hm-tag.live::before { animation: hm-live-dot 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .hm-tag.live::before { animation: none; } }

/* Calendrier : « Qui conduit ? » dans les détails (home.js), owner 2026-11-20. */
.cal-raw > .cal-pick { display: block; max-width: 420px; margin-top: 8px; }
.cal-pick .dpanel { margin: 0; }

/* Onglet Charte signé : ✓ vert (home.js chrTabMark), owner 2026-11-20. */
.tabs button.chr-signed { position: relative; }
.tabs button.chr-signed::after { content: '✓'; position: absolute; top: 4px; left: calc(50% + 6px); display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #23944a; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
@media (min-width: 1000px) {
  .tabs.mode-tabs button.chr-signed::after { position: static; margin-left: auto; width: 20px; height: 20px; font-size: 11px; }
  .tabs.mode-tabs button.on.chr-signed::after { background: #fff; color: #23944a; }
}

/* Onglet Charte actif : la coche garde son vert (owner, 2026-11-20). */
@media (min-width: 1000px) { .tabs.mode-tabs button.on.chr-signed::after { background: #23944a; color: #fff; } }

/* Course en compte, design 3 (home.js hmAccountTop), owner 2026-11-20. */
.hm2-cbadge.ok { background: rgba(95, 207, 128, .14); color: var(--green); }
html[data-theme="light"] .hm2-cbadge.ok { background: #e6f4ea; color: #1f7a3e; }
.hm2-acc b { color: var(--gold); }
.hm2-acc .hm2-dont i { color: var(--green); font-weight: 600; }

/* Calendrier : chauffeur attribué à droite de la ligne (home.js), owner 2026-11-20. */
.cal-row small.cal-drv { max-width: 38%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text); }
@media (hover: hover) { .cal-row:hover small.cal-drv { color: var(--bg); } }

/* Montant de la carte (espèces et en compte) plus grand, à la hauteur de l'heure (owner, 2026-11-20). */
.hm2-collect b { font-size: 36px; line-height: 1.05; margin-top: 6px; }
/* Course en compte : montant en vert (owner, 2026-11-20). */
.hm2-acc b { color: var(--green); }
html[data-theme="light"] .hm2-acc b { color: #1f7a3e; }

/* Réglages : « ! » rouge sur les rubriques incomplètes (home.js setWarnMarks), owner 2026-11-20. */
.set-warn { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: #d32f2f; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
summary .set-warn { margin-left: 8px; vertical-align: middle; }
.set-nav button { position: relative; }
.set-nav button .set-warn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* Date au-dessus de l'heure : sur une ligne (owner, 2026-11-20). */
.hm2-tl .hm2-day { white-space: nowrap; }

/* Bloc vol de la carte, design 1 (home.js hmFlightHtml), owner 2026-11-20. */
.hm-next .hm-fl { display: block; }
.hm-fl { display: block; max-width: none; margin: 6px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; text-align: left; }
.hm-fl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-fl-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hm-fl-n svg { width: 18px; height: 18px; flex: none; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; }
.hm-fl-n small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-fl-pill { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.hm-fl-pill.ok { background: rgba(95, 207, 128, .14); color: var(--green); }
.hm-fl-pill.late { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.hm-fl-route { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.hm-fl-route small { display: block; color: var(--muted); font-size: 12px; }
.hm-fl-route b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.hm-fl-route b s { font-size: 13px; font-weight: 500; color: var(--red); }
.hm-fl-route .r { text-align: right; }
.hm-fl-line { flex: 1; position: relative; height: 1px; margin-bottom: 12px; border-top: 1px dashed var(--muted); }
.hm-fl-line i { position: absolute; left: 55%; top: -10px; color: var(--gold); }
.hm-fl-line svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hm-fl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text); }
.hm-fl-g { flex: none; color: var(--gold); font-weight: 600; text-decoration: none; transition: color .3s; }
@media (hover: hover) { .hm-fl-g:hover { color: var(--text); } }

/* Champ du profil manquant : contour rouge en fondu (home.js setWarnMarks), owner 2026-11-20. */
@keyframes pf-miss-pulse { 0%, 100% { border-color: rgba(211, 47, 47, .35); box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } 50% { border-color: #d32f2f; box-shadow: 0 0 0 3px rgba(211, 47, 47, .18); } }
.f input.pf-miss { border-color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .f input.pf-miss { animation: none; } }

/* Calendrier : bouton « mois suivant » en bas (home.js), owner 2026-11-20. */
.cal-newer { margin-top: 14px; }

/* Calendrier : bloc vol dans les détails (home.js calRideRaw), owner 2026-11-20. */
.cal-raw > .cal-fl { display: block; max-width: 520px; margin-bottom: 8px; }
.cal-fl .hm-fl { margin: 0; }

/* Ligne de course : étiquette de l'étape (home.js hmStagePill), owner 2026-11-20. */
.hm-stp { flex: none; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.hm-stp.live { background: color-mix(in srgb, #e8912d 16%, transparent); color: #e8912d; }
.hm-stp.en_route, .hm-stp.arrived, .hm-stp.on_board { background: rgba(95, 207, 128, .14); color: var(--green); }
@media (max-width: 420px) { .hm-row .hm-stp { font-size: 11px; padding: 2px 7px; } }

/* Calendrier : étiquette d'étape sur la ligne (home.js hmStagePill), owner 2026-11-20. */
.cal-row span.hm-stp { flex: none; overflow: visible; }
.hm-stp.done { background: rgba(95, 207, 128, .14); color: var(--green); }
html[data-theme="light"] .hm-stp.done, html[data-theme="light"] .hm-stp.en_route, html[data-theme="light"] .hm-stp.arrived, html[data-theme="light"] .hm-stp.on_board { background: #e6f4ea; color: #1f7a3e; }

/* Bloc vol, design choisi (home.js hmFlightHtml, .hm-fc), owner 2026-11-20. */
.hm-fc { display: flex; align-items: center; gap: 12px; margin: 6px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; text-align: left; transition: background-color .3s, color .3s, border-color .3s; }
.hm-fc-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.hm-fc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-fc-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-fc-m b { font-size: 14px; font-weight: 700; }
.hm-fc-m small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.hm-fc-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hm-fc-r b { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-fc-pill { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hm-fc-pill.ok { background: rgba(95, 207, 128, .14); color: var(--green); }
.hm-fc-pill.late { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
html[data-theme="light"] .hm-fc-pill.ok { background: #e6f4ea; color: #1f7a3e; }
.cal-raw > .cal-fl { max-width: 520px; }
.cal-fl .hm-fc { margin: 0; }
@media (hover: hover) { .hm-fc:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-fc:hover .hm-fc-m small { color: var(--bg); } }

/* Bloc vol sans suivi : « Vérifier sur Google › » à droite du numéro (home.js), owner 2026-11-20. */
.hm-fc-g { flex: none; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .3s; }
@media (hover: hover) { .hm-fc:hover .hm-fc-g { color: var(--bg); } }

/* Réglages ordinateur : « ! » seulement dans le menu de gauche (owner, 2026-11-20). */
@media (min-width: 1000px) { .set-layout details.sec > summary .set-warn { display: none; } }

/* Bouton à glisser : coins 20 px, pastille 16 px (owner, 2026-11-20). */
.slide-btn, .slide-btn.tp-main { border-radius: 20px; }
.slide-knob { border-radius: 16px; }

/* Mon compte sans photo : croix rouge dans le rond (team.js avatarEditHtml), owner 2026-11-20. */
.drv-ava.av-none { background: color-mix(in srgb, #d32f2f 10%, transparent); border: 0; color: #d32f2f; }   /* plus de cercle rouge autour de la croix (owner, 2026-11-22) */
.drv-ava.av-none svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Carte de course : trois boutons sur une ligne (home.js hmFootHtml), owner 2026-11-20. */
.hm-foot-row .hm-fbtn { padding-left: 8px; padding-right: 8px; }
@media (max-width: 480px) { .hm-foot-row { gap: 6px; } .hm-foot-row .hm-fbtn { flex-direction: column; gap: 4px; font-size: 12.5px; } }

/* Dossier chauffeur : informations saisies à côté de chaque pièce, fins de validité en couleur (owner, 2026-11-20). */
.dv-f.exp-ok b { color: var(--green, #2e9e5b); }
.dv-f.exp-soon b { color: #d98a00; }
.dv-f.exp-bad b { color: var(--red); }
.dv-f b em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 4px; text-transform: uppercase; letter-spacing: .03em; }
.dos-doc-f:not(:empty) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 14px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.dos-doc-f .dv-f { min-width: 0; overflow-wrap: anywhere; }

/* Mes véhicules : détails du véhicule sous le titre replié (team.js), owner 2026-11-20. */
.mfg-sub { color: var(--muted); font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Véhicules de la société : photos avant, côté, intérieur (fleetveh.js fvPhotosHtml), owner 2026-11-20. */
.fv-card .fv-ph { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; max-width: 460px; }
.fv-ph-t { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer; overflow: hidden; transition: background-color .3s, color .3s, border-color .3s; }
.fv-card .fv-ph-t small { display: block; color: inherit; opacity: .8; font-size: 11px; font-weight: 500; }
.fv-ph-t img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.fv-ph-t.add { border: 1.5px dashed #d32f2f; color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }
.fv-ph-t.add svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fv-ph-t.busy { opacity: .6; pointer-events: none; }
.fv-ph-miss { margin: 8px 0 0; color: #d32f2f; font-size: 12.5px; }
@media (hover: hover) { .fv-ph-t:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (prefers-reduced-motion: reduce) { .fv-ph-t.add { animation: none; } }

/* Accueil : macaron aéroport manquant (home.js hmAptWarn), owner 2026-11-20. */
.hm-apt:not([hidden]) { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #e8912d; background: color-mix(in srgb, #e8912d 10%, var(--panel)); }
.hm-apt-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e8912d; color: #fff; font-weight: 800; font-size: 14px; }
.hm-apt .grow { min-width: 0; }
.hm-apt b { display: block; font-size: 14px; }
.hm-apt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.hm-apt-btn { flex: none; padding: 8px 14px; border-radius: 99px; background: #e8912d; color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; transition: background-color .3s, color .3s; }
@media (hover: hover) { .hm-apt-btn:hover { background: var(--text); color: var(--bg); } }

/* Couleur du véhicule : carré de couleur devant le nom (team.js vColorBind), owner 2026-11-20. */
.vsw { display: inline-block; flex: none; width: 16px; height: 16px; margin-right: 10px; border-radius: 4px; border: 1px solid rgba(127, 127, 127, .45); vertical-align: -3px; }
.vsw[data-none] { background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(127, 127, 127, .35) 3px 4px) !important; }
.vcol-menu .tf-opt span, .sel-btn span { display: inline-flex; align-items: center; }

/* Rappel macaron aéroport : texte qui prend la place, « Ajouter » à droite (owner, 2026-11-20). */
.hm-apt .grow { flex: 1; }

/* Pièce en attente de validation : horloge (owner, 2026-11-20). */
.mf-st.pending, .mfg-chip.wait { display: inline-flex; align-items: center; gap: 4px; }
.mf-st.pending::before, .mfg-chip.wait::before { content: ''; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.mf-doc.wait .mf-ico, .mf-check li.wait .mf-ico { font-size: 0; }
.mf-doc.wait .mf-ico::before, .mf-check li.wait .mf-ico::before { content: ''; width: 15px; height: 15px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.set-wait { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; background: var(--gold); color: #fff; vertical-align: middle; }
.set-wait svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.set-nav button .set-wait { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
@media (min-width: 1000px) { .set-layout details.sec > summary .set-wait { display: none; } }

/* Inscription chauffeur : libellés dans les champs (team.js viewPartnerRegister), owner 2026-11-20. */
.reg-form .reg-lbl-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Téléphone : charte signée = icône verte, pas de pastille (owner, 2026-11-20). */
@media (max-width: 999px) { .tabs button.chr-signed::after { content: none; display: none; } .tabs button.chr-signed:not(.on) svg { color: #23944a; stroke: #23944a; } }

/* En attente de vérification : horloge dorée au trait, sans fond (design 1), owner 2026-11-20. */
.set-wait { width: 20px; height: 20px; background: none; color: var(--gold); border-radius: 0; }
.set-wait svg { width: 18px; height: 18px; stroke-width: 2; }
.set-nav button.on .set-wait { color: #fff; }
.av-st.pending { display: inline-flex; align-items: center; gap: 4px; }
.av-st.pending::before { content: ''; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.mf-doc.wait .mf-ico, .mf-check li.wait .mf-ico { background: none !important; color: var(--gold); font-size: 0; }
.mf-doc.wait .mf-ico::before, .mf-check li.wait .mf-ico::before { content: ''; width: 22px; height: 22px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Onglet Charte signé : pas la marge de « Signé » de la page Charte (icône alignée), owner 2026-11-20. */
.tabs button.chr-signed { margin: 0 !important; font-weight: inherit; }

/* Mes véhicules : bouton « Tout télécharger (.zip) » à droite (team.js), owner 2026-11-20. */
.mf-top-veh { justify-content: flex-end; margin-bottom: 10px; }

/* Titres Calendrier et Messages : même style que Facturation (owner, 2026-11-20). */
.cal > h1, .cal h1, .rc-page > h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* Carte « Expire le… » : style du bandeau macaron aéroport, rouge si expiré (home.js), owner 2026-11-20. */
a.hm-exp2 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #e8912d; background: color-mix(in srgb, #e8912d 10%, var(--panel)); color: var(--text); text-decoration: none; grid-template-columns: none; }
a.hm-exp2 .grow { flex: 1; min-width: 0; }
a.hm-exp2 b { display: block; font-size: 14px; }
a.hm-exp2 small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
a.hm-exp2.bad { border-color: #d32f2f; background: color-mix(in srgb, #d32f2f 8%, var(--panel)); }
a.hm-exp2.bad .hm-apt-ico, a.hm-exp2.bad .hm-apt-btn { background: #d32f2f; }
.hm-exps:not([hidden]) { display: flex; flex-direction: column; gap: 10px; }
@media (hover: hover) { a.hm-exp2:hover .hm-apt-btn { background: var(--text); color: var(--bg); } }

/* Bandeaux macaron aéroport et « Expire le… » : sans fond coloré, seulement le contour (owner, 2026-11-20). */
.hm-apt:not([hidden]), a.hm-exp2, a.hm-exp2.bad { background: var(--panel); }

/* Supprimer un utilisateur : icône corbeille en bas à droite de la carte + fenêtre de confirmation (owner, 2026-11-20). */
.ucard .btns.tight .uc-del { margin-left: auto; flex: 0 0 auto; width: 38px; height: 38px; color: var(--red); transition: background-color .3s, color .3s; }
.ucard .btns.tight .uc-del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ucard .btns.tight .uc-del:hover { background: var(--red); color: #fff; } }
.ud-dialog { max-width: 440px; text-align: center; }
.ud-dialog .ud-ico { width: 52px; height: 52px; margin: 4px auto 6px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.ud-dialog .ud-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ud-dialog h2 { justify-content: center; }
.ud-dialog p { margin: 8px 0; line-height: 1.45; }
.ud-dialog .ud-restore { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--text); font-weight: 500; }
.ud-dialog .btns { justify-content: center; margin-top: 14px; }
.ud-dialog .btn.danger.fill { background: var(--red); color: #fff; border-color: var(--red); }
@media (hover: hover) { .ud-dialog .btn.danger.fill:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Dossier chauffeur : carte « Nouvelle inscription » (société à valider), owner 2026-11-20. */
.dv-signup { border-color: var(--gold); }
.dv-signup .dv-co { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; align-content: start; padding: 14px; border-radius: 10px; background: var(--panel-2); }
.dv-signup .dv-co .dv-f { min-width: 0; overflow-wrap: anywhere; }
.dv-signup .dv-info .dv-f { overflow-wrap: anywhere; }

/* Carte client : lien « N réservation(s) » vers Transferts filtré (owner, 2026-11-20). */
.uc-meta .uc-bk { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: color .3s; }
@media (hover: hover) { .uc-meta .uc-bk:hover { color: var(--text); } }

/* Création de compte chauffeur : zone Kbis (owner, 2026-11-20). */
.reg-kbis { grid-column: 1 / -1; margin: 14px 0 0; }
.reg-kbis.co-bad { border-color: var(--red); }
.reg-kbis { margin: 0 0 14px; }   /* au-dessus de la recherche d'entreprise */

/* Création de compte chauffeur : bouton plus près de la section (owner, 2026-11-20). */
.reg-submit { margin-top: 0; }
.reg-submit .btns { margin-top: 4px; }

/* Votre entreprise : mêmes espaces partout, titre → Kbis → recherche = recherche → bas de la carte (24 px), owner 2026-11-20. */
.reg-sec .reg-kbis { margin: 20px 0 0; }
#rs2 .reg-kbis + .co-look { margin-top: 24px; }

/* Boutons dorés (Gold thread) : au survol fond foncé et texte clair, partout (owner, 2026-11-20). « html.dt .btn.primary »
   (design-thread.css) était plus fort que la règle générale de survol, donc les boutons dorés restaient dorés. */
@media (hover: hover) { html.dt .btn.primary:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
#rs2 { padding-bottom: 23px; }   /* bas de la carte = 24 px, comme les autres espaces (ordinateur et téléphone) */
#kbDrop:not(.on) #kbName::after { content: ' *'; color: #d64545; font-weight: 700; }   /* Kbis obligatoire : étoile rouge comme la recherche d'entreprise */

/* Erreur de formulaire en bulle sous le champ (fieldTip, team.js), owner 2026-11-20 */
.f-tip { position: absolute; z-index: 10000; display: flex; align-items: center; gap: 10px; max-width: min(340px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 10px; background: #2b2b2b; color: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.22); animation: fTipIn .18s ease-out; }
.f-tip::before { content: ''; position: absolute; top: -6px; left: var(--ax, 22px); width: 12px; height: 12px; background: #2b2b2b; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.f-tip i { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: #e8590c; color: #fff; font-style: normal; font-weight: 800; font-size: 14px; }
@keyframes fTipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.f-tip { width: max-content; }   /* bulle sur une ligne quand il y a la place */

/* Proposition : 10 s avant « Accepter » (home.js ofDelayBind), owner 2026-11-20. */
.of-wait { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: default; color: var(--muted); background: var(--panel-2); border-color: var(--line); pointer-events: none; }
.of-ring { flex: none; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 360deg), color-mix(in srgb, var(--gold) 22%, transparent) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.of-wait-hint { margin: 8px 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@keyframes of-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.of-ready { animation: of-in .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .of-ready { animation: none; } }

/* Charte : frise des étapes (home.js chrStagesHtml), design 2, owner 2026-11-20. */
.chr-tl { position: relative; list-style: none; margin: 8px 0 8px; padding: 0 0 0 18px; }
.chr-tl::before { content: ''; position: absolute; left: 4px; top: 7px; bottom: 7px; border-left: 1.5px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.chr-tl li { position: relative; margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.chr-tl li:last-child { margin-bottom: 0; }
.chr-tl li::before { content: ''; position: absolute; left: -18px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.chr-r .chr-tl li b { display: inline; font-size: 13px; color: var(--text); }
.chr-r small.chr-tl-note { display: block; }

/* Modèle d'e-mail : règle d'envoi sous l'aperçu (pricing.js), owner 2026-11-20. */
.mt-how { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.mt-how b { display: block; font-size: 13px; margin-bottom: 4px; }
.mt-how p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Carte utilisateur : bouton WhatsApp (team.js), owner 2026-11-20. */
.btns .uc-wa { flex: none; display: inline-grid; place-items: center; padding: 0 14px; background: #25d366; border-color: #25d366; color: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.uc-wa svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@media (hover: hover) { .btns .uc-wa:hover { background: #000; border-color: #000; color: #fff; } }

/* Carte utilisateur : crayon « Modifier » en bas à droite (team.js), owner 2026-11-20. */
.btns .uc-edit { flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 38px; padding: 0; }
.uc-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Carte dispatcher : WhatsApp vert, crayon « Modifier » (orderers.js), owner 2026-11-20. */
.odb-ib.odb-wa { background: #25d366; border-color: #25d366; color: #fff; }
.odb-wa svg { fill: currentColor; stroke: none; }
@media (hover: hover) { .odb-ib.odb-wa:hover { background: #000; border-color: #000; color: #fff; } }
.odb-acts button.odb-edit { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); }
.odb-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.odb-acts { align-items: center; gap: 4px; }

/* Boutons WhatsApp verts : logo blanc (owner, 2026-11-20). */
.btns .uc-wa, .btns .uc-wa svg, .btns .uc-wa svg *, .odb-ib.odb-wa, .odb-ib.odb-wa svg, .odb-ib.odb-wa svg * { color: #fff !important; fill: #fff !important; stroke: none !important; }

/* Sujets du dossier : colonne limitée à la largeur disponible (longue ligne du véhicule coupée par « … »), owner 2026-11-20. */
.mfg-list { grid-template-columns: minmax(0, 1fr); }
.mfg-list > details.mfg { min-width: 0; }
.mfg-sub { white-space: normal; overflow: visible; text-overflow: clip; }   /* ligne du véhicule en entier, sur 2 lignes si besoin */

/* Mon compte : bloc mot de passe ; téléphone : e-mail et mot de passe empilés, alignés à gauche (owner, 2026-11-20). */
.pw-h { margin: 20px 0 8px; color: var(--muted); font-size: 14px; }
.pw-two .f { margin-top: 0; }
@media (max-width: 600px) {
  .pw-two { display: flex; flex-direction: column; gap: 10px; }
  .em-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .em-row .btn { margin-inline-start: 0; margin-top: 4px; }
}

/* Tirer pour actualiser façon iOS (app.js), owner 2026-11-20. */
.ptr { transform: translate(-50%, -50px) scale(.55); transition: none; will-change: transform, opacity; }
.ptr.anim { transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .35s ease; }
.ptr.spin { transform: translate(-50%, 70px) scale(1) !important; }
.ptr .ptr-ring { width: 24px; height: 24px; transform: rotate(-90deg); transition: opacity .2s; }
.ptr .ptr-ring circle { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.ptr.armed .ptr-ring circle { stroke-width: 2.8; }
.ptr.spin .ptr-ring, .ptr.spin svg { animation: none; opacity: 0; }
.ptr-wheel { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.ptr.spin .ptr-wheel { opacity: 1; animation: ptr-wheel 0.8s steps(8) infinite; }
.ptr-wheel i { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); transform-origin: 50% 12px; transform: rotate(calc(var(--i) * 45deg)); opacity: calc(1 - var(--i) * .11); }
@keyframes ptr-wheel { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.anim { transition: opacity .2s; } .ptr.spin .ptr-wheel { animation-duration: 1.6s; } }

/* Formulaire « Ajouter un véhicule » : un champ par ligne sur téléphone, couleur facultative sans rouge (fleetveh.js), owner 2026-11-20. */
.fv-form .sel-btn.mf-miss, .fv-form select.vcol.mf-miss + .sel-btn { border-color: var(--line); animation: none; }
.fv-form .mf-pick { margin-top: 0; }
@media (max-width: 600px) { .fv-form .two { display: flex; flex-direction: column; gap: 0; } .fv-form .btns .btn { flex: 1; } }
.fv-form .mf-pick > span { font-size: 14px; font-weight: 400; letter-spacing: normal; margin-bottom: 5px; }

/* Véhicule de la société : couleur obligatoire, contour rouge tant qu'elle n'est pas choisie (owner, 2026-11-20). */
.fv-form select.vcol.mf-miss + .sel-btn, .fv-form .sel-btn.mf-miss { border-color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }

/* Tirer pour actualiser : roue centrée (rond de 38 px à l'intérieur de la bordure : centre à 19 px), owner 2026-11-20. */
.ptr-wheel i { top: 8px; transform-origin: 50% 11px; }
.ptr-wheel { transform-origin: 50% 50%; }

/* Marque du véhicule : icône devant le nom (team.js vBrandBind), owner 2026-11-20. */
.vbi { flex: none; width: 18px; height: 18px; margin-right: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.vbi path { fill: currentColor; stroke: none; }
svg.vbi[viewBox] path[d^="M12 7.5"] { fill: none; stroke: currentColor; stroke-width: 2; }
.fv-form select.vbrand.mf-miss + .sel-btn { border-color: #d32f2f; animation: pf-miss-pulse 1.8s ease-in-out infinite; }

/* Calendrier sur téléphone : tout le détail visible, étape et chauffeur sous les détails (home.js), owner 2026-11-20. */
@media (max-width: 600px) {
  .cal-row { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; padding: 12px 14px; }
  .cal-row > b { padding-top: 1px; }
  .cal-row span.cal-rt { flex: 1 1 calc(100% - 56px); white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
  .cal-row .cal-rt em { white-space: normal; overflow: visible; text-overflow: clip; margin-top: 3px; line-height: 1.4; }
  .cal-row small.cal-drv { order: 3; margin-left: 56px; max-width: calc(100% - 56px); text-align: left; white-space: normal; }
  .cal-row small.cal-drv:empty { display: none; }
  .cal-row span.hm-stp { order: 4; }
  .cal-row small.cal-drv:empty + span.hm-stp { margin-left: 56px; }
}

/* Carte de course : icône « Bon de commande » après « Ajouter à l'agenda » (home.js), owner 2026-11-20. */
.hm-bon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px 0 -4px 8px; border: 1px solid currentColor; border-radius: 50%; color: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.hm-bon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .hm-bon:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .hm-tag.next .hm-bon:hover, .hm-tag.live .hm-bon:hover { background: #fff; color: #23944a; border-color: #fff; } }

/* Annuler la course pleine largeur ; contacts VIPAZUR dans la fenêtre d'annulation (owner, 2026-11-20). */
.hm-foot-row .hm-cancel-wide { flex: 1 1 100%; flex-direction: row; gap: 8px; }
.rc-help { margin: 12px 0 8px; color: var(--muted); font-size: 13px; }
.rc-contact { display: flex; gap: 8px; margin-bottom: 14px; }
.rc-contact .hm-fbtn { flex: 1; min-width: 0; }
.rc-contact .hm-fbtn span { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.2; }

/* Menu des marques : icône visible (owner, 2026-11-20). */
.tf-opt svg.vbi { visibility: visible; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tf-opt svg.vbi path { fill: currentColor; stroke: none; }
.tf-opt svg.vbi path[d^="M12 7.5"] { fill: none; stroke: currentColor; stroke-width: 2; }

/* Calendrier : avatar du chauffeur avant l'étape ; course sans chauffeur en rouge clair (home.js calWhoHtml), owner 2026-11-20. */
.cal-row small.cal-drv { overflow: visible; max-width: none; }
.cal-who { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cal-who .drv-ava.cal-av { width: 24px; height: 24px; font-size: 10px; }
.cal-row.cal-unass { background: color-mix(in srgb, #d32f2f 7%, transparent); }
.cal-row.cal-unass.open { background: color-mix(in srgb, #d32f2f 11%, var(--panel-2)); }
@media (max-width: 600px) { .cal-row small.cal-drv { align-self: center; } .cal-row small.cal-drv + span.hm-stp { margin-left: 0; } }

/* Photo du profil : « Changer » et « Retirer » sur une ligne (owner, 2026-11-20). */
.av-btns .btns.tight { flex-wrap: nowrap; }

/* Mon compte : « Mot de passe » collé à ses champs (owner, 2026-11-20). */
details.sec .pw-h { margin: 24px 0 8px; }
details.sec .two.pw-two { margin-top: 0; }
@media (max-width: 600px) { details.sec .two.pw-two { gap: 10px; } }

/* Mon compte : libellés dans les champs, espaces réguliers (home.js acctPlaceholders), owner 2026-11-20. */
.reg-lbl-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.dt details.sec:has(#myMail) > div > * + * { margin-top: 12px; }
html.dt details.sec:has(#myMail) > div > .av-edit + * { margin-top: 20px; }
html.dt details.sec:has(#myMail) > div > #emChange, html.dt details.sec:has(#myMail) > div > .pw-h { margin-top: 24px; }
html.dt details.sec:has(#myMail) > div > .pw-two, html.dt details.sec:has(#myMail) > div > .pw-h + * { margin-top: 0; }
details.sec:has(#myMail) .two { gap: 10px; }
/* plus fort que design-thread.css (chargé après) */
html.dt body details.sec:has(#myMail) > div > * + * { margin-top: 12px; }
html.dt body details.sec:has(#myMail) > div > .av-edit + * { margin-top: 20px; }
html.dt body details.sec:has(#myMail) > div > #emChange, html.dt body details.sec:has(#myMail) > div > .pw-h { margin-top: 24px; }
html.dt body details.sec:has(#myMail) > div > .pw-two, html.dt body details.sec:has(#myMail) > div > .pw-h + * { margin-top: 0; }
html.dt body details.sec:has(#myMail) .two { gap: 10px; }
body details.sec:has(#myMail) .two > label.f { margin-top: 0; }

/* Changer d'adresse e-mail : champs l'un sous l'autre sur téléphone (ridechat.js), owner 2026-11-20. */
body details.sec:has(#myMail) .em-two > label.f { margin-top: 0; }
@media (max-width: 600px) { body details.sec:has(#myMail) .two.em-two { display: flex; flex-direction: column; gap: 10px; } }

/* « Ajouter un chauffeur » : champs serrés, boutons pleine largeur sur téléphone (fleet.js), owner 2026-11-20. */
.fl-form { display: flex; flex-direction: column; gap: 10px; }
.fl-form .f, .fl-form .two { margin: 0; }
.fl-form .two { gap: 10px; }
.fl-form .msg:empty { display: none; }
@media (max-width: 600px) { .fl-form .two { display: flex; flex-direction: column; } .fl-form .btns { flex-direction: column; gap: 8px; margin-top: 4px; } .fl-form .btns .btn { width: 100%; } }

/* Réglages des chauffeurs : libellés dans les champs (home.js setPlaceholdersAll), owner 2026-11-20. */
#sbody .mfg-fields label.f, #sbody .fv-form label.f, #sbody .mf-pick { margin-top: 0; }
#sbody .mfg-fields { gap: 10px; }
#sbody .sel-btn .sel-ph { color: var(--muted); }

/* Réglages : 10 px entre les champs sans libellé ; placeholder en casse normale (owner, 2026-11-20). */
#sbody .fv-form { display: flex; flex-direction: column; gap: 10px; }
#sbody .fv-form > .two { display: grid; gap: 10px; margin: 0; }
#sbody .fv-form > .f, #sbody .fv-form .two > .f, #sbody .fv-form .mf-pick { margin: 0; }
@media (max-width: 600px) { #sbody .fv-form > .two { display: flex; flex-direction: column; gap: 10px; } }
#sbody .fv-form .msg:empty { display: none; }
#sbody .fv-form .btns { margin-top: 6px; }
#sbody .mfg-fields { display: flex; flex-direction: column; gap: 10px; }
#sbody .mfg-fields > * { margin: 0; }
input::placeholder { text-transform: none; }
#sbody .mf-pick .mf-datetxt { font-size: 14px; height: 44px; }
#sbody .mf-pick .mf-calbtn { height: 44px; }

/* Utilisateurs : « + » juste à droite des onglets (owner, 2026-11-20) */
.users-page .us-head.us-row { justify-content: flex-start; gap: 12px; margin: 6px 0 12px; }
.users-page .us-head.us-row .us-seg { margin: 0; min-width: 0; flex: 0 1 560px; }
@media (max-width: 640px) {   /* téléphone : les 4 onglets prennent toute la largeur, « + » reste sur la ligne du titre */
  .users-page { position: relative; }
  .users-page .us-head.us-row .us-add { position: absolute; top: 3px; right: 16px; }
}

/* Fenêtre utilisateur en sections, comme les Réglages (owner, 2026-11-20) */
.dialog.uf .uf-sec { margin-top: 24px; }
.dialog.uf .uf-sec[hidden] { display: none; }
.dialog.uf .uf-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.dialog.uf .uf-h svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dialog.uf .f { margin: 0 0 12px; }
.dialog.uf .two { gap: 12px; }
.dialog.uf .two > .f { margin-bottom: 12px; }
.dialog.uf .uf-sec > :last-child, .dialog.uf .uf-sec > .two:last-child > .f { margin-bottom: 0; }
.dialog.uf .uf-co .co-res { position: relative; z-index: 2; }
.dialog.uf .uf-co-st { margin: 8px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.dialog.uf .uf-co-st.ok { color: #2e8b57; font-weight: 600; }
.dialog.uf .uf-pw { margin: 0 0 12px; max-width: 420px; }
.dialog.uf .uf-pw button { flex: 1; }
.dialog.uf .uf-note { margin: 0 0 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.dialog.uf .uf-note[hidden], .dialog.uf .uf-mail[hidden], .dialog.uf .uf-pwf[hidden] { display: none; }
.dialog.uf .uf-mail span small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dialog.uf .btns { margin-top: 24px; }
/* Modèles d'e-mails : catégories en onglets (owner, 2026-11-20) */
.mt-cats { margin: 18px 0 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.mt-cats::-webkit-scrollbar { display: none; }
.mt-cats button { flex: 1 0 auto; white-space: nowrap; }
.dialog.uf .co-box { border-radius: 10px; border-width: 1px; }   /* même champ que les autres */
.dialog.uf .co-box input.co-q { font-size: 14px; padding: 12px 0; }

/* Recadrer la photo de profil (dossier chauffeur), owner 2026-11-20 */
.dv-crop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; width: 100%; }
.dv-crop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avc-ov { z-index: 1200; }
.avc-dialog { max-width: 420px; }
.avc-hint { margin: 6px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.avc-stage { position: relative; width: min(320px, calc(100vw - 72px)); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #1d1d1d; touch-action: none; cursor: grab; user-select: none; }
.avc-stage.drag { cursor: grabbing; }
.avc-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; user-select: none; }
.avc-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 99.2%, rgba(0,0,0,.68) 100%); }
.avc-mask::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); }
.avc-zl { display: flex; align-items: center; gap: 12px; width: min(320px, calc(100vw - 72px)); margin: 18px auto 0; color: var(--muted); font-size: 20px; line-height: 1; }
.avc-zoom { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line); outline: none; margin: 0; }
.avc-zoom::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.avc-zoom::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.avc-dialog .btns { margin-top: 20px; }
.avc-stage { background: #fff; }   /* zone vide = blanc, comme le fichier enregistré */

/* Recadrer une pièce du dossier chauffeur (owner, 2026-11-20) */
.dcr-dialog { max-width: 640px; }
.dcr-stage { position: relative; margin: 0 auto; touch-action: none; user-select: none; background: #f2f2f2; }
.dcr-stage canvas { display: block; }
.dcr-box { position: absolute; border: 2px solid var(--gold); box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; touch-action: none; }
.dcr-stage { overflow: hidden; border-radius: 10px; }
.dcr-box i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.dcr-box i[data-h=nw] { left: -12px; top: -12px; cursor: nwse-resize; } .dcr-box i[data-h=se] { right: -12px; bottom: -12px; cursor: nwse-resize; }
.dcr-box i[data-h=ne] { right: -12px; top: -12px; cursor: nesw-resize; } .dcr-box i[data-h=sw] { left: -12px; bottom: -12px; cursor: nesw-resize; }
.dcr-tools { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.dcr-rot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dcr-dialog .btns { margin-top: 20px; }
/* Dossier : en-tête fixe en haut de la fenêtre au défilement ; aperçu collé à l'image (owner, 2026-11-20) */
.dv-dialog .dv-head { display: block; position: sticky; top: calc(-1 * var(--dvpt, 20px)); z-index: 5; background: var(--bg); margin: calc(-1 * var(--dvpt, 20px)) -16px 0; padding: var(--dvpt, 20px) 16px 2px; }
.dv-doc .dv-prev { align-self: start; min-height: 0; }
.dcr-box i { width: 20px; height: 20px; }   /* poignées à l'intérieur des coins : jamais coupées */
.dcr-box i[data-h=nw] { left: -3px; top: -3px; } .dcr-box i[data-h=ne] { right: -3px; top: -3px; } .dcr-box i[data-h=sw] { left: -3px; bottom: -3px; } .dcr-box i[data-h=se] { right: -3px; bottom: -3px; }

/* Recadrer la photo : arrière-plan, bouton centré (owner, 2026-11-20) */
.avc-tools { display: flex; justify-content: center; margin-top: 16px; }
.avc-bg { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.avc-bg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avc-bg.busy { opacity: .75; cursor: progress; }
.avc-dialog .avc-btns { display: flex; justify-content: center; }

/* Carte de vérification, variante C (owner, 2026-11-20) */
.dv-acts.dv-c { display: block; }
.dv-acts.dv-c > .btn.primary { width: 100%; }
.dv-no { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.dv-no:focus-within { border-color: var(--gold); }
.dv-no .dv-why { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font-size: 14px; color: var(--text); outline: none; box-shadow: none; min-height: 0; }
.dv-no .btn { flex: none; width: auto; min-height: 0; padding: 8px 18px; }
@media (max-width: 700px) { .dv-dialog .dv-head { position: static; } }   /* téléphone : en-tête non fixe (il prendrait la moitié de l'écran) */
/* Retrait de l'arrière-plan en cours : rond qui tourne + lumière dorée sur la photo (owner, 2026-11-20) */
.avc-bg.busy svg { display: none; }
.avc-bg.busy::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: avcSpin .8s linear infinite; flex: none; }
.avc-stage.avc-busy::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(184,155,64,.45) 50%, transparent 70%); background-size: 250% 100%; animation: avcSweep 1.4s ease-in-out infinite; }
@keyframes avcSpin { to { transform: rotate(360deg); } }
@keyframes avcSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.dcr-dialog .avc-btns { display: flex; justify-content: center; }   /* comme Recadrer la photo */

/* Carte de vérification, variante A (owner, 2026-11-20) */
.dv-acts.dv-a { display: block; }
.dv-a .dv-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-a .dv-ab .btn { width: 100%; }
.dv-a .dv-why { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; }

/* Pièces du dossier : aperçu devant le nom (home.js mfThumbs), owner 2026-11-20. */
.mf-file { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mf-file .mf-thumb, .mf-thumb { flex: none; position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; cursor: zoom-in; transition: border-color .3s; }
.mf-thumb img, .mf-thumb canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mf-thumb.pdf canvas { opacity: 0; transition: opacity .2s; }
.mf-thumb.pdf.ok canvas { opacity: 1; }
.mf-thumb-pdf { position: absolute; font-size: 11px; font-weight: 700; color: #d32f2f; }
.mf-thumb.pdf.ok .mf-thumb-pdf { display: none; }
@media (hover: hover) { .mf-file .mf-thumb:hover { border-color: var(--gold); } }
/* Toutes les pièces : aperçu image + Recadrer (owner, 2026-11-20) */
.dos-th { display: block; margin: 8px 0 6px; width: fit-content; max-width: 100%; }
.dos-th img { display: block; max-width: 100%; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: var(--panel-2); cursor: zoom-in; }
.dos-crop { display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 6px 0 4px; }
.dos-crop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Modèles d'e-mails : envoi manuel (owner, 2026-11-20) */
.mt-r .mt-send { flex: none; margin-inline-end: 10px; }
.mt-send svg, .mts-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mts-hint { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.mts-list { margin-top: 10px; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.mts-it { position: relative; display: block; width: 100%; text-align: left; padding: 10px 40px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); cursor: pointer; transition: border-color .3s, background-color .3s; }
.mts-it b { display: block; font-size: 15px; font-weight: 600; } .mts-it small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.mts-it i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--gold); opacity: 0; }
.mts-it.on { border-color: var(--gold); background: var(--gold-soft); } .mts-it.on i { opacity: 1; }
@media (hover: hover) { .mts-it:hover { border-color: var(--gold); } }
.mts-btns { display: flex; justify-content: center; margin-top: 18px; }
.mts-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
/* Chauffeur entièrement vérifié : carte vert clair (owner, 2026-11-20) */
html .ucard.verified, html.dt .ucard.verified { background: color-mix(in srgb, #2e8b57 11%, var(--panel-2, var(--panel))); border-color: color-mix(in srgb, #2e8b57 26%, transparent); }   /* plus fort que html.dt :is(.ucard…) */

/* Recadrer : bouton 16:9 / 9:16 (home.js docCropOpen), owner 2026-11-20. */
.dcr-ar { height: 38px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .dcr-ar:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* « Envoyer à… » : hauteur fixe (la fenêtre ne saute plus en cherchant), choix multiples en pastilles (pricing.js mtSendOpen), owner 2026-11-20. */
.mts-list { height: min(340px, 42vh); max-height: none; align-content: start; transition: opacity .2s; }
.mts-list.busy { opacity: .5; }
.mts-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mts-chips[hidden] { display: none; }
.mts-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border: 1px solid var(--gold); border-radius: 99px; background: var(--gold-soft); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.mts-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .mts-chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* Menu des Réglages : 12 px entre le trait du menu de l'app et le menu, 12 px entre le menu et le trait du contenu ; moins de vide à droite des titres (owner, 2026-11-20). */
@media (min-width: 1000px) {
  html.dt body .set-nav { margin-inline: -16px 12px; }
  html.dt body .set-nav button { padding-inline-end: 40px; }
}

/* Prochaine course : carte sous le haut de la carte, fond légèrement transparent (home.js hmMapUnder), owner 2026-11-20. */
.hm2 .hm-map.under { position: relative; z-index: 0; }
.hm2 .hm-over { position: relative; z-index: 1; }
.hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel) 82%, transparent); }
html.dt .hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel-2) 82%, transparent); }

/* Prochaine course : carte sous le bloc du vol, voile transparent autour ; « dont X € à reverser » en pastille rouge (variation 3), owner 2026-11-20. */
.hm2 .hm-map.under-b::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hmB); z-index: 450; pointer-events: none; background: color-mix(in srgb, var(--panel) 82%, transparent); }
html.dt .hm2 .hm-map.under-b::after { background: color-mix(in srgb, var(--panel-2) 82%, transparent); }
.hm2 .hm-map.under-b .leaflet-bottom { bottom: var(--hmB); }
.hm2-collect .hm2-dont { display: inline-block; margin-top: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(226, 75, 74, .16); color: #f09595; font-size: 12px; font-weight: 700; }
html[data-theme="light"] .hm2-collect .hm2-dont { background: #fdecec; color: #a32d2d; }
.hm2-collect .hm2-dont i { color: inherit; font-weight: inherit; }

/* Prochaine course : haut plus transparent, carte nue autour du vol (owner, 2026-11-20). */
.hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel) 68%, transparent); }
html.dt .hm2 .hm2-top.hm-over { background: color-mix(in srgb, var(--panel-2) 68%, transparent); }
.hm2 .hm-map.under-b::after, html.dt .hm2 .hm-map.under-b::after { display: none; }

/* Prochaine course : la ligne sous le vol ne colle plus au bas de la carte (owner, 2026-11-20). */
.hm2 .hm-body.hm-over > .hm-fc + * { margin-top: 12px; }

/* Heure en anglais : AM / PM plus petit à côté de la grande heure (app.js tmHtml), owner 2026-11-20. */
.ampm { font-size: .42em; font-weight: 700; margin-inline-start: .18em; letter-spacing: .02em; }

/* Prochaine course : prise en charge et dépose dans une carte blanche sur la carte, comme le vol (home.js), owner 2026-11-20. */
.hm-stops { margin: 6px 0; padding: 2px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.hm-stops .hm-li:last-child { border-bottom: 0; }
.hm2 .hm-body.hm-over > .hm-fc + .hm-stops { margin-top: 10px; }
.hm2 .hm-body.hm-over > .hm-stops + * { margin-top: 12px; }

/* Prochaine course : chauffeur (or) et client (vert) en direct sur la carte, avec leur photo (home.js hmLiveMap), owner 2026-11-20. */
.hml-mark { background: none; border: 0; }
.hml-pin { position: relative; display: block; box-sizing: border-box; width: 40px; height: 40px; border: 3px solid #b89b40; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hml-pin::after { content: ''; position: absolute; left: 50%; top: 100%; margin-top: -1px; transform: translateX(-50%); border: 6px solid transparent; border-top: 9px solid #b89b40; border-bottom: 0; }
.hml-pin.cli { border-color: #1faa6b; } .hml-pin.cli::after { border-top-color: #1faa6b; }
.hml-pin .drv-ava { width: 100%; height: 100%; font-size: 12px; }
.hml-pin.cli .drv-ava { background: #1faa6b; }
.hml-pin.stale { filter: grayscale(1); opacity: .75; }

/* Refus d'inscription : champ raison (owner, 2026-11-20) */
.ud-dialog .dvs-why { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.ud-dialog .dvs-why:focus { border-color: var(--gold); outline: none; }
/* Aperçu des modèles d'e-mail : choisir une vraie réservation (owner, 2026-11-20), pricing.js */
.mt-pvbar { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.mt-pvbar > span { flex: none; color: var(--muted); }
.mt-pvb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 5px 8px 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .3s; }
.mt-pvb b { min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-pvb[aria-expanded="true"] { border-color: var(--gold); }
.mt-pvb[aria-expanded="true"] .sel-chev { transform: rotate(180deg); }
@media (hover: hover) { .mt-pvb:hover { border-color: var(--gold); } }
.mt-pvpop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 10px; right: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.mt-pvpop[hidden] { display: none; }
.mt-pvpop .mts-list { height: auto; max-height: min(320px, 50vh); }

/* Prochaine course : bouton itinéraire (home.js hmStopsNav) ; survol or clair comme le fond de l'icône avion, bloc vol compris (owner, 2026-11-20). */
.hm-stops .hm-li { align-items: center; }
.hm-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--gold); transition: background-color .3s, border-color .3s; }
.hm-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
@media (hover: hover) {
  .hm-go:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: transparent; color: var(--gold); }
  .hm-fc:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); color: var(--text); border-color: color-mix(in srgb, var(--gold) 16%, transparent); }
  .hm-fc:hover .hm-fc-m small { color: var(--muted); }
  .hm-fc:hover .hm-fc-g { color: var(--gold); }
}

/* Prochaine course : lignes prise en charge / dépose, survol or clair, ouvrent Google Maps (home.js hmStopsNav), owner 2026-11-20. */
.hm-stops { padding: 0; overflow: hidden; }
.hm-stops .hm-li.hm-srow { padding: 8px 14px; cursor: pointer; transition: background-color .3s; }
@media (hover: hover) { .hm-stops .hm-li.hm-srow:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); } .hm-stops .hm-li.hm-srow:hover .hm-go { background: var(--panel); } .hm-stops .hm-li.hm-srow .hm-go:hover { background: color-mix(in srgb, var(--gold) 28%, var(--panel)); border-color: transparent; } }

/* Annuler une course : confirmation écrite, puis le bouton apparaît (team.js openRideCancel), owner 2026-11-20. */
.rc-go[hidden] { display: none; }
.rc-go { animation: rcGoIn .25s ease-out; }
@keyframes rcGoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Annuler une course : bouton grisé jusqu'à « oui je l'ai fait » (team.js), owner 2026-11-20. */
.rc-go { animation: none; }
.rc-go .btn:disabled, .rc-go .btn:disabled:hover { background: var(--line); border-color: transparent; color: var(--muted); opacity: 1; cursor: not-allowed; }

/* Annuler une course : boutons de contact lisibles, l'un sous l'autre sur téléphone (team.js openRideCancel), owner 2026-11-20. */
.rc-contact .hm-fbtn { font-size: 15px; font-weight: 600; min-height: 50px; }
.rc-contact .hm-fbtn img, .rc-contact .hm-fbtn svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .rc-contact { flex-direction: column; } .rc-contact .hm-fbtn { width: 100%; font-size: 15px; padding: 0 16px; gap: 8px; } }

/* Accueil chauffeur : bouton carré « annuler » (croix) à droite du bouton à glisser (home.js hmCancelBeside), owner 2026-11-20. */
html body .hm-slrow.hm-xtra { display: flex; flex-direction: row; align-items: stretch; gap: 10px; padding: 0; border: 0; background: none; }
.hm-slrow .slide-btn { flex: 1; min-width: 0; width: auto; margin: 0; }
.hm-xcancel { flex: none; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); border-radius: 16px; background: var(--panel); color: var(--red); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.hm-xcancel svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .hm-xcancel:hover { background: var(--red); border-color: var(--red); color: #fff; } }
@media (max-width: 600px) { .hm-slrow .slide-lbl { padding: 0 12px 0 72px; } }   /* téléphone : le texte du bouton à glisser n'est plus coupé */

/* À préparer : eau et chemise-cravate sur la même ligne si la place le permet (home.js hmExtrasHtml), owner 2026-11-20. */
.hm-xli .hm-li-t { display: flex; flex-wrap: wrap; column-gap: 16px; margin-left: -32px; }
.hm-xli .hm-xh { flex: 0 0 100%; margin-left: 32px; }
.hm-xli .hm-x { flex: 1 1 100%; margin-left: 0; min-width: 0; }
.hm-xli .hm-x:nth-last-child(-n+2) { flex: 1 1 230px; }

/* Annuler une course : la raison apparaît après « oui je l'ai fait » (team.js), owner 2026-11-20. */
.rc-why[hidden] { display: none; }
.rc-why { animation: rcGoIn .25s ease-out; }

/* Accueil chauffeur : bon de commande en bas de la carte, trait fin + téléchargement (home.js hmBonRow), owner 2026-11-20. */
html body .hm-bonrow.hm-xtra { display: flex; flex-direction: row; align-items: stretch; gap: 8px; margin-top: 10px; padding: 0; border: 0; background: none; }
.hm-bonbtn, .hm-bondl { display: flex; align-items: center; justify-content: center; height: 46px; border: .5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; transition: background-color .3s; }
.hm-bonbtn { flex: 1; min-width: 0; gap: 8px; font-size: 14px; font-weight: 500; }
.hm-bondl { flex: none; width: 46px; padding: 0; color: var(--gold); cursor: pointer; }
.hm-bonbtn svg, .hm-bondl svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hm-bonbtn svg { color: var(--gold); }
@media (hover: hover) { .hm-bonbtn:hover, .hm-bondl:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); } }
/* Recadrer : 3 formats (owner, 2026-11-20) */
.dcr-tools .dcr-ars { margin: 0; width: auto; }
.dcr-ars button { padding: 7px 14px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Transferts : carré doré « + » pour réserver (owner, 2026-11-20) */
.t-new { flex: none; width: 47px; border-radius: 10px; border: 1px solid var(--gold); background: var(--gold); color: #fff; display: grid; place-items: center; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.t-new svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (hover: hover) { .t-new:hover { background: #111; border-color: #111; color: #fff; } }

/* Réservation par l'admin sur un seul écran (owner, 2026-11-20) */
.ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ab-side { position: sticky; top: 16px; }
.ab-sec { margin: 0 0 24px; }
.ab-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.ab-h i { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; flex: none; }
.ab-sec .bk-sec { margin: 0; } .ab-sec .bk-sec .bk-h { display: none; } .ab-sec .bk-seats-sec { margin-top: 16px; }
.ab-sec .bk-seats-sec .bk-h { display: block; }
.ab-wait { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; }
.ab-card .f { margin: 0 0 12px; } .ab-card .two { gap: 12px; } .ab-card > :last-child, .ab-card > .two:last-child .f { margin-bottom: 0; }
.ab-box { margin-bottom: 8px; } .ab-res { display: grid; gap: 6px; margin-bottom: 10px; } .ab-res:empty { display: none; }
.ab-newbtn { display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0 0 14px; }
.ab-newbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ab-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-soft); }
.ab-chip b { display: block; } .ab-chip small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-all; } .ab-chip .btn { width: auto; flex: none; }
.ab-hint { margin: -4px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ab-pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; }
.ab-pay { padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.ab-pay.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .ab-pay:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); } .ab-pay.on:hover { background: #111; border-color: #111; color: #fff; } }
.ab-sum .ab-l { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 14px; } .ab-sum .ab-l.mut { color: var(--muted); }
.ab-sum .ab-tot { margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; }
.ab-sum .ab-pricef { margin: 14px 0 6px; } .ab-sum .ab-notify { margin: 0 0 16px; }
@media (max-width: 900px) { .ab-grid { grid-template-columns: 1fr; } .ab-side { position: static; } }
@media (max-width: 520px) { .ab-pays { grid-template-columns: repeat(2, 1fr); } }

/* Réglages › Paiement : moyens de la réservation par VIPAZUR (owner, 2026-11-20) */
.ap-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.ap-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) 36px; gap: 8px; align-items: center; }
.ap-row .ap-on { margin: 0; } .ap-row .ap-name { min-width: 0; } .ap-row .ap-x { width: 36px; height: 36px; }
.ap-add { width: auto; }
@media (max-width: 560px) { .ap-row { grid-template-columns: auto minmax(0, 1fr) 36px; } .ap-row select, .ap-row .sel-btn { grid-column: 2 / 3; grid-row: 2; } .ap-row .ap-x { grid-row: 1; grid-column: 3; } }
/* Réservation admin : même écart (14 px) entre tous les champs, lignes à deux champs comprises ; rien au-dessus du premier (owner, 2026-11-20) */
.ab-page .ab-card .f { margin: 0 0 14px; }
.ab-page .ab-card .two { margin: 0 0 14px; gap: 14px; }
.ab-page .ab-card .two > .f { margin: 0; }
.ab-page .ab-card .ab-hint { margin: 0 0 14px; }
.ab-page .ab-card > :last-child, .ab-page .ab-card > .two:last-child, .ab-page .ab-card > .f:last-child { margin-bottom: 0; }
.ab-page .ab-card .text-link { display: block; width: fit-content; margin: 0 0 14px; line-height: 1.3; }
.ab-page .ab-card .ab-hint { line-height: 1.4; }
.ab-page .ab-card textarea { display: block; }   /* pas d'espace de ligne sous la zone de texte */
.ap-row { grid-template-columns: auto minmax(0, 1fr) auto 36px; } .ap-row .sel-btn { white-space: nowrap; }   /* « Encaissé : … » sur une ligne */

/* Adresses fréquentes : étoile dans les champs d'adresse + réglages (owner, 2026-11-20) */
.bk-place.has-star { padding-inline-end: 108px; }
.bk-star { position: absolute; inset-inline-end: 62px; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--gold); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.bk-star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bk-star[aria-expanded=true] { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .bk-star:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.bk-places:not(:has(.bk-swap)) .bk-star { inset-inline-end: 14px; } .bk-places:not(:has(.bk-swap)) .bk-place.has-star { padding-inline-end: 60px; }
.bk-qlist { position: absolute; inset-inline: 8px; top: calc(100% + 6px); z-index: 31; list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.bk-qlist button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.bk-qlist button b { display: block; font-size: 15px; } .bk-qlist button small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bk-qlist .bk-sugg-ic svg { color: var(--gold); }
@media (hover: hover) { .bk-qlist button:hover { background: var(--gold-soft); } }
.qp-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.qp-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.qp-main { min-width: 0; } .qp-main input { width: 100%; } .qp-main small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-acts { display: flex; gap: 4px; } .qp-acts .icon-btn { width: 34px; height: 34px; } .qp-acts .qp-del { color: var(--red); }
.qp-addbtn { width: auto; } .qp-add .qp-found { display: grid; gap: 6px; margin-top: 8px; }
@media (max-width: 560px) { .qp-row { grid-template-columns: minmax(0, 1fr) auto; } .qp-row > select, .qp-row > .sel-btn { grid-column: 1 / -1; } }

/* Fiche transfert : bouton œil + aperçu « vue du chauffeur » ; réservation admin : « + » doré du titre Client (owner, 2026-11-20) */
.tp-eye { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); color: var(--gold); display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; transition: background-color .3s, color .3s, border-color .3s; }
.tp-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) { .tp-eye:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }
.tpv-dlg { width: auto; max-width: calc(100vw - 24px); max-height: none; overflow: hidden; padding: 16px 20px 20px; margin-top: 16px; }
.tpv-dlg h2 { margin-bottom: 12px; }
.tpv-stage { margin: 0 auto; overflow: hidden; }
.tpv-card { width: 400px; transform-origin: top left; pointer-events: none; user-select: none; }
.tpv-card .hm-next { margin: 0; }
.ab-h .ab-plus { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--gold); color: #fff; display: inline-grid; place-items: center; padding: 0; margin-inline-start: 4px; cursor: pointer; transition: background-color .3s; }
.ab-h .ab-plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (hover: hover) { .ab-h .ab-plus:hover { background: #111; } }
/* Destination : rond vert, icône blanche (owner, 2026-11-20) */
.bk-place .bk-mark.to, html.dt .bk-place .bk-mark.to { background: #2e8b57; border-color: #2e8b57; color: #fff; }
.bk-place .bk-mark.to svg { stroke: #fff; }
.ab-page .ab-card .ab-box { margin: 0 0 14px; } .ab-page .ab-card .ab-res:not(:empty) { margin: -6px 0 14px; }   /* même écart de 14 px sous la recherche */

/* Réservation admin : véhicule du chauffeur (photo envoyée par lui) et rappel dans le récapitulatif (owner, 2026-11-20) */
.abv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.abv { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); text-align: start; font: inherit; cursor: pointer; transition: border-color .3s, background-color .3s; }
.abv.on { border-color: var(--gold); background: var(--gold-soft); } .abv-list.one .abv { cursor: default; }
.abv-img { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.abv-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .abv-img i { font-style: normal; font-size: 12px; color: var(--muted); }
.abv-t b { display: block; font-size: 14px; } .abv-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.abv .bk-radio { position: absolute; top: 14px; right: 14px; }
@media (hover: hover) { .abv-list:not(.one) .abv:not(.on):hover { border-color: var(--text); } }
.abv-sum { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.abv-who { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } .abv-who b { display: block; font-size: 15px; } .abv-who small { display: block; font-size: 12px; color: var(--muted); }
.abv-sum-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 0 0 8px; }
.abv-sum-t b { display: block; font-size: 14px; } .abv-sum-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.abv.on .bk-radio { background: var(--gold); border-color: var(--gold); color: #fff; }   /* véhicule choisi : rond doré coché */

/* Bandeau client en haut : barre dorée, bouton blanc en pilule, ✕ (owner, 2026-11-20, design 2), ridechat.js cliBanner */
.push-bar.cli-bar { gap: 10px; padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--gold, #af973f); color: #fff; font-size: 13.5px; }
.cli-bar .cb-ic { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-bar.cli-bar .btn.small { min-height: 30px; padding: 4px 14px; border-radius: 99px; background: #fff; color: #7a6a2a; border-color: #fff; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.cli-bar .push-bar-x { width: 30px; height: 30px; }
@media (hover: hover) {
  .push-bar.cli-bar .btn.small:hover { background: #101010; border-color: #101010; color: #fff; }
  .cli-bar .push-bar-x { transition: opacity .3s; } .cli-bar .push-bar-x:hover { opacity: .7; }
}

/* Connexion client sur téléphone et tablette : le formulaire au-dessus de la présentation photo (owner, 2026-11-20) */
@media (max-width: 1099px) { .brand-login:has(> .bl-intro.has-photo) > .bl-form { order: -1; } }

/* Page de connexion : lune à la même distance du drapeau que dans la colonne de gauche (13 px entre les icônes), owner 2026-11-20 */
.bl-page > .top [data-act="theme"] { margin-inline-start: -15px; }

/* Espace client connecté (téléphone) : lune à 13 px du drapeau, comme la page de connexion et la colonne de gauche (owner, 2026-11-20) */
html.cl-area .wrap > .top .spacer { order: 10; }
html.cl-area .wrap > .top [data-act="theme"] { margin-inline-start: -17px; }
/* Réservation admin : photo du chauffeur à gauche du véhicule (owner, 2026-11-20) */
.abv-row { display: flex; gap: 10px; align-items: stretch; margin: 0 0 14px; }
.abv-row .abv-list { flex: 1; margin: 0; min-width: 0; }
.abv-person { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: center; }
.abv-person .drv-ava { width: 72px; height: 72px; font-size: 24px; } .abv-person b { font-size: 14px; line-height: 1.3; } .abv-person small { font-size: 12px; color: var(--muted); word-break: break-word; }
@media (max-width: 560px) { .abv-row { flex-direction: column; } .abv-person { flex: none; flex-direction: row; justify-content: flex-start; text-align: start; } .abv-person .drv-ava { width: 52px; height: 52px; } }

/* Menu de l'app avec recherche (data-search), owner 2026-11-20 */
#tfMenu .tf-search { position: sticky; top: -6px; z-index: 2; margin: -6px -6px 6px; padding: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
#tfMenu .tf-search input { width: 100%; box-sizing: border-box; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; outline: none; }
#tfMenu .tf-search input:focus { border-color: var(--gold); }
#tfMenu .tf-opt[hidden] { display: none; }
/* Véhicule du chauffeur, variante 1 (owner, 2026-11-20) */
.abv1 { max-width: 340px; margin: 0 0 14px; padding: 8px; border: 1.5px solid var(--gold); border-radius: 14px; background: var(--gold-soft); }
.abv1-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; }
.abv1-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; } .abv1-pic > i { font-style: normal; font-size: 12px; color: var(--muted); }
.abv1-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; font-size: 22px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: background-color .3s, color .3s; }
.abv1-arr.prev { left: 8px; } .abv1-arr.next { right: 8px; }
@media (hover: hover) { .abv1-arr:hover { background: #111; color: #fff; } }
.abv1-ava { position: absolute; left: 12px; bottom: -22px; border-radius: 50%; border: 3px solid #fff; background: #fff; line-height: 0; }
.abv1-ava .drv-ava { width: 50px; height: 50px; font-size: 17px; }
.abv1-t { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 28px 4px 2px; }
.abv1-t b { display: block; font-size: 15px; } .abv1-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.abv1-dots { display: flex; gap: 5px; flex: none; padding-bottom: 4px; } .abv1-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .abv1-dots i.on { background: var(--gold); }

/* Bandeau client sans bouton (notifications bloquées) : même marge à droite qu'à gauche (owner, 2026-11-20) */
.push-bar.cli-bar { padding-inline: 16px; }
.push-bar.cli-bar[data-cb="d"] { padding-inline-end: 16px; }

/* Réactions aux messages, design 2 (app.js msgRxHtml), owner 2026-11-20. */
.msg-b[data-rxk] { position: relative; overflow: visible; }
.msg-b.has-rx { margin-bottom: 20px; }
.msg-rx-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--gold); cursor: pointer; opacity: .6; transition: opacity .2s, background-color .3s; }
.msg-b.them .msg-rx-btn { left: calc(100% + 8px); }
.msg-b.me .msg-rx-btn { right: calc(100% + 8px); }
.msg-rx-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .msg-rx-btn { opacity: 0; } .msg-b:hover .msg-rx-btn, .msg-rx-btn:focus-visible { opacity: 1; } .msg-rx-btn:hover { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); } }
.msg-rx { position: absolute; bottom: -17px; display: flex; gap: 4px; z-index: 1; }
.msg-b.them .msg-rx { left: 10px; }
.msg-b.me .msg-rx { right: 10px; }
.msg-rx-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.msg-rx-chip span { font-size: 14px; line-height: 1; }
.msg-rx-chip small { font-size: 11.5px; color: var(--muted); }
.msg-rx-chip b { font-size: 11.5px; font-weight: 600; }
.msg-rx-chip.mine { background: color-mix(in srgb, var(--gold) 16%, var(--panel)); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.msg-rx-bar { position: absolute; z-index: 60; display: flex; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.msg-rx-bar button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 21px; cursor: pointer; transition: background-color .2s, transform .15s; }
@media (hover: hover) { .msg-rx-bar button:hover { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); transform: scale(1.12); } }

/* Fiche transfert du client : carte du véhicule du chauffeur (.abv1 de la réservation admin), owner 2026-11-20, ridechat.js rcCarHtml */
.dpanel .abv1.rc-car { max-width: 360px; margin: 0 0 14px; }
/* Étoile : liste vide, ajout de l'adresse du champ (owner, 2026-11-20) */
.bk-qlist .qp-empty { padding: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.bk-qlist .qp-addcur { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
/* Adresses fréquentes : nom modifiable (crayon), changer l'adresse (owner, 2026-11-20) */
.qp-namebox { position: relative; display: block; } .qp-namebox input { padding-right: 38px; }
.qp-namebox svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; pointer-events: none; }
.qp-main small { display: flex; gap: 8px; align-items: baseline; } .qp-main small > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-main .qp-chg { flex: none; font-size: 12px; }
.qp-repick { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

/* ✕ effacer l'adresse ; prise en charge par défaut (owner, 2026-11-20) */
.bk-clear { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 58px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s; }
.bk-clear svg { width: 14px; height: 14px; }
@media (hover: hover) { .bk-clear:hover { background: var(--text); color: var(--bg); } }
.bk-place.has-val { padding-inline-end: 96px; }
.bk-place.has-star .bk-clear { inset-inline-end: 102px; } .bk-place.has-star.has-val { padding-inline-end: 136px; }
.bk-places:not(:has(.bk-swap)) .bk-clear { inset-inline-end: 14px; } .bk-places:not(:has(.bk-swap)) .bk-place.has-val { padding-inline-end: 50px; }
.bk-places:not(:has(.bk-swap)) .bk-place.has-star .bk-clear { inset-inline-end: 56px; } .bk-places:not(:has(.bk-swap)) .bk-place.has-star.has-val { padding-inline-end: 92px; }
.qp-acts .qp-def svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.qp-acts .qp-def.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.qp-namebox .qp-tick { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, #2e8b57 12%, var(--bg)); color: #2e8b57; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.qp-namebox.ticked > svg { opacity: 0; }   /* « Enregistré » à la place du crayon */
.qp-namebox.ticked input { padding-right: 120px; }
.bk-clear svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.qp-acts .qp-def.on { background: #2e8b57; border-color: #2e8b57; color: #fff; }   /* prise en charge par défaut : vert, icône blanche (owner, 2026-11-20) */
@media (hover: hover) { .qp-acts .qp-def.on:hover { background: #111; border-color: #111; color: #fff; } }
/* Réservation admin : mini-carte du trajet (owner, 2026-11-20) */
.ab-route { margin: 0 0 14px; }
.ab-route .ab-rmap { height: 150px; border-radius: 12px; overflow: hidden; margin: 0; }
.ab-rinfo { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); } .ab-rinfo b { color: var(--text); font-weight: 600; }
.bk-star svg { fill: var(--gold); stroke: var(--gold); }   /* étoile pleine dorée (owner, 2026-11-20) */
.bk-star[aria-expanded=true] svg { fill: #fff; stroke: #fff; }
@media (hover: hover) { .bk-star:hover svg { fill: var(--bg); stroke: var(--bg); } }

/* Journal des e-mails : bouton Actualiser à droite du titre (owner, 2026-11-20) */
#secMailLog > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-refresh { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; color: var(--gold); flex: none; }
.ml-refresh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ml-refresh.spin svg { animation: avcSpin .8s linear infinite; }
@media (hover: hover) { .ml-refresh:hover { background: var(--text); color: var(--bg); } }

/* Prochaine course : client (photo ou initiales + prénom nom) sous l'heure (home.js), owner 2026-11-20. */
.hm2-cli { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.hm2-cli > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.hm2-cli .drv-ava.hm2-cav { width: 28px; height: 28px; font-size: 11px; flex: none; }
.ml-refresh { pointer-events: auto !important; position: relative; z-index: 2; cursor: pointer; }   /* le titre de la section est non cliquable dans la mise en page des Réglages : le bouton, lui, reste cliquable */

/* Transferts : bouton « Transferts précédents » en haut de la liste (owner, 2026-11-20) */
.t-past { display: flex; justify-content: center; margin: 4px 0 14px; } .t-past .btn { width: auto; }

/* Prochaine course : adresse sur une ligne avec « … » (home.js hmStopsNav), owner 2026-11-20. */
.hm-stops .hm-li-t { min-width: 0; }
.hm-st-main { display: flex; align-items: baseline; gap: .3em; min-width: 0; white-space: nowrap; }   /* seule l'adresse raccourcit, l'heure reste visible */
.hm-st-main > a.hm-addr { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Course en cours : l'étape est dans la barre verte du haut, plus sous le nom du client (home.js hmLblHtml), owner 2026-11-20. */
.hm2.live .hm2-when { display: none; }

/* Prochaine course : prénom du client entier ; adresse sous « Prise en charge à … » avec « … » (home.js), owner 2026-11-20. */
.hm2-cli > span:last-child { overflow: visible; text-overflow: clip; white-space: normal; }
.hm-st-lbl { display: block; }
.hm-st-main { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-st-main > a.hm-addr { overflow: visible; }

/* Prochaine course : ville, pays sous l'adresse, sur téléphone (home.js hmCityCountry), owner 2026-11-20. */
.hm-st-city { display: none; }
@media (max-width: 600px) { .hm-st-city { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* Fiche transfert : Dispatch et Moi en haut (owner, 2026-11-20) */
.tp-top-r .tp-disp svg, .tp-top-r .tp-me svg { width: 16px; height: 16px; }

/* Proposer : envoyer aussi aux chauffeurs pas prêts (owner, 2026-11-20) */
.dp-bypass small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dp-row.unready.bypass { opacity: 1; }
/* Fenêtre de dispatch : case des chauffeurs = rond doré de l'app (comme la charte), pas la case carrée du navigateur (owner, 2026-11-23). */
.dp-row input[name=u] { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); cursor: pointer; transition: background-color .3s, border-color .3s; }
.dp-row input[name=u]::after { content: ''; width: 6px; height: 10px; margin-top: -3px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.dp-row input[name=u]:checked { background: var(--gold); border-color: var(--gold); }
.dp-row input[name=u]:checked::after { opacity: 1; }
.dp-row input[name=u]:disabled { cursor: not-allowed; }
.dp-row input[name=u]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Fenêtre de dispatch : étiquette Chauffeur / Dispatcher après le nom (owner, 2026-11-23) */
.dp-row b .pill.dp-role { font-size: 11px; font-weight: 500; padding: 1px 8px; margin-inline-start: 8px; vertical-align: 1px; }
/* Transfert terminé (client déposé) : barre verte à gauche (owner, 2026-11-20) */
html.dt .tcard.tk.dropped, html.dt .tsplit-list .tcard.tk.dropped.on, html.dt .tcard.tk.dropped.on { border-left-color: #2e8b57; }
.tcard.tk.dropped { border-left: 3px solid #2e8b57; }

/* Fiche transfert : en-tête fixe, barre flottante retirée pour Dispatch/Moi, menu … en haut ; champ nombre sans flèches ; photo client (owner, 2026-11-20) */
@media (min-width: 641px) { .tp-stick { position: sticky; top: 0; z-index: 30; background: var(--bg); padding-top: 12px; margin-top: -12px; padding-bottom: 14px; } }   /* ordinateur : sur téléphone le titre prendrait trop de place */
html.dt .tp-stick .tp-head { margin-bottom: 0; }
.tp-bar.tp-bar-off { display: none; }
.tp-top-r { position: relative; }
.tp-top-r .tp-menu { position: absolute; top: calc(100% + 8px); bottom: auto; inset-inline-end: 0; left: auto; transform: none; z-index: 40; }
.tp-top-r #tpMoreTop svg { width: 18px; height: 18px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tp-ava:has(img) { padding: 0; overflow: hidden; }
@media (min-width: 641px) { .tp-wrap:has(.tp-stick) > .top { position: static; } }   /* la barre du haut (vide sur ordinateur) ne recouvre plus les boutons fixes */
.tp .leaflet-container { isolation: isolate; z-index: 0; }   /* la carte passe sous l'en-tête fixe */
.tp-top-r { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }

/* Proposition : Demain / Après-demain (owner, 2026-11-20) */
.tk-when .of-rel { color: var(--gold); }
.tk-l .of-rel { display: block; color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }   /* au-dessus de la date, en or */

/* Proposition : adresses liées à Google Maps, 10 px entre les deux (owner, 2026-11-20) */
.of-route .of-addr { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .of-route .of-addr:hover { color: var(--gold); } }
.of-route .of-to { display: flex; gap: 6px; margin-top: 10px; } .of-route .of-arr { flex: none; color: var(--gold); }

/* Prochaine course : distance / durée / dépose en bas de la carte blanche, une ligne (home.js hmStopsStats), owner 2026-11-20. */
.hm-st-stats { padding: 7px 10px 8px; border-top: 1px solid var(--line); text-align: center; }
.hm-st-stats small { display: block; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-st-stats:has(#hmDrive:empty) { display: none; }

/* Planning : raccourcis de période ; la liste prend sa hauteur, la carte le reste (owner, 2026-11-20) */
.plan-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.plan-quick .chip-filter { cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .plan-quick .chip-filter:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
@media (min-width: 900px) { .plan-page .plan-main { grid-template-rows: fit-content(50%) minmax(0, 1fr); } }

/* Proposition de course : « En attente de réponse » au-dessus du prix (team.js offerCard), owner 2026-11-20. */
.tk-r .of-wait { display: inline-block; margin-bottom: 6px; white-space: nowrap; }

/* Proposition prise par un autre : explication + compte à rebours 60 s (owner, 2026-11-20) */
.tcard.offer.taken { opacity: .92; cursor: default; }
.of-taken-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.of-taken-cd b { background: var(--gold); }
.tcard.offer.taken .btns { display: none !important; }

/* Planning : raccourcis en liste déroulante sur téléphone (owner, 2026-11-20) */
.plan-quick-sel { display: none; margin: 0 0 14px; }
@media (max-width: 640px) { .plan-quick { display: none; } .plan-quick-sel { display: block; } }

/* Proposition de course : adresses et détails sur toute la largeur sous date / prix (team.js offerCard), owner 2026-11-20. */
.tk.offer .of-full { padding: 0; margin-top: 6px; }
.tk.offer .of-full .tk-route { margin-top: 0; }
@media (max-width: 600px) { .tk-r .of-wait { font-size: 11px; padding: 2px 8px; } .tk.offer .tk-when { white-space: nowrap; } }

/* Proposition de course : étiquette en haut à gauche ; Demain | prix, date | Votre rémunération sur les mêmes lignes (team.js offerCard), owner 2026-11-20. */
.tk.offer .of-pillrow { margin-bottom: 8px; }
.tk.offer .of-pillrow .of-wait { margin: 0; }
.tk.offer .tk-main.of-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline; }
.tk.offer .of-grid > .tk-l, .tk.offer .of-grid > .tk-r { display: contents; }
.tk.offer .of-grid .of-rel { grid-column: 1; grid-row: 1; margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tk.offer .of-grid .tk-when { grid-column: 1; grid-row: 2; }
.tk.offer .of-grid .tk-price { grid-column: 2; grid-row: 1; justify-self: end; }
.tk.offer .of-grid .co-paylbl { grid-column: 2; grid-row: 2; justify-self: end; }
.tk.offer .of-grid:not(:has(.of-rel)) .tk-when { grid-row: 1; }
.tk.offer .of-grid:not(:has(.of-rel)) .co-paylbl { grid-row: 2; }

/* Proposition de course, design K (team.js offerCard), owner 2026-11-20 : en-tête or clair, 18 px partout, prix en noir. */
.tk.offer.ofk { padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 18px; background: var(--panel); }
.tk.offer.ofk::before, .tk.offer.ofk::after { display: none; }
.ofk-head { padding: 18px; background: color-mix(in srgb, var(--gold) 13%, var(--panel)); }
.ofk-top { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.ofk-top .of-rel { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ofk-wait { margin-left: auto; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: right; }
.ofk-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 14px; }
.ofk-l { min-width: 0; }
.ofk-title { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--text); }
.ofk-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.ofk-r { flex: none; text-align: right; }
.ofk-price { display: block; font-size: 30px; font-weight: 700; line-height: 1; color: var(--text); }
.ofk-r small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ofk-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.ofk-body > * { margin: 0; }
.ofk-addr { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 15px; text-decoration: none; }
.ofk-addr i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ofk-addr i.pick { background: #1faa6b; }
.ofk-addr i.drop { background: #d64545; }
.ofk-addr span { min-width: 0; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
@media (hover: hover) { .ofk-addr:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; } }
.ofk-meta { font-size: 13px; color: var(--muted); }
.tk.offer.ofk.taken .ofk-head { background: color-mix(in srgb, var(--muted) 10%, var(--panel)); }
.tk.offer.ofk.taken .ofk-wait { color: var(--muted); }
@media (max-width: 480px) { .ofk-title { font-size: 21px; } .ofk-price { font-size: 26px; } }

/* Design K : contour (plus fort que la bande dorée des cartes) ; durée / distance sur leur ligne sur téléphone, owner 2026-11-20. */
html body article.tcard.tk.offer.ofk { padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 18px; background: var(--panel); box-shadow: none; }
.ofk-route:not(:empty)::before { content: ' · '; }
@media (max-width: 480px) { .ofk-route { display: block; margin-top: 2px; } .ofk-route:not(:empty)::before { content: none; } }
/* État de la proposition en bandeau doré en haut de la carte (owner, 2026-11-23 : « like the chauffeur card for the client ») */
.ofk-band { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--gold); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ofk-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; }
.ofk-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: ofkPing 1.8s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes ofkPing { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ofk-pulse::after { animation: none; } }
.tk.offer.ofk.taken .ofk-band { background: var(--muted); }
.tk.offer.ofk.taken .ofk-pulse::after { animation: none; }

/* Mon compte : téléphone (admin, client), app.js, owner 2026-11-20. */
.ac-phone { align-items: center; }
.ac-phone input { flex: 1; min-width: 0; max-width: 320px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
.ac-phone input:focus { outline: none; border-color: var(--gold); }

/* Fiche transfert : « Envoyer un e-mail au client » (owner, 2026-11-20) */
.tpm-to { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tpm-to svg, .tpm-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.tpm-list { display: flex; flex-direction: column; gap: 10px; }
.tpm-it { display: flex; gap: 12px; align-items: flex-start; text-align: start; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .3s, background-color .3s; }
.tpm-it i { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; transition: border-color .3s; }
.tpm-it.on { border-color: var(--gold); } .tpm-it.on i { border: 5px solid var(--gold); }
.tpm-it b { display: block; font-weight: 600; } .tpm-it small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
@media (hover: hover) { .tpm-it:not(.on):hover { border-color: var(--text); } }
.tpm-btns { margin-top: 18px; justify-content: center; } .tpm-btns .btn { display: inline-flex; align-items: center; gap: 8px; }

/* Journal des e-mails : « Lu » (owner, 2026-11-20) */
.ml-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ml-st.read { background: color-mix(in srgb, #2f6fdb 12%, transparent); color: #2f6fdb; }
.ml-st.read.maybe { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

/* E-mail au client : design 3, Client / Rechercher / Autre adresse (owner, 2026-11-20) */
.tpm-seg { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; margin: 0 0 14px; }
.tpm-seg button { flex: 1; border: 0; background: transparent; color: var(--text); border-radius: 999px; padding: 8px 6px; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s; white-space: nowrap; }
.tpm-seg button.on { background: var(--gold); color: #fff; }
@media (hover: hover) { .tpm-seg button:not(.on):hover { background: var(--text); color: var(--bg); } }
.tpm-who { margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.tpm-p, .tpm-pick { display: flex; align-items: center; gap: 10px; text-align: start; width: 100%; }
.tpm-p { padding: 10px 12px; border: 1px solid var(--gold); border-radius: 12px; }
.tpm-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.tpm-pn { min-width: 0; flex: 1; } .tpm-pn b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tpm-pn small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpm-ck { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tpm-q { margin: 0; } .tpm-res { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.tpm-pick { border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 4px; font: inherit; cursor: pointer; transition: background-color .3s; border-radius: 8px; }
.tpm-pick:last-child { border-bottom: 0; } .tpm-pick.on .tpm-av { box-shadow: 0 0 0 1.5px var(--gold); }   /* anneau collé à la photo (owner, 2026-11-22) */
@media (hover: hover) { .tpm-pick:hover { background: var(--panel-2); } }
.tpm-other { margin: 0; }

/* Prochaine course : le haut se fond doucement dans la carte, sans trait net (owner, 2026-11-20). */
.hm2 .hm2-top.hm-over::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 34px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--panel) 68%, transparent), color-mix(in srgb, var(--panel) 0%, transparent)); }
html.dt .hm2 .hm2-top.hm-over::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--panel-2) 68%, transparent), color-mix(in srgb, var(--panel-2) 0%, transparent)); }

/* Prochaine course (chauffeur) : plus de « Avant de partir » au-dessus des adresses (owner, 2026-11-20) */
.hm-before { display: none !important; }

/* Envoi manuel : personne puis transferts ; espaces égaux (14 px) sous l'aide et sous la recherche (owner, 2026-11-20) */
.mts .mts-hint { margin: 0 0 14px; } .mts .mts-box { margin: 0; } .mts .mts-chips { margin-top: 14px; } .mts .mts-list { margin-top: 14px; }
.mts-person { position: relative; padding-inline-end: 40px; } .mts-person .mts-go { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mts-back { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; border: 1px solid var(--gold); border-radius: 12px; background: transparent; color: var(--text); padding: 10px 12px; font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.mts-back svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mts-back b { display: block; font-weight: 600; } .mts-back small { display: block; color: var(--muted); font-size: 13px; }
@media (hover: hover) { .mts-back:hover { background: var(--text); color: var(--bg); } .mts-back:hover small { color: inherit; } }
.mts-step { margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.mts-it.past { opacity: .7; }

/* Chauffeur : pastille « coordonnées dans… » (design D) ; photo du client (owner, 2026-11-20) */
.hm-ct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .hm-ct-pill { background: #f8f3e3; color: #5c4d17; }
.hm-ct-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm-client .tp-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hm-client .tp-ava:has(img) { padding: 0; overflow: hidden; }

/* Réglages › Bon de commande : société de VIPAZUR (app.js), owner 2026-11-20. */
.bon-co { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bon-co .f, .bon-co .two { margin: 0; }

/* Permis : n° sur toute la largeur, « obtenu le » et « fin de validité » côte à côte (team.js), owner 2026-11-20. */
#sbody details.mfg[data-g="license"] .mfg-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#sbody details.mfg[data-g="license"] .mfg-fields > :first-child { grid-column: 1 / -1; }

/* Dossier VTC : champs deux par deux (team.js MF_GROUPS), owner 2026-11-20. */
#sbody details.mfg .mfg-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#sbody details.mfg .mfg-fields > * { margin: 0; min-width: 0; }
#sbody details.mfg .mfg-fields > :last-child:nth-child(odd) { grid-column: 1 / -1; }
#sbody details.mfg[data-g="license"] .mfg-fields > :last-child:nth-child(odd) { grid-column: auto; }
#sbody details.mfg[data-g="license"] .mfg-fields > :first-child, #sbody details.mfg[data-g="bank"] .mfg-fields > :first-child { grid-column: 1 / -1; }
@media (max-width: 480px) { #sbody details.mfg .mfg-fields { grid-template-columns: minmax(0, 1fr); } #sbody details.mfg .mfg-fields > * { grid-column: auto !important; } }   /* téléphone : un champ par ligne, lisible */

/* Fiche client : photo du véhicule réel (réservé par VIPAZUR) dans « Véhicule », même cadre que la photo de catégorie, coins arrondis (owner, 2026-11-20) */
.tp-veh .tp-car.tp-car-real { object-fit: cover; border-radius: 10px; }

/* Réserver : « Le client a déjà payé » (owner, 2026-11-20) */
.ab-paid small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Ligne client : compte à rebours à droite, aussi sur téléphone, chiffres qui ne bougent pas (home.js), owner 2026-11-20. */
.hm-client:has(.hm-ct-pill) { flex-wrap: nowrap; }
.hm-client:has(.hm-ct-pill) .tp-contact { width: auto; flex: none; margin-left: auto; }
.hm-ct-pill { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Planning : curseur de période avec histogramme (design 2, owner 2026-11-20) */
.plan-quick, .plan-quick-sel { display: none !important; }
.plan-range { margin: 0 0 16px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.plan-range.off .plr-fill, .plan-range.off .plr-bars i.on { opacity: .35; }
.plr-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.plr-lbl { font-size: 16px; font-weight: 600; } .plr-n { color: var(--muted); font-size: 13px; }
.plr-bars { display: flex; align-items: flex-end; gap: 1px; height: 34px; padding: 0 11px; }
.plr-bars i { flex: 1; min-width: 0; background: var(--line); border-radius: 2px 2px 0 0; transition: background-color .2s; }
.plr-bars i.on { background: var(--gold); }
.plr-trk { position: relative; height: 30px; margin: 0 11px; touch-action: none; user-select: none; }
.plr-rail { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--line); }
.plr-fill { position: absolute; top: 13px; height: 4px; border-radius: 4px; background: var(--gold); }
.plr-th { position: absolute; top: 4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); box-sizing: border-box; cursor: grab; transition: transform .15s; }
.plr-th.drag { cursor: grabbing; transform: scale(1.15); } .plr-th:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.plr-ticks { position: relative; height: 16px; margin: 0 11px; font-size: 11px; color: var(--muted); }
.plr-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; } .plr-ticks span:first-child { transform: none; } .plr-ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 640px) { .plan-range { padding: 12px 12px 8px; } .plr-th { width: 26px; height: 26px; margin-left: -13px; top: 2px; } }

/* Ligne client : nom complet sur plusieurs lignes si besoin, jamais « … » (home.js hmClientRow), owner 2026-11-20. */
html body .hm-client .grow b { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }

/* Ligne client avant le contact, design A (home.js hmClientRow), owner 2026-11-20 : grande photo, compte à rebours sous le texte. */
.hm-client:has(.hm-ct-pill) { align-items: center; gap: 14px; }
.hm-client:has(.hm-ct-pill) .tp-ava { width: 76px; height: 76px; font-size: 24px; flex: none; }
.hm-client:has(.hm-ct-pill) .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hm-client:has(.hm-ct-pill) .grow b { font-size: 17px; }
.hm-client .grow .hm-ct-pill { margin: 2px 0 0; }
.hm-client:has(.hm-ct-pill) .tp-contact:empty, .hm-client:has(.hm-ct-pill) .tp-contact:not(:has(*)) { display: none; }

/* À préparer : images 64 px (10 px de moins de chaque côté), home.js hmXBox, owner 2026-11-20. */
.hm-x .hm-ximg { width: 64px; height: 64px; padding: 3px; border-radius: 10px; }

/* Charte : ligne d'aide vide cachée (home.js), owner 2026-11-20. */
.chr-note:empty { display: none; }

/* Prochaine course : sans client sous l'heure, heure et date plus grandes (home.js), owner 2026-11-20. */
.hm2 .hm2-cli { display: none; }
.hm2 .hm2-top { align-items: flex-end; }
.hm2 .hm2-day { font-size: 15px; }
.hm2 .hm-time { font-size: 54px; line-height: 1; margin-top: 4px; }
@media (max-width: 480px) { .hm2 .hm-time { font-size: 48px; } }

/* Utilisateurs : téléphone (rôles en liste déroulante, barre du bas dans l'écran), dernière connexion, tri (owner, 2026-11-20) */
.us-tabsel { display: none; position: relative; flex: 1; min-width: 0; }
.us-tabsel .tab-badge { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 42px; pointer-events: none; }
.uc-seen { display: block; margin-top: 2px; }
.us-sortsel { margin: 0 0 14px; max-width: 280px; }
@media (max-width: 640px) {
  .users-page .us-seg { display: none; } .us-tabsel { display: block; }
  .us-sortsel { max-width: none; }
  .tabs.mode-tabs { left: 0; right: 0; width: auto; max-width: 100vw; box-sizing: border-box; }
  .tabs.mode-tabs > * { flex: 1 1 0; min-width: 0; }
}
.us-tabsel .tab-badge { width: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 10px; font-size: 11px; line-height: 1; inset-inline-end: 44px; left: auto; right: 44px; }
.us-tabsel .tab-badge[hidden] { display: none; }

/* Flotte : changer de type (owner, 2026-11-20) */
.od-type { margin-bottom: 14px; } .od-type-hint { margin: -6px 0 14px; }

/* Fiche utilisateur : activité des 30 derniers jours (owner, 2026-11-20) */
.uf-hist { margin-top: 18px; } .uf-hist .uf-h svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uf-hist-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.uf-hist-it { display: flex; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.uf-hist-it:last-child { border-bottom: 0; }
.uf-hist-it time { flex: none; width: 92px; color: var(--muted); font-variant-numeric: tabular-nums; }
.uf-hist-it span { min-width: 0; overflow-wrap: anywhere; }
.uf-hist-list .hint, .uf-hist-list .co-msg { margin: 0; padding: 12px; }
.uf-hist-it time { width: auto; min-width: 96px; white-space: nowrap; }

/* Utilisateurs : les cartes rétrécissent avec l'écran (petits téléphones), rien ne dépasse à droite (owner, 2026-11-20) */
.ugrid { grid-template-columns: minmax(0, 1fr); } .ucard { min-width: 0; }
@media (min-width: 700px) { .ugrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.ucard .btns.tight { flex-wrap: wrap; } .ucard .uc-lines a, .ucard .uc-meta { overflow-wrap: anywhere; }

/* Planning : pastille « Jusqu'au … · +30 jours » en bas à droite de la liste (design 2, owner 2026-11-20) */
.plan-range { display: none !important; }
.plan-more { order: -1; align-self: flex-end; justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--gold); border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--muted); white-space: nowrap; }
.plan-more .btn { margin: 0; border-radius: 999px; min-height: 34px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }
.plan-more .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 1000px) { .plan-page .plan-main { position: relative; } .plan-page .plan-more { position: absolute; right: 14px; top: calc(var(--plListH, 50%) - 52px); z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.12); } }

/* Planning : période + « 30 jours » dans une pastille en haut à droite (owner, 2026-11-20) */
.plan-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--gold); border-radius: 999px; background: var(--panel); min-width: 0; }
.plan-pill .plan-day { border: 0; background: transparent; min-width: 0; }
.plan-pill .plan-day b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pill #plMore { margin: 0; border-radius: 999px; min-height: 34px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.plan-pill #plMore svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.plan-date { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .plan-date { flex-wrap: nowrap; width: 100%; } .plan-pill { flex: 1; } .plan-pill .plan-day { flex: 1; padding-inline: 8px; } .plan-pill #plMore { padding: 6px 10px; } }
.plan-date #plPrev, .plan-date #plNext { display: none; }   /* flèches retirées : la pastille période + 30 jours suffit (owner, 2026-11-20) */
@media (min-width: 900px) { .plan-page .plan-main { grid-template-rows: fit-content(36%) minmax(0, 1fr); } }   /* carte plus haute (owner, 2026-11-20) */
.hm2 .hm2-top { align-items: flex-start; }   /* prochaine course : date et heure en haut, plus collées au bas (owner, 2026-11-20) */

/* Transferts (liste à gauche) : la recherche reste en haut quand la liste défile (owner, 2026-11-20) */
.tsplit-list .tsearch-wrap { position: sticky; top: 0; z-index: 6; background: var(--bg); padding-bottom: 10px; }

/* Fiche transfert (admin) : photo du client en grand, comme sur la carte du chauffeur (owner, 2026-11-20) */
.tp-ava.tp-cli-ava { width: 76px; height: 76px; font-size: 24px; } .tp-ava.tp-cli-ava:has(img) { padding: 0; overflow: hidden; }
.tp-item:has(> .tp-cli-ava) { align-items: center; } .tp-item:has(> .tp-cli-ava) .grow b { font-size: 17px; }

/* Réserver : « Déjà payé » sous le paiement, date du paiement dessous (owner, 2026-11-20) */
.ab-sec .ab-paid { margin-top: 14px; } .ab-paidat { margin-top: 14px; max-width: 280px; }

/* Menu « … » : icône WhatsApp (owner, 2026-11-20) */
.tp-mi[data-k="wa"] svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* Modifier le transfert : champ téléphone plus large (owner, 2026-11-20) */
.tp-e-grid > label.f:has([name="phone"]) { grid-column: span 2; }
@media (max-width: 640px) { .tp-e-grid > label.f:has([name="phone"]) { grid-column: 1 / -1; } }
.tp-e-grid > label.f:has([name="email"]) { grid-column: 1 / 2; } .tp-e-grid > label.f:has([name="phone"]) { grid-column: 2 / 4; }   /* e-mail | téléphone sur une ligne (owner, 2026-11-20) */
@media (max-width: 640px) { .tp-e-grid > label.f:has([name="email"]), .tp-e-grid > label.f:has([name="phone"]) { grid-column: 1 / -1; } }

/* Modifier le transfert : paiement, chauffeur, e-mail au client (owner, 2026-11-20) */
.tp-e-more { display: flex; flex-direction: column; gap: 18px; margin: 4px 0 14px; }
.tpe-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.tpe-h { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.tpe-sec .ab-paid { margin-top: 14px; } .tpe-sec .ab-paidat { margin-top: 14px; max-width: 280px; }
.tpe-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; } .tpe-two .f { margin: 0; }
@media (max-width: 640px) { .tpe-two { grid-template-columns: minmax(0, 1fr); } }
.tpe-sec .check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Modifier le transfert : titre fixe en haut de la fenêtre pendant le défilement (owner, 2026-11-20) */
.tp-edit-dlg > h2 { position: sticky; top: 0; z-index: 6; margin: -20px -16px 4px; padding: 20px 16px 12px; background: inherit; border-radius: 20px 20px 0 0; }
.tp-edit-dlg > h2 { top: -20px; }   /* collé au bord haut de la fenêtre (le défilement part sous le padding) */

/* Repères en direct v2 : 32 px, vraie photo, initiales sinon ; un peu plus grands sur la grande carte (home.js), owner 2026-11-21. */
.hml-mark .hml-pin { width: 32px; height: 32px; border-width: 2px; }
.hml-mark .hml-pin::after { border-width: 5px; border-top-width: 7px; }
.hml-mark.big .hml-pin { width: 40px; height: 40px; border-width: 3px; }
.hml-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #b89b40; color: #fff; font-size: 11px; font-weight: 700; }
.hml-pin.cli .hml-in { background: #1faa6b; }
.hml-in img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Repères en direct : image entière dans le rond (home.js hmLivePin), owner 2026-11-21. */
.hml-in:has(img) { background: #fff; }
.hml-in img { object-fit: contain; }

/* Repères en direct : photo à la taille du rond, plus forte que la règle Leaflet des images de repères, owner 2026-11-21. */
.leaflet-container .leaflet-marker-pane .hml-in img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; }

/* « Qui conduit ? » design 2 (fleet.js fleetPickHtml), owner 2026-11-21. */
.fl-pick2 { display: flex; align-items: center; gap: 12px; }
.fl-pick2 .drv-ava.fl-av { width: 52px; height: 52px; font-size: 17px; flex: none; }
.fl-pick2 .grow { flex: 1; min-width: 0; }
.fl-pick2 .dpanel-h { margin: 0 0 4px; }
.fl-pick2 .fl-nm { display: block; font-size: 16px; overflow-wrap: anywhere; }
.fl-pick2 .fl-st { flex: none; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 16%, var(--panel)); color: var(--gold); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Cartes touchables : pas de sélection de texte (Chrome Android ouvrait sa barre « Touchez pour rechercher »), owner 2026-11-21. */
.tcard, .hm-row, .cal-row, .tk { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Liste des transferts : lignes Client / Chauffeur en lien (app.js), owner 2026-11-21. */
.tk-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.tk-who + .tk-who, .tk-who + .tk-acts { margin-top: 6px; }
.tk-lbl { flex: none; color: var(--muted); font-size: 13px; }
.tk-wbtn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.tk-wbtn > span:last-child { min-width: 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.tk-wbtn.ok { color: var(--green); }
.tk-wbtn .drv-ava { flex: none; }
@media (hover: hover) { .tk-wbtn:hover > span:last-child { text-decoration-color: currentColor; } }

/* Menu de contact de la fiche transfert (app.js ctMenuHtml), owner 2026-11-21. */
.ct-wrap { position: relative; }
.ct-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 32px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; }
.ct-menu[hidden] { display: none; }
.ct-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.ct-it > svg, .ct-it > .ct-sms { flex: none; width: 20px; height: 20px; color: var(--gold); }
.ct-it > svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-it .ct-sms { display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
@media (hover: hover) { .ct-it:hover { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); } }

/* Recherche des transferts : croix visible dès qu'il y a du texte (app.js tSearchHtml), owner 2026-11-21. */
.ts-box { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.ts-box input[type=search] { flex: 1 1 auto; min-width: 0; padding-right: 40px; }
#tSearch::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.ts-clear { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color .3s, color .3s; }
.ts-clear[hidden] { display: none; }
.ts-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .ts-clear:hover { background: var(--text); color: var(--bg); } }

/* Menu de contact ouvert au-dessus de l'icône quand il n'y a pas de place en dessous (app.js), owner 2026-11-21. */
.ct-menu.up { top: auto; bottom: calc(100% + 8px); }

/* Liste des transferts : « (Chauffeur) » après le nom (app.js), owner 2026-11-21. */
.tk-role { flex: none; color: var(--muted); font-size: 13px; }

/* Menu de contact : ligne « Pas de numéro de téléphone » (app.js), owner 2026-11-21. */
.ct-it.ct-none { color: var(--muted); cursor: default; }
.ct-it.ct-none > svg { color: var(--muted); }
@media (hover: hover) { .ct-it.ct-none:hover { background: none; } }

/* Liste des transferts : recherche collée sous la barre du haut pendant le défilement (app.js tStickyTop), owner 2026-11-21. */
.tlist-wrap > .tsearch-wrap { position: sticky; top: var(--tl-top, 64px); z-index: 30; background: var(--bg); padding-bottom: 8px; }
.tlist-wrap > .list > .filters:first-child { position: sticky; top: var(--tl-top2, 127px); z-index: 29; background: var(--bg); }

/* Barre du haut : fond plein, plus de fondu transparent (le contenu se voyait dessous), owner 2026-11-21. */
.top { background: var(--bg); }

/* Menu de contact : logo WhatsApp officiel, vert #25D366, plein (app.js ctPhoneItems), owner 2026-11-21. */
.ct-it > svg.wa-logo { width: 22px; height: 22px; color: #25D366; fill: #25D366; stroke: none; }
.ct-it > svg.wa-logo path { fill: #25D366; stroke: none; }

/* Liste des transferts (téléphone) : recherche et filtre glissent sous la barre VIPAZUR en descendant (app.js), owner 2026-11-21. */
@media (max-width: 999px) {
  .tlist-wrap > .tsearch-wrap, .tlist-wrap > .list > .filters:first-child { transition: transform .3s ease; }
  body.tl-bars-hide .tlist-wrap > .tsearch-wrap { transform: translateY(-100%); }
  body.tl-bars-hide .tlist-wrap > .list > .filters:first-child { transform: translateY(calc(var(--tl-top, 64px) - var(--tl-top2, 127px) - 100%)); }
}

/* Fiche transfert : nombre de réservations du client / du chauffeur, lien vers la liste filtrée (app.js tpCountLink), owner 2026-11-21. */
.tp-count { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 50%, transparent); text-underline-offset: 3px; transition: color .3s; }
@media (hover: hover) { .tp-count:hover { color: var(--text); text-decoration-color: currentColor; } }

/* Choix WhatsApp / WhatsApp Business (super admin, Android), logos officiels, owner 2026-11-21. */
.wa-dialog { max-width: 360px; }
.wa-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wa-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s; }
.wa-opt > svg { flex: none; width: 30px; height: 30px; }
.wa-opt > svg.wa-logo, .wa-opt > svg.wa-logo path { fill: #25D366; stroke: none; }
@media (hover: hover) { .wa-opt:hover { background: var(--text); color: var(--bg); } }

/* Choix WhatsApp : fenêtre centrée à l'écran (owner, 2026-11-21). */
.overlay:has(> .wa-dialog) { align-items: center; }
.overlay > .wa-dialog { margin-top: 0; margin-bottom: 0; }

/* Progression : noms des étapes en gras, pas la ligne en dessous (home.js), owner 2026-11-21. */
html body .stage-steps li > span { font-weight: 700; }
html body .stage-steps li > .st-note:not(.ok):not(.cash) { font-weight: 400; }

/* Progression : noms des étapes au-dessus des points, notes et heures dessous (home.js, team.js), owner 2026-11-21. */
html body .stage-steps li { padding-top: calc(2.5em + 26px); }
html body .stage-steps li > span { position: absolute; top: 0; left: 0; right: 0; height: 2.5em; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
html body .stage-steps li i { top: calc(2.5em + 6px); }
html body .stage-steps li::before, html body .stage-steps li::after { top: calc(2.5em + 12px); }

/* Progression : « Prévient le client » masqué, « Client prévenu » seulement après l'étape (home.js), owner 2026-11-21. */
html body .stage-steps .st-note:not(.ok):not(.cash) { visibility: hidden; }

/* Progression : pas d'espace vide sous les points (home.js), owner 2026-11-21. */
html body .stage-steps .st-note:not(.ok):not(.cash), html body .stage-steps time[style*="hidden"] { display: none; }
html body .stage-steps li { padding-bottom: 0; }
html body .stage-steps { margin-bottom: 0; }

/* Accueil chauffeur : pas de titre « Progression » (home.js hm-steps-h), owner 2026-11-21. */
html body .hm-steps-h > span { display: none; }
html body .hm-steps-h { justify-content: flex-end; }
html body .hm-steps-h:not(:has(button)) { display: none; }

/* Progression : place des noms ajustée au nom le plus long (home.js stFit), owner 2026-11-21. */
html body .stage-steps li { padding-top: calc(var(--stn, 2.5em) + 26px); }
html body .stage-steps li > span { height: var(--stn, 2.5em); }
html body .stage-steps li i { top: calc(var(--stn, 2.5em) + 6px); }
html body .stage-steps li::before, html body .stage-steps li::after { top: calc(var(--stn, 2.5em) + 12px); }
html body .stage-steps li { padding-top: calc(var(--stn, 2.5em) + 20px); }
html body .stage-steps li > span + :is(.st-note.ok, .st-note.cash, time:not([style*="hidden"])), html body .stage-steps li > span + .st-note:not(.ok):not(.cash) + time:not([style*="hidden"]) { margin-top: 6px; }

/* Bouton à glisser : flèche qui bouge doucement (owner, 2026-11-21). */
@keyframes knob-wiggle { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
.slide-btn .slide-knob svg { animation: knob-wiggle 2.2s ease-in-out infinite; }
.slide-btn.drag .slide-knob svg, .slide-btn[disabled] .slide-knob svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .slide-btn .slide-knob svg { animation: none; } }

/* Repères en direct : âge de la position au-dessus de la photo (home.js hmLivePin), owner 2026-11-21. */
.hml-wrap { position: relative; display: block; }
.hml-age { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 99px; background: var(--panel, #fff); color: var(--text, #111); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none; }

/* Étiquette d'âge des repères : plus petite, normale (owner, 2026-11-21). */
.hml-age { font-size: 9px; font-weight: 400; padding: 1px 6px; }

/* Liste des transferts : course en cours, design 3 (app.js tk-live), owner 2026-11-21. */
html body .tcard.tk.tk-live { background: color-mix(in srgb, #1f9d55 11%, var(--panel)); border: 1px solid color-mix(in srgb, #1f9d55 32%, var(--panel)); border-radius: 14px; padding: 0 16px 14px; overflow: hidden; }
.tk-live-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 -16px 12px; padding: 6px 16px; background: #1f9d55; color: #fff; font-size: 13px; font-weight: 600; }
.tk-live-h > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.tk-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: tk-live-pulse 1.8s ease-in-out infinite; }
@keyframes tk-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tk-live-dot { animation: none; } }

/* Liste des transferts : toutes les cartes en boîte, fond transparent, bord gris clair (owner, 2026-11-21). */
html body .list > .tcard.tk, html body .tsplit-list .list > .tcard.tk { background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow: hidden; }
html body .list > .tcard.tk.tk-live, html body .tsplit-list .list > .tcard.tk.tk-live { background: transparent; border-color: var(--line); padding-top: 0; }

/* Liste des transferts (admin et client, même carte) : fond vert très clair dès qu'une étape de course existe (owner, 2026-11-21) */
html body .list .tcard.tk.staged { background: color-mix(in srgb, #1f9d55 7%, var(--panel)) !important; }
html[data-theme="dark"] body .list .tcard.tk.staged, html:not([data-theme="light"]) body .list .tcard.tk.staged { background: color-mix(in srgb, #1f9d55 12%, var(--panel)) !important; }
html[data-theme="light"] body .list .tcard.tk.staged { background: color-mix(in srgb, #1f9d55 7%, #fff) !important; }

/* Liste des transferts (admin et client) : 12 px entre deux cartes du même jour (owner, 2026-11-21) */
html body .list .tcard.tk + .tcard.tk { margin-top: 12px; }

/* Fiche transfert : en-tête fixe seulement sur un écran assez haut (téléphone ou tablette à l'horizontale : il cachait la page), owner 2026-11-21 */
@media (max-height: 760px) { html body .tp-stick { position: static !important; margin-top: 0; padding-top: 0; } }

/* Carte du chauffeur : n° du transfert sous le bon de commande (owner, 2026-11-21) */
.hm-ref { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Calendrier du chauffeur : « 2 courses · 315 € total » à droite (owner, 2026-11-21) */
.cal-dh .cal-dr { display: inline-flex; align-items: baseline; gap: 6px; margin-inline-start: auto; white-space: nowrap; }
.cal-dh .cal-dr em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.cal-dh .cal-dr .cal-dn::after { content: "·"; margin-inline-start: 6px; }
.cal-dh .cal-dr .cal-dn:last-child::after { content: none; }

/* Calendrier du chauffeur : rémunération à droite de chaque course (owner, 2026-11-21) */
.cal-row .cal-rt .cal-rp { float: right; margin-inline-start: 10px; color: var(--gold); font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (hover: hover) { .cal-row:hover .cal-rt .cal-rp { color: var(--bg); } }

/* Calendrier : voiture sur sa propre ligne (home.js), owner 2026-11-21. */
.cal-rt em.cal-car { display: block; }

/* Fiche client : WhatsApp / SMS / Appeler dans la carte du chauffeur, design 1 (team.js clientDriverHtml), owner 2026-11-21. */
.cdc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cdc-b { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.cdc-b > span { overflow: hidden; text-overflow: ellipsis; }
.cdc-b svg { flex: none; width: 18px; height: 18px; }
.cdc-b.wa { background: #25D366; border-color: #25D366; color: #fff; }
.cdc-b.wa svg.wa-logo, .cdc-b.wa svg.wa-logo path { fill: #fff; stroke: none; }
@media (hover: hover) { .cdc-b:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .cdc-b.wa:hover { background: #000; border-color: #000; color: #fff; } }
.cdc-row { grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; } .cdc-b { gap: 5px; padding: 0 4px; font-size: 13px; } .cdc-b svg { width: 17px; height: 17px; }

/* Courses terminées : nouvelle ligne (home.js hmDoneRow), owner 2026-11-21. */
.hm-drow2 .hm-row-t small { display: block; margin: 0 0 2px; }
.hm-drow2 .hm-row-m > small { display: block; }
.hm-drow2 .hm-row-pr { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.hm-drow2 .hm-row-pr small { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; }

/* Fiche client : étapes sous l'en-tête (home.js clStagesTop), owner 2026-11-21. */
.tp-stages-top { margin: 18px 0 6px; }
.tp-stages-top .stage-steps { margin: 0; }

/* Fiche client : étapes en flèches, design E (home.js clChevHtml), owner 2026-11-21. */
.tp-chev { display: flex; gap: 4px; }
.tp-chev > div { flex: 1; min-width: 0; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.15; padding: 0 6px 0 16px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.tp-chev > div:first-child { padding-left: 8px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.tp-chev > div:last-child { padding-right: 8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); }
.tp-chev > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tp-chev .ok { background: #2a2a2a; color: #fff; }
.tp-chev .ok i { font-style: normal; font-size: 13px; color: #E2CC85; margin-bottom: 1px; }
.tp-chev .cur { background: #B89B40; color: #fff; animation: chev-flash 1.8s ease-in-out infinite; }
.tp-chev .no { background: #f3efe4; color: #bfb08a; }
@keyframes chev-flash { 0%, 100% { background: #B89B40; } 50% { background: #D2BD74; } }
@media (prefers-reduced-motion: reduce) { .tp-chev .cur { animation: none; } }
html body .tp-stages-top { margin: 18px 0 20px; }
.tp-chev { gap: 3px; } .tp-chev > div { font-size: 11px; padding: 0 3px 0 13px; } .tp-chev > div:first-child { padding-left: 5px; } .tp-chev > div:last-child { padding-right: 4px; }
.tp-chev > div { height: 52px; }
.tp-chev > div > span { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: anywhere; }

/* Flèches du client : étape en cours fixe, avec ✓ (owner, 2026-11-21). */
.tp-chev .cur { animation: none; }
.tp-chev .cur i { font-style: normal; font-size: 13px; color: #fff; margin-bottom: 1px; }

/* Liste du client : « - Votre chauffeur », mode de paiement au-dessus du prix (owner, 2026-11-21). */
.cl-yd { font-style: normal; font-weight: 400; color: var(--muted); }
.tk-r .tk-pay { display: block; font-size: 11px; color: var(--muted); text-align: right; margin-bottom: 1px; white-space: nowrap; }

/* Flèches du client : coins arrondis aux deux bouts (owner, 2026-11-21). */
.tp-chev { border-radius: 12px; overflow: hidden; }

/* Utilisateurs : épingle, et les 3 icônes serrées (owner, 2026-11-21). */
.uc-top .uc-pin { align-self: flex-start; margin-inline-start: auto; flex: none; }
.uc-top .uc-pin svg { width: 17px; height: 17px; }
.uc-top .uc-pin + .uc-web, .uc-top .uc-pin + .uc-la, .uc-top .uc-web + .uc-la { margin-inline-start: -8px; }
.uc-top .uc-pin.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (hover: hover) { .uc-top .uc-pin:hover, .uc-top .uc-pin.on:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }

/* « Modifier le transfert » : sélecteurs date / heure de la réservation (team.js tePick), owner 2026-11-21. */
.tp-e-pick { display: block; position: relative; }
.tp-e-pick .bk-pick-btn { width: 100%; }

/* Cartes utilisateurs : icônes (épingler, site, se connecter en tant que) l'une sous l'autre à droite, le nom a toute la largeur (owner, 2026-11-21) */
.ucard .uc-top:has(> .odb-ib) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: start; }
.ucard .uc-top:has(> .odb-ib) > :not(.odb-ib) { grid-row: 1 / span 4; }
.ucard .uc-top:has(> .odb-ib) > .drv-ava, .ucard .uc-top:has(> .odb-ib) > .uc-ava { grid-column: 1; }
.ucard .uc-top:has(> .odb-ib) > .grow { grid-column: 2; }
.ucard .uc-top > .odb-ib { grid-column: 3; margin: 0; }

/* Liste : course terminée en gris, moins d'espace sous le mode de paiement (owner, 2026-11-21). */
html body .tcard.tk.tk-live.tk-done, html body .list > .tcard.tk.tk-live.tk-done, html body .tsplit-list .list > .tcard.tk.tk-live.tk-done { background: color-mix(in srgb, #6b6b6b 9%, var(--panel)); border-color: color-mix(in srgb, #6b6b6b 24%, var(--panel)); }
.tk-done .tk-live-h { background: #5f5f5f; }
.tk-done .tk-live-dot { display: none; }
.tk-r .tk-pay { margin-bottom: 0; line-height: 1.15; }
.tk-r .tk-pay + .tk-price { line-height: 1.1; }
html body .tcard.tk.tk-done.dropped { border-color: color-mix(in srgb, #6b6b6b 24%, var(--panel)) !important; background: color-mix(in srgb, #6b6b6b 11%, var(--panel)) !important; }
html:not(#vpz) body .tcard.tk.tk-done.dropped { background: color-mix(in srgb, #6b6b6b 11%, var(--panel)) !important; }

/* Liste des transferts du client : « Bonjour, Prénom » au-dessus de la recherche (owner, 2026-11-21), ridechat.js clHiHtml */
.cl-hi { padding: 4px 0 2px; }
.tlist-wrap > .cl-hi { padding-inline: 16px; }

/* Factures (téléphone) : la bulle de discussion au-dessus de la barre « Créer la facture » (owner, 2026-11-21) */
@media (max-width: 999px) { body:has(.inv-bar) .rc-fab-all { bottom: calc(var(--tabbar-h, 64px) + 92px); } }
/* Liste des transferts du client : plus de ligne Statut / tri / affichage (owner, 2026-11-21 : « remove this row for clients transfer list ») */
html.cl-area .list > .filters { display: none; }

/* Admin : bouton « Étape suivante » sous les étapes (owner, 2026-11-21) */
.dpanel .stage-next { display: block; width: 100%; margin: 10px 0 6px; background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .dpanel .stage-next:hover { background: var(--text); border-color: var(--text); color: var(--bg); } }

/* Fiche du client : plus de « Partager ma position », « Voir mon chauffeur sur la carte » ni ligne « Position du chauffeur en direct » (owner, 2026-11-21 : « those three can be removed ») ; la carte du haut montre le chauffeur, le bandeau du haut partage la position. */
html.cl-area .tp .rc-share, html.cl-area .tp #tpSee, html.cl-area .tp #tpLive { display: none !important; }

/* Admin : dispatcher (doré, deux personnes) et m'attribuer (noir, une personne) — ronds sur la carte de la liste, boutons avec
   texte dans la carte « Chauffeur » de la fiche (owner, 2026-11-21, design 1). */
.tk-acts.tk-ci { justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tk-who + .tk-acts.tk-ci { margin-top: -30px; pointer-events: none; }
.tk-cib { pointer-events: auto; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.tk-cib.tk-me { background: #101010; border-color: #101010; margin: 0; }
.tk-cib svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-asg { display: flex; gap: 8px; margin-top: 12px; }
.tp-asg .btn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; font-weight: 600; color: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.tp-asg .btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-asg-d { background: var(--gold); border-color: var(--gold); }
.tp-asg-m { background: #101010; border-color: #101010; }
.tp-top-r #tpDisp, .tp-top-r #tpMe { display: none; }
@media (hover: hover) {
  .tk-cib.tk-offer:hover, .tp-asg-d:hover { background: #101010; border-color: #101010; color: #fff; }
  .tk-cib.tk-me:hover, .tp-asg-m:hover { background: #fff; border-color: #101010; color: #101010; }
}
[data-theme="dark"] .tk-cib.tk-me, [data-theme="dark"] .tp-asg-m { background: #fff; border-color: #fff; color: #101010; }
/* Admin, course attribuée à moi : lien rouge « Retirer » dans le coin en haut à droite de la carte « Chauffeur » (owner, 2026-11-21, design 3) */
.tp > section.tp-sec:has(.tp-unme) { position: relative; }
.tp-unme { position: absolute; top: 14px; inset-inline-end: 14px; color: var(--red, #c0392b); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 2px 0; cursor: pointer; transition: opacity .3s; }
@media (hover: hover) { .tp-unme:hover { opacity: .65; } }

/* Admin : étapes de la course à toucher, étape en cours en pastille dorée (owner, 2026-11-21, design 4) */
.stage-steps.tap li { cursor: pointer; }
.stage-steps.tap li span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: color .3s, background-color .3s; }
.stage-steps.tap li.cur span { display: block; width: fit-content; margin-inline: auto; padding: 2px 10px; border-radius: 99px; background: var(--gold); color: #fff; text-decoration: none; }
@media (hover: hover) { .stage-steps.tap li:not(.cur):hover span { color: var(--gold); text-decoration-color: var(--gold); } .stage-steps.tap li.cur:hover span { background: var(--text); color: var(--bg); } }

/* Accueil du chauffeur, carte « Prochaine course » : « Qui conduit ? », véhicule, étapes et bouton à glisser dans UN seul
   cadre, séparés par un filet (owner, 2026-11-21, design 1 : « make it one widget, no separation »). */
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) { display: block; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .dp-note { margin-bottom: 10px; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .hm-picks { display: block; margin: 0; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .hm-picks > .dpanel { margin: 0; border-radius: 0; border-bottom: 0; box-shadow: none; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) > .hm-picks > .dpanel:first-child { border-radius: 14px 14px 0 0; }
.hm2 .hm-body > .hm-xtra > .hm-picks + .hm-steps { margin: 0; border-radius: 0 0 14px 14px; box-shadow: none; }
.hm2 .hm-body > .hm-xtra:has(+ .hm-slrow) > .hm-steps { margin-bottom: 0; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps) + .hm-slrow { margin-top: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--bg); }
.hm2 .hm-body > .hm-xtra:has(> .hm-steps):has(+ .hm-slrow) { margin-bottom: 0; }

/* « Qui conduit ? » : nom sur une ligne avec « … » (fleet.js fleetPickHtml), owner 2026-11-21. */
.fl-pick .sel-btn { min-width: 0; width: 100%; }
.fl-pick .sel-btn > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Croix « Annuler » dans la ligne du bon de commande (home.js hmCancelToBon), owner 2026-11-21. */
.hm-bonrow .hm-xcancel { flex: none; align-self: center; min-height: 0; padding: 0; display: grid; place-items: center; }
.hm-bonrow .hm-xcancel svg { width: 22px; height: 22px; }

/* ---------- Choix de la langue : même fenêtre que le calendrier, pas plein écran (owner, 2026-11-22) ----------
   Panneau sous le drapeau : bord fin, coins 16 px, ombre douce, titre + croix ronde, ouverture dtm-drop 0,18 s depuis le coin
   du drapeau (haut gauche ; haut droit en arabe), fond transparent qu'un toucher referme. Construit par openLangPicker (app.js). */
.lang-pop-bg { position: fixed; inset: 0; z-index: 1150; background: transparent; }
.lang-list.lang-pop { position: fixed; max-height: calc(100dvh - 120px); overflow: auto; overscroll-behavior: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); padding: 14px 10px 10px; }
.lang-pop .lang-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.lang-pop .lang-head b { font-size: 18px; font-weight: 700; }
.lang-pop .lang-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.lang-pop .lang-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .lang-pop .lang-x:hover { background: var(--text); color: var(--bg); border-color: var(--text); } }
.lang-pop .lang-opt { padding: 10px 10px; font-size: 15px; }
html.dtm .lang-list.lang-pop { transform-origin: top left; animation: dtm-drop .18s var(--ease-out) both; }
html.dtm[dir="rtl"] .lang-list.lang-pop { transform-origin: top right; }
@media (prefers-reduced-motion: reduce) { html.dtm .lang-list.lang-pop { animation-name: dtm-fade !important; } }

/* ---------- Jamais de surbrillance bleue au toucher ni de cadre bleu au clic, nulle part (owner, 2026-11-22 : « a little squared
   blue highlight show up … make sure that never happened in any of the gui ») ----------
   1) Téléphones : le navigateur colore en bleu tout ce qu'on touche (-webkit-tap-highlight-color) : coupé partout.
   2) Souris / doigt : aucun contour de focus (le bouton garde son propre état, ex. survol).
   3) Clavier seulement : un contour doré à la place du contour bleu du navigateur (accessibilité). :where() = priorité nulle,
      les contours déjà dessinés par l'app (champs, calendrier…) restent ceux-là. */
html, *, *::before, *::after { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:where(:focus-visible) { outline: 2px solid var(--gold, #B19540); outline-offset: 2px; }

/* Recadrer la photo, design 5 (owner, 2026-11-22) : « Retirer l'arrière-plan » en interrupteur, « Remplacer » à gauche d'Enregistrer,
   écarts resserrés (14 / 18 px) ; sur téléphone la fenêtre monte du bas en gardant 10 px de marge à gauche, à droite et en bas. */
.avc-sw { display: flex; align-items: center; gap: 12px; width: min(320px, calc(100vw - 72px)); margin: 14px auto 0; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--panel-2); cursor: pointer; }
.avc-swi { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--text); }
.avc-swi svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avc-swl { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.avc-sw.busy { cursor: progress; }
.avc-sw.busy .avc-swi svg { display: none; }
.avc-sw.busy .avc-swi::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: avcSpin .8s linear infinite; }
.avc-dialog .msg { text-align: center; }
.avc-dialog .msg:empty { display: none; }
.avc-dialog .btns.avc-btns { display: flex; gap: 10px; width: min(320px, calc(100vw - 72px)); margin: 18px auto 0; }
.avc-dialog .avc-btns .btn { flex: 1 1 0; min-width: 0; margin: 0; }
.avc-rep svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 640px) {
  .overlay.avc-ov { align-items: flex-end; }
  .avc-ov > .avc-dialog { width: calc(100% - 20px); margin: 0 0 10px; max-height: calc(100% - 20px); border-radius: 22px; padding: 10px 16px 22px; }
  .avc-ov > .avc-dialog::before { content: ''; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
  html.dtm .overlay.avc-ov > .dialog { animation: avcSheet .28s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes avcSheet { from { opacity: 0; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { html.dtm .overlay.avc-ov > .dialog { animation: none; } }
/* Retrait de l'arrière-plan : pourcentage sous le texte (owner, 2026-11-22) */
.avc-swp { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Bouton clair/sombre : plus de cercle autour de l'icône en mode sombre, comme le drapeau (owner, 2026-11-22) */
html:not([data-theme="light"]) .tool-btn[data-act="theme"], html:not([data-theme="light"]) .tool-btn[data-act="theme"]:hover { background: transparent; border-color: transparent; }
/* « Modifier le transfert » : Enregistrer en haut à droite, à côté de la croix, toujours visible (en-tête collant), owner 2026-11-22 */
.tp-edit-dlg > h2 { gap: 12px; }
.tp-edit-dlg > h2 .te-title { flex: 1; min-width: 0; }
.tp-edit-dlg > h2 .te-acts { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.tp-edit-dlg > h2 .te-acts button { margin-left: 0; }
/* Dossier chauffeur (admin) : Recadrer et Remplacer côte à côte (owner, 2026-11-22) */
.dos-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.dos-acts .dos-crop { flex: 1 1 0; min-width: 120px; margin: 0; justify-content: center; }
.dos-rep.busy { opacity: .6; cursor: progress; }
/* Fiche utilisateur (admin) : Enregistrer en haut à côté de la croix, en-tête collant comme « Modifier le transfert » (owner, 2026-11-22) */
.dialog.uf > h2 { position: sticky; top: -20px; z-index: 6; margin: -20px -16px 4px; padding: 20px 16px 12px; background: inherit; border-radius: 20px 20px 0 0; gap: 12px; }
.dialog.uf > h2 .te-title { flex: 1; min-width: 0; }
.dialog.uf > h2 .te-acts { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.dialog.uf > h2 .te-acts button { margin-left: 0; }
.dialog.uf .uf-foot:empty { display: none; }
/* Fiche utilisateur : Désactiver et Supprimer aussi en haut (owner, 2026-11-22) ; sur téléphone les boutons passent sous le titre */
.dialog.uf > h2 { flex-wrap: wrap; row-gap: 10px; }
.dialog.uf > h2 .te-acts { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) { .dialog.uf > h2 .te-title { flex-basis: calc(100% - 52px); } .dialog.uf > h2 .te-acts { flex-basis: 100%; } .dialog.uf > h2 .te-acts #closeU { position: absolute; top: 16px; right: 16px; } }
/* Fiche utilisateur sur téléphone : Désactiver, Supprimer, Enregistrer en icônes seules, sur la ligne du titre (owner, 2026-11-22) */
.dialog.uf > h2 .te-acts .uf-i { display: none; }
@media (max-width: 560px) {
  .dialog.uf > h2 { flex-wrap: nowrap; }
  .dialog.uf > h2 .te-title { flex: 1 1 auto; flex-basis: auto; }
  .dialog.uf > h2 .te-acts { flex-basis: auto; flex-wrap: nowrap; gap: 6px; }
  .dialog.uf > h2 .te-acts #closeU { position: static; }
  .dialog.uf > h2 .te-acts .btn.small { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
  .dialog.uf > h2 .te-acts .btn.small > span { display: none; }
  .dialog.uf > h2 .te-acts .uf-i { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
}
/* Fiche utilisateur (admin) : dossier VTC modifiable (owner, 2026-11-22) */
.dialog.uf .u-legal[hidden] { display: none; }
.dialog.uf .uf-lg-g + .uf-lg-g { margin-top: 14px; }
.dialog.uf .uf-lg-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.dialog.uf .uf-lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.dialog.uf .uf-lg-grid > .f, .dialog.uf .uf-lg-grid > .bk-field { margin: 0; min-width: 0; }
.dialog.uf .uf-lbl, .dialog.uf .uf-lg-grid .mf-pick > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 640px) { .dialog.uf .uf-lg-grid { grid-template-columns: 1fr; } }
.dialog.uf .uf-lg-grid .bk-field.mf-pick > span:first-child { font-size: 12.5px; font-weight: 400; color: var(--muted); margin: 0 0 4px; }
/* Photo : Recadrer et Retirer en icônes rondes, les boutons tiennent sur la ligne du téléphone (owner, 2026-11-22) */
.av-btns .btn.av-ic { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
.av-btns .btn.av-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.av-btns .btns.tight { align-items: center; }
/* Bouton à glisser : le remplissage suit les coins du bouton (20 px), plus de coins clairs à gauche (owner, 2026-11-22) */
.slide-btn .slide-fill { border-radius: inherit; }
/* Message traduit : « Traduit » à gauche, « Voir l'original » à droite (owner, 2026-11-23). */
.msg-trl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 0; font-size: 11px; }
.msg-trl > span { opacity: .6; }
.msg-trl .msg-trb { display: inline; margin: 0; text-align: end; }
/* Barre d'émojis au-dessus de la fenêtre de chat (bulle, z-index 1100), sinon cachée derrière (owner, 2026-11-23). */
.msg-rx-bar { z-index: 1300; }

/* Users › Partenaires, téléphone : site, e-mail, appel et WhatsApp regroupés dans un seul bouton « ⋯ » (owner, 2026-11-23) */
.odb-more { display: none; flex: none; }
.odb-more .odb-ib { cursor: pointer; font: inherit; padding: 0; }
.odb-more .odb-ib svg { stroke-width: 2.6; }
@media (max-width: 640px) {
  .odb-top > .odb-ib { display: none; }
  .odb-more { display: block; }
}

/* ---------- Réglages › Santé de l'app (health.js), owner 2026-11-23, design 5 « Limites et réglages » ----------
   Deux colonnes quand la carte est assez large (jauges à gauche ; écrans lents, ménage, à regarder à droite), une seule sinon. */
.hl { container-type: inline-size; }
.hl-checked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hl-checked .btn { display: inline-flex; align-items: center; gap: 8px; }
.hl-checked .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hl-two { display: grid; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 700px) { .hl-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; } }
.hl-sec { margin-top: 32px; }
.hl-sec > h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; color: var(--text); }
.hl-num { font-variant-numeric: tabular-nums; }
.hl-muted { color: var(--muted); font-weight: 500 !important; }
.hl-lim { padding: 12px 0; }
.hl-lim-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hl-lim-h b { font-weight: 600; }
.hl-lim-h span { font-weight: 700; white-space: nowrap; }
.hl-lim small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.hl-meter { position: relative; height: 8px; margin-top: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); }
.hl-meter i { display: block; height: 100%; border-radius: 99px; background: var(--gold); min-width: 2px; }
.hl-meter i.ok { background: var(--green, #1f8a4c); }
.hl-meter i.warn { background: #d68c14; }
.hl-meter i.bad { background: var(--red, #d64545); }
.hl-meter em { position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 2px; background: var(--text); opacity: .55; }
.hl-slow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 56px; gap: 10px 12px; align-items: center; font-size: 14px; padding-top: 12px; }
.hl-slow i { display: block; height: 8px; border-radius: 99px; background: var(--gold); }
.hl-slow span:nth-child(3n) { text-align: end; font-weight: 700; }
.hl-tune, .hl-look { list-style: none; margin: 0; padding: 0; }
.hl-tune li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 0; }
.hl-tune b, .hl-look b { font-weight: 600; }
.hl-tune p, .hl-look p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
.hl-tune .btn, .hl-tune .hl-tag { grid-row: 1 / span 2; grid-column: 2; }
.hl-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: color-mix(in srgb, var(--green, #1f8a4c) 13%, transparent); color: var(--green, #1f8a4c); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hl-look li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; }
.hl-look .hl-dot { width: 9px; height: 9px; border-radius: 50%; background: #d68c14; }
.hl-look p { grid-column: 2; overflow-wrap: anywhere; }
.hl-look .btn { grid-row: 1 / span 2; grid-column: 3; text-decoration: none; }
.hl-empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: 14px; }
.hl-fine { display: flex; align-items: center; gap: 8px; color: var(--green, #1f8a4c); font-weight: 600; }
.hl-fine svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .hl-tune .btn, .hl-look .btn { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .hl-look .btn { grid-column: 2; }
}

/* Super admin, liste des transferts : étiquette clignotante « N à attribuer » qui filtre la liste (owner, 2026-11-23) */
/* Rangée en retrait comme le bouton des transferts passés ; la ligne pointillée du fil passe derrière toute la rangée (téléphone : l'étiquette passe à la ligne, alignée). */
.t-unrow { position: relative; display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: 10px; padding-inline-start: 36px; }
.t-unrow::before { content: ""; position: absolute; inset-inline-start: 51px; top: 0; bottom: 0; border-inline-start: 1px dashed var(--muted); opacity: .6; }
.t-unrow > .ctl-past { flex: 0 1 auto; padding-inline-start: 0; }
.t-unrow > .ctl-past::before { display: none; }
.t-unrow > .t-past { flex: 0 1 auto; }
.t-unrow > .t-unas { position: relative; z-index: 1; margin-top: 6px; }
.list .t-unas { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid #e0a33a; background: linear-gradient(rgba(224, 163, 58, .12), rgba(224, 163, 58, .12)) var(--bg); color: #b5761a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; margin-bottom: 10px; transition: background .3s, color .3s, border-color .3s; }
.list .t-unas:not(.on) > i, .list .t-unas:not(.on) > span { animation: tUnasBlink 1.4s ease-in-out infinite; }   /* le contenu clignote, le fond reste plein (le fil ne se voit pas au travers) */
.list .t-unas i { width: 8px; height: 8px; border-radius: 50%; background: #e0a33a; flex: none; }
.list .t-unas svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.list .t-unas.on { background: #e0a33a; color: #fff; }
html:not([data-theme="light"]) .list .t-unas:not(.on):not(:hover) { color: #f0b85a; }   /* thème sombre : orange plus clair, lisible */
.list .t-unas.on i { background: #fff; }
@keyframes tUnasBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .list .t-unas > i, .list .t-unas > span { animation: none !important; } }
@media (hover: hover) { .list .t-unas:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .list .t-unas:hover > i, .list .t-unas:hover > span { animation: none; } .list .t-unas:hover i { background: var(--bg); } }

/* ---------- Réglages › Réservations du site › Suppléments (pricing.js xmMount, owner 2026-11-23) ---------- */
.xm-list { display: grid; gap: 10px; margin: 14px 0; }
.xm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.xm-row.is-off .xm-img, .xm-row.is-off .xm-main { opacity: .5; }
.xm-img { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.xm-img img { width: 100%; height: 100%; object-fit: contain; }
.xm-img svg { width: 26px; height: 26px; fill: none; stroke: #9a9a9a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xm-main { min-width: 0; }
.xm-main > b { display: block; overflow-wrap: anywhere; }
.xm-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.xm-main .xm-meta b { color: var(--gold); font-weight: 650; }
.xm-row .check.xm-on { margin: 0; font-size: 14px; align-items: center; }
.xm-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; }
.xm-acts .icon-btn { width: 34px; height: 34px; color: var(--text); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.xm-acts .icon-btn:disabled { opacity: .35; cursor: default; }
.xm-acts .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xm-acts .xm-del { color: var(--red); }
.xm-ask { margin-right: 4px; font-size: 14px; font-weight: 600; }
.xm-addbtn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xm-form .xm-ages[hidden] { display: none; }
.xm-form .two .f { margin-top: 0; }
.xm-form .two { margin-top: 12px; }
.xm-photo > span { display: block; }
.xm-form .xm-drop { margin: 6px 0 0; }
.xm-prev { flex: none; display: grid; place-items: center; }
.xm-prev img { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; }
.xm-form .xm-pdel { margin-top: 10px; }
.bk-seat-sub { font-size: 13px; }
@media (hover: hover) {
  .xm-acts .icon-btn:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .xm-acts .xm-del:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
}
@media (max-width: 720px) {
  .xm-row { grid-template-columns: 56px minmax(0, 1fr); }
  .xm-row .check.xm-on, .xm-acts { grid-column: 1 / -1; }
}

/* ---------- Santé de l'app › rapport de stockage (health.js, hlStorageOpen), owner 2026-11-23, design 4 « tableau détaillé » ---------- */
.hl-lim-btn { cursor: pointer; margin-inline: -10px; padding-inline: 10px; border-radius: 12px; transition: background-color .3s; }
.hl-lim-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .hl-lim-btn:hover { background: var(--panel-2); } }
.hl-chev { width: 15px; height: 15px; margin-inline-start: 4px; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .hl-chev { transform: scaleX(-1); }
.dialog.hs-dlg { width: min(940px, calc(100vw - 24px)); max-width: none; }
.hs-dlg > h2 { align-items: flex-start; }
.hs-dlg .hs-t { display: block; }
.hs-dlg .hs-sub { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.hs-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hs-total b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hs-total span { color: var(--muted); }
.hs-stack { display: flex; gap: 2px; height: 14px; margin-top: 12px; border-radius: 99px; overflow: hidden; }
.hs-stack i { display: block; height: 100%; min-width: 3px; }
.hs-wrap { overflow-x: auto; }
.hs-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; }
.hs-tbl th { padding: 10px 0 8px 14px; border-bottom: 1px solid var(--line); text-align: end; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.hs-tbl td { padding: 10px 0 10px 14px; text-align: end; white-space: nowrap; vertical-align: middle; }
.hs-tbl th:first-child, .hs-tbl td:first-child { text-align: start; padding-inline-start: 0; }
.hs-tbl td:first-child { white-space: normal; min-width: 150px; }
.hs-tbl tr.g td { font-weight: 700; border-top: 1px solid var(--line); }
.hs-tbl tbody tr.g:first-child td { border-top: 0; }
.hs-tbl tr.c td:first-child { padding-inline-start: 22px; color: var(--muted); }
.hs-sw { display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 3px; }
.hs-share { display: inline-block; width: 70px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; vertical-align: middle; }
.hs-share i { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.hs-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-chg.up { color: #9a5b06; } .hs-chg.down { color: var(--green, #1c7a44); }
html[data-theme="dark"] .hs-chg.up { color: #e6b052; }
.hs-chg.flat, .hs-chg.none { color: var(--muted); font-weight: 500; }
.hs-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; max-width: 72ch; }
.hs-free { list-style: none; margin: 0; padding: 0; }
.hs-free li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 0; }
.hs-free b { font-weight: 600; }
.hs-free p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
.hs-free span { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--green, #1c7a44); white-space: nowrap; }
.hs-server { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--panel-2); color: var(--muted); font-size: 13.5px; }
.hs-server b { color: var(--text); }

/* Rapport de stockage : graphique des 30 derniers jours, une barre par jour découpée par partie (design 2, owner 2026-11-23). */
.hs-graph { margin-top: 14px; }
.hs-chart { display: block; width: 100%; height: auto; overflow: visible; }
.hs-chart text { font-family: inherit; font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.hs-chart .hs-grid { stroke: var(--line); stroke-width: 1; }
.hs-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.hs-key span { display: inline-flex; align-items: center; gap: 6px; }
.hs-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.hs-graph + .hs-stack { margin-top: 22px; }

/* ---------- Réglages › Sauvegarde › Google Drive (gdrive.js), owner 2026-11-23 ---------- */
.gd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gd-logo { width: 34px; height: 30px; flex: none; }
.gd-head b { display: block; font-size: 16px; font-weight: 700; }
.gd-head small { display: block; color: var(--muted); font-size: 13px; }
.gd-head small.gd-ok { color: var(--green, #1f8a4c); font-weight: 600; }
.gd .gd-intro { margin: 0 0 14px; max-width: 70ch; }
.gd .gd-btns { margin: 0 0 14px; flex-wrap: wrap; }
.gd .gd-meta { margin: 0 0 14px; }
.gd-steps { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; max-width: 72ch; }
.gd-steps li::marker { color: var(--gold); font-weight: 700; }
.gd-uri { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--panel-2); }
.gd-uri code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.gd .f { margin-top: 14px; }
.gd .f + .gd-btns { margin-top: 14px; }

/* ---------- Après « Refuser » : pourquoi ? (owner, 2026-11-23, design 1 de design-lab/decline-feedback-4.html) ---------- */
.overlay.dfb { align-items: flex-end; background: rgba(0, 0, 0, 0); transition: background .25s; }
.overlay.dfb.in { background: rgba(0, 0, 0, .4); }
.dfb-sheet { width: 100%; max-width: 520px; background: var(--panel); color: var(--text); border-radius: 24px 24px 0 0; padding: 10px 20px 20px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-height: 100%; overflow-y: auto; }
.overlay.dfb.in .dfb-sheet { transform: none; }
.dfb-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.dfb-sheet h2 { font-size: 20px; margin: 0 0 4px; line-height: 1.25; }
.dfb-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.dfb-ride { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); margin-bottom: 16px; }
.dfb-tm { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dfb-rt { min-width: 0; font-size: 14px; font-weight: 700; }
.dfb-rt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.dfb-x { margin-inline-start: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--red, #c0392b); background: rgba(192, 57, 43, .1); border-radius: 99px; padding: 4px 10px; }
.dfb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dfb-chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.dfb-chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.dfb-note { display: block; width: 100%; resize: none; font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; caret-color: var(--gold); }
.dfb-note:focus { outline: none; border-color: var(--gold); }
.dfb-note::placeholder { color: var(--muted); }
.dfb-foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 16px; }
.dfb-skip { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 12px 8px; cursor: pointer; transition: color .3s; }
.dfb .btn.primary.dfb-send { width: 100%; min-height: 50px; border-radius: 99px; font-size: 15.5px; color: #fff; }
.dfb .btn.primary.dfb-send:disabled { opacity: .4; cursor: default; }
.dfb-ok { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 8px 20px; }
.dfb-ok[hidden] { display: none; }
.dfb-okc { width: 56px; height: 56px; border-radius: 50%; background: rgba(31, 138, 76, .12); display: grid; place-items: center; }
.dfb-okc svg { width: 28px; height: 28px; fill: none; stroke: var(--green, #1f8a4c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dfb-ok b { font-size: 19px; } .dfb-ok small { color: var(--muted); font-size: 14px; max-width: 32ch; line-height: 1.45; }
@media (min-width: 700px) {
  .overlay.dfb { align-items: center; }
  .dfb-sheet { border-radius: 24px; padding: 24px; transform: translateY(16px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .overlay.dfb.in .dfb-sheet { opacity: 1; }
  .dfb-grab { display: none; }
}

/* Proposition prise par un autre : court message (owner, 2026-11-23, design C de design-lab/offer-taken-3.html) */
html body .tcard.offer.oft { display: block; opacity: 1; padding: 18px 16px 16px; border: 0; border-radius: 18px; background: var(--panel-2); cursor: default; }
.oft-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; margin-bottom: 12px; }
.oft-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tcard.oft h4 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.oft-ride { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.oft-rule { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tcard.oft .of-tl { border-top: 1px solid var(--line); padding-top: 10px; }
.tcard.oft .btn.oft-ok { display: block; width: 100%; margin-top: 14px; min-height: 46px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 800; }
@media (hover: hover) {
  .dfb-chip:not(.on):hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .dfb-skip:hover { color: var(--text); }
  html .dfb .btn.primary.dfb-send:not(:disabled):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  html body .tcard.oft .btn.oft-ok:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
}
@media (prefers-reduced-motion: reduce) { .dfb-sheet, .overlay.dfb { transition: none; } }

/* ---------- Réglages › Sauvegarde › Google Drive (gdrive.js), owner 2026-11-23 ---------- */
.gd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gd-logo { width: 34px; height: 30px; flex: none; }
.gd-head b { display: block; font-size: 16px; font-weight: 700; }
.gd-head small { display: block; color: var(--muted); font-size: 13px; }
.gd-head small.gd-ok { color: var(--green, #1f8a4c); font-weight: 600; }
.gd .gd-intro { margin: 0 0 14px; max-width: 70ch; }
.gd .gd-btns { margin: 0 0 14px; flex-wrap: wrap; }
.gd .gd-meta { margin: 0 0 14px; }
.gd-steps { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; max-width: 72ch; }
.gd-steps li::marker { color: var(--gold); font-weight: 700; }
.gd-uri { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--panel-2); }
.gd-uri code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.gd .f { margin-top: 14px; }
.gd .f + .gd-btns { margin-top: 14px; }

/* Santé de l'app : graphique du stockage sur 30 jours en haut de la page, toute la largeur (owner, 2026-11-23). */
.hl-usage > h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hl-usage .hs-total { margin-top: 12px; }
.hl-more { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color .3s; }
@media (hover: hover) { .hl-more:hover { color: var(--text); } .hl-more:hover .hl-chev { stroke: var(--text); } }

/* ---------- Réglages › Journal › Refus (health.js, dcDraw), owner 2026-11-23 ---------- */
.dc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dc-f { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.dc-f span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; transition: color .3s; }
.dc-f.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.dc-f.on span { color: #fff; }
@media (hover: hover) { .dc-f:hover { background: var(--text); border-color: var(--text); color: var(--bg); } .dc-f:hover span { color: var(--bg); } }
.dc-list { display: flex; flex-direction: column; }
.dc-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; padding: 12px 10px; margin-inline: -10px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color .3s; }
@media (hover: hover) { .dc-row:hover { background: var(--panel-2); } }
.dc-row time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.dc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.dc-top b { font-weight: 600; }
.dc-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.dc-tag.cancelled, .dc-tag.late { background: color-mix(in srgb, var(--red, #d64545) 13%, transparent); color: var(--red, #d64545); }
.dc-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.dc-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.dc-why { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dc-why i { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--gold-soft, rgba(177,149,64,.13)); color: var(--text); font-style: normal; font-size: 12.5px; font-weight: 600; }
.dc-note { font-size: 13.5px; quotes: "«\00a0" "\00a0»"; }
html[lang="en"] .dc-note { quotes: "\201C" "\201D"; }
.dc-nofb { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .dc-row { grid-template-columns: minmax(0, 1fr); } .dc-row time { padding-top: 0; } }

/* Accueil chauffeur : bandeaux macaron aéroport et Monaco, avec « Ignorer » (owner, 2026-11-23) */
.hm-stk:not([hidden]) { display: grid; gap: 10px; }
.hm-stk .hm-apt { flex-wrap: wrap; row-gap: 10px; }
.hm-stk-acts { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: none; }
.hm-stk-ign { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 99px; padding: 8px 12px; cursor: pointer; transition: background-color .3s, color .3s; }
@media (max-width: 480px) { .hm-stk-acts { width: 100%; justify-content: flex-end; } }
@media (hover: hover) { .hm-stk-ign:hover { background: var(--text); color: var(--bg); } }

/* ---------- Réglages › Journal : recherche à droite des onglets Serveur | Refus (health.js, dcSearchMount), owner 2026-11-23 ---------- */
.dc-search { display: inline-flex; align-items: center; box-sizing: border-box; height: 48px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); transition: border-color .3s; }
.dc-search-b { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; flex: none; transition: background-color .3s, color .3s; }
.dc-search-b svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.dc-search input { width: 0; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; outline: none; transition: width .3s cubic-bezier(.16, 1, .3, 1), padding .3s; }
.dc-search input::-webkit-search-cancel-button { display: none; }
.dc-search.open, .dc-search.has, .dc-search:focus-within { border-color: var(--gold); }
.dc-search.open input, .dc-search.has input { width: 230px; padding-inline-end: 16px; }
@media (hover: hover) { .dc-search:not(.open):not(.has) .dc-search-b:hover { background: var(--text); color: var(--bg); } }
.dc-search.top { vertical-align: top; margin: 20px 0 4px 10px; }
.dc-search.in { display: none; }
@media (max-width: 999px) {
  .dc-search.top { display: none; }
  .dc-search.in { display: flex; width: 100%; margin-bottom: 14px; }
  .dc-search.in input { flex: 1; width: auto; padding-inline-end: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dc-search input { transition: none; } }

/* ---------- Réglages › Journal › Refus, design 3 « les raisons d'abord, puis par chauffeur » (health.js, dcDraw), owner 2026-11-23 ---------- */
.dc3-sec + .dc3-sec { margin-top: 28px; }
.dc3-sec > h3 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; }
.dc3-rz { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.dc3-rz i { display: block; height: 8px; border-radius: 99px; background: var(--gold); }
.dc3-rz i.none { background: color-mix(in srgb, var(--text) 18%, transparent); }
.dc3-rz span:last-child { text-align: end; font-weight: 700; }
.dc3-mute { color: var(--muted); }
.dc3-p { border-bottom: 1px solid var(--line); }
.dc3-p > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.dc3-p > summary::-webkit-details-marker { display: none; }
.dc3-who b { display: block; font-weight: 600; }
.dc3-who small { display: block; color: var(--muted); font-size: 12.5px; }
.dc3-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dc3-chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.dc3-p[open] .dc3-chev { transform: rotate(90deg); }
.dc3-p ul { list-style: none; margin: 0; padding: 0 0 8px 44px; }
.dc3-p li + li { border-top: 1px solid var(--line); }
.dc3-p li a { display: block; padding: 9px 8px; margin-inline: -8px; border-radius: 10px; color: var(--text); font-size: 13.5px; text-decoration: none; transition: background-color .3s; }
.dc3-p li b { font-weight: 700; }
.dc3-p li b.c { color: var(--red, #d64545); }
@media (hover: hover) { .dc3-p li a:hover { background: var(--panel-2); } }
.dc3-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 5px; }
.dc3-fb i { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--gold-soft, rgba(177,149,64,.13)); font-style: normal; font-size: 12.5px; font-weight: 600; }
@media (max-width: 560px) { .dc3-p ul { padding-inline-start: 0; } .dc3-rz { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 24px; } }
@media (prefers-reduced-motion: reduce) { .dc3-chev { transition: none; } }

/* Recherche du Journal : croix pour effacer, champ jamais teinté par le remplissage automatique du navigateur (owner, 2026-11-23). */
.dc-search-x { display: none; place-items: center; width: 30px; height: 30px; margin-inline-end: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--text); cursor: pointer; flex: none; transition: background-color .3s, color .3s; }
.dc-search-x svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dc-search.has .dc-search-x { display: grid; }
.dc-search.has input { padding-inline-end: 8px; }
@media (hover: hover) { .dc-search-x:hover { background: var(--text); color: var(--bg); } }
.dc-search.top:not(.open):not(.has) input { display: none; }
.dc-search input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--bg) inset; }
.dc-nomatch { padding: 4px 0 0; }

/* Journal › onglet Chauffeur : acceptations en vert ; l'onglet Chauffeur passe en premier dans la barre (owner, 2026-11-23). */
.dc-tag.accepted { background: color-mix(in srgb, var(--green, #1f8a4c) 13%, transparent); color: var(--green, #1f8a4c); }
.dc3-p li b.a { color: var(--green, #1f8a4c); }
.set-tabs [data-tab="secDeclined"] { order: -1; }

/* ---------- Onglet Véhicules : validation des véhicules de société (owner, 2026-11-23, design A ; vehrev.js) ---------- */
.vr-list { display: grid; gap: 18px; margin-top: 18px; }
.vr-veh { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--panel); }
.vr-veh.pending { border: 1.5px solid var(--gold); }
.vr-veh.rejected { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.vr-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.vr-h .grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vr-h .grow > b { font-size: 16px; }
.vr-g { display: grid; grid-template-columns: 1fr; gap: 16px; }
.vr-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.vr-kv dt { color: var(--muted); } .vr-kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.vr-doc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.vr-doc-h a { color: var(--gold); font-weight: 700; font-size: 13px; }
.vr-doc .dr-view { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.vr-doc .dr-view img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.vr-doc .dr-view iframe { display: block; width: 100%; height: 300px; border: 0; }
.vr-miss { margin: 0; color: var(--red); font-weight: 600; font-size: 13.5px; }
.vr-phs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.vr-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; }
.vr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vr-ph small { position: absolute; left: 8px; top: 6px; font-size: 11.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vr-ph.none { display: grid; place-items: center; text-align: center; padding: 8px; }
.vr-ph.none small { color: var(--muted); text-shadow: none; }
.vr-ph.none em { font-style: normal; font-size: 12px; color: var(--red); font-weight: 600; }
.vr-by { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.vr-veh .dr-act { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.vr-veh .dr-act .btn { min-width: 150px; }
.vr-veh .dr-act:empty { display: none; }
.vr-veh .dr-rej { margin-top: 12px; display: grid; gap: 8px; }
.mfg-chip.vr-wait { color: var(--gold); background: var(--gold-soft); }
@media (min-width: 760px) { .vr-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

/* Liste des transferts à côté de la fiche (ordinateur) : la ligne des filtres reste visible sous la recherche au lieu de
   disparaître derrière elle quand la liste se place sur la course du jour (owner, 2026-11-23 : « the filter row is hidden under search »). */
.tsplit-list > .list > .filters:first-child { position: sticky; top: var(--tl-split-top, 65px); z-index: 5; background: var(--bg); }
/* Les deux barres sont plus étroites que la colonne : leur fond se prolonge à droite, pour que les cartes ne dépassent plus à côté. */
.tsplit-list > .tsearch-wrap, .tsplit-list > .list > .filters:first-child { box-shadow: 260px 0 0 var(--bg); }
