/* Hallmark · macrostructure: Workbench · N3 side-rail · Ft2 inline
 * theme: custom · vibe: "institutionnel, clinique, chaleur bordeaux" · paper: oklch(97% 0.006 18) · accent: oklch(45% 0.14 18)
 * display: Space Grotesk · body: Geist · axes: light / geometric-sans / warm
 * studied: no · context: inferred-from-project-specs
 *
 * DISCIPLINE SEMANTIQUE, propre a ce produit :
 * le bordeaux est la marque ; le vert, le rouge et l'ambre sont RESERVES aux
 * verdicts de verification et ne servent jamais de decoration. Sur l'ecran de
 * verification, la marque se retire : la couleur n'y porte que du sens.
 */

:root {
  /* --- papier et encre, teintes vers le bordeaux (jamais de gris neutre pur) --- */
  --color-paper:    oklch(97% 0.006 18);
  --color-paper-2:  oklch(94.5% 0.008 18);
  --color-paper-3:  oklch(91% 0.010 18);
  --color-ink:      oklch(20% 0.012 18);
  --color-ink-2:    oklch(40% 0.010 18);
  --color-muted:    oklch(52% 0.010 18);
  --color-rule:     oklch(88% 0.008 18);
  --color-rule-2:   oklch(93% 0.006 18);

  /* --- marque --- */
  --color-accent:      oklch(45% 0.14 18);
  --color-accent-soft: oklch(93% 0.030 18);
  --color-accent-ink:  oklch(97% 0.006 18);
  --color-focus:       oklch(48% 0.19 18);

  /* --- verdicts : reserves, jamais decoratifs --- */
  --color-ok:        oklch(52% 0.15 150);
  --color-ok-soft:   oklch(94% 0.045 150);
  --color-ok-ink:    oklch(30% 0.09 150);
  --color-alerte:    oklch(60% 0.15 70);
  --color-alerte-soft: oklch(95% 0.055 80);
  --color-alerte-ink:  oklch(38% 0.10 65);
  --color-refus:     oklch(52% 0.20 27);
  --color-refus-soft: oklch(95% 0.040 27);
  --color-refus-ink:  oklch(33% 0.13 27);

  /* --- type --- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Geist Mono", "Consolas", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-display-s: clamp(2rem, 4vw + 0.5rem, 2.75rem);
  --text-display:   clamp(2.5rem, 6vw + 0.5rem, 4rem);

  /* --- espace, 4 pt --- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* --- traits, rayons, mouvement --- */
  --rule-hair: 1px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  28px;
  --radius-pill: 999px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  120ms;
  --dur-base:  200ms;
  --dur-slow:  320ms;

  --ombre-carte: 0 1px 2px oklch(20% 0.012 18 / 0.04), 0 8px 24px oklch(20% 0.012 18 / 0.05);
  --ombre-levee: 0 2px 4px oklch(20% 0.012 18 / 0.06), 0 14px 34px oklch(20% 0.012 18 / 0.08);
}

/* Mode comptoir : garde de nuit, faible luminosite, ecran en vitrine.
   Les verdicts remontent en clarte pour rester lisibles sur fond sombre. */
:root[data-mode="comptoir"] {
  --color-paper:    oklch(17% 0.010 18);
  --color-paper-2:  oklch(21% 0.012 18);
  --color-paper-3:  oklch(25% 0.014 18);
  --color-ink:      oklch(94% 0.008 18);
  --color-ink-2:    oklch(76% 0.010 18);
  --color-muted:    oklch(62% 0.012 18);
  --color-rule:     oklch(30% 0.014 18);
  --color-rule-2:   oklch(26% 0.012 18);

  --color-accent:      oklch(64% 0.14 18);
  --color-accent-soft: oklch(28% 0.045 18);
  --color-accent-ink:  oklch(15% 0.010 18);
  --color-focus:       oklch(70% 0.18 18);

  --color-ok:        oklch(74% 0.17 150);
  --color-ok-soft:   oklch(27% 0.055 150);
  --color-ok-ink:    oklch(88% 0.10 150);
  --color-alerte:    oklch(78% 0.15 75);
  --color-alerte-soft: oklch(28% 0.050 75);
  --color-alerte-ink:  oklch(90% 0.08 75);
  --color-refus:     oklch(66% 0.20 27);
  --color-refus-soft: oklch(27% 0.060 27);
  --color-refus-ink:  oklch(88% 0.10 27);

  --ombre-carte: 0 1px 2px oklch(0% 0 0 / 0.3), 0 8px 24px oklch(0% 0 0 / 0.28);
  --ombre-levee: 0 2px 4px oklch(0% 0 0 / 0.34), 0 14px 34px oklch(0% 0 0 / 0.4);
}
