/* =========================================================
   NAWAB KEBAB — Jetons de conception du site public
   (L'administration garde tokens.css : ce fichier ne la touche pas.)

   Tout vient du logo : un ovale noir, une couronne jaune, des
   lettres blanches à empattements épais. Trois couleurs, pas une
   de plus, sauf le rouge piment réservé aux mentions « piquant »
   et « promo », et le vert coriandre réservé au végétarien.

   Le site s'ouvre en noir : on commande un cheese naan le soir,
   souvent tard, souvent dehors, sur un téléphone.
   ========================================================= */
/* Polices hébergées sur le site (licence SIL OFL) : aucune requête vers
   Google, donc aucune adresse IP transmise sans consentement (RGPD). */
@font-face { font-family: 'Alfa Slab One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/alfa-slab-one-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alfa Slab One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/alfa-slab-one-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/figtree-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/figtree-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/figtree-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/figtree-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* ---- Palette relevée sur le logo ---- */
  --c-noir:        #000000;   /* l'ovale */
  --c-charbon:     #161616;   /* surfaces posées sur le noir */
  --c-charbon-2:   #202020;
  --c-charbon-3:   #2C2C2C;
  --c-couronne:    #FEDD03;   /* la couronne et les filets, relevé sur le fichier */
  --c-couronne-hi: #FFE94A;
  --c-couronne-lo: #D4B600;
  --c-blanc:       #FFFFFF;   /* les lettres NAWAB */
  --c-naan:        #F6E7C1;   /* la pâte, pour les fonds clairs chauds */
  --c-piment:      #E5392B;   /* piquant, promo */
  --c-coriandre:   #43A858;   /* végétarien */

  /* ---- Sémantique : sombre par défaut ---- */
  --bg:          var(--c-noir);
  --bg-alt:      var(--c-charbon);
  --bg-raise:    var(--c-charbon-2);
  --bg-invert:   var(--c-blanc);
  --text:        #FFFFFF;
  --text-mute:   #B3B3B3;
  --text-invert: var(--c-noir);
  --line:        rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.28);
  --accent:      var(--c-couronne);
  --accent-ink:  var(--c-noir);            /* texte posé sur le jaune */
  --ok:     var(--c-coriandre);
  --warn:   var(--c-couronne);
  --danger: var(--c-piment);

  --grad-couronne: linear-gradient(100deg, var(--c-couronne-hi), var(--c-couronne) 55%, var(--c-couronne-lo));
  --grad-nuit:     linear-gradient(180deg, var(--c-charbon) 0%, var(--c-noir) 100%);
  --grad-veil:     linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.92) 100%);

  --glass-bg:   rgba(22,22,22,.86);
  --glass-brd:  rgba(255,255,255,.14);
  --glass-blur: saturate(140%) blur(14px);

  /* ---- Typographie
     Alfa Slab One reprend le dessin des lettres NAWAB : empattements
     rectangulaires, graisse lourde, lisible de loin comme une enseigne.
     Figtree pour le reste : net à 14 px sur un téléphone. ---- */
  --font-display: 'Alfa Slab One', 'Rockwell Extra Bold', 'Rockwell', Georgia, serif;
  --font-body:    'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --t-xs:   clamp(.78rem, .76rem + .10vw, .84rem);
  --t-sm:   clamp(.89rem, .86rem + .14vw, .97rem);
  --t-base: clamp(1.00rem, .97rem + .18vw, 1.08rem);
  --t-lg:   clamp(1.14rem, 1.06rem + .38vw, 1.34rem);
  --t-xl:   clamp(1.40rem, 1.20rem + .95vw, 1.95rem);
  --t-2xl:  clamp(1.85rem, 1.40rem + 2.00vw, 3.00rem);
  --t-3xl:  clamp(2.35rem, 1.55rem + 3.60vw, 4.40rem);
  --t-4xl:  clamp(2.90rem, 1.60rem + 5.80vw, 6.60rem);
  --lh-tight: 1.02;
  --lh-snug:  1.12;
  --lh-body:  1.62;

  /* ---- Espacement ---- */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;
  --section-y: clamp(3.5rem, 2.2rem + 6vw, 7.5rem);
  --gutter:    clamp(1.1rem, .6rem + 2.4vw, 3rem);
  --maxw:      1240px;
  --maxw-text: 64ch;

  /* ---- Rayons : l'ovale du logo donne la pastille ; le reste est franc ---- */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 22px; --r-full: 999px;

  /* ---- Ombres : sur noir, un filet jaune fait mieux qu'une ombre ---- */
  --sh-1: 0 1px 2px rgba(0,0,0,.5), 0 2px 10px rgba(0,0,0,.35);
  --sh-2: 0 10px 28px rgba(0,0,0,.55);
  --sh-3: 0 24px 60px rgba(0,0,0,.65);
  --ring: 0 0 0 2px var(--c-couronne);

  /* ---- Mouvement ---- */
  --e-out:   cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --e-back:  cubic-bezier(.34, 1.56, .64, 1);
  --d-fast: 140ms; --d-mid: 260ms; --d-slow: 620ms;

  /* ---- Couches ---- */
  --z-base: 1; --z-sticky: 100; --z-header: 200;
  --z-drawer: 300; --z-modal: 400; --z-toast: 500;
  --header-h: 76px;

  /* ---- Alias attendus par les feuilles structurelles (panier,
     fiche plat, filtres). Ils pointent tous vers la couronne. ---- */
  --c-red: var(--c-couronne);  --c-red-deep: var(--c-couronne-lo);
  --c-gold: var(--c-couronne); --c-orange: var(--c-couronne);
  --c-braise: var(--c-couronne); --c-braise-hi: var(--c-couronne-hi); --c-braise-lo: var(--c-couronne-lo);
  --c-citron: var(--c-couronne);
  --c-green: var(--c-coriandre); --c-vert: var(--c-coriandre); --c-basilic: var(--c-coriandre);
  --c-flamme: var(--c-piment); --c-tomate: var(--c-piment);
  --c-ink: var(--c-noir); --c-ink-soft: var(--c-charbon-2); --c-nuit: var(--c-noir);
  --c-nuit-2: var(--c-charbon); --c-nuit-3: var(--c-charbon-2); --c-nuit-4: var(--c-charbon-3);
  --c-light: var(--c-blanc); --c-white: var(--c-blanc); --c-creme: var(--c-naan);
  --grad-heat: var(--grad-couronne); --grad-gold: var(--grad-couronne);
  --grad-braise: var(--grad-couronne); --grad-citron: var(--grad-couronne);
  --grad-basil: var(--grad-couronne); --grad-ink: var(--grad-nuit);
  --sh-red: var(--ring); --sh-gold: var(--ring);
  --glow-braise: var(--ring); --glow-citron: var(--ring);

  color-scheme: dark;
}

