/* ==========================================================================
 DZ Mobility — système visuel du module « courses »
 Direction : « Nuit de Luxembourg ». Encre bleu nuit, acier, un seul rouge
 de signal (celui du logo) pour l'action, un bleu ciel pour la sélection.
 Titres en Instrument Serif (élégance du chauffeur privé), interface en
 Instrument Sans, chiffres (prix, minutes, plaques) en Geist Mono.
 Autonome : ne dépend pas du Tailwind compilé d'Express (aucune régression).
 ========================================================================== */

@font-face { font-family: "DZ Sans"; src: url("/assets/fonts/dzm/instrument-sans-normal.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "DZ Serif"; src: url("/assets/fonts/dzm/instrument-serif-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DZ Serif"; src: url("/assets/fonts/dzm/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DZ Mono"; src: url("/assets/fonts/dzm/geist-mono-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }


:root {
  --dzm-night-950: oklch(0.16 0.045 266);
  --dzm-night-900: oklch(0.21 0.06 266);
  --dzm-night-800: oklch(0.27 0.07 265);
  --dzm-night-700: oklch(0.35 0.075 264);
  --dzm-steel-500: oklch(0.6 0.02 260);
  --dzm-steel-300: oklch(0.8 0.012 260);
  --dzm-steel-200: oklch(0.88 0.008 260);
  --dzm-steel-100: oklch(0.94 0.005 260);
  --dzm-paper:     oklch(0.985 0.004 250);
  --dzm-signal:    #E3141D;                 /* rouge du logo (Z) */
  --dzm-signal-hi: #F2333B;
  --dzm-signal-lo: oklch(0.95 0.035 27);
  --dzm-sky:       #137EDA;                 /* bleu du logo (D, carte du Luxembourg) */
  --dzm-sky-lo:    #E8F3FC;
  --dzm-card-blue: #86C5E8;                 /* dégradé de la carte de visite, côté bleu */
  --dzm-card-rose: #E98E93;                 /* dégradé de la carte de visite, côté rose */
  --dzm-card-bg:   radial-gradient(120% 140% at 0% 100%, color-mix(in oklch, var(--dzm-card-blue) 70%, transparent) 0%, transparent 52%), radial-gradient(110% 130% at 100% 0%, color-mix(in oklch, var(--dzm-card-rose) 60%, transparent) 0%, transparent 50%), #F6F7FB;
  --dzm-go:        #1FA855;                 /* vert WhatsApp de la carte */
  --dzm-go-lo:     oklch(0.95 0.04 155);
  --dzm-warn:      oklch(0.75 0.15 75);
  --dzm-warn-lo:   oklch(0.96 0.045 85);

  --dzm-font-ui: "DZ Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --dzm-font-display: "DZ Serif", "Iowan Old Style", Georgia, serif;
  --dzm-font-mono: "DZ Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --dzm-r-sm: 10px;
  --dzm-r-md: 14px;
  --dzm-r-lg: 22px;
  --dzm-r-pill: 999px;

  --dzm-s1: 4px; --dzm-s2: 8px; --dzm-s3: 12px; --dzm-s4: 16px; --dzm-s5: 24px; --dzm-s6: 32px; --dzm-s7: 48px; --dzm-s8: 72px;

  --dzm-ease: cubic-bezier(.2, .8, .2, 1);
  --dzm-ease-out: cubic-bezier(.16, 1, .3, 1);
  --dzm-t-fast: 140ms;
  --dzm-t: 240ms;
  --dzm-t-slow: 420ms;

  --dzm-shadow-1: 0 1px 2px oklch(0.2 0.05 265 / .06), 0 2px 8px oklch(0.2 0.05 265 / .05);
  --dzm-shadow-2: 0 2px 6px oklch(0.2 0.05 265 / .07), 0 12px 32px oklch(0.2 0.05 265 / .10);
  --dzm-shadow-3: 0 24px 64px oklch(0.16 0.05 265 / .28);
}

.dzm {
  color-scheme: light;
  --bg: var(--dzm-paper);
  --surface: oklch(1 0 0);
  --surface-2: var(--dzm-steel-100);
  --ink: var(--dzm-night-900);
  --ink-2: oklch(0.42 0.035 262);
  --ink-3: oklch(0.56 0.025 262);
  --line: var(--dzm-steel-200);
  --line-strong: var(--dzm-steel-300);
  --accent: var(--dzm-signal);
  --accent-ink: oklch(1 0 0);
  --select: var(--dzm-sky);
  --select-lo: var(--dzm-sky-lo);
  --focus: oklch(0.6 0.16 252 / .45);
}

.dzm-dark,
.dzm[data-theme="night"] {
  color-scheme: dark;
  --bg: var(--dzm-night-950);
  --surface: var(--dzm-night-900);
  --surface-2: var(--dzm-night-800);
  --ink: oklch(0.97 0.005 260);
  --ink-2: oklch(0.82 0.015 260);
  --ink-3: oklch(0.66 0.02 260);
  --line: oklch(0.32 0.05 264);
  --line-strong: oklch(0.42 0.05 264);
  --select: oklch(0.72 0.14 250);
  --select-lo: oklch(0.3 0.08 255);
  --focus: oklch(0.72 0.14 250 / .5);
}

.dzm { font-family: var(--dzm-font-ui); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 16px; line-height: 1.5; }
.dzm *, .dzm *::before, .dzm *::after { box-sizing: border-box; }
.dzm :where(h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend) { margin: 0; padding: 0; }
.dzm :where(ul, ol) { list-style: none; }
.dzm :where(button, input, select, textarea) { font: inherit; color: inherit; }
.dzm :where(button) { cursor: pointer; background: none; border: 0; }
.dzm :where(a) { color: inherit; }
.dzm :where(img, svg) { display: block; max-width: 100%; }
.dzm :where(fieldset) { border: 0; min-width: 0; }
.dzm :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.dzm [hidden] { display: none !important; }
.dzm [x-cloak] { display: none !important; }
.dzm .num, .dzm .mono { font-family: var(--dzm-font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dzm .display { font-family: var(--dzm-font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; }
.dzm .display em { font-style: italic; color: var(--accent); }
.dzm .eyebrow { font-family: var(--dzm-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dzm .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dzm .muted { color: var(--ink-3); }
.dzm .balance { text-wrap: balance; }
.dzm .pretty { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .dzm *, .dzm *::before, .dzm *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- Boutons ---------- */
.dzm .btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 20px; border-radius: var(--dzm-r-pill); font-weight: 600; font-size: 15px; letter-spacing: .005em; text-decoration: none; border: 1px solid transparent; transition: transform var(--dzm-t-fast) var(--dzm-ease), background-color var(--dzm-t) var(--dzm-ease), border-color var(--dzm-t) var(--dzm-ease), box-shadow var(--dzm-t) var(--dzm-ease), opacity var(--dzm-t); -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap; }
.dzm .btn:active { transform: translateY(1px) scale(.99); }
.dzm .btn[disabled], .dzm .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.dzm .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px oklch(0.58 0.215 27 / .28); }
.dzm .btn-primary:hover { background: var(--dzm-signal-hi); }
.dzm .btn-ink { background: var(--ink); color: var(--bg); }
.dzm .btn-ink:hover { background: color-mix(in oklch, var(--ink) 88%, var(--select)); }
.dzm .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.dzm .btn-ghost:hover { border-color: var(--ink-2); background: var(--surface-2); }
.dzm .btn-soft { background: var(--surface-2); color: var(--ink); }
.dzm .btn-soft:hover { background: color-mix(in oklch, var(--surface-2) 80%, var(--ink) 8%); }
.dzm .btn-go { background: var(--dzm-go); color: oklch(0.15 0.03 155); }
.dzm .btn-danger { background: transparent; color: var(--dzm-signal); border-color: color-mix(in oklch, var(--dzm-signal) 40%, transparent); }
.dzm .btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; }
.dzm .btn-lg { --h: 58px; padding: 0 26px; font-size: 16px; }
.dzm .btn-block { width: 100%; }
.dzm .btn .arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -10px; border-radius: 50%; background: oklch(1 0 0 / .18); transition: transform var(--dzm-t) var(--dzm-ease-out); }
.dzm .btn:hover .arrow { transform: translateX(3px); }
.dzm .icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dzm .icon-sm { width: 16px; height: 16px; }
.dzm .icon-lg { width: 26px; height: 26px; }

/* ---------- Champs ---------- */
.dzm .field { display: grid; gap: 6px; }
.dzm .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dzm .hint { font-size: 13px; color: var(--ink-3); }
.dzm .error { font-size: 13px; font-weight: 600; color: var(--dzm-signal); }
.dzm .input, .dzm .select, .dzm .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--dzm-r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color var(--dzm-t-fast), box-shadow var(--dzm-t-fast), background var(--dzm-t-fast); }
.dzm .textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.dzm .input::placeholder, .dzm .textarea::placeholder { color: var(--ink-3); }
.dzm .input:focus, .dzm .select:focus, .dzm .textarea:focus { outline: none; border-color: var(--select); box-shadow: 0 0 0 4px var(--focus); }
.dzm .input:user-invalid, .dzm .textarea:user-invalid { border-color: var(--dzm-signal); }
.dzm .input[aria-invalid="true"] { border-color: var(--dzm-signal); }
.dzm .select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23596079' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---------- Puces sélectionnables ---------- */
.dzm .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dzm .chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--dzm-r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all var(--dzm-t-fast) var(--dzm-ease); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dzm .chip:hover { border-color: var(--ink-3); color: var(--ink); }
.dzm .chip input { position: absolute; opacity: 0; pointer-events: none; }
.dzm .chip:has(input:checked), .dzm .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.dzm .chip:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--focus); }

