/* ==========================================================================
   Design tokens - ASA Prenois Bourgogne ("Night pit-lane")
   Source unique de toutes les valeurs visuelles. Aucune couleur, taille ou
   espacement ne doit etre ecrit en dur ailleurs : on consomme ces jetons.

   Theme unique : clair (:root). Les bandes hero et pied de page restent
   sombres via les jetons --night-*.
   ========================================================================== */

:root {
  /* ---- Typographie ---------------------------------------------------- */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Echelle fluide (mobile -> desktop). Corps un peu plus grand que la
     moyenne : le public compte beaucoup de benevoles seniors. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --step-5: clamp(2.75rem, 2rem + 3.8vw, 5rem);
  --step-6: clamp(3.25rem, 2.2rem + 5.4vw, 7rem);

  --leading-tight: 1;
  --leading-snug: 1.2;
  --leading-body: 1.65;
  --tracking-caps: 0.06em;
  --tracking-wide: 0.14em;
  --measure: 70ch;

  /* ---- Espacements (echelle 4 pt) ------------------------------------ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  /* ---- Rayons --------------------------------------------------------- */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* ---- Mise en page --------------------------------------------------- */
  --container: 72rem;
  --container-wide: 90rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --topbar-height: 4.5rem;
  --tap-target: 2.75rem;

  /* ---- Mouvement ------------------------------------------------------ */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* ---- Couches -------------------------------------------------------- */
  --z-content: 1;
  --z-topbar: 50;
  --z-drawer: 60;

  /* ---- Bande "nuit" : toujours sombre, quel que soit le theme --------- */
  --night-bg: #07080b;
  --night-surface: #12141b;
  --night-text: #f2f4f8;
  --night-muted: #b7bfd0;
  --night-line: rgba(255, 255, 255, 0.16);
  --night-line-strong: rgba(255, 255, 255, 0.34);
  --night-link: #9bbcff;
  --night-accent-text: #ff7468;
  --night-focus: #b7ceff;

  /* ---- Couleurs de marque (constantes) -------------------------------- */
  --brand-red: #e10600;
  --brand-blue: #2f6fe0;
  --brand-amber: #ffb81c;
  --brand-orange: #f26a0a;
  --brand-white: #ffffff;

  /* ==== THEME CLAIR (defaut) ========================================== */
  color-scheme: light;
  --bg: #edf0f5;
  --bg-raised: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --surface-3: #e7ecf3;
  --line: #d6dce7;
  --line-strong: #aeb7c8;

  --text: #0b1220;
  --text-muted: #44506a;
  --text-faint: #566380;
  --text-on-accent: #ffffff;

  --accent: #d10b00;
  --accent-hover: #a80900;
  --accent-text: #c20a00;
  --accent-soft: rgba(209, 11, 0, 0.09);

  --blue: #1b55d9;
  --blue-text: #1b55d9;
  --blue-soft: rgba(27, 85, 217, 0.1);

  --amber: #8a5a00;
  --amber-soft: rgba(255, 184, 28, 0.22);
  --success: #0b7a52;
  --danger: #b4232f;

  --focus: #1b55d9;
  --overlay: rgba(237, 240, 245, 0.86);
  --glass: rgba(255, 255, 255, 0.82);

  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 4px 14px rgba(11, 18, 32, 0.06);
  --shadow-2: 0 2px 4px rgba(11, 18, 32, 0.08), 0 14px 34px rgba(11, 18, 32, 0.12);
  --glow-accent: 0 8px 24px rgba(209, 11, 0, 0.28);

  /* Fond de page : halos tres discrets */
  --page-glow-a: rgba(47, 111, 224, 0.1);
  --page-glow-b: rgba(225, 6, 0, 0.05);

}
