/*
 * Application du client Kassa Express — KX-06 (refonte inspirée de Yango).
 *
 * Trois partis pris, dans l'ordre où le client les rencontre :
 *  1. on entre par la CONNEXION : numéro d'abord, mot de passe ensuite, comme une app de
 *     course. Un en-tête aux couleurs de Kassa, une feuille blanche qui remonte du bas ;
 *  2. l'accueil est une CARTE plein écran, et ce qu'on commande vit dans une feuille posée
 *     dessus (sur ordinateur : un panneau flottant à gauche) ;
 *  3. commander : la carte en haut, le trajet A → B comme une ligne de temps, le prix
 *     toujours visible en bas.
 * Même marque que l'application du livreur (vert profond, brique, crème, ambre pour
 * l'argent) et mêmes polices, hébergées avec elle (../livreur/fonts, licence OFL).
 * ⚠️ Aucun style en ligne pour la mise en page : un `style=` gagne contre une media query.
 */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../livreur/fonts/outfit-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../livreur/fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../livreur/fonts/dmsans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../livreur/fonts/dmsans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
  --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #ececec; --bg: #f4f4f1; --card: #fff; --field: #f3f3f0;
  --brand: #14532d; --brand-2: #1f7a45; --brand-ink: #0f3f22; --brand-soft: #e4efe7;
  --grad: linear-gradient(160deg, #0b3119 0%, #14532d 55%, #1f7a45 100%);
  --brick: #b5482e; --brick-soft: #fbe9e3;
  --amber: #f59e0b; --amber-soft: #fff4dc; --amber-ink: #92400e;
  --green: #16a34a; --green-soft: #e3f8ea; --green-ink: #166534;
  --red: #dc2626; --red-soft: #fde8e8; --red-ink: #b91c1c;
  --blue-soft: #e8efff; --blue-ink: #1d4ed8;
  --wa: #25d366;
  --r-xl: 28px; --r: 20px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px -10px rgba(17, 24, 39, .18);
  --shadow-up: 0 -12px 32px -14px rgba(17, 24, 39, .28);
  --bar-h: 60px;
  --panel-w: 460px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f2f6; --ink-2: #d1d5db; --muted: #9aa3b2; --line: #262a33; --bg: #0c0e12; --card: #16191f; --field: #1e222a;
    --brand: #4ade80; --brand-2: #22c55e; --brand-ink: #86efac; --brand-soft: #14291c;
    --grad: linear-gradient(160deg, #04140a 0%, #0b3119 55%, #14532d 100%);
    --brick-soft: #3a1c14; --amber-soft: #3a2c0d; --amber-ink: #fcd34d;
    --green-soft: #0f2a1a; --green-ink: #4ade80; --red-soft: #3a1414; --red-ink: #fca5a5;
    --blue-soft: #16213d; --blue-ink: #93b4ff;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 28px -12px rgba(0, 0, 0, .7);
    --shadow-up: 0 -12px 32px -14px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; gap: 14px; text-align: center; background: var(--grad); color: #fff; }
.splash img { border-radius: 20px; margin: 0 auto; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.splash p { margin: 0; opacity: .8; font-size: 14px; }

/* ═══ Connexion, inscription, mot de passe oublié ═══════════════════ */
.auth-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--grad); }
.auth-hero { position: relative; flex: none; color: #fff; padding: max(20px, env(safe-area-inset-top)) 20px 54px; overflow: hidden; }
.auth-hero .logo { height: 34px; width: auto; display: block; }
.auth-hero h1 { font-size: 30px; margin: 22px 0 6px; max-width: 13ch; }
.auth-hero p { margin: 0; opacity: .82; max-width: 32ch; font-size: 15px; }
.auth-hero > :not(.auth-art) { position: relative; z-index: 1; }
.auth-art { position: absolute; right: -54px; top: -40px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; pointer-events: none; }
.auth-art::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-art .ic { position: relative; width: 64px; height: 64px; stroke-width: 1.4; color: #fde68a; opacity: .85; transform: translate(-18px, 22px); }
.auth-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
.auth-tags .ic { width: 16px; height: 16px; }
.auth-sheet { position: relative; flex: 1; background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: -28px; padding: 26px 20px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-up); }
.auth-sheet > .in { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 14px; }
.auth-sheet h2 { font-size: 26px; }
.auth-sheet .lead { color: var(--muted); margin: -6px 0 2px; font-size: 15px; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 0 -8px; padding: 8px; border: 0; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; text-decoration: none; width: max-content; border-radius: 12px; }
.auth-back:hover { background: var(--field); }
.auth-alt { text-align: center; color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.auth-alt a, .auth-alt button { font-weight: 700; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.legal { color: var(--muted); font-size: 12.5px; text-align: center; margin: 6px 0 0; }
.legal a { color: inherit; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; }
.notice.warn { background: var(--amber-soft); color: var(--amber-ink); }
.notice.ok { background: var(--green-soft); color: var(--green-ink); }
.notice b { display: block; }
.who-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--field); }
.who-chip .av { width: 40px; height: 40px; }
.who-chip span { flex: 1; min-width: 0; font-weight: 700; }
.who-chip small { display: block; font-weight: 500; color: var(--muted); }
.who-chip a, .who-chip button { font-weight: 700; color: var(--brand); background: none; border: 0; cursor: pointer; text-decoration: none; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 22px; height: 5px; border-radius: 99px; background: var(--line); }
.steps-dots i.on { background: var(--brand); }
.choice-cards { display: grid; gap: 10px; }
.choice-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); color: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.choice-card:hover { border-color: var(--brand); }
.choice-card .big { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.choice-card b { display: block; }
.choice-card .hint { margin: 2px 0 0; }

/* Champ téléphone avec indicatif, champ mot de passe avec œil, code à 6 chiffres. */
.phone-field { display: flex; align-items: stretch; min-height: 58px; border-radius: var(--r-sm); background: var(--field); border: 1.5px solid transparent; transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--card); }
.phone-field .cc { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; font-weight: 700; border-right: 1.5px solid var(--line); }
.flag-sn { width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(90deg, #00853f 0 33.3%, #fdef42 33.3% 66.6%, #e31b23 66.6%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.phone-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.phone-field input:focus { outline: none; }
.pass-field { position: relative; }
.pass-field .input { padding-right: 52px; }
.pass-field .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.pass-field .eye:hover { color: var(--ink); background: var(--line); }
.code-input { text-align: center; font-family: var(--display); font-size: 30px !important; letter-spacing: .45em; font-weight: 700; padding-left: .45em !important; }
.strength { display: flex; gap: 6px; margin: -6px 0 14px; }
.strength i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--red); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--amber); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--green); }