/* ---------- Contrôle segmenté ---------- */
.dzm .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: var(--dzm-r-pill); background: var(--surface-2); }
.dzm .seg label { position: relative; display: grid; place-items: center; min-height: 42px; padding: 0 12px; border-radius: var(--dzm-r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all var(--dzm-t) var(--dzm-ease); text-align: center; line-height: 1.2; }
.dzm .seg input { position: absolute; opacity: 0; pointer-events: none; }
.dzm .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--dzm-shadow-1); }
.dzm .seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus); }

/* ---------- Compteur +/- ---------- */
.dzm .stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: var(--dzm-r-md); background: var(--surface); }
.dzm .stepper .t { display: grid; line-height: 1.25; }
.dzm .stepper .t b { font-weight: 600; font-size: 15px; }
.dzm .stepper .t span { font-size: 12.5px; color: var(--ink-3); }
.dzm .stepper .ctrl { display: flex; align-items: center; gap: 4px; }
.dzm .stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all var(--dzm-t-fast); }
.dzm .stepper button:hover:not([disabled]) { border-color: var(--ink); }
.dzm .stepper button[disabled] { opacity: .35; cursor: default; }
.dzm .stepper output { min-width: 34px; text-align: center; font-family: var(--dzm-font-mono); font-size: 18px; font-weight: 600; }

