/* Light theme — colour ROLE tokens. Default theme (:root) and explicit [data-theme="light"].
   WCAG 2.1 AA contrast (ratios vs the relevant surface, computed for #ffffff/#F7F9FB):
     text-primary  neutral-900 #0F172A on surface #fff   ~17.9:1  (AA/AAA body)
     text-secondary neutral-600 #475569 on #fff          ~7.5:1   (AA body)
     text-link / on-light brand  blue-700 #006391 on #fff ~6.0:1  (AA body)
     on-primary  #fff on primary blue-700 #006391        ~6.0:1   (AA body)
     success-text green-700 #4C7F2A on #fff              ~5.0:1   (AA body)
     warning-text orange-800 #9C6405 on #fff             ~4.95:1  (AA body)
     error-text   red-700 #C62828 on #fff                ~5.7:1   (AA body) — off-brand complement */
:root,
[data-theme="light"] {
  --color-bg-base: var(--b3g-neutral-50);
  --color-bg-surface: var(--b3g-neutral-0);
  --color-bg-elevated: var(--b3g-neutral-0);
  --color-bg-subtle: var(--b3g-neutral-100);

  --color-text-primary: var(--b3g-neutral-900);
  --color-text-secondary: var(--b3g-neutral-600);
  --color-text-muted: var(--b3g-neutral-500);
  --color-text-on-primary: var(--b3g-neutral-0);
  --color-text-link: var(--b3g-blue-700);

  --color-border: var(--b3g-neutral-200);
  --color-border-strong: var(--b3g-neutral-300);

  --color-primary: var(--b3g-blue-700);
  --color-primary-hover: var(--b3g-blue-800);
  --color-primary-subtle: var(--b3g-blue-50);

  --color-success: var(--b3g-green-700);
  --color-success-subtle: #EAF5E1;
  --color-warning: var(--b3g-orange-800);
  --color-warning-subtle: #FCEFD6;
  --color-error: var(--b3g-red-700);
  --color-error-subtle: #FBE6E6;
  --color-info: var(--b3g-blue-600);
  --color-info-subtle: var(--b3g-blue-50);

  --color-focus-ring: var(--b3g-blue-600);
  --color-disabled-bg: var(--b3g-neutral-200);
  --color-disabled-text: var(--b3g-neutral-400);
  --color-loading: var(--b3g-neutral-200);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.14);

  /* ── ALIAS LAYER couleur (FND-1) — dépendants du thème (indirection ⇒ réévalués par thème) ── */
  --color-text: var(--color-text-primary);
  --color-text-tertiary: var(--color-text-muted);
  --color-link: var(--color-text-link);
  --color-on-primary: var(--color-text-on-primary);
  --color-focus: var(--color-focus-ring);
  --color-brand-blue: var(--color-primary);
  --color-surface-2: var(--color-bg-subtle);
  --color-surface-variant: var(--color-bg-subtle);
  --color-bg-muted: var(--color-bg-subtle);
  --color-border-subtle: var(--color-border);
  --color-warning-text: var(--color-warning);
  --color-warning-surface: var(--color-warning-subtle);
  --color-warning-border: var(--color-warning);
  color-scheme: light;
}
