/* =====================================================================
   FastPark Roissy — applications : espace client, suivi, chauffeur,
   écrans de connexion. Mise en page seulement : jetons et composants
   communs dans css/fastpark.css, chargée avant celle-ci.
   ===================================================================== */

html, body { overscroll-behavior-y: none; }
body {
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.55;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}
/* Saisie à 16 px : en dessous, iOS zoome sur le champ */
input, select, textarea { font-size: 16px; }
button, select, a { touch-action: manipulation; }

/* ---------- Barre du haut ---------- */
.app-bar {
  position: sticky; top: 0; z-index: 100; isolation: isolate;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
}
.app-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.app-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; max-width: 1080px; margin-inline: auto; padding: 10px var(--gutter);
}
.app-bar--narrow .app-bar-inner { max-width: 760px; }
.app-bar-actions { display: flex; align-items: center; gap: 8px; }
.app-bar .brand { flex: none; }

.app-main { max-width: 760px; margin-inline: auto; padding: 18px var(--gutter) 0; }
.app-main--wide { max-width: 1080px; }
.app-main--narrow { max-width: 600px; }

/* ---------- Carte ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow-md);
}
.card > h3, .card-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 600 .74rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
}
.card > h3 svg { width: 14px; height: 14px; flex: none; }
.card-note { font-size: .92rem; color: var(--ink-mut); margin-bottom: 12px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .lbl { font-size: .88rem; color: var(--ink-mut); }
.row .val { font-size: .96rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.row .val a { color: var(--accent-text); font-weight: 600; }

/* ---------- Pastilles d'état, mêmes couleurs partout ---------- */
.status-pill, .badge, .res-status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 11px;
  border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-mut);
  font: 600 .76rem/1.2 var(--body); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.status-pending, .b-requested, .res-status--pending { background: var(--warn-bg); color: var(--warn); }
.status-route, .b-assigned, .b-en_route, .res-status--confirmed { background: var(--info-bg); color: var(--info); }
.status-arrived, .b-arrived, .res-status--arrived, .badge--ok { background: var(--ok-bg); color: var(--ok); }
.status-done, .b-completed, .res-status--completed { background: var(--tile-navy); color: var(--tile-navy-ink); }
.b-cancelled, .res-status--cancelled { background: var(--err-bg); color: var(--err); }
.badge--door { background: var(--tile-amber); color: var(--tile-amber-ink); }

/* ---------- Écran de connexion centré (client, suivi, chauffeur) ---------- */
.auth-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-inline { margin: 24px auto; max-width: 440px; }
.auth-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px 26px; box-shadow: var(--shadow-md);
}
.auth-card .brand { margin-bottom: 26px; }
.auth-card h1, .auth-card h2 { font-size: 2rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--ink-mut); font-size: .96rem; margin-bottom: 24px; }
.auth-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  text-align: center; font-size: .88rem; color: var(--ink-mut);
}
.auth-foot a { font-weight: 600; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px 22px; } }