/* ---------- Cartes ---------- */
.dzm .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--dzm-r-lg); }
.dzm .card-pad { padding: var(--dzm-s5); }
.dzm .card-elev { box-shadow: var(--dzm-shadow-2); border-color: transparent; }
.dzm .divider { height: 1px; background: var(--line); border: 0; margin: var(--dzm-s4) 0; }

/* ---------- Choix de service / véhicule (tuiles) ---------- */
.dzm .tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.dzm .tile { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 16px; border-radius: var(--dzm-r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color var(--dzm-t-fast), box-shadow var(--dzm-t), transform var(--dzm-t-fast); -webkit-tap-highlight-color: transparent; }
.dzm .tile:hover { border-color: var(--line-strong); box-shadow: var(--dzm-shadow-1); }
.dzm .tile input { position: absolute; opacity: 0; pointer-events: none; }
.dzm .tile .ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: all var(--dzm-t); }
.dzm .tile b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.dzm .tile span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.dzm .tile .tag { position: absolute; top: 12px; right: 12px; font-family: var(--dzm-font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dzm .tile:has(.tag) b { padding-right: 64px; }
@media (max-width: 639px) {
  .dzm .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dzm .tile { grid-template-columns: 1fr; gap: 10px; padding: 14px 12px 12px; align-content: start; }
  .dzm .tile .ic { grid-row: auto; width: 38px; height: 38px; }
  .dzm .tile > span:not(.ic) { display: none; }
  .dzm .tile b { font-size: 14px; padding-right: 0 !important; }
  .dzm .tile .tag { top: 14px; right: 10px; font-size: 9.5px; }
}
.dzm .chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dzm .chips.scroll::-webkit-scrollbar { display: none; }
.dzm .chips.scroll .chip { flex: none; scroll-snap-align: start; }
@media (min-width: 720px) { .dzm .chips.scroll { margin: 0 -32px; padding: 2px 32px 6px; } }
.dzm .tile:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--dzm-shadow-1); }
.dzm .tile:has(input:checked) .ic { background: var(--ink); color: var(--bg); }
.dzm .tile:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--focus); }

.dzm .vehicle { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; border-radius: var(--dzm-r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; transition: all var(--dzm-t-fast); }
.dzm .vehicle input { position: absolute; opacity: 0; pointer-events: none; }
.dzm .vehicle b { font-weight: 600; font-size: 15.5px; }
.dzm .vehicle .meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.dzm .vehicle .price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--dzm-font-mono); font-weight: 600; font-size: 17px; }
.dzm .vehicle:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dzm .vehicle.is-off { opacity: .45; cursor: not-allowed; }

/* ---------- Bascules ---------- */
.dzm .switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--dzm-r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.dzm .switch .t { display: grid; line-height: 1.3; }
.dzm .switch .t b { font-weight: 600; font-size: 15px; }
.dzm .switch .t span { font-size: 13px; color: var(--ink-3); }
.dzm .switch input { appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin: 0; background-image: none !important; box-shadow: none; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background var(--dzm-t) var(--dzm-ease); cursor: pointer; }
.dzm .switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px oklch(0 0 0 / .25); transition: transform var(--dzm-t) var(--dzm-ease-out); }
.dzm .switch input:checked { background: var(--dzm-go); }
.dzm .switch input:checked::after { transform: translateX(20px); }
.dzm .switch input:focus-visible { box-shadow: 0 0 0 4px var(--focus); }

/* ---------- Pastilles d'état ---------- */
.dzm .pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.dzm .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.dzm .pill[data-tone="amber"]   { background: oklch(0.95 0.05 85); color: oklch(0.48 0.11 65); }
.dzm .pill[data-tone="sky"]     { background: oklch(0.95 0.03 240); color: oklch(0.45 0.13 245); }
.dzm .pill[data-tone="violet"]  { background: oklch(0.95 0.035 295); color: oklch(0.45 0.15 295); }
.dzm .pill[data-tone="red"]     { background: var(--dzm-signal-lo); color: oklch(0.5 0.19 27); }
.dzm .pill[data-tone="blue"]    { background: oklch(0.94 0.04 255); color: oklch(0.42 0.16 258); }
.dzm .pill[data-tone="indigo"]  { background: oklch(0.94 0.04 270); color: oklch(0.42 0.16 272); }
.dzm .pill[data-tone="teal"]    { background: oklch(0.95 0.04 190); color: oklch(0.45 0.09 195); }
.dzm .pill[data-tone="emerald"] { background: oklch(0.95 0.05 160); color: oklch(0.45 0.11 160); }
.dzm .pill[data-tone="green"]   { background: var(--dzm-go-lo); color: oklch(0.42 0.11 155); }
.dzm .pill[data-tone="slate"]   { background: var(--dzm-steel-100); color: oklch(0.45 0.02 260); }
.dzm .pill[data-tone="rose"]    { background: oklch(0.95 0.035 10); color: oklch(0.48 0.16 10); }
.dzm .pill.is-live::before { animation: dzm-pulse 1.6s var(--dzm-ease) infinite; }
.dzm-dark .pill, .dzm[data-theme="night"] .pill { background: oklch(0.3 0.05 264); color: var(--ink); }