@media (min-width: 900px) {
  .auth-screen { flex-direction: row; }
  .auth-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(32px, 6vw, 96px); }
  .auth-hero .logo { position: absolute; top: 36px; left: clamp(32px, 6vw, 96px); height: 40px; }
  .auth-hero h1 { font-size: clamp(38px, 4vw, 56px); max-width: 12ch; }
  .auth-hero p { font-size: 18px; }
  .auth-art { width: 380px; height: 380px; right: -90px; top: auto; bottom: -90px; }
  .auth-art .ic { width: 140px; height: 140px; transform: translate(-40px, -40px); }
  .auth-sheet { flex: none; width: min(520px, 46vw); margin: 0; border-radius: 0; justify-content: center; padding: 48px 48px; }
}

/* ═══ Barre du haut, tiroir, bandeau hors ligne ═══════════════════ */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.bar-title { flex: 1; min-width: 0; text-align: center; }
.bar-title b { display: block; font-family: var(--display); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-title small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .logo { height: 28px; width: auto; display: block; }
.bar-btn, .fab { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--field); color: var(--ink); cursor: pointer; text-decoration: none; }
.bar-btn:hover { background: var(--line); }
.fab { background: var(--card); box-shadow: var(--shadow); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; flex: none; }
.bar-btn .av, .fab .av { width: 100%; height: 100%; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--brick); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--card); }
.btn-login-sm { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }
@media (prefers-color-scheme: dark) { .btn-login-sm { color: #06190d; } }
.netbar { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); z-index: 39; background: var(--amber); color: #3b2300; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; }

.drawer-bg { position: fixed; inset: 0; z-index: 80; background: rgba(3, 7, 18, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 86vw); background: var(--card); display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); padding: max(16px, env(safe-area-inset-top)) 0 max(14px, env(safe-area-inset-bottom)); overflow-y: auto; }
.drawer-bg.open .drawer { transform: none; }
.dr-head { display: flex; align-items: center; gap: 14px; padding: 8px 20px 18px; text-decoration: none; color: inherit; }
.dr-head .av { width: 56px; height: 56px; font-size: 22px; }
.dr-head b { display: block; font-family: var(--display); font-size: 19px; }
.dr-head small { color: var(--muted); }
.dr-head .ic { margin-left: auto; color: var(--muted); }
.dr-nav { display: grid; padding: 6px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dr-nav a, .dr-nav button { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.dr-nav a:hover, .dr-nav button:hover { background: var(--field); }
.dr-nav a.on { background: var(--brand-soft); color: var(--brand); }
.dr-nav .badge { position: static; margin-left: auto; border: 0; }
.dr-foot { margin-top: auto; padding: 16px 20px 4px; color: var(--muted); font-size: 12.5px; display: grid; gap: 10px; }
.dr-foot .logo-mini { height: 22px; width: auto; opacity: .9; }
.dr-out { color: var(--red-ink) !important; }

/* ═══ Pages intérieures ══════════════════════════════════════════ */
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px 120px; display: grid; gap: 14px; }
.page.wide { max-width: 1120px; }
.card, .block { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card h2, .block h2 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.err { color: var(--red-ink); font-size: 14px; margin: 2px 0 0; font-weight: 600; }
.err:empty { display: none; }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; }
.empty .ic { display: block; margin: 0 auto 8px; width: 34px; height: 34px; stroke-width: 1.5; opacity: .6; }
.stack { display: grid; gap: 14px; min-width: 0; align-content: start; }
.cols { display: grid; gap: 14px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* Champs */
.field { display: grid; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label, .lbl { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid transparent; background: var(--field); transition: border-color .15s, box-shadow .15s, background .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--card); }
.input[readonly] { color: var(--muted); }
textarea.input { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 18px; border-radius: 16px; border: 0; background: var(--field); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); transition: transform .08s, filter .15s, background .15s; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px rgba(20, 83, 45, .8); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06190d; } }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); filter: none; }
.btn-danger { background: var(--red-soft); color: var(--red-ink); }
.btn-block { width: 100%; }
.btn-xl { min-height: 58px; font-size: 17px; border-radius: 18px; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Listes en lignes (réglages, compte) */
.menu-list { display: grid; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.menu-list a, .menu-list button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 60px; padding: 10px 16px; color: inherit; text-decoration: none; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-weight: 600; width: 100%; }
.menu-list > :first-child { border-top: 0; }
.menu-list a:hover, .menu-list button:hover { background: var(--field); }
.menu-list .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--field); color: var(--ink-2); }
.menu-list small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.menu-list .chev { color: var(--muted); }
.menu-list .badge { position: static; border: 0; }
.menu-list .danger { color: var(--red-ink); }
.menu-list .danger .mi { background: var(--red-soft); color: var(--red-ink); }