/* ---------- Connexion au CRM : panneau de marque + formulaire ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-bottom: 0; }
.auth-side {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; background: var(--cta-bg); color: #fff;
}
.auth-side::before {
  content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -160px; top: -170px;
  border-radius: 50%; background: var(--amber-500); opacity: .55; filter: blur(64px);
}
.auth-side::after {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: -140px; bottom: -160px;
  border-radius: 50%; background: var(--navy-300); opacity: .18; filter: blur(80px);
}
.auth-side .brand-sub { display: block; margin-top: 10px; letter-spacing: .14em; }
.auth-side-main { max-width: 430px; }
.auth-side h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); margin-bottom: 18px; }
.auth-side .lead { color: rgba(255, 255, 255, .76); font-size: 1rem; line-height: 1.65; margin-bottom: 30px; }
.auth-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-dark-line); }
.auth-facts li {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--on-dark-line); font-size: .9rem; color: rgba(255, 255, 255, .82);
}
.auth-facts .k { font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.auth-side-foot { font-size: .76rem; color: rgba(255, 255, 255, .6); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; min-height: 100vh; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-mobile-brand .brand { margin-bottom: 0; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 96px; letter-spacing: .02em; background: var(--surface); }
.toggle-pw {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px;
  background: none; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-size: .8rem; font-weight: 600; color: var(--ink-mut);
}
.toggle-pw:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.toggle-pw svg { width: 18px; height: 18px; }
.auth-row {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: .8rem; color: var(--ink-dim);
}
.auth-row a { color: var(--ink-mut); text-decoration: none; font-weight: 600; }
.auth-row a:hover { color: var(--ink); text-decoration: underline; }
.btn-text { display: inline-flex; align-items: center; gap: 10px; }
@keyframes fp-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.shake { animation: fp-shake .4s; }
@media (max-width: 880px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: block; }
}

/* ---------- Pages d'attente et page introuvable ---------- */
.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.splash-box { max-width: 420px; }
.splash .brand { margin-bottom: 16px; }
.splash p { color: var(--ink-mut); font-size: .96rem; margin-block: 8px; }
.splash a { font-weight: 600; }
.splash h1 { font-size: var(--step-5); margin-bottom: 8px; }

/* ---------- Espace client ---------- */
.greeting { padding: 24px 0 8px; }
.greeting h1 { font-size: var(--step-3); margin-bottom: 8px; }
.muted { color: var(--ink-mut); }

.pickup-card { background: var(--tile-amber); border-color: color-mix(in srgb, var(--amber-500) 35%, transparent); box-shadow: none; }
.pickup-headline { font: 650 1.15rem/1.35 var(--display); letter-spacing: -.015em; margin-bottom: 14px; color: var(--ink); }
.pickup-headline .driver-name { color: var(--accent-text); }
.pickup-action { width: 100%; margin-bottom: 16px; }
.pickup-progress {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 14px;
  padding: 10px 14px; background: var(--surface); border-radius: var(--radius); font-size: .84rem;
}
.pp-sep { color: var(--ink-dim); }
.pp-step { color: var(--ink-dim); font-weight: 500; }
.pp-step.done { color: var(--ok); font-weight: 600; }
.pp-step.done::before { content: "✓ "; }
.pp-step.active { color: var(--accent-text); font-weight: 700; }
.driver-map { height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-mut); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: .94rem; font-weight: 500; color: var(--ink-mut); cursor: pointer;
  transition: color var(--t) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--amber-500); }
.tabs.tabs-small { margin: 16px 0 10px; }
.tabs.tabs-small .tab { padding: 8px 12px; font-size: .84rem; }

.res-list { display: grid; gap: 14px; margin-bottom: 32px; }
.res-card {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.res-date { font: 650 1.15rem/1.25 var(--display); letter-spacing: -.015em; text-transform: capitalize; margin-bottom: 8px; color: var(--ink); }
.res-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .94rem;
}
.res-row:last-of-type { border-bottom: 0; }
.res-row .label { flex-shrink: 0; font-weight: 500; font-size: .86rem; letter-spacing: 0; text-transform: none; color: var(--ink-mut); }
.res-row .value { font-weight: 600; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.res-status { margin-top: 8px; }
.res-details { margin-top: 8px; }
.res-details summary { cursor: pointer; list-style: none; padding: 4px 0; font-size: .84rem; font-weight: 600; color: var(--ink-mut); user-select: none; }
.res-details summary::-webkit-details-marker { display: none; }
.res-details summary::after { content: " ▾"; color: var(--ink-dim); }
.res-details[open] summary::after { content: " ▴"; }
.res-details summary:hover { color: var(--ink); }
.res-actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 170px; }

.empty {
  padding: 48px 20px; text-align: center; font-size: .96rem; color: var(--ink-mut);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}