/* ---------- Alertes ---------- */
.dzm .notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--dzm-r-md); background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.dzm .notice.is-warn { background: var(--dzm-warn-lo); color: oklch(0.42 0.09 65); }
.dzm .notice.is-error { background: var(--dzm-signal-lo); color: oklch(0.45 0.17 27); }
.dzm .notice.is-ok { background: var(--dzm-go-lo); color: oklch(0.4 0.1 155); }

/* ---------- Tableaux ---------- */
.dzm .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--dzm-r-lg); background: var(--surface); }
.dzm table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dzm .table th { text-align: left; font-family: var(--dzm-font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; }
.dzm .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dzm .table tr:last-child td { border-bottom: 0; }
.dzm .table tbody tr { transition: background var(--dzm-t-fast); }
.dzm .table tbody tr:hover { background: color-mix(in oklch, var(--surface-2) 60%, transparent); }
.dzm .table a.row-link { text-decoration: none; font-weight: 600; }
.dzm .table a.row-link:hover { color: var(--select); }

/* ---------- Carte (Leaflet) ---------- */
.dzm .map { position: relative; width: 100%; height: 100%; min-height: 260px; border-radius: var(--dzm-r-lg); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.dzm .map .leaflet-container { width: 100%; height: 100%; font-family: var(--dzm-font-ui); background: var(--surface-2); }
.dzm .pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 16px oklch(0.2 0.05 265 / .35); border: 2px solid #fff; }
.dzm .pin span { transform: rotate(45deg); color: #fff; font-family: var(--dzm-font-mono); font-size: 12px; font-weight: 600; }
.dzm .pin.a { background: var(--dzm-night-900); }
.dzm .pin.b { background: var(--dzm-signal); }
.dzm .car-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--dzm-sky); border: 3px solid #fff; box-shadow: 0 0 0 6px oklch(0.6 0.16 252 / .22), 0 4px 10px oklch(0.2 0.05 265 / .35); }
.dzm .car-dot.is-busy { background: var(--dzm-warn); box-shadow: 0 0 0 6px oklch(0.75 0.15 75 / .25), 0 4px 10px oklch(0.2 0.05 265 / .35); }
.dzm .car-dot.is-off { background: var(--dzm-steel-500); box-shadow: 0 2px 6px oklch(0.2 0.05 265 / .3); }
.dzm .ride-dot { width: 16px; height: 16px; border-radius: 4px; background: var(--dzm-signal); border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 3px 8px oklch(0.2 0.05 265 / .35); }

/* ---------- Feuille du bas (mobile) / dialogue ---------- */
.dzm dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: min(560px, 100%); max-height: 92dvh; border-radius: var(--dzm-r-lg) var(--dzm-r-lg) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--dzm-shadow-3); opacity: 1; transform: translateY(0); transition: transform var(--dzm-t-slow) var(--dzm-ease-out), opacity var(--dzm-t), overlay var(--dzm-t) allow-discrete, display var(--dzm-t) allow-discrete; }
.dzm dialog.sheet::backdrop { background: oklch(0.16 0.045 266 / .55); backdrop-filter: blur(2px); }
@starting-style { .dzm dialog.sheet[open] { opacity: 0; transform: translateY(40px); } }
@media (min-width: 720px) { .dzm dialog.sheet { margin: auto; border-radius: var(--dzm-r-lg); } }
.dzm .sheet-body { padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 92dvh; }

/* ---------- Chronologie ---------- */
.dzm .timeline { display: grid; gap: 0; }
.dzm .timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; }
.dzm .timeline li::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: -2px; width: 2px; background: var(--line); }
.dzm .timeline li:last-child::before { display: none; }
.dzm .timeline .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; }
.dzm .timeline li.is-done .dot { background: var(--ink); border-color: var(--ink); }
.dzm .timeline li.is-done .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); }
.dzm .timeline li.is-now .dot { border-color: var(--accent); box-shadow: 0 0 0 5px oklch(0.58 0.215 27 / .15); }
.dzm .timeline li.is-now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dzm-pulse 1.6s infinite; }
.dzm .timeline b { display: block; font-weight: 600; font-size: 14.5px; }
.dzm .timeline span { font-size: 13px; color: var(--ink-3); }

/* ---------- KPI ---------- */
.dzm .kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dzm .kpi { padding: 16px 18px; border-radius: var(--dzm-r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.dzm .kpi .v { font-family: var(--dzm-font-mono); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dzm .kpi .l { font-size: 13px; color: var(--ink-3); }
.dzm .kpi.is-alert { border-color: color-mix(in oklch, var(--dzm-signal) 35%, var(--line)); }
.dzm .kpi.is-alert .v { color: var(--dzm-signal); }

/* ---------- Toast ---------- */
.dzm .toast { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); min-width: min(92vw, 320px); max-width: 92vw; padding: 14px 18px; border-radius: var(--dzm-r-md); background: var(--dzm-night-900); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--dzm-shadow-3); }

@keyframes dzm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes dzm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dzm-ring { 0% { box-shadow: 0 0 0 0 oklch(0.58 0.215 27 / .55); } 100% { box-shadow: 0 0 0 26px oklch(0.58 0.215 27 / 0); } }
@keyframes dzm-dash { to { stroke-dashoffset: -400; } }

/* ==========================================================================
 PAGES
 ========================================================================== */
/* ---------- Réservation publique ---------- */
body.dzm-public { margin: 0; background: var(--dzm-paper); min-height: 100dvh; }
.dzm-public .topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right)); background: color-mix(in oklch, var(--dzm-paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dzm-t); }
.dzm-public .topbar.is-scrolled { border-bottom-color: var(--line); }
.dzm-public .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dzm-public .brand img { height: 40px; width: auto; }
.dzm-public .brand .wm { display: grid; line-height: 1; }
.dzm-public .brand .wm b { font-weight: 700; font-stretch: 85%; font-size: 15px; letter-spacing: .02em; }
.dzm-public .brand .wm span { font-family: var(--dzm-font-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--ink-3); margin-top: 3px; }
.dzm-public .top-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 520px) {
  .dzm-public .brand .wm { display: none; }
  .dzm-public .top-actions .num { display: none; }
  .dzm-public .top-actions .btn-ghost { width: 38px; padding: 0; }
  .dzm-public .hero-inner { gap: 14px; padding-bottom: 96px; }
  .dzm-public .hero .facts { font-size: 11px; }
}
.dzm-public .lang { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.dzm-public .lang a { min-width: 34px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 99px; font-family: var(--dzm-font-mono); font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--ink-3); }
.dzm-public .lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--dzm-shadow-1); }

