/* =========================================================================
   Chez les Frères — Design tokens · couleurs du logo
   -------------------------------------------------------------------------
   Bleu nuit + orange, mesurés sur le logo (sources/logo.jpg) avec
   scripts/extract-palette.py. Structure « néo-brutaliste » : bordures
   franches et ombres décalées. En-tête et accueil en bleu nuit (comme le
   fond du logo), orange pour les accents et les boutons mis en avant,
   fond crème pour les zones de lecture (carte, formulaires).

   Typographies (auto-hébergées, woff2) :
     - Titres : Bricolage Grotesque (graisse 800, chasse 85 %)
     - Texte  : Geist

   Contrastes vérifiés (WCAG 2.1, calculés par script) :
     bleu nuit sur orange            :  7.79:1 (AAA)
     orange sur bleu nuit            :  7.79:1 (AAA)
     bleu nuit sur crème             : 16.73:1 (AAA)
     --c-muted sur crème             :  8.24:1 (AAA)
     --c-accent-text sur crème       :  5.53:1 (AA)  ← orange foncé pour du texte
     --c-on-dark-muted sur bleu nuit : 11.82:1 (AAA)
     blanc sur --brand-blue (Metz)   :  5.52:1 (AA)
     blanc sur --c-halal             :  5.35:1 (AA)
   ⚠️ L'orange du logo sur fond clair ne fait que 2.15:1 : jamais pour du texte.
   ========================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  /* Fichier allégé (36 Ko) : graisse 800 et taille optique 96 figées, chasse
     variable 75–100 %, caractères latins/français uniquement. */
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Couleurs de marque (mesurées sur le logo) --- */
  --brand-orange: #fe8d09;      /* Orange du logo : accents, boutons mis en avant */
  --brand-navy: #00162e;        /* Bleu nuit du logo : texte, boutons, en-tête */
  --brand-cream: #fff4e6;       /* Crème : fond des zones de lecture */
  --brand-orange-soft: #ffe2bf; /* Orange clair : fonds secondaires */
  --brand-orange-pale: #ffedd6; /* Orange pâle : sélection, notes */
  --brand-white: #ffffff;
  --brand-halal: #1d7a47;       /* Vert : badge halal */
  --brand-blue: #2f5bea;        /* Bleu : repère du restaurant de Metz */

  /* --- Rôles sémantiques --- */
  --c-brand: var(--brand-navy);        /* actions principales (boutons bleu nuit) */
  --c-brand-strong: #000a17;
  --c-on-brand: var(--brand-orange);
  --c-accent: var(--brand-orange);     /* signature */
  --c-on-accent: var(--brand-navy);
  --c-accent-text: #a14a00;            /* orange foncé, lisible en texte sur fond clair */
  --c-night: var(--brand-navy);        /* en-tête, accueil, sections sombres */
  --c-cream: var(--brand-cream);       /* texte sur fond sombre */
  --c-halal: var(--brand-halal);

  --c-bg: var(--brand-cream);
  --c-surface: var(--brand-white);
  --c-surface-2: var(--brand-orange-soft);
  --c-ink: var(--brand-navy);
  --c-muted: #3b4a63;
  --c-line: var(--brand-navy);
  --c-on-dark-muted: #c8d1e0;
  --c-on-dark-line: rgb(255 255 255 / 0.18);
  --c-selected: var(--brand-orange-pale);
  --c-note: var(--brand-orange-pale);
  --c-media-bg:
    radial-gradient(circle at 30% 25%, rgb(254 141 9 / 0.22), transparent 55%), var(--brand-navy);
  --c-success: #13a34a;
  --c-danger: #b3261e;

  /* --- Typographie --- */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 800;
  --display-stretch: 85%;
  --display-tracking: -0.035em;

  --fs-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --fs-sm: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-xl: clamp(1.7rem, 1.35rem + 1.5vw, 2.6rem);
  --fs-2xl: clamp(2.3rem, 1.6rem + 3.2vw, 4.2rem);
  --fs-hero: clamp(2.7rem, 1.5rem + 5.6vw, 6rem);

  /* --- Espacements --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: clamp(3rem, 2rem + 5vw, 6rem);

  /* --- Formes & effets (néo-brutalisme) --- */
  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;
  --radius-btn: 0.75rem;
  --radius-pill: 999px;
  --border: 3px solid var(--c-line);
  --shadow-hard: 5px 5px 0 var(--c-ink);
  --shadow-hard-sm: 3px 3px 0 var(--c-ink);
  --shadow-1: var(--shadow-hard-sm);
  --shadow-2: 7px 7px 0 var(--c-ink);
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--brand-navy);

  --container: 72rem;
  --header-h: 4rem;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
