/* =====================================================================
   GUSTO KREYOL — tokens de la version B (« nouvelle direction »)
   Système : CLAUDE_DESIGN.md (échelles 4/8, rayons, ombres, typo, états).
   Valeurs de marque : couleurs provisoires de l'enseigne (ART-BIBLE.md §4).
   Règle de couleur (décision du 14/11/2026) : les neutres font l'essentiel
   de l'interface ; le turquoise est réservé aux actions et aux accents,
   l'or aux récompenses et à la promo.
   Pas de mode sombre dans cette version (CLAUDE.md, budget). L'écran
   cuisine a son propre fond anthracite (ART-BIBLE §11).
   Points de rupture (non variabilisables en CSS) : 640 · 768 · 1024 · 1280.
   Tout style.css référence ces tokens : aucune couleur ni taille en dur.
   ===================================================================== */

/* Polices auto-hébergées (licence SIL OFL 1.1, voir fonts/OFL-*.txt) */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/BigShouldersDisplay-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Neutres : gris teintés vers le turquoise ----------
     Contrastes mesurés (WCAG 2.2) en commentaire. */
  --gray-0:   #FFFFFF;  /* surfaces */
  --gray-50:  #F6F8F8;  /* fond de page */
  --gray-100: #EDF1F1;  /* fonds discrets, onglets, désactivé */
  --gray-200: #DCE3E3;  /* filets, séparateurs */
  --gray-400: #7B8B8D;  /* bordures de champs : ≥ 3,12:1 sur tous les fonds clairs */
  --gray-500: #637375;  /* texte tertiaire : 4,95:1 sur blanc */
  --gray-600: #56666A;  /* texte secondaire : 5,27:1 sur gray-100 */
  --gray-700: #3D4B4E;  /* texte appuyé : 7,97:1 sur gray-100 */
  --gray-300-on-dark: #BCC7C8; /* texte secondaire sur gray-900 : 8,82:1 */
  --gray-900: #10292D;  /* texte principal : 14,31:1 sur gray-50 */

  /* ---------- Marque : turquoise de l'enseigne (actions, accents) ---------- */
  --brand-50:  #E8F6F5;  /* fond d'un choix sélectionné, survol secondaire */
  --brand-500: #18A5A0;  /* accent en surface, jamais de texte blanc dessus (3,03:1) */
  --brand-600: #0F7F7B;  /* boutons « + », sélection : blanc 4,84:1 */
  --brand-800: #0D4F57;  /* bleu profond : bouton principal, liens (blanc 9,24:1) */
  --brand-900: #0A3F46;  /* survol du bouton principal (blanc 11,59:1) */

  /* ---------- Accent or : récompenses et promo seulement ---------- */
  --gold-100: #FBF3DD;
  --gold-500: #D4A537;   /* texte --gray-900 dessus : 6,71:1 */

  /* ---------- Sémantiques ---------- */
  --danger:      #C2412D;  /* blanc 5,14:1 ; sur blanc 5,14:1 */
  --success:     #1F7A4A;  /* « Prête » : blanc 5,33:1 */
  --warning:     var(--gold-500);

  /* ---------- Écran cuisine (fond sombre fonctionnel) ---------- */
  --night-900: #1B1D1F;
  --night-800: #26292C;  /* anthracite de l'enseigne */
  --night-700: #34383C;
  --night-500: #5A6066;
  --night-text: #F7F7F4; /* 11,01:1 sur night-700 */

  /* ---------- Rôles (ce que les composants utilisent) ---------- */
  --bg: var(--gray-50);
  --surface: var(--gray-0);
  --surface-sunken: var(--gray-100);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-subtle: var(--gray-500);
  --border: var(--gray-200);
  --border-strong: var(--gray-400);
  --primary: var(--brand-800);
  --primary-hover: var(--brand-900);
  --on-primary: var(--gray-0);
  --focus: var(--brand-800);
  --focus-on-dark: var(--gold-500);
  --inverse-bg: var(--gray-900);
  --inverse-text: var(--night-text);

  /* Couleur de chaque Box (information, toujours accompagnée du nom) */
  --box-1: var(--gold-500);   /* Kreyol Box */
  --box-2: var(--danger);     /* Street BBQ */
  --box-3: var(--brand-500);  /* Crunchy Island */
  --box-4: var(--brand-800);  /* Caribbean Beef */
  --box-5: #3C7FA6;           /* Ocean Box [À VALIDER : hors palette de l'enseigne] */

  /* ---------- Espacement : grille 8 px ---------- */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-6: 24px; --space-8: 32px;  --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;
  --gutter: var(--space-4);
  --container: 1200px;
  --measure: 65ch;     /* longueur de ligne maximale */
  --tap: 44px;         /* cible tactile minimale */
  --control: 48px;     /* hauteur des boutons et champs */

  /* ---------- Rayons ---------- */
  --radius-sm: 6px;    /* badges, étiquettes */
  --radius-md: 10px;   /* boutons, champs, choix */
  --radius-lg: 16px;   /* cartes, ticket, fenêtres */
  --radius-full: 9999px; /* pastilles rondes, quantités */

  /* ---------- Ombres : deux couches, lumière venant du haut ---------- */
  --shadow-sm: 0 1px 3px rgba(16, 41, 45, .12), 0 1px 2px rgba(16, 41, 45, .08);
  --shadow-md: 0 4px 6px rgba(16, 41, 45, .10), 0 2px 4px rgba(16, 41, 45, .06);
  --shadow-lg: 0 10px 20px rgba(16, 41, 45, .15), 0 3px 6px rgba(16, 41, 45, .10);
  --shadow-up: 0 -4px 6px rgba(16, 41, 45, .06), 0 -1px 2px rgba(16, 41, 45, .06);
  --scrim: rgba(16, 41, 45, .55);  /* fond derrière les fenêtres */

  /* ---------- Typographie ----------
     Condensée de tableau de menu pour les titres, Manrope pour le texte.
     Échelle Major Third (1,25) bornée par le tableau du guide. */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-focal: clamp(4rem, 2.6rem + 6vw, 6.25rem);     /* 64 → 100 px : UN seul élément par écran
                                                         (heure du ticket, numéro de commande) */
  --fs-display: clamp(3rem, 1.8rem + 5vw, 4.5rem);    /* 48 → 72 px : numéros des tickets cuisine */
  --fs-h1: clamp(2.5rem, 2.1rem + 1.6vw, 3rem);        /* 40 → 48 px */
  --fs-h2: clamp(1.875rem, 1.65rem + 1vw, 2.25rem);    /* 30 → 36 px */
  --fs-h3: 1.5rem;                                     /* 24 px */
  --fs-lg: 1.125rem;                                   /* 18 px */
  --fs-body: 1rem;                                     /* 16 px */
  --fs-sm: 0.875rem;                                   /* 14 px */
  --lh-display: 1.05; --lh-h1: 1.1; --lh-h2: 1.2; --lh-h3: 1.3;
  --lh-body: 1.6; --lh-ui: 1.3;
  --tr-display: -0.015em; --tr-h1: -0.01em; --tr-sm: 0.01em;
  --fw-regular: 400; --fw-semibold: 600; --fw-bold: 700;  /* Manrope : 3 graisses */
  --fw-display: 800;                                      /* titres */

  /* ---------- Mouvement ---------- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;   /* micro-interactions */
  --dur-base: 240ms;
  --dur-layout: 400ms; /* apparitions, transitions de mise en page */

  /* ---------- Bordures ---------- */
  --underline-offset: 3px;
  --bw: 1px;
  --bw-strong: 2px;
  --box-bar: 8px;      /* barre de couleur d'une Box */
}
