/* Source Sans 3 (variable, OFL — voir /fonts/OFL.txt), hébergée sur le site : aucune requête vers Google. */
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ─────────────────────────────────────────────────────────────
   Suisses de Nouvelle-Calédonie — Design tokens
   Un seul accent : le rouge suisse. Neutres froids, thème clair.
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── Accent unique (rouge suisse) — ≤10 % de l'écran ── */
  --accent-700: oklch(46% 0.19 27);   /* hover des boutons primaires */
  --accent-600: oklch(52% 0.20 27);   /* actions primaires (texte blanc ≥ 4.5:1) */
  --accent-500: oklch(60% 0.19 27);   /* états actifs, focus ring */
  --accent-100: oklch(92% 0.04 27);   /* bordure d'état sélectionné */
  --accent-050: oklch(97% 0.02 27);   /* fond d'état sélectionné / hover discret */

  /* ── Neutres (légèrement froids) ── */
  --bg:        oklch(99.3% 0.002 250);
  --surface:   oklch(97.6% 0.004 250);
  --surface-2: oklch(95%   0.005 250);
  --border:    oklch(90%   0.006 250);
  --border-2:  oklch(85%   0.008 250);
  --ink:       oklch(26%   0.015 250);
  --slate:     oklch(47%   0.012 250);
  --faint:     oklch(62%   0.008 250);

  /* ── Sémantique ── */
  --danger:    oklch(52%  0.17 27);
  --danger-bg: oklch(96%  0.02 27);
  --success:   oklch(52%  0.10 155);
  --warn:      oklch(70%  0.11 75);

  /* ── Typographie ── */
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;

  --fs-display: clamp(2rem, 5vw, 3.25rem);
  --fs-headline: 1.5rem;
  --fs-title: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-label: 0.78rem;
  --measure: 68ch;

  /* ── Rayons ── */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* ── Espacement ── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;

  /* ── Élévation ── */
  --shadow-hover: 0 2px 8px oklch(26% 0.015 250 / 0.08);
  --shadow-pop:   0 6px 24px oklch(26% 0.015 250 / 0.12);

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
  --dur-fast: 110ms;

  /* ── Z-index ── */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-backdrop: 300;
  --z-modal:    400;
  --z-toast:    500;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; --dur-fast: 0ms; }
}
