/* Santé en Main — tokens compilés depuis tokens.json.
   Fonts (Google Fonts, à charger dans le <head> de ta page) :
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..600&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
*/

:root,
[data-theme="light"] {
  --surface: #ffffff;
  --surface-sunken: #f2f7fb;
  --surface-raised: #ffffff;
  --line: #dbe8f2;
  --border-control: #6f8ca3;
  --ink: #10263c;
  --ink-muted: #55697c;
  --brand-900: #0a1f33;
  --brand-700: #15406b;
  --brand-500: #2f6fa8;
  --brand-100: #e7f1fa;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px #0a1f330f, 0 2px 6px #0a1f331a;
  --shadow-lg: 0 8px 16px #0a1f3314, 0 24px 48px -8px #0a1f3329;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #2f6fa8;
}

[data-theme="dark"] {
  --surface: #0a1930;
  --surface-sunken: #0f2338;
  --surface-raised: #122a45;
  --line: #1c3450;
  --border-control: #4c6a86;
  --ink: #eef5fc;
  --ink-muted: #9fb8cc;
  --brand-900: #132844;
  --brand-700: #4f8fc7;
  --brand-500: #6fa8d8;
  --brand-100: #204a78;
  --on-brand: #06131f;
  --shadow-sm: 0 2px 6px #00000066;
  --shadow-lg: 0 24px 48px -8px #000000b3;
  --focus-ring: 0 0 0 2px #0a1930, 0 0 0 4px #6fa8d8;
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Styles de texte (voir tokens.json > type.groups pour l'usage de chacun) */
.display-xl { font-family: var(--font-display); font-size: 64px; line-height: 68px; font-weight: 400; letter-spacing: -0.01em; }
.display-lg { font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 500; }
.display-md { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 500; }
.body-lg     { font-family: var(--font-sans);    font-size: 18px; line-height: 28px; font-weight: 400; }
.body        { font-family: var(--font-sans);    font-size: 16px; line-height: 25px; font-weight: 400; }
.body-sm     { font-family: var(--font-sans);    font-size: 14px; line-height: 21px; font-weight: 400; }
.label       { font-family: var(--font-sans);    font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