.empty-cta { margin-top: 14px; }
.past-link { display: block; margin: 14px 0 24px; padding: 8px; text-align: center; font-size: .88rem; color: var(--ink-mut); }
.past-link:hover { color: var(--ink); }

@media (max-width: 768px) {
  .res-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .res-actions { flex-direction: row; min-width: 0; }
  .res-actions .btn { flex: 1; padding: 0 12px; }
  .driver-map { height: 220px; }
  .app-bar-actions .btn { padding: 0 12px; }
}
@media (max-width: 480px) {
  .res-actions { flex-direction: column; }
  .brand-sub { display: none; }
  .brand-word { font-size: 1.25rem; }
  .brand::before { width: 32px; height: 32px; border-radius: 9px; font-size: 1.15rem; }
  .app-bar-inner { gap: 8px; }
  .app-bar-actions { gap: 6px; }
  .theme-toggle { width: 38px; height: 38px; }
}

/* ---------- Suivi ---------- */
.discreet-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; margin-bottom: 10px;
  font-size: .86rem; font-weight: 600; color: var(--ink-mut); text-decoration: none;
}
.discreet-link:hover { color: var(--ink); text-decoration: underline; }
.discreet-link svg { width: 14px; height: 14px; }

.flight-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-bottom: 14px; padding: 24px 22px; text-align: center;
  border-radius: var(--radius-lg); background: var(--cta-bg); color: var(--on-dark);
}
.flight-hero::before {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -110px; top: -120px;
  border-radius: 50%; background: var(--amber-500); opacity: .45; filter: blur(60px);
}
.flight-label { font: 600 .72rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 8px; }
.flight-num { font: 700 2.4rem/1.1 var(--display); letter-spacing: .01em; color: #fff; }
.flight-route { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; font-size: .92rem; color: var(--on-dark-mut); }
.flight-route svg { width: 26px; height: 26px; flex-shrink: 0; }
.flight-status { margin-top: 12px; font-size: .88rem; color: var(--on-dark); }
.flight-status .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--amber-400); animation: fp-blink 1.5s infinite; }

