/* ==========================================================
   RGE Facile — Design system v1 · tokens
   Polices : Archivo (titres) + Public Sans (texte), Google Fonts
   https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Public+Sans:wght@400;500;600;700&display=swap
   ========================================================== */
:root{
  color-scheme: light;

  /* Couleurs : fonds */
  --rge-color-bg: #F3F5F4;            /* fond de page */
  --rge-color-surface: #FFFFFF;       /* cartes, barre du haut */
  --rge-color-dark: #15212B;          /* bandeaux sombres, carte « compte à rebours » */
  --rge-color-dark-raised: #1E2D3A;   /* champs et encarts posés sur fond sombre */

  /* Couleurs : texte */
  --rge-color-ink: #15212B;           /* texte principal, titres */
  --rge-color-text-2: #3B4752;        /* paragraphes secondaires */
  --rge-color-muted: #4A5763;         /* légendes, aides */
  --rge-color-on-dark: #FFFFFF;
  --rge-color-on-dark-muted: #C9D2DA;

  /* Couleurs : marque */
  --rge-color-primary: #1F3A8A;       /* bleu RGE Facile : actions principales, liens */
  --rge-color-primary-hover: #15296A;
  --rge-color-primary-soft: #E6EBF7;  /* pastilles, fonds d'info */
  --rge-color-accent: #F5A524;        /* ambre : échéance, action sur fond sombre, focus */
  --rge-color-accent-hover: #E0931A;
  --rge-color-accent-soft: #FFF6E0;

  /* Couleurs : statuts des pièces */
  --rge-color-success: #14532D;  --rge-color-success-soft: #DCF3E4;   /* Récupéré */
  --rge-color-warning: #6B4500;  --rge-color-warning-soft: #FDEFC8;   /* À surveiller */
  --rge-color-info: #1F3A8A;     --rge-color-info-soft: #E6EBF7;      /* À fournir */
  --rge-color-danger: #9F1D1D;   --rge-color-danger-soft: #FCE4E4;    /* Erreur de saisie */

  /* Couleurs : traits */
  --rge-color-border: #D9DEE2;
  --rge-color-border-strong: #C3CAD0;
  --rge-color-divider: #E4E8EB;
  --rge-color-dark-border: #4A5B6A;
  --rge-color-focus: #F5A524;

  /* Typographie */
  --rge-font-display: 'Archivo', system-ui, sans-serif;
  --rge-font-body: 'Public Sans', system-ui, sans-serif;
  --rge-text-display: clamp(32px, 4.4vw, 52px);  /* h1 */
  --rge-text-h2: clamp(26px, 3vw, 34px);
  --rge-text-h3: 21px;
  --rge-text-lead: 19px;
  --rge-text-body: 17px;
  --rge-text-small: 15px;
  --rge-text-caption: 13px;
  --rge-leading-tight: 1.1;
  --rge-leading-body: 1.55;

  /* Espacements (base 4 px) */
  --rge-space-1: 4px;
  --rge-space-2: 8px;
  --rge-space-3: 12px;
  --rge-space-4: 16px;
  --rge-space-5: 24px;
  --rge-space-6: 32px;
  --rge-space-7: 48px;
  --rge-space-8: 64px;
  --rge-container: 1120px;
  --rge-gutter: 24px;

  /* Rayons et ombres */
  --rge-radius-sm: 10px;   /* champs */
  --rge-radius-md: 12px;   /* boutons */
  --rge-radius-lg: 20px;   /* cartes */
  --rge-radius-xl: 24px;   /* grands bandeaux */
  --rge-radius-pill: 999px;
  --rge-shadow-card: 0 1px 2px rgba(21,33,43,.06), 0 8px 24px rgba(21,33,43,.06);

  /* Contrôles */
  --rge-control-h: 52px;   /* bouton / champ standard */
  --rge-control-h-sm: 44px;
}
