/*
 * Jetons de design de Mon Complice (UX-DR1), recopiés exactement du front matter de DESIGN.md
 * (ux-Senior IA-2026-10-22) et des six ombres de sa section « Elevation & Depth ».
 * Une variable par jeton : --<groupe>-<jeton>. Vérifié par tests/serveur/jetons.test.js.
 * Contraste élevé et tailles A+/A++ : variables seulement, appliquées par la story 1.6. Pas de mode sombre.
 */
:root {
  /* Couleurs — attention : « forest » et « leaf » sont des BLEUS (noms hérités de MAT). */
  --color-forest: #1a3a5c;
  --color-leaf: #1b4fca;
  --color-sky: #2563eb;
  --color-mist: #dbeafe;
  --color-cream: #faf7f2;
  --color-card: #ffffff;
  --color-ink: #1c2b33;
  --color-ink-muted: #4a5b6e;
  --color-on-dark: #ffffff;
  --color-border: #e3e8ef;
  --color-border-strong: #cfd8e3;
  --color-border-control: #7a8899;
  --color-cell-given: #eef2f7;
  --color-amber: #fbbf24;
  --color-amber-bg: #fff6df;
  --color-amber-ink: #7a3d06;
  --color-emergency: #b91c1c;
  --color-emergency-light: #dc2626;
  --color-ambiance-matin-1: #1a3a5c;
  --color-ambiance-matin-2: #446286;
  --color-ambiance-matin-3: #8a5a2e;
  --color-ambiance-journee-1: #1a3a5c;
  --color-ambiance-journee-2: #2563eb;
  --color-ambiance-soiree-1: #1a3a5c;
  --color-ambiance-soiree-2: #3d5a80;
  --color-ambiance-soiree-3: #8f5a24;
  --color-ambiance-nuit-1: #0c1c2e;
  --color-ambiance-nuit-2: #16324e;
  --color-level-red: #b91c1c;
  --color-level-red-bg: #fdecec;
  --color-level-red-ink: #991b1b;
  --color-level-orange: #c2410c;
  --color-level-orange-bg: #ffedd5;
  --color-level-orange-ink: #9a3412;
  --color-level-green: #15803d;
  --color-level-green-bg: #e7f5ec;
  --color-level-green-ink: #166534;
  --color-focus-ring: #1b4fca;
  --color-focus-ring-on-dark: #ffffff;
  --color-hc-surface: #ffffff;
  --color-hc-ink: #000000;
  --color-hc-border: #000000;
  --color-hc-header: #0c1c2e;

  /* Typographie (tailles au réglage A). */
  --type-display-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-display-size: 24px;
  --type-display-weight: 800;
  --type-display-line-height: 1.25;

  --type-title-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-title-size: 22px;
  --type-title-weight: 800;
  --type-title-line-height: 1.3;

  --type-body-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-body-size: 20px;
  --type-body-weight: 500;
  --type-body-line-height: 1.45;

  --type-body-strong-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-body-strong-size: 20px;
  --type-body-strong-weight: 700;
  --type-body-strong-line-height: 1.45;

  --type-label-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-label-size: 18px;
  --type-label-weight: 700;
  --type-label-line-height: 1.35;

  --type-meta-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-meta-size: 18px;
  --type-meta-weight: 600;
  --type-meta-line-height: 1.35;

  --type-saint-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-saint-size: 19px;
  --type-saint-weight: 500;
  --type-saint-line-height: 1.3;

  --type-greeting-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-greeting-size: 20px;
  --type-greeting-weight: 600;
  --type-greeting-line-height: 1.35;

  --type-text-size-a-size: 20px;
  --type-text-size-a-plus-size: 24px;
  --type-text-size-a-plus-plus-size: 28px;

  --type-line-height-wide-line-height: 1.9;

  --type-story-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-story-size: 20px;
  --type-story-weight: 500;
  --type-story-line-height: 1.6;

  --type-game-symbol-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-game-symbol-size: 28px;
  --type-game-symbol-weight: 800;
  --type-game-symbol-line-height: 1;

  --type-timer-family: ui-rounded, Nunito, system-ui, sans-serif;
  --type-timer-size: 22px;
  --type-timer-weight: 800;
  --type-timer-line-height: 1.3;
  --type-timer-feature: 'tnum';

  /* Rayons. */
  --rounded-sm: 12px;
  --rounded-md: 20px;
  --rounded-lg: 24px;
  --rounded-bubble: 20px 20px 20px 6px;
  --rounded-full: 9999px;

  /* Espacements. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-gutter: 20px;
  --space-stack-gap: 10px;
  --space-section-gap: 22px;
  --space-tap-min: 48px;
  --space-tap-min-large: 56px;
  --space-header-fade: 48px;
  --space-mic-clearance: 104px;
  --space-character-width: 110px;
  --space-character-height: 140px;
  --space-character-width-small: 84px;
  --space-character-height-small: 106px;
  --space-record-clearance: 180px;
  --space-column-max: 480px;

  /* Les six ombres (DESIGN.md › Elevation & Depth). « character » est une valeur de filter, pas de box-shadow. */
  --shadow-card: 0 2px 16px rgba(26,58,92,.10);
  --shadow-primary-action: 0 6px 20px rgba(27,79,202,.28);
  --shadow-mic: 0 6px 18px rgba(26,58,92,.30);
  --shadow-bubble: 0 4px 14px rgba(12,28,46,.18);
  --shadow-panel: 0 -4px 24px rgba(12,28,46,.18);
  --shadow-character: drop-shadow(0 2px 6px rgba(12,28,46,.30));
}
