/* Variables de design — palette de wingbox.fr (encre marine, bleus océan, orange soleil, fond mousse). Thème clair par défaut, sombre automatique. */
:root {
  /* Fonds, texte, filets */
  --bg: #f7f9fb; --surface: #ffffff; --ink: #0b2236; --ink-deep: #04101d; --muted: #51677c; --line: #e2e9f0;
  /* Marque */
  --deep: #083867; --ocean: #0057c2; --sky: #17c3f0; --sun: #ff7f00; --sun-deep: #dd6600; --gold: #ffa53d;
  /* Rôles : accent = liens, états choisis ; cta = action principale (orange soleil, texte marine comme sur wingbox.fr) */
  --accent: var(--ocean); --accent-ink: #ffffff; --accent-soft: #e8f1fb;
  --cta: var(--sun); --cta-hover: var(--sun-deep); --cta-ink: var(--ink-deep);
  /* Jour choisi et étapes faites (D85) : bleu profond sur fond clair. */
  --chosen: var(--deep); --chosen-ink: #ffffff;
  /* Carte cadeau et cartes à imprimer : feuille blanche, mêmes valeurs quel que soit le thème (jamais redéfinis en sombre). */
  --paper-ink: #0b2236; --paper-muted: #51677c; --paper-deep: #083867; --paper-ocean: #0057c2;
  --ok: #17794a; --ok-soft: #e3f5ec; --danger: #b3261e; --danger-soft: #fdeceb; --warn-soft: #fff1d6;
  --shadow: 0 1px 2px rgb(4 16 29 / 6%), 0 10px 28px -12px rgb(4 16 29 / 18%);
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 18px;

  /* ===== Design system, lot 1 (15/10/2026) : jetons AJOUTÉS, aucun composant ne les utilise encore (aucun changement visible).
     Source : design/CHARTE_GRAPHIQUE.md et design/wingbox-tokens.css (préfixe --wb-). L'application utilise les noms sans préfixe.
     Lot 5 : les anciens --radius (6 px) et --radius-lg (10 px) sont retirés, remplacés par --radius-sm et --radius-md (12 px). ===== */
  --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: 6px; --radius-md: 12px; --radius-xl: 20px; --radius-pill: 999px;
  --on-deep: #ffffff; --deep-sub: #b9d3ea;
  --warn: #8a4b00; --warn-ink: #ffffff; --danger-ink: #ffffff; --line-strong: #c5d3df;
  /* Bord d'un rond ou d'une case à cocher non choisi : au moins 3:1 sur le fond, la carte et le fond d'un choix coché. */
  --control-edge: #6b8197;
  --shadow-1: 0 1px 2px rgb(4 16 29 / 6%), 0 8px 24px -12px rgb(4 16 29 / 16%);
  --shadow-2: 0 2px 4px rgb(4 16 29 / 8%), 0 16px 36px -14px rgb(4 16 29 / 22%);
  --shadow-3: 0 4px 8px rgb(4 16 29 / 10%), 0 24px 56px -16px rgb(4 16 29 / 30%);
  --control-h: 52px; --pad-card: 24px; --text-body: 1rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Densité : public (aéré) par défaut ; l'administration passera en compact au lot 6 (data-density="compact" sur <body>). */
[data-density="compact"] { --control-h: 44px; --pad-card: 14px; --text-body: .9375rem; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04101d; --surface: #0b2236; --ink: #f2f7fb; --muted: #a7c1d6; --line: #1b3a54;
    --accent: #5bb6ff; --accent-ink: #04101d; --accent-soft: #0e2f4a;
    --ok: #5fd39a; --ok-soft: #12301f; --danger: #ff8a80; --danger-soft: #3a1815; --warn-soft: #3a2f12; --warn: #ffcf7a; --warn-ink: #04101d; --danger-ink: #04101d; --line-strong: #2b4a66; --control-edge: #7f9db5;
    /* Confirmé par Pierre (D85, D152) : bleu ciel + encre foncée en sombre (le bleu profond se confondait avec le fond). Un seul endroit à changer. */
    --chosen: var(--sky); --chosen-ink: var(--ink-deep);
    --shadow: 0 1px 2px rgb(0 0 0 / 50%), 0 12px 30px -14px rgb(0 0 0 / 70%);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 50%), 0 12px 30px -14px rgb(0 0 0 / 70%);
  }
}
