/* variables.css — Design tokens for app3. All km- prefixed. */

:root {
  --km-radius: 8px;
  --km-font-size: 16px; /* app default text size — 16px (2026-10-07, explicit request; was 18px) */
  --km-line-height: 1.5;
  --km-letter-spacing: 0em;
  --km-density: 12px;
  --km-sidebar-w: 220px;
  --km-sidebar-w-collapsed: 56px;
  --km-topbar-h: 52px;
  /* Mobile bottom nav (km-mobile-nav) height — JS measures the real element
     and overrides this at runtime (js/app.js _kmSyncMobNavVar). Used by
     feedback.css so mobile modals sit above the bottom menu. */
  --km-mob-nav-h: 62px;
  --km-font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --km-shadow: 0 1px 4px rgba(0,0,0,.09);
  --km-shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --km-trans: .18s ease;
  /* Scan buttons (2026-10-05, explicit request): one dedicated look for every
     "Scanner…" button app-wide — anthracite like the scanner screen itself,
     with a green QR icon. Deliberately NOT a status colour (green/amber/red/
     blue/purple keep their CLAUDE.md §0d meanings). */
  --km-scan-bg: #161a1f;
  --km-scan-fg: #ffffff;
  --km-scan-icon: #5DCAA5;
  /* Retour button — one colour app-wide (2026-10-06, explicit request, option A
     "corail doux"): visible, warm, but not the red danger colour. */
  --km-back-bg: #FAECE7;
  --km-back-fg: #712B13;
  --km-back-border: #D85A30;
  /* Gratuit (free item) — a real YELLOW, distinct from the amber --warning
     (2026-10-06, explicit request: "yellow not orange"). */
  --km-gratuit-bg: #FFF7C2;
  --km-gratuit-border: #E3B500;
  --km-gratuit-fg: #6B5400;
  /* Notification panel — its own look (2026-10-07, explicit request, option A
     "navy head"), DERIVED from the active theme's --accent so it follows
     every theme (light, dark, sepia, sky-blue…) and the admin's custom colours:
     deep accent head + tabs, accent-tinted body, surface cards. */
  --km-nt-head-bg: color-mix(in srgb, var(--accent) 62%, #000);
  --km-nt-head-fg: #ffffff;
  --km-nt-head-soft: color-mix(in srgb, var(--accent) 45%, #fff);
  --km-nt-body-bg: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --km-nt-card-bg: var(--surface);
  --km-nt-card-border: color-mix(in srgb, var(--accent) 30%, var(--border));
  --km-nt-card-fg: var(--text);
  --km-nt-accent: var(--accent);
  /* Menu section icon colours (2026-10-06, explicit request): a section
     header with data-tone="…" in index.php colours the icons of its items,
     in the sidebar and the mobile menu. Category colours, not statuses. */
  /* Top / bottom bars of module screens (head, bottom bar, footers) — one shared
     grey, a touch darker than --surface-2 (2026-10-06, explicit request: "one logic"
     across lv/aff2, lv/rpc, lv/rpr2). Follows the theme (dark theme included). */
  --km-bar-bg: color-mix(in srgb, var(--text) 6%, var(--surface-2));
  --km-tone-exp: #0d9488;        /* Expédition — teal */
  --km-tone-livraison: #ea580c;  /* Service livraison — orange */
  /* Modal zone backgrounds — override in réglages to customise */
  --km-modal-head-bg: var(--surface-2);
  --km-modal-foot-bg: var(--surface-2);
  --km-modal-body-bg: var(--surface);
  /* Placeholder text — softened toward the field's own background instead
     of full-strength --text-2, so an empty field reads as empty (a hint)
     rather than looking like it already has real content in it. Theme-aware
     automatically since it's derived from --text-2/--surface, not a fixed
     color. */
  --km-placeholder: color-mix(in srgb, var(--text-2) 55%, var(--surface));
  /* Bottom-of-screen reservation on mobile: the mobile bottom nav's real
     height when it's showing (--km-mob-nav-h, JS-measured, 0 once
     kmSetMobNavMode('module') hides it), or just the device's safe-area
     inset when it's not — so content never sits flush against a notch/home
     indicator even with no nav bar to avoid. Shared by .km-content
     (layout.css) and any module's own full-height shell (e.g. lv/gz's
     .km-gz-page) so both reserve exactly the same amount and stay in sync
     as the nav shows/hides. */
  --km-mob-bottom-safe: max(var(--km-mob-nav-h, 100px), env(safe-area-inset-bottom, 0px));
}