.steps-note { font-size: .9rem; color: var(--ink-mut); margin: 6px 0 12px; }
.step { padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.step-num {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-mut); font: 700 .96rem/1 var(--display);
}
.step.done .step-num { background: var(--ok-solid); color: #fff; }
.step.active .step-num { background: var(--amber-500); color: var(--navy-900); }
.step.locked { opacity: .55; }
.step.locked .step-body { display: none !important; }
.step-head strong { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.step-check { margin-left: auto; color: var(--ok); font-weight: 700; font-size: 1.1rem; }
.step-body { padding-left: 48px; }
.step-body .input { margin-bottom: 10px; }
.step-summary { display: none; padding-left: 48px; margin-top: 4px; font-size: .9rem; color: var(--ink-mut); }
.step.done .step-summary { display: block; }
.step-body .btn + .input, .step-body label.btn + .input { margin-top: 10px; }
.step-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: .9rem; color: var(--link); text-decoration: underline; cursor: pointer; }
.file-hidden { position: absolute; width: .1px; height: .1px; opacity: 0; overflow: hidden; }
.photo-preview { display: inline-block; max-width: 100%; max-height: 200px; margin-top: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: zoom-in; }
.photo-state { padding: 8px 0; font-size: .88rem; color: var(--ink-mut); }
.photo-state.is-ok { padding: 4px 0 0; color: var(--ok); font-weight: 600; }
.photo-state.is-err { color: var(--err); }
@media (max-width: 480px) {
  .step-body, .step-summary { padding-left: 0; margin-top: 10px; }
}

.code-input { font-family: var(--mono); text-align: center; letter-spacing: .06em; }
.door-input { text-align: center; font-weight: 600; }

/* Bloc d'information posé dans une étape */
.note { margin: 6px 0 12px; padding: 11px 14px; border-radius: var(--radius); font-size: .88rem; line-height: 1.45; font-weight: 500; }
.note--info { background: var(--info-bg); color: var(--info); }
.note--err { background: var(--err-bg); color: var(--err); text-align: left; }
.note--err a { color: inherit; font-weight: 700; }

/* Carte GPS */
#mapWrap { position: relative; margin: 0 0 12px; }

.map-overlay {
  position: absolute; inset: 0; z-index: 500; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; text-align: center; font-size: .92rem; font-weight: 600; color: var(--ink-mut);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: var(--radius);
}

/* Statut de la navette : pastille + libellé + temps */
.big-status {
  display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--surface-2);
}
.big-status-dot { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--ink-dim); }
.big-status-text { flex: 1; min-width: 0; }
.big-status-label { font-weight: 700; font-size: 1.04rem; line-height: 1.2; color: var(--ink); }
.big-status-sub { margin-top: 3px; font-size: .86rem; color: var(--ink-mut); }
.big-eta { flex-shrink: 0; padding-left: 10px; text-align: right; font: 700 1.5rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.big-eta small { display: block; margin-top: 4px; font: 600 .66rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mut); }
.big-eta .eta-here { color: var(--ok); }
.big-eta .eta-near { color: var(--accent-text); }
.big-status.is-requested { background: var(--warn-bg); }
.big-status.is-requested .big-status-dot { background: var(--amber-500); animation: fp-blink 1.5s infinite; }
.big-status.is-assigned { background: var(--info-bg); }
.big-status.is-assigned .big-status-dot { background: var(--info); }
.big-status.is-en_route { background: var(--info-bg); }
.big-status.is-en_route .big-status-dot { background: var(--info); animation: fp-blink 1.2s infinite; }
.big-status.is-arrived { background: var(--ok-bg); }
.big-status.is-arrived .big-status-dot { background: var(--ok-solid); animation: fp-blink .8s infinite; }
.big-status.is-completed { background: var(--tile-navy); }
.big-status.is-completed .big-status-dot { background: var(--tile-navy-ink); }
.big-status.is-cancelled { background: var(--err-bg); }
.big-status.is-cancelled .big-status-dot { background: var(--err); }
@keyframes fp-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Repère du chauffeur sur la carte */
.driver-pin {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: var(--amber-500); border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(8, 26, 48, .45);
}
.driver-pin svg { width: 22px; height: 22px; }
.driver-pin::before {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: 50%;
  background: rgba(245, 158, 11, .35); animation: fp-ping 1.8s ease-out infinite;
}
@keyframes fp-ping { 0% { transform: scale(.7); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
/* Position du chauffeur trop ancienne : repère grisé, sans halo, et mention de l'âge sous la carte */
.leaflet-marker-icon.is-stale .driver-pin { background: var(--ink-dim); color: var(--surface); box-shadow: none; }
.leaflet-marker-icon.is-stale .driver-pin::before { animation: none; opacity: 0; }
.map-age { margin: 8px 0 0; font-size: .86rem; font-weight: 600; color: var(--ink-mut); }
.map-age[hidden] { display: none; }

.res-code { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--ink-dim); }
.res-code code { letter-spacing: .05em; }
.res-code button { padding: 0 4px; margin-left: 4px; background: none; border: 0; color: var(--link); font-size: .82rem; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Toast d'étape en aplat : la couleur vient du script */
.status-toast { color: #fff; font-size: 1rem; font-weight: 600; }
.status-toast::before { background: rgba(255, 255, 255, .85); }

/* ---------- Chauffeur ---------- */
.gps-state {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px;
  border-radius: var(--radius-pill); background: var(--ok-bg); color: var(--ok);
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.gps-state.off { background: var(--err-bg); color: var(--err); }
.gps-state .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: fp-blink 1.4s infinite; }
.gps-state.off .dot { animation: none; }

.session-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 10px 10px 10px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem;
}
.session-bar strong { color: var(--accent-text); font-weight: 700; }

.stats-bar {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 11px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .88rem; color: var(--ink-mut); font-variant-numeric: tabular-nums;
}
.stats-bar strong { margin-left: 5px; color: var(--ink); font-weight: 700; }
.stats-bar .sep { display: none; }

.section-title {
  display: flex; align-items: center; gap: 8px; margin: 20px 4px 10px;
  font: 600 .74rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
}
.section-title .count { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); font-size: .7rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.pickup {
  margin-bottom: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pickup.pulse-new { border-color: var(--amber-500); animation: fp-card-pulse 1.4s var(--ease) 3; }
@keyframes fp-card-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); }
  70% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.pickup-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.pickup-time { font: 700 1.7rem/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pickup-ago { margin-top: 3px; font-size: .78rem; color: var(--ink-dim); }
.pickup-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.info-line { margin: 4px 0; font-size: .94rem; color: var(--ink-mut); }
.info-line strong { color: var(--ink); }
.info-line:empty { display: none; }
.info-line--note { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ink); }
.plate-pill {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink);
  font: 700 .86rem/1.3 var(--mono); letter-spacing: .06em;
}
.pickup-photo { margin-top: 10px; }
.pickup-photo img { width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: zoom-in; }
.pickup-photo span { display: block; margin-top: 5px; font-size: .78rem; color: var(--ink-dim); }

