/* ============================================================
   ADZ ATELIER — PWA garagiste
   Direction : « clair raffiné premium » (calquée sur l'app ADZ Stock)
   Crafted CSS, mobile-first, safe-area iPhone, offline-ready.
   ============================================================ */

:root {
  /* Neutres */
  --bg:        #f5f6f8;
  --bg-soft:   #eef0f3;
  --surface:   #ffffff;
  --ink:       #0f172a;
  --ink-2:     #1e293b;
  --muted:     #64748b;
  --faint:     #94a3b8;
  --line:      #e6e9ee;
  --line-soft: #eef1f5;

  /* Marque ADZ (orange) */
  --brand:      #ea580c;
  --brand-600:  #c2410c;
  --brand-700:  #9a3412;
  --brand-tint: #fff3ec;

  /* Accent OR / atelier (teal — « réparer un véhicule ») */
  --or:        #0d9488;
  --or-600:    #0f766e;
  --or-tint:   #ecfdf9;

  /* Sémantiques */
  --ok:        #059669;
  --ok-tint:   #ecfdf3;
  --warn:      #d97706;
  --warn-tint: #fff7ea;
  --bad:       #dc2626;
  --bad-tint:  #fef2f2;

  /* Élévation : ombres douces 2 couches */
  --e1: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05);
  --e2: 0 2px 4px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.09);
  --e-brand: 0 6px 18px rgba(234,88,12,.28);
  --e-or:    0 6px 18px rgba(13,148,136,.26);

  /* Rayons */
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body { min-height: 100dvh; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 16px; } /* 16px = pas de zoom auto iOS */
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-tint); }

/* Scrollbar discrète */
::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   APP BAR
   ============================================================ */
.app-bar {
  position: sticky; top: 0; z-index: 40;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.app-bar__title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-bar__title b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar__title small { font-size: 12px; color: var(--muted); font-weight: 500; }
.app-bar__back {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--ink);
  background: var(--bg-soft); transition: background .15s, transform .1s;
}
.app-bar__back:active { transform: scale(.92); background: var(--line); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--muted);
  background: transparent; transition: background .15s, color .15s, transform .1s;
}
.icon-btn:active { transform: scale(.9); background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }

/* Brand mark */
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #fb923c, var(--brand) 55%, var(--brand-600));
  box-shadow: var(--e-brand);
}
.brand-mark svg { width: 22px; height: 22px; }

/* ============================================================
   LANG TOGGLE (segmenté)
   ============================================================ */
.lang {
  display: inline-flex; padding: 3px; gap: 2px; flex: none;
  background: var(--bg-soft); border-radius: 999px;
}
.lang button {
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; transition: all .18s;
  letter-spacing: .02em;
}
.lang button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page { padding: 16px 16px calc(28px + var(--safe-b)); max-width: 680px; margin: 0 auto; }
.page--with-bar { padding-bottom: calc(96px + var(--safe-b)); }
.section-label {
  font-size: 12px; font-weight: 700; color: var(--faint);
  letter-spacing: .12em; text-transform: uppercase; margin: 6px 4px 12px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--e1); border: 1px solid var(--line-soft);
}