/* ═══ Accueil : la carte et sa feuille ═══════════════════════════ */
.home-map { position: fixed; inset: 0; z-index: 0; background: #e5e3dc; }
.home-map .leaflet-control-attribution { font-size: 10px; }
.home-top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.home-top > * { pointer-events: auto; }
.home-top .sp { flex: 1; }
.home-top .fab { width: 48px; height: 48px; }
.home-top .brand-pill { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); }
.home-top .brand-pill img { height: 22px; width: auto; display: block; }
.home-locate { position: fixed; right: 14px; bottom: calc(56vh + 14px); z-index: 5; width: 48px; height: 48px; }
.home-sheet { position: relative; z-index: 10; margin-top: 44vh; min-height: 56vh; background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-up); padding: 10px 16px max(28px, env(safe-area-inset-bottom)); display: grid; gap: 16px; align-content: start; }
.grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 2px; }
.home-sheet h1 { font-size: 26px; }
.home-sheet .lead { color: var(--muted); margin: 2px 0 0; }
.where { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; border-radius: 18px; background: var(--field); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; font-family: var(--display); }
.where:hover { background: var(--line); }
.where .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px var(--brick-soft); flex: none; }
.where span { flex: 1; }
.where .ic { color: var(--muted); }
.saved-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 0; padding: 0 16px 2px; }
.saved-row::-webkit-scrollbar { display: none; }
.saved-row a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.saved-row a .mi { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--field); }
.saved-row a .mi .ic { width: 16px; height: 16px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-h h2 { font-size: 18px; }
.sec-h a { font-weight: 700; font-size: 14px; text-decoration: none; }

/* Les services en tuiles, comme sur une application de course. */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.svc { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 14px 6px 12px; border-radius: 20px; background: var(--field); text-decoration: none; color: inherit; text-align: center; min-height: 118px; transition: transform .12s, background .15s; }
.svc:hover { background: var(--line); }
.svc:active { transform: scale(.97); }
.svc-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--card); color: var(--brand); box-shadow: 0 6px 14px -8px rgba(17, 24, 39, .35); }
.svc-ic .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.svc b { font-family: var(--display); font-size: 14.5px; line-height: 1.15; }
.svc small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.svc-errand .svc-ic { color: var(--amber-ink); }
.svc-food .svc-ic { color: var(--brick); }
.svc-shop .svc-ic { color: var(--blue-ink); }
.svc-express { background: var(--brand); color: #fff; }
.svc-express:hover { background: var(--brand-2); }
.svc-express small { color: rgba(255, 255, 255, .78); }
.svc-express .svc-ic { background: rgba(255, 255, 255, .16); color: #fde68a; box-shadow: none; }
@media (prefers-color-scheme: dark) { .svc-express { color: #06190d; } .svc-express small { color: rgba(6, 25, 13, .7); } .svc-express .svc-ic { color: #06190d; } }
.closed { background: var(--amber-soft); color: var(--amber-ink); border-radius: var(--r-sm); padding: 14px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fact { border-radius: var(--r-sm); padding: 10px; font-size: 12.5px; color: var(--muted); border: 1.5px solid var(--line); }
.fact b { display: block; color: var(--ink); font-size: 14px; font-family: var(--display); }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--line); color: inherit; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.quick a:hover { border-color: var(--brand); }
.quick .ic { color: var(--brand); }
@media (min-width: 900px) {
  .home-sheet { position: fixed; top: 16px; bottom: 16px; left: 16px; width: 420px; margin: 0; min-height: 0; border-radius: var(--r-xl); overflow-y: auto; padding: 84px 20px 24px; box-shadow: var(--shadow); }
  .home-sheet .grab { display: none; }
  .home-top { padding: 28px 30px 0; }
  .home-top .fab-menu { margin-left: 0; }
  .home-locate { bottom: 90px; right: 24px; }
}

/* Lignes de livraison (en cours, historique) */
.sent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.sent:first-of-type { border-top: 0; }
.sent .si { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
/* Le numéro est ce que le client cite au téléphone : il passe à la ligne, jamais coupé. */
.sent .who { font-weight: 700; overflow-wrap: anywhere; }
.sent .who .nw { white-space: nowrap; }
/* Téléphone : l'état passe sous le titre, sinon il recouvre la fin du numéro. */
@media (max-width: 480px) {
  .sent { grid-template-columns: auto minmax(0, 1fr); }
  .sent .si { grid-row: span 3; }
  .sent .chip { grid-column: 2; justify-self: start; }
}
.sent .sub { grid-column: 2 / -1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.chip.wait { background: var(--amber-soft); color: var(--amber-ink); }
.chip.ok { background: var(--green-soft); color: var(--green-ink); }
.chip.ko { background: var(--red-soft); color: var(--red-ink); }

/* ═══ Commander : la carte en haut, le trajet en ligne de temps ═════ */
.order { display: grid; }
.order-map { position: relative; height: 40vh; min-height: 260px; background: #e5e3dc; }
.order-map .map { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
.map-pick { position: absolute; z-index: 500; left: 12px; right: 12px; top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 2px solid transparent; background: var(--card); box-shadow: var(--shadow); cursor: pointer; text-align: left; min-width: 0; font-weight: 700; font-size: 14px; }
.pick[aria-pressed="true"] { border-color: var(--brand); }
.pick small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.dot-a { background: var(--brand); } .dot-b { background: var(--brick); }
@media (prefers-color-scheme: dark) { .dot-a { color: #06190d; } }
.map-tip { position: absolute; z-index: 500; left: 50%; bottom: 34px; transform: translateX(-50%); background: rgba(17, 24, 39, .82); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.order-panel { position: relative; z-index: 5; margin-top: -22px; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 16px 12px 130px; display: grid; gap: 12px; }
.block h2 .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.route { position: relative; display: grid; gap: 18px; }
.leg { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.leg + .leg::before { content: ""; position: absolute; left: 15px; top: -18px; height: 18px; border-left: 2px dashed var(--line); }
.leg-a::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -18px; border-left: 2px dashed var(--line); }
.leg h3 { font-size: 16px; margin: 6px 0 10px; }
.leg-body { min-width: 0; }
.leg .gps { margin-top: 2px; }
.btn-gps { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 0; background: var(--brand-soft); color: var(--brand); font-weight: 700; cursor: pointer; font-size: 14px; }
.btn-gps:disabled { opacity: .55; }
.map { height: 300px; border-radius: var(--r-sm); overflow: hidden; background: var(--field); }
.pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
.pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 13px; }
.pin-me { width: 20px; height: 20px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(37, 99, 235, .22); }
.pin-courier { width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #3b2300; border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(245, 158, 11, .3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; }
.chips button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chips button small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.chips.saved { margin: 0 0 10px; }
.chips.saved button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.choice { display: grid; gap: 8px; }
.choice button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; min-height: 58px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.choice button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.choice .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); }
.choice button[aria-pressed="true"] .radio { border: 7px solid var(--brand); }
.choice button b { display: block; }
.choice button .hint { margin: 2px 0 0; font-size: 13px; }
.sub-h { font-size: 15px; margin: 16px 0 8px; }
.detail { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.detail div { display: flex; justify-content: space-between; gap: 10px; }
.detail div:last-of-type { color: var(--ink); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 6px; }

/* La barre du prix : toujours visible pendant qu'on remplit. */
.quote-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--card); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-up); }
.quote-bar .price { flex: 1; min-width: 0; }
.quote-bar .price b { font-family: var(--display); font-size: 26px; display: block; line-height: 1.1; }
.quote-bar .price small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-bar .btn { min-width: 150px; }
@media (max-width: 400px) { .quote-bar .btn { min-width: 0; padding: 10px 14px; } .quote-bar .price b { font-size: 22px; } }
body:has(.quote-bar) #pwaInstallBtn { display: none !important; }

@media (min-width: 960px) {
  .order { grid-template-columns: var(--panel-w) minmax(0, 1fr); }
  .order-map { order: 2; position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h)); }
  .order-panel { order: 1; margin: 0; border-radius: 0; padding: 16px 16px 120px; border-right: 1px solid var(--line); }
  .quote-bar { right: auto; width: var(--panel-w); border-radius: 0; border-top: 1px solid var(--line); }
  .map-tip { bottom: 40px; }
}

/* Liste de courses, boutiques, preuves */
.list-edit { display: grid; gap: 8px; margin-bottom: 8px; }
.li-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px auto; gap: 8px; align-items: center; }
.li-del { min-height: 44px; width: 44px; padding: 0; }
.glist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.glist li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--field); }
.shop-res { display: grid; gap: 8px; margin-bottom: 12px; max-height: 280px; overflow-y: auto; }
.shop-row, .shop-picked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); color: inherit; }
.shop-row { grid-template-columns: auto minmax(0, 1fr); cursor: pointer; min-height: 58px; font: inherit; }
.shop-row:hover { border-color: var(--brand); }
.shop-picked { border-color: var(--brand); background: var(--brand-soft); margin-bottom: 4px; }
.shop-row .big, .shop-picked .big { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--field); color: var(--brand); }
.shop-row b, .shop-picked b, .shop-row .hint, .shop-picked .hint { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paid-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--brand-soft); cursor: pointer; font-size: 14px; }
.paid-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.proof { display: grid; gap: 6px; margin-top: 12px; text-decoration: none; color: var(--brand); font-weight: 600; }
.proof img { width: 100%; max-height: 280px; object-fit: contain; border-radius: var(--r-sm); background: var(--field); }
.signature { width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--r-sm); border: 1px dashed var(--line); background: #fff; }
.prepay { background: var(--amber-soft); }
.prepay h2 { color: var(--amber-ink); }