.next-hint { margin: 14px 0 4px; padding: 10px 14px; border-radius: var(--radius); background: var(--tile-amber); color: var(--tile-amber-ink); font-size: .9rem; font-weight: 500; line-height: 1.4; }
.next-hint strong { color: var(--ink); font-weight: 700; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.actions.full { grid-template-columns: 1fr; margin-top: 8px; }
.actions .btn { min-height: 48px; padding: 0 12px; }
.actions .btn-cta { min-height: 56px; font-size: 1rem; }
.btn-waze { background: var(--tile-blue); color: var(--tile-blue-ink); }

.declined-toggle { display: block; margin: 6px auto 0; padding: 10px; background: none; border: 0; font-size: .84rem; color: var(--ink-mut); text-decoration: underline; cursor: pointer; }
.declined-toggle:hover { color: var(--ink); }
.declined-list { display: none; margin-top: 10px; padding: 14px 16px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.declined-list.open { display: block; }
.declined-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.declined-item:last-child { border-bottom: 0; }
.declined-item .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pin-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .35em; font-weight: 600; }

/* Bannière d'installation de l'application */
.install-bar {
  position: fixed; left: 14px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 280;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--navy-900); color: #fff;
  font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: fp-rise .4s var(--ease);
}
.install-bar > div { flex: 1; line-height: 1.35; }
.install-bar strong { color: var(--amber-400); }
.install-bar .install-close { padding: 0 6px; background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
:root[data-theme="dark"] .install-bar { background: #1b2c45; border: 1px solid var(--line-strong); }
@keyframes fp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Message en haut de l'écran chauffeur */
.drv-toast {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 290;
  width: max-content; max-width: 92vw; padding: 14px 22px; text-align: center;
  border-radius: var(--radius); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: fp-toast-in .25s var(--ease);
}
.drv-toast small { display: block; margin-top: 4px; font-size: .86rem; font-weight: 500; opacity: .92; }
@keyframes fp-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%); } }

/* Chauffeur : pas de grain, l'écran reste rapide en voiture */
body.app-driver::after { content: none; }

/* Libellés longs et courts selon la largeur de la barre */
.only-narrow { display: none; }
@media (max-width: 560px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  svg.only-narrow { display: block; }
  .app-bar-actions .btn-icon-narrow { width: 38px; padding: 0; }
  .app-bar-actions .btn { white-space: nowrap; }
}

/* Erreur de connexion chauffeur : affichée et masquée par le script, directement sur l'élément */
.login-err { margin-top: 12px; padding: 11px 14px; background: var(--err-bg); color: var(--err); border-radius: var(--radius); font-size: .88rem; font-weight: 600; text-align: center; }