/* OR card (liste) */
.or-card {
  display: block; padding: 16px; margin-bottom: 12px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--e1); border: 1px solid var(--line-soft);
  transition: transform .12s, box-shadow .2s;
}
.or-card:active { transform: scale(.985); box-shadow: var(--e2); }
.or-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.or-card__num { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.or-card__plate {
  margin-left: auto; font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--ink-2); background: var(--bg-soft); padding: 4px 9px; border-radius: 8px;
  border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.or-card__client { font-size: 16px; font-weight: 700; color: var(--ink); }
.or-card__veh { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.or-card__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.or-card__meta { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.or-card__ttc { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .01em; }
.pill--brouillon { color: var(--muted); background: var(--bg-soft); }
.pill--en_cours  { color: var(--or-600); background: var(--or-tint); }
.pill--termine   { color: var(--ok); background: var(--ok-tint); }
.pill--facture   { color: var(--brand-600); background: var(--brand-tint); }
.pill--annule    { color: var(--bad); background: var(--bad-tint); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================================================
   SEARCH
   ============================================================ */
.search { position: relative; margin-bottom: 16px; }
.search input {
  width: 100%; height: 50px; padding: 0 16px 0 46px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink); font-weight: 500;
  box-shadow: var(--e1); transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }

/* ============================================================
   OR HEADER (fiche)
   ============================================================ */
.or-head { padding: 18px; margin-bottom: 16px; }
.or-head__row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.or-head__plate {
  font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.or-head__client { font-size: 17px; font-weight: 700; }
.or-head__veh { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ============================================================
   LIGNES OR
   ============================================================ */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--line-soft); box-shadow: var(--e1);
}
.line.is-new { animation: pop .4s cubic-bezier(.22,1,.36,1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.line__qty {
  flex: none; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--or-tint); color: var(--or-600); font-variant-numeric: tabular-nums;
}
.line__body { flex: 1; min-width: 0; }
.line__name { font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line__ref { font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.line__price { flex: none; font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.line__del {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--faint);
  background: transparent; transition: all .15s;
}
.line__del:active { background: var(--bad-tint); color: var(--bad); transform: scale(.9); }
.line__mo { background: var(--bg-soft); color: var(--muted); }

/* Empty state */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; color: var(--faint); margin-bottom: 14px; opacity: .7; }
.empty b { display: block; font-size: 16px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.empty span { font-size: 13.5px; }

/* ============================================================
   STICKY BARS (total + add)
   ============================================================ */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
  max-width: 680px; margin: 0 auto;
}
.dock__total { display: flex; flex-direction: column; }
.dock__total small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.dock__total b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 22px; border-radius: var(--r);
  font-size: 16px; font-weight: 700; color: #fff; background: var(--brand);
  box-shadow: var(--e-brand); transition: transform .1s, box-shadow .2s, opacity .2s;
  width: 100%;
}
.btn svg { width: 21px; height: 21px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn--or { background: var(--or); box-shadow: var(--e-or); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--e1); border: 1px solid var(--line); }
.btn--ghost:active { background: var(--bg-soft); }
.btn--lg { height: 58px; font-size: 17px; }
.btn--grow { flex: 1; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn--ghost.is-loading::after { border-color: rgba(15,23,42,.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SCANNER (plein écran caméra)
   ============================================================ */
.scanner { position: fixed; inset: 0; z-index: 80; background: #000; display: none; flex-direction: column; }
.scanner.is-open { display: flex; }
.scanner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner__overlay { position: absolute; inset: 0; }
/* Cadre de visée */
.scanner__frame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-54%);
  width: min(74vw, 320px); aspect-ratio: 1; border-radius: 28px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.55);
}
.scanner__frame::before, .scanner__frame::after,
.scanner__corners span { position: absolute; }
.scanner__corners i {
  position: absolute; width: 34px; height: 34px;
  border: 3px solid #fff; border-radius: 14px;
}
.scanner__corners i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.scanner__corners i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.scanner__corners i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.scanner__corners i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.scanner__laser {
  position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; top: 12%;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 14px 2px rgba(234,88,12,.7);
  animation: laser 2.2s ease-in-out infinite;
}
@keyframes laser { 0%,100% { top: 12%; } 50% { top: 86%; } }
.scanner__top {
  position: relative; z-index: 2; padding: calc(var(--safe-t) + 14px) 16px 14px;
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.scanner__top b { font-size: 16px; font-weight: 700; }
.scanner__close {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px);
}
.scanner__hint {
  position: absolute; left: 0; right: 0; bottom: calc(40px + var(--safe-b)); z-index: 2;
  text-align: center; color: #fff; padding: 0 32px;
}
.scanner__hint b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.scanner__hint span { font-size: 13.5px; color: rgba(255,255,255,.7); }
.scanner__torch {
  margin-left: auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff;
}
.scanner__torch.is-on { background: #fff; color: var(--ink); }
.scanner__manual {
  position: absolute; left: 16px; right: 16px; bottom: calc(108px + var(--safe-b)); z-index: 3;
}
.scanner__manual input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r);
  background: rgba(255,255,255,.95); border: none; font-weight: 700; letter-spacing: .04em;
  font-family: var(--font);
}
.scanner__manual.is-hidden { display: none; }

/* ============================================================
   SHEET (confirmation article + quantité)
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  background: var(--surface); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(22px + var(--safe-b));
  box-shadow: 0 -8px 40px rgba(15,23,42,.18);
  transform: translateY(110%); transition: transform .32s cubic-bezier(.22,1,.36,1);
  max-width: 680px; margin: 0 auto;
}
.sheet.is-open { transform: translateY(0); }
.sheet__grip { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 16px; }
.sheet__art { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sheet__art-icon {
  width: 52px; height: 52px; border-radius: 15px; flex: none; display: grid; place-items: center;
  background: var(--or-tint); color: var(--or-600);
}
.sheet__art-icon svg { width: 26px; height: 26px; }
.sheet__name { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.sheet__ref { font-size: 12.5px; color: var(--faint); font-weight: 600; margin-top: 3px; }
.sheet__tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); }
.tag--stock-ok { background: var(--ok-tint); color: var(--ok); }
.tag--stock-low { background: var(--warn-tint); color: var(--warn); }
.tag--stock-out { background: var(--bad-tint); color: var(--bad); }

/* Stepper quantité */
.qty { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 20px; }
.qty__btn {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink); transition: transform .1s, background .15s;
}
.qty__btn:active { transform: scale(.9); background: var(--line); }
.qty__btn svg { width: 26px; height: 26px; }
.qty__val { font-size: 38px; font-weight: 800; min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Sheet "inconnu" */
.sheet__unknown { text-align: center; padding: 8px 0 4px; }
.sheet__unknown svg { width: 48px; height: 48px; color: var(--warn); margin-bottom: 10px; }
.sheet__code { font-family: var(--font); font-weight: 800; letter-spacing: .04em; color: var(--ink); word-break: break-all; }

/* Résultats recherche */
.search-results { max-height: 46vh; overflow-y: auto; margin: 4px -4px 14px; -webkit-overflow-scrolling: touch; }
.search-results .res {
  display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.search-results .res:active { background: var(--bg-soft); }
.res__body { flex: 1; min-width: 0; }
.res__name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res__ref { font-size: 12px; color: var(--faint); font-weight: 600; }

/* ============================================================
   TOASTS
   ============================================================ */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-t) + 12px); z-index: 100;
  display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 460px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  background: var(--ink); color: #fff; border-radius: 15px;
  box-shadow: var(--e2); font-size: 14.5px; font-weight: 600;
  animation: toast-in .3s cubic-bezier(.22,1,.36,1);
}
.toast.out { animation: toast-out .25s ease forwards; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast--ok   { background: #0b3d2e; }
.toast--ok   svg { color: #4ade80; }
.toast--bad  { background: #4c1414; }
.toast--bad  svg { color: #f87171; }
.toast--warn { background: #4a3208; }
.toast--warn svg { color: #fbbf24; }
@keyframes toast-in { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-16px); opacity: 0; } }

/* Flash de succès plein écran (au scan validé) */
.flash-ok {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: rgba(5,150,105,.0); pointer-events: none;
}
.flash-ok.go { animation: flash .55s ease; }
.flash-ok svg { width: 92px; height: 92px; color: #fff; opacity: 0; }
.flash-ok.go svg { animation: flash-check .55s cubic-bezier(.22,1,.36,1); }
@keyframes flash { 0% { background: rgba(5,150,105,0); } 30% { background: rgba(5,150,105,.92); } 100% { background: rgba(5,150,105,0); } }
@keyframes flash-check { 0% { transform: scale(.4); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }

/* ============================================================
   LOGIN
   ============================================================ */
.login { min-height: 100dvh; display: flex; flex-direction: column; }
.login__hero {
  flex: none; padding: calc(var(--safe-t) + 56px) 28px 40px;
  background: linear-gradient(160deg, #1c1917 0%, #0c0a09 60%);
  color: #fff; border-radius: 0 0 32px 32px; position: relative; overflow: hidden;
}
.login__hero::after {
  content: ''; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(234,88,12,.45), transparent 70%); filter: blur(8px);
}
.login__mark {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #fb923c, var(--brand) 55%, var(--brand-600));
  box-shadow: var(--e-brand); margin-bottom: 20px; position: relative; z-index: 1;
}
.login__mark svg { width: 34px; height: 34px; }
.login__hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; position: relative; z-index: 1; }
.login__hero p { font-size: 15px; color: rgba(255,255,255,.6); margin: 0; font-weight: 500; position: relative; z-index: 1; }
.login__form { flex: 1; padding: 32px 24px calc(28px + var(--safe-b)); max-width: 480px; width: 100%; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.login__error {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; margin-bottom: 18px;
  background: var(--bad-tint); color: var(--bad); border-radius: 14px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(220,38,38,.16);
}
.login__error svg { width: 20px; height: 20px; flex: none; }
.login__foot { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--faint); font-weight: 500; }

/* ============================================================
   MODE TILES (accueil)
   ============================================================ */
.modes { display: flex; flex-direction: column; gap: 14px; }
.mode-tile {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--e1); border: 1px solid var(--line-soft);
  transition: transform .12s, box-shadow .2s;
}
.mode-tile:active { transform: scale(.98); box-shadow: var(--e2); }
.mode-tile__icon { width: 62px; height: 62px; border-radius: 18px; flex: none; display: grid; place-items: center; }
.mode-tile__icon svg { width: 31px; height: 31px; }
.mode-tile__icon--or    { background: var(--or-tint); color: var(--or); }
.mode-tile__icon--stock { background: var(--brand-tint); color: var(--brand); }
.mode-tile__body { flex: 1; min-width: 0; }
.mode-tile__body b { display: block; font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.mode-tile__body span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.mode-tile__chev { color: var(--faint); flex: none; }
.mode-tile__chev svg { width: 22px; height: 22px; }

/* Hero (page mise en stock) */
.hero { text-align: center; padding: 36px 24px 28px; }
.hero__icon { width: 96px; height: 96px; border-radius: 28px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); box-shadow: var(--e1); }
.hero__icon svg { width: 48px; height: 48px; }
.hero h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.hero p { font-size: 14.5px; color: var(--muted); margin: 0 auto; max-width: 300px; font-weight: 500; }

/* Divers */
[hidden] { display: none !important; }
.spinner-page { display: grid; place-items: center; padding: 60px 0; }
.spinner-page::after { content: ''; width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