/* ---------- Mode clair : le comptoir en plein midi ---------- */
[data-theme="light"] {
  --bg:          #FFFFFF;
  --bg-alt:      #FFF7CC;          /* la couronne, très diluée */
  --bg-raise:    #FFFFFF;
  --bg-invert:   var(--c-noir);
  --text:        #0A0A0A;
  --text-mute:   #555555;
  --text-invert: #FFFFFF;
  --line:        rgba(0,0,0,.12);
  --line-strong: rgba(0,0,0,.30);
  --glass-bg:    rgba(255,255,255,.92);
  --glass-brd:   rgba(0,0,0,.10);
  --grad-nuit:   linear-gradient(180deg, #1C1C1C 0%, #000 100%);
  --sh-1: 0 1px 2px rgba(0,0,0,.06), 0 2px 10px rgba(0,0,0,.06);
  --sh-2: 0 10px 28px rgba(0,0,0,.10);
  --sh-3: 0 24px 60px rgba(0,0,0,.16);
  --ring: 0 0 0 2px var(--c-noir);
  color-scheme: light;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--t-base);
  line-height: var(--lh-body); font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 400;
  line-height: var(--lh-snug); letter-spacing: .005em; text-wrap: balance;
}
h1, h2 { line-height: var(--lh-tight); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--c-couronne); outline-offset: 3px; border-radius: 3px; }
[data-theme="light"] :focus-visible { outline-color: var(--c-noir); }
::selection { background: var(--c-couronne); color: var(--c-noir); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-toast);
  background: var(--c-couronne); color: var(--c-noir); font-weight: 800;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-full);
  transition: top var(--d-fast) var(--e-out);
}
.skip-link:focus { top: var(--s-4); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
