/**
 * Utrum — Design Tokens de Référence Maquettes
 * Direction Artistique : "Éditorial & Binaire"
 * Fond sable chaud / lin (#F5F1EA), cartes blanc crème (#FFFDF8),
 * encre chaude (#1E1B16), typographie Newsreader & Hanken Grotesk,
 * teintes bicolores emblématiques (#2E6B5B et #B24A30 / #7DBBA6 et #E58E6E).
 */

:root {
  /* ==========================================================================
     1. Typographie & Polices
     ========================================================================== */
  --font-serif: "Newsreader", "Georgia", "Cambria", serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Échelle de tailles */
  --font-size-display: 2.75rem;   /* 44px */
  --line-height-display: 3.125rem;/* 50px */
  --font-weight-display: 500;

  --font-size-h1: 2.625rem;        /* 42px */
  --line-height-h1: 3.125rem;      /* 50px */
  --font-weight-h1: 500;

  --font-size-h2: 1.875rem;        /* 30px */
  --line-height-h2: 2.25rem;       /* 36px */
  --font-weight-h2: 500;

  --font-size-card-title: 1.3125rem;/* 21px */
  --line-height-card-title: 1.75rem;/* 28px */
  --font-weight-card-title: 500;

  --font-size-body: 1rem;          /* 16px */
  --line-height-body: 1.5;
  --font-weight-body: 400;

  --font-size-sm: 0.875rem;        /* 14px */
  --line-height-sm: 1.25rem;       /* 20px */
  --font-weight-sm: 400;

  --font-size-xs: 0.8125rem;       /* 13px */
  --line-height-xs: 1.125rem;      /* 18px */
  --font-weight-xs: 600;

  --font-size-stat: 4rem;          /* 64px */
  --line-height-stat: 4.25rem;     /* 68px */
  --font-weight-stat: 500;

  /* ==========================================================================
     2. Couleurs Sémantiques & Palette Maquette
     ========================================================================== */
  --background: #F5F1EA;           /* Warm sand / linen */
  --surface: #FFFDF8;              /* Blanc crème des cartes */
  --surface-raised: #FFFDF8;
  --foreground: #1E1B16;           /* Encre principale chaude */
  --foreground-heading: #1E1B16;   /* Titres éditoriaux */
  --foreground-secondary: #4A443B; /* Encre secondaire */
  --muted: #EFE9DF;                /* Séparateurs & fonds feutrés */
  --muted-foreground: #6E675D;     /* Métadonnées & labels */
  --meta: #6E675D;
  --meta-subtle: #A39B8E;          /* Textes désactivés ou très discrets */
  --border: #E4DDD1;               /* Bordure standard cartes et header */
  --border-strong: #CFC6B7;        /* Bordure active ou hover */
  --border-subtle: #EFE9DF;        /* Séparateur intérieur léger */

  /* Marque, Liens & Accent primaire */
  --primary: #1E1B16;              /* Noir chaud */
  --primary-foreground: #F5F1EA;   /* Sable clair contrasté */
  --primary-hover: #3A352D;

  --link: #2E6B5B;                 /* Vert canard signature */
  --link-hover: #1F4D41;

  /* Boutons de vote OUI / NON */
  /* Sur fond Hero sombre (#1E1B16) */
  --hero-vote-yes: #7DBBA6;        /* Vert sauge */
  --hero-vote-yes-text: #12201B;
  --hero-vote-no: #E58E6E;         /* Corail / terracotta */
  --hero-vote-no-text: #2A120A;

  /* Sur fond clair (page question / détail) */
  --vote-yes: #2E6B5B;             /* Vert soutenu */
  --vote-yes-fg: #FFFFFF;
  --vote-yes-bg: #E2EEE8;          /* Chip / badge OUI */
  --vote-yes-text: #1F4D41;
  --vote-yes-border: #2E6B5B;

  --vote-no: #B24A30;              /* Rouge brique / terracotta soutenu */
  --vote-no-fg: #FFFFFF;
  --vote-no-bg: #F7E4DC;           /* Chip / badge NON */
  --vote-no-text: #7A2F1C;
  --vote-no-border: #B24A30;

  /* Jauges de résultats OUI / NON */
  --gauge-yes: #3F8C76;
  --gauge-no: #D0714F;

  /* Paliers de tarification */
  --tier-standard-bg: #E2EEE8;     /* Badge vert <= 160 car. */
  --tier-standard-fg: #1F4D41;
  --tier-extended-bg: #E3EBF4;     /* Badge bleu 161-300 car. */
  --tier-extended-fg: #284D78;

  /* Hero Accent : Or / Ambre chaud */
  --hero-accent: #E2A93B;          /* Badge 'À la Une · 24 h' */
  --hero-accent-fg: #1E1B16;
  --hero-accent-bg: #F8EBCD;       /* Encart Hero actif dans formulaire */
  --hero-accent-border: #E2A93B;
  --hero-accent-icon: #9A6A14;

  /* Badges et statuts */
  --verified: #3567A0;             /* Badge bleu certifié officiel */
  --verified-bg: #E3EBF4;
  --verified-fg: #284D78;

  --avatar-default-bg: #F8EBCD;
  --avatar-default-fg: #6E4A0E;

  --destructive: #B24A30;
  --ring: #2E6B5B;

  /* ==========================================================================
     3. Espacements & Dimensions Maquette
     ========================================================================== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Ombres feutrées selon la maquette */
  --shadow-card: 0 1px 3px rgba(30, 27, 22, 0.04);
  --shadow-card-hover: 0 10px 24px rgba(60, 45, 20, 0.08);

  /* Layout */
  --max-width: 1120px;
  --measure: 728px;

  /* Transitions */
  --ease-smooth: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 600ms;
}

/* ==========================================================================
   4. Accessibilité & Tabular Nums
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}