.dzm-public .hero { position: relative; overflow: hidden; color: var(--dzm-night-900); background: var(--dzm-card-bg); border-bottom: 1px solid oklch(0.9 0.01 260); }
.dzm-public .hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px clamp(92px, 12vw, 140px); display: grid; gap: 18px; }
.dzm-public .hero .slogan { font-family: var(--dzm-font-ui); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--dzm-signal); }
.dzm-public .hero h1 { font-size: clamp(40px, 8.6vw, 86px); max-width: 15ch; color: var(--dzm-night-900); }
.dzm-public .hero h1 em { color: var(--dzm-sky); }
.dzm-public .hero p.lead { max-width: 54ch; font-size: clamp(16px, 2.2vw, 19px); color: oklch(0.38 0.03 262); }
.dzm-public .hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-family: var(--dzm-font-mono); font-size: 12px; letter-spacing: .06em; color: oklch(0.42 0.03 262); }
.dzm-public .hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.dzm-public .hero .facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dzm-signal); }
.dzm-public .hero .contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dzm-public .hero .contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: oklch(1 0 0 / .78); border: 1px solid oklch(1 0 0 / .9); box-shadow: var(--dzm-shadow-1); text-decoration: none; font-weight: 700; color: var(--dzm-night-900); backdrop-filter: blur(6px); transition: transform var(--dzm-t-fast) var(--dzm-ease), box-shadow var(--dzm-t); }
.dzm-public .hero .contact a:hover { transform: translateY(-1px); box-shadow: var(--dzm-shadow-2); }
.dzm-public .hero .contact a.wa { color: var(--dzm-go); }
.dzm-public .hero .contact .num { font-size: 16px; letter-spacing: .01em; }
.dzm-public .hero .hero-logo { display: none; }
@media (min-width: 1100px) { .dzm-public .hero .hero-logo { display: block; position: absolute; z-index: 1; right: max(24px, calc((100vw - 1180px) / 2)); top: 50%; width: 430px; height: auto; transform: translateY(-58%); filter: drop-shadow(0 30px 40px oklch(0.45 0.1 255 / .18)); animation: dzm-float 9s var(--dzm-ease) infinite; } }
@keyframes dzm-float { 0%, 100% { transform: translateY(-58%); } 50% { transform: translateY(-61%); } }
.dzm-public .hero svg.route { position: absolute; inset: auto -10% -6% auto; width: min(900px, 120%); height: auto; opacity: .7; pointer-events: none; }
.dzm-public .hero svg.route path.dash { stroke-dasharray: 2 14; animation: dzm-dash 18s linear infinite; }

.dzm-public .booking { position: relative; z-index: 2; max-width: 1180px; margin: -76px auto 0; padding: 0 12px 120px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .dzm-public .booking { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; padding-bottom: 64px; } }
.dzm-public .panel { background: var(--surface); border-radius: var(--dzm-r-lg); box-shadow: var(--dzm-shadow-2); overflow: clip; }
.dzm-public .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px 18px 0; }
.dzm-public .steps button { display: grid; gap: 8px; text-align: left; padding: 0 0 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.dzm-public .steps button::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); transition: background var(--dzm-t) var(--dzm-ease); }
.dzm-public .steps button.is-done::before { background: var(--ink); }
.dzm-public .steps button.is-now::before { background: var(--accent); }
.dzm-public .steps button.is-now { color: var(--ink); }
.dzm-public .steps button span { display: none; }
@media (min-width: 640px) { .dzm-public .steps button span { display: inline; } }
.dzm-public .step { padding: 20px 18px 26px; display: grid; gap: 22px; animation: dzm-rise var(--dzm-t-slow) var(--dzm-ease-out); }
@media (min-width: 720px) { .dzm-public .step { padding: 26px 32px 34px; } .dzm-public .steps { padding: 20px 32px 0; } }
.dzm-public .step-head { display: grid; gap: 6px; }
.dzm-public .step-head h2 { font-size: clamp(28px, 4.4vw, 38px); }
.dzm-public .step-head p { color: var(--ink-3); font-size: 15px; }
.dzm-public .group { display: grid; gap: 12px; }
.dzm-public .group > .label { font-size: 14px; color: var(--ink); }
.dzm-public .grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.dzm-public .step, .dzm-public .group, .dzm-public .field { grid-template-columns: minmax(0, 1fr); }
.dzm-public .nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 4px; }
.dzm-public .nav .btn-ghost { flex: none; }
@media (max-width: 520px) {
  .dzm-public .nav .btn-primary { flex: 1 1 0; min-width: 0; padding: 0 16px; }
  .dzm-public .nav .btn-lg { --h: 54px; }
}