/* KX-08 — le poids, et le paiement par Wave (couleur de la marque Wave) */
.weight { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; align-items: center; margin-bottom: 10px; }
.wstep { height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); font-size: 24px; font-weight: 700; cursor: pointer; color: var(--brand); }
.weight-in { position: relative; display: block; margin: 0; }
.weight-in .input { text-align: center; font-size: 22px; font-weight: 700; padding-right: 40px; height: 52px; }
.weight-in span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
#wPresets { margin-bottom: 6px; }
.pay-wave { border: 1.5px solid #1dc8f2; }
.pay-wave h2 .ic { color: #0b9ec2; }
.pay-wave.paid { border-color: var(--green-ink); background: var(--green-soft); }
.pay-wave.paid h2 { color: var(--green-ink); }
.btn-wave { background: #1dc8f2; color: #04263a; font-weight: 800; box-shadow: 0 10px 22px -12px rgba(29, 200, 242, .9); }
.btn-wave:disabled { opacity: .6; }
/* KX-08 bis : code de paiement donné par Kassa Express (sans API Wave), et « j'ai payé ». */
.pay-code { display: grid; justify-items: center; gap: 6px; margin: 4px 0 8px; padding: 14px; border-radius: 16px; background: #e8f9fe; border: 1.5px dashed #1dc8f2; text-align: center; }
.pay-code small { color: var(--muted, #4b5563); }
.pay-code b { font-size: 24px; letter-spacing: .06em; word-break: break-all; color: #04263a; }
.pay-declare { margin-top: 12px; display: grid; gap: 6px; }
.pay-declare label { font-size: 13px; color: var(--muted, #4b5563); }
.pay-declare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* ═══ Confirmation et suivi ═══════════════════════════════════════ */
.done-hero { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 26px 18px; }
.done-hero .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }
.done-hero .tick .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.done-hero h2 { font-size: 24px; margin: 4px 0 0; justify-content: center; }
.big-code { font-family: var(--display); font-size: 26px; letter-spacing: 2px; text-align: center; padding: 14px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand); word-break: break-all; width: 100%; }
.big-code small { display: block; font-size: 16px; letter-spacing: 4px; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.kv div:first-child { border-top: 0; padding-top: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }
.steps { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 7px; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.steps li::after { content: ""; position: absolute; left: 14px; top: 21px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.on::before { background: var(--green); border-color: var(--green); }
.steps li.on::after { background: var(--green); }
.steps li small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.state { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-family: var(--display); font-size: 17px; }
.state .ic { width: 26px; height: 26px; }
.state.wait { background: var(--amber-soft); color: var(--amber-ink); }
.state.ok { background: var(--green-soft); color: var(--green-ink); }
.state.ko { background: var(--red-soft); color: var(--red-ink); }
.track-map { height: 300px; border-radius: var(--r-sm); overflow: hidden; margin-top: 10px; background: var(--field); }
.courier-row { display: flex; align-items: center; gap: 12px; }
.courier-row .av { width: 48px; height: 48px; font-size: 19px; }
.courier-row b { display: block; font-family: var(--display); font-size: 18px; }
.stars { display: flex; gap: 6px; }
.stars button { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--field); cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.stars button.on { color: var(--amber); background: var(--amber-soft); }
.stars button.on .ic { fill: currentColor; }
@media (min-width: 900px) { .track { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .track-map { height: 380px; } }
.track { display: grid; gap: 14px; }

/* ═══ Compte ══════════════════════════════════════════════════════ */
.profile-card { display: flex; align-items: center; gap: 16px; background: var(--grad); color: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.profile-card .av { width: 64px; height: 64px; font-size: 26px; background: rgba(255, 255, 255, .16); }
.profile-card b { display: block; font-family: var(--display); font-size: 22px; }
.profile-card small { opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border-radius: var(--r-sm); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 26px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 13px; }
.news { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.news:first-child { border-top: 0; }
.news .ni { grid-row: span 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--field); color: var(--ink-2); }
.news.unread .ni { background: var(--brick-soft); color: var(--brick); }
.news .hint { margin: 0; }
.news small { color: var(--muted); font-size: 12px; }
.addr-row, .sess-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.addr-row:first-child, .sess-row:first-child { border-top: 0; }
.addr-row .big, .sess-row .big { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.addr-row b, .addr-row .hint, .sess-row b, .sess-row .hint { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.sess-row .now { color: var(--green-ink); font-weight: 700; }

/* Feuille modale (jamais confirm() natif) et notification */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(3, 7, 18, .55); display: grid; align-items: end; }
.sheet { background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 12px 18px max(20px, env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; display: grid; gap: 12px; }
.sheet::before { content: ""; width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 4px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: var(--r-xl); } .sheet::before { display: none; } }
.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 100; background: #111827; color: #fff; padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); font-weight: 600; box-shadow: var(--shadow); }
.toast.ko { background: var(--red); }

/* La pastille d'installation ne couvre jamais un geste : sur les écrans de connexion elle
   monte en haut, sur l'accueil elle passe au-dessus du bouton de position. */
body:has(.auth-screen) #pwaInstallBtn { top: calc(14px + env(safe-area-inset-top)) !important; bottom: auto !important; }
@media (max-width: 899px) { body:has(.home-sheet) #pwaInstallBtn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Illustrations en couleur (Magnific, itim2101 Lineal Color) ──────────────
 * Elles ont un trait NOIR : sur le fond sombre du mode nuit il disparaîtrait. Chaque
 * illustration repose donc sur une pastille claire (--il-plate), crème en mode nuit. */
:root { --il-plate: #fff; }
@media (prefers-color-scheme: dark) { :root { --il-plate: #f3eee2; } }
.il { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.il-plate { background: var(--il-plate) !important; }
.il-credit { margin: 14px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.il-credit a { color: inherit; }
.drawer .il-credit { margin: 10px 14px 4px; text-align: left; }
.drawer .il-credit a, .drawer .il-credit a:hover { display: inline; width: auto; padding: 0; margin: 0; min-height: 0; border-radius: 0; background: none; font: inherit; color: inherit; text-decoration: underline; }

/* Tuiles de services : l'illustration remplit sa pastille. */
.svc-ic { width: 60px; height: 60px; padding: 8px; background: var(--il-plate); }
.svc-express .svc-ic { background: var(--il-plate); }
.svc:hover .svc-ic { transform: translateY(-2px) rotate(-3deg); }
.svc-ic { transition: transform .18s ease; }
@media (prefers-reduced-motion: reduce) { .svc:hover .svc-ic { transform: none; } }

/* Lignes de livraison */
.sent .si { padding: 6px; background: var(--il-plate); box-shadow: inset 0 0 0 1px var(--line); }

/* États vides : une scène, pas un pictogramme gris. */
.empty .il { width: 96px; height: 96px; margin: 0 auto 10px; padding: 12px; border-radius: 50%; background: var(--il-plate); box-shadow: inset 0 0 0 1px var(--line); }

/* Confirmation */
.done-hero .tick { width: 104px; height: 104px; padding: 14px; background: var(--il-plate); box-shadow: 0 0 0 8px var(--green-soft); animation: il-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes il-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done-hero .tick { animation: none; } }

/* Connexion : le livreur en route, posé sur le cercle de l'en-tête. */
.auth-art .il { position: relative; width: 104px; height: 104px; padding: 10px; border-radius: 50%; background: var(--il-plate); transform: translate(-22px, 26px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); animation: il-ride 3.2s ease-in-out infinite; }
@keyframes il-ride { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (min-width: 900px) { .auth-art .il { width: 190px; height: 190px; padding: 18px; transform: translate(-46px, -46px); } }
@media (prefers-reduced-motion: reduce) { .auth-art .il { animation: none; } }
.choice-card .big .il { width: 32px; height: 32px; }

/* KX-09 : promotions (prix de lancement, codes promo). */
.quote-bar .price b .was { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.promo-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--brick); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .2px; vertical-align: 1px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; font-weight: 700; letter-spacing: .5px; }
.promo-msg { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.promo-msg:empty { display: none; }
.promo-msg.is-applied { color: var(--green-ink); }
.promo-msg.is-invalid { color: var(--red-ink); }
.promo-msg.is-not_better { color: var(--muted); }
.detail .promo-line b { color: var(--green-ink); }
.detail .promo-total { font-size: 16px; }
.detail .promo-total b { color: var(--brand); font-size: 18px; }