.dzm-public .route-box { position: relative; display: grid; gap: 10px; }
.dzm-public .route-box::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 44px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 9px); }
.dzm-public .addr { position: relative; }
.dzm-public .addr .mark { position: absolute; left: 14px; top: 17px; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--ink); background: var(--surface); z-index: 1; }
.dzm-public .addr.b .mark { border-radius: 4px; border-color: var(--accent); }
.dzm-public .addr .input { padding-left: 44px; padding-right: 44px; }
.dzm-public .addr .clear { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.dzm-public .addr .clear:hover { background: var(--surface-2); color: var(--ink); }
.dzm-public .suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--dzm-r-md); box-shadow: var(--dzm-shadow-2); max-height: 320px; overflow-y: auto; padding: 6px; }
.dzm-public .suggest button { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; font-size: 14.5px; line-height: 1.35; }
.dzm-public .suggest button[aria-selected="true"], .dzm-public .suggest button:hover { background: var(--surface-2); }
.dzm-public .suggest .icon { margin-top: 2px; color: var(--ink-3); }

.dzm-public .summary { position: sticky; top: 76px; display: grid; gap: 0; }
.dzm-public .summary .map { border-radius: var(--dzm-r-lg) var(--dzm-r-lg) 0 0; height: 220px; min-height: 0; }
.dzm-public .summary .body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.dzm-public .price-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dzm-public .price-big .v { font-family: var(--dzm-font-mono); font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.dzm-public .price-big .v.is-quote { font-family: var(--dzm-font-display); font-style: italic; font-size: 30px; font-weight: 400; }
.dzm-public .facts-list { display: grid; gap: 8px; font-size: 14px; }
.dzm-public .facts-list div { display: flex; justify-content: space-between; gap: 12px; }
.dzm-public .facts-list dt { color: var(--ink-3); }
.dzm-public .facts-list dd { margin: 0; text-align: right; font-weight: 500; }

.dzm-public .mobilebar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in oklch, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.dzm-public .mobilebar .p { display: grid; line-height: 1.15; min-width: 0; }
.dzm-public .mobilebar .p small { font-size: 12px; color: var(--ink-3); }
.dzm-public .mobilebar .p b { font-family: var(--dzm-font-mono); font-size: 20px; }
.dzm-public .mobilebar .btn { margin-left: auto; }
@media (min-width: 1000px) { .dzm-public .mobilebar { display: none; } }

.dzm-public .services-strip { max-width: 1180px; margin: 0 auto; padding: 0 16px 72px; display: grid; gap: 28px; }
.dzm-public .services-strip h2 { font-size: clamp(30px, 5vw, 46px); max-width: 18ch; }
.dzm-public .promises { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--dzm-r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.dzm-public .promises > div { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.dzm-public .promises b { font-size: 16px; }
.dzm-public .promises p { color: var(--ink-3); font-size: 14.5px; }
.dzm-public .promises .n { font-family: var(--dzm-font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.dzm-public footer.foot { border-top: 1px solid var(--line); padding: 28px 16px calc(100px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--ink-3); }
.dzm-public footer.foot .in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.dzm-public footer.foot a { text-decoration: none; }
.dzm-public footer.foot a:hover { color: var(--ink); }
@media (min-width: 1000px) { .dzm-public footer.foot { padding-bottom: 28px; } }

.dzm-public .done { max-width: 640px; margin: 0 auto; padding: 24px 16px 80px; display: grid; gap: 18px; }

/* ---------- Suivi de course ---------- */
.dzm-track { display: grid; min-height: 100dvh; grid-template-rows: auto 1fr; }
.dzm-track .track-map { position: relative; height: 46dvh; min-height: 280px; }
.dzm-track .track-map .map { border-radius: 0; height: 100%; }
.dzm-track .track-sheet { position: relative; margin-top: -26px; z-index: 5; background: var(--surface); border-radius: var(--dzm-r-lg) var(--dzm-r-lg) 0 0; box-shadow: 0 -12px 40px oklch(0.2 0.05 265 / .12); padding: 10px 18px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 18px; align-content: start; }
.dzm-track .grabber { width: 42px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: 0 auto 4px; }
.dzm-track .eta { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dzm-track .eta .big { font-family: var(--dzm-font-display); font-size: clamp(34px, 9vw, 48px); line-height: 1; }
.dzm-track .driver { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--dzm-r-md); background: var(--surface-2); }
.dzm-track .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--dzm-night-900); color: #fff; font-family: var(--dzm-font-display); font-size: 24px; overflow: hidden; }
.dzm-track .plate { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1.5px solid var(--ink); font-family: var(--dzm-font-mono); font-weight: 600; font-size: 13px; letter-spacing: .06em; background: oklch(0.98 0.06 100); color: var(--dzm-night-900); }
@media (min-width: 900px) {
  .dzm-track { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) 440px; }
  .dzm-track .track-map { height: 100dvh; position: sticky; top: 0; }
  .dzm-track .track-sheet { margin-top: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); min-height: 100dvh; padding-top: 24px; }
  .dzm-track .grabber { display: none; }
}
.dzm-track .stars { display: flex; gap: 6px; }
.dzm-track .stars button { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); transition: all var(--dzm-t-fast); }
.dzm-track .stars button.is-on { background: oklch(0.9 0.12 85); color: oklch(0.45 0.12 70); }

/* ---------- Cockpit chauffeur (PWA, nuit) ---------- */
.dzm-cockpit { display: grid; gap: 14px; align-content: start; padding: 14px 14px calc(110px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; background: var(--bg); color: var(--ink); min-height: calc(100dvh - 140px); border-radius: var(--dzm-r-lg); }
.dzm-cockpit .online { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: var(--dzm-r-lg); background: var(--surface); border: 1px solid var(--line); }
.dzm-cockpit .online { background: var(--dzm-card-bg) !important; border-color: oklch(0.9 0.01 260); }
.dzm-cockpit .online.is-on { border-color: color-mix(in oklch, var(--dzm-go) 55%, var(--line)); box-shadow: 0 0 0 4px oklch(0.64 0.15 155 / .12); }
.dzm-cockpit .online .t b { display: block; font-size: 18px; font-weight: 700; }
.dzm-cockpit .online .t span { font-size: 13.5px; color: var(--ink-3); }
.dzm-cockpit .bigswitch { appearance: none; -webkit-appearance: none; border: 0; padding: 0; background-image: none !important; box-shadow: none; margin: 0; width: 78px; height: 44px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background var(--dzm-t); flex: none; }
.dzm-cockpit .bigswitch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: #fff; transition: transform var(--dzm-t) var(--dzm-ease-out); box-shadow: 0 2px 6px oklch(0 0 0 / .3); }
.dzm-cockpit .bigswitch:checked { background: var(--dzm-go); }
.dzm-cockpit .bigswitch:checked::after { transform: translateX(34px); }
.dzm-cockpit .status-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dzm-cockpit .offer { position: relative; padding: 20px; border-radius: var(--dzm-r-lg); color: var(--dzm-night-900); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--dzm-sky), var(--dzm-card-rose) 60%, var(--dzm-signal)) border-box; border: 2px solid transparent; box-shadow: 0 18px 44px oklch(0.45 0.12 255 / .18); display: grid; gap: 16px; animation: dzm-rise var(--dzm-t-slow) var(--dzm-ease-out); }
.dzm-cockpit .offer .cdown { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; }
.dzm-cockpit .offer .cdown circle { fill: none; stroke-width: 5; }
.dzm-cockpit .offer .cdown .bg { stroke: var(--dzm-steel-200); }
.dzm-cockpit .offer .cdown .fg { stroke: var(--dzm-signal); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s linear; }
.dzm-cockpit .offer .cdown text { fill: var(--dzm-night-900); font-family: var(--dzm-font-mono); font-size: 18px; font-weight: 600; }
.dzm-cockpit .offer .eta { font-family: var(--dzm-font-display); font-size: 40px; line-height: 1; }
.dzm-cockpit .legs { display: grid; gap: 10px; }
.dzm-cockpit .leg { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.35; }
.dzm-cockpit .leg i { display: block; flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 3px solid var(--dzm-sky); }
.dzm-cockpit .leg.b i { border-radius: 3px; border-color: var(--dzm-signal); }
.dzm-cockpit .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--dzm-font-mono); font-size: 13px; color: var(--ink-2); }
.dzm-cockpit .actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.dzm-cockpit .actions .btn { --h: 60px; font-size: 17px; }
.dzm-cockpit .btn-accept { animation: dzm-ring 1.6s var(--dzm-ease) infinite; }
.dzm-cockpit .ride { padding: 18px; border-radius: var(--dzm-r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.dzm-cockpit .ride .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dzm-cockpit .ride .who { display: grid; gap: 2px; }
.dzm-cockpit .ride .who b { font-size: 19px; }
.dzm-cockpit .tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dzm-cockpit .tools a, .dzm-cockpit .tools button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--dzm-r-md); background: var(--surface-2); font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink); }
.dzm-cockpit .next-step .btn { --h: 64px; font-size: 18px; width: 100%; }
.dzm-cockpit .prefs { display: flex; flex-wrap: wrap; gap: 6px; }
.dzm-cockpit .prefs span { padding: 6px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; }
.dzm-cockpit .upcoming { display: grid; gap: 8px; }
.dzm-cockpit .upcoming a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--dzm-r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.dzm-cockpit .empty { text-align: center; padding: 34px 18px; border-radius: var(--dzm-r-lg); border: 1px dashed var(--line-strong); color: var(--ink-3); display: grid; gap: 8px; justify-items: center; }
.dzm-cockpit .radar { width: 96px; height: 96px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.dzm-cockpit .radar::before, .dzm-cockpit .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--dzm-go); opacity: 0; animation: dzm-radar 2.4s var(--dzm-ease) infinite; }
.dzm-cockpit .radar::after { animation-delay: 1.2s; }
@keyframes dzm-radar { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- Exploitation (admin / dispatch) ---------- */
.dzm-admin { display: grid; gap: 18px; }
.dzm-admin .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dzm-admin .page-head h1 { font-family: var(--dzm-font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; }
.dzm-admin .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dzm-admin .filters .input, .dzm-admin .filters .select { min-height: 42px; width: auto; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.dzm-admin .dispatch { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .dzm-admin .dispatch { grid-template-columns: 360px minmax(0, 1fr) 320px; height: calc(100dvh - 180px); min-height: 560px; } .dzm-admin .dispatch > * { min-height: 0; } }
.dzm-admin .col { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.dzm-admin .col-scroll { overflow-y: auto; display: grid; gap: 8px; align-content: start; padding-right: 2px; }
.dzm-admin .qcard { display: grid; gap: 8px; padding: 14px; border-radius: var(--dzm-r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color var(--dzm-t-fast), box-shadow var(--dzm-t); }
.dzm-admin .qcard:hover { border-color: var(--line-strong); box-shadow: var(--dzm-shadow-1); }
.dzm-admin .qcard.is-alert { border-color: color-mix(in oklch, var(--dzm-signal) 45%, var(--line)); }
.dzm-admin .qcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dzm-admin .qcard .addr { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.dzm-admin .drv { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--dzm-r-md); background: var(--surface); border: 1px solid var(--line); }
.dzm-admin .drv i { width: 10px; height: 10px; border-radius: 50%; background: var(--dzm-steel-500); }
.dzm-admin .drv i.on { background: var(--dzm-go); box-shadow: 0 0 0 4px oklch(0.64 0.15 155 / .18); }
.dzm-admin .drv i.busy { background: var(--dzm-warn); }
.dzm-admin .detail { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .dzm-admin .detail { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.dzm-admin dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 14px; }
.dzm-admin dl.kv dt { color: var(--ink-3); }
.dzm-admin dl.kv dd { margin: 0; font-weight: 500; }
.dzm-admin .section-title { font-family: var(--dzm-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }

.dzm .stack { display: grid; gap: var(--gap, 12px); }
.dzm .row { display: flex; align-items: center; gap: var(--gap, 10px); flex-wrap: wrap; }
.dzm .between { justify-content: space-between; }
.dzm .grow { flex: 1 1 auto; min-width: 0; }
.dzm .center { text-align: center; }
.dzm .w-full { width: 100%; }
.dzm .mt-0 { margin-top: 0; }
.dzm .small { font-size: 13px; }
.dzm .strong { font-weight: 600; }
.dzm .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cockpit nuit : pastilles et bilan adaptés au fond sombre ---------- */
.dzm-dark .pill[data-tone="green"]  { background: oklch(0.64 0.15 155 / .16); color: oklch(0.84 0.13 155); }
.dzm-dark .pill[data-tone="amber"]  { background: oklch(0.75 0.15 75 / .16);  color: oklch(0.86 0.13 80); }
.dzm-dark .pill[data-tone="slate"]  { background: oklch(1 0 0 / .08);          color: oklch(0.8 0.015 260); }
.dzm-dark .pill[data-tone="blue"]   { background: oklch(0.6 0.16 252 / .2);    color: oklch(0.85 0.09 250); }
.dzm-dark .pill[data-tone="indigo"] { background: oklch(0.55 0.16 272 / .22);  color: oklch(0.85 0.08 272); }
.dzm-dark .pill[data-tone="teal"]   { background: oklch(0.6 0.1 195 / .2);     color: oklch(0.86 0.08 195); }
.dzm-dark .pill[data-tone="emerald"]{ background: oklch(0.64 0.15 160 / .18);  color: oklch(0.86 0.12 160); }
.dzm-cockpit .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dzm-cockpit .kpi { padding: 14px 12px; }
.dzm-cockpit .kpi .v { font-size: 22px; }
.dzm-cockpit .kpi .l { font-size: 12px; }

/* ---------- Carte vectorielle (MapLibre + VersaTiles) ---------- */
.dzm .map .maplibregl-map { width: 100%; height: 100%; font-family: var(--dzm-font-ui); }
.dzm .maplibregl-ctrl-attrib { font-size: 10px; background: oklch(1 0 0 / .78) !important; }
.dzm .maplibregl-ctrl-attrib a { color: var(--ink-2); }
.dzm .maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--dzm-shadow-2) !important; overflow: hidden; }
.dzm .dzm-map-fallback { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 14px; background: var(--dzm-card-bg); }
.dzm .dzm-car { position: relative; width: 22px; height: 22px; }
.dzm .dzm-car .car-dot { position: absolute; inset: 0; transition: background-color var(--dzm-t), box-shadow var(--dzm-t); }
.dzm .dzm-car-cone { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 22px solid oklch(0.58 0.17 252 / .32); transform-origin: 50% 100%; transform: translate(-50%, -100%); transition: transform .9s var(--dzm-ease-out), opacity var(--dzm-t); pointer-events: none; }
.dzm .dzm-car-label { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1 var(--dzm-font-ui); background: #fff; color: var(--dzm-night-900); padding: 4px 7px; border-radius: 7px; box-shadow: 0 2px 8px oklch(0.2 0.05 265 / .18); }
.dzm .car-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid oklch(0.58 0.17 252 / .45); animation: dzm-halo 2.4s var(--dzm-ease) infinite; }
.dzm .car-dot.is-off::after { display: none; }
.dzm .car-dot.is-busy::after { border-color: oklch(0.75 0.15 75 / .5); }
@keyframes dzm-halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.dzm .dzm-pop { animation: dzm-drop .55s var(--dzm-ease-out) both; }
@keyframes dzm-drop { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
.dzm .pin { transform-origin: 50% 100%; }
.dzm .ride-dot { transition: transform var(--dzm-t-fast) var(--dzm-ease); }
.dzm .ride-dot:hover { transform: rotate(45deg) scale(1.25); }

/* ---------- Exploitation : contrôles compacts ---------- */
.dzm-admin .seg { overflow-x: auto; scrollbar-width: none; }
.dzm-admin .seg label { white-space: nowrap; font-size: 13px; padding: 0 10px; min-height: 38px; }
.dzm-admin .chips .chip { text-decoration: none; }
