/* =========================================================
   TOO GOOD BURGER — Jetons de conception du site public
   (L’administration garde tokens.css : ce fichier ne la touche pas.)

   Tout vient du logo : le bordeaux du fond, l’orange du pain dessiné
   au trait, le blanc du « G ». Les formes aussi : des rectangles aux
   coins ronds et une voûte, celle du pain du dessus.
   Polices hébergées sur le site (licence SIL OFL) : aucune requête
   vers Google, donc aucune adresse IP transmise sans consentement.
   ========================================================= */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('/assets/fonts/unbounded-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('/assets/fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations');
  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: 300 900; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 300 900; font-display: swap;
  src: url('/assets/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  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 ----
     Bordeaux : le fond du logo. Bun : l'orange du pain. Mie : le clair
     de la page, un blanc tiédi. Braise : le bordeaux presque noir du
     texte. Cheddar et cornichon ne servent qu'en touches. */
  --c-bordeaux:    #891721;
  --c-bordeaux-hi: #A51E2A;
  --c-bordeaux-lo: #6A0F18;
  --c-braise:      #2B0A0E;
  --c-braise-2:    #3A0D13;
  --c-braise-3:    #4D141B;
  --c-braise-4:    #63202A;
  --c-bun:         #F39039;
  --c-bun-hi:      #FFAB5C;
  --c-bun-lo:      #D46F16;
  --c-mie:         #FFF6EA;
  --c-mie-2:       #FBE8D0;
  --c-blanc:       #FFFFFF;
  --c-cheddar:     #FFC53D;
  --c-cornichon:   #3F7D3A;

  /* ---- Sémantique : clair par défaut ---- */
  --bg:          var(--c-mie);
  --bg-alt:      var(--c-mie-2);
  --bg-raise:    #FFFFFF;
  --bg-invert:   var(--c-braise);
  --text:        var(--c-braise);
  --text-mute:   #74545A;
  --text-invert: var(--c-mie);
  --line:        rgba(43,10,14,.12);
  --line-strong: rgba(43,10,14,.28);
  --accent:      var(--c-bordeaux);
  --accent-ink:  #FFFFFF;
  --ok:     var(--c-cornichon);
  --warn:   var(--c-bun-lo);
  --danger: #C2261B;

  --grad-bun:    linear-gradient(135deg, var(--c-bun-hi), var(--c-bun) 60%, var(--c-bun-lo));
  --grad-bord:   linear-gradient(160deg, var(--c-bordeaux-hi), var(--c-bordeaux) 55%, var(--c-bordeaux-lo));
  --grad-nuit:   linear-gradient(180deg, var(--c-braise-2) 0%, var(--c-braise) 100%);
  --grad-veil:   linear-gradient(180deg, rgba(43,10,14,.1) 0%, rgba(43,10,14,.55) 55%, rgba(43,10,14,.94) 100%);

  --glass-bg:   rgba(255,246,234,.92);
  --glass-brd:  rgba(43,10,14,.1);
  --glass-blur: saturate(140%) blur(14px);

  /* ---- Typographie
     Unbounded : large et carrée aux coins ronds, comme le « G » du
     logo, pour les titres et les prix. Figtree : ronde et lisible pour
     le texte. ---- */
  --font-display: 'Unbounded', 'Arial Black', 'Segoe UI', system-ui, sans-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(.90rem, .87rem + .14vw, .98rem);
  --t-base: clamp(1.02rem, .98rem + .18vw, 1.1rem);
  --t-lg:   clamp(1.12rem, 1.05rem + .32vw, 1.3rem);
  --t-xl:   clamp(1.2rem, 1.08rem + .6vw, 1.55rem);
  --t-2xl:  clamp(1.55rem, 1.2rem + 1.5vw, 2.4rem);
  --t-3xl:  clamp(1.9rem, 1.3rem + 2.6vw, 3.3rem);
  --t-4xl:  clamp(2.15rem, 1.25rem + 4vw, 4.4rem);
  --lh-tight: 1.08;
  --lh-snug:  1.18;
  --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.3rem + 5.4vw, 7.25rem);
  --gutter:    clamp(1rem, .6rem + 2.4vw, 3rem);
  --maxw:      1240px;
  --maxw-text: 66ch;

  /* ---- Rayons : ceux du logo. La voûte (--r-bun) est le pain du dessus. ---- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;
  --r-bun: clamp(56px, 9vw, 120px);
  --stroke: 3px;                    /* le trait du logo */

  /* ---- Ombres : teintées de bordeaux, jamais grises ---- */
  --sh-1: 0 1px 2px rgba(74,12,20,.07), 0 4px 14px rgba(74,12,20,.07);
  --sh-2: 0 14px 32px rgba(74,12,20,.14);
  --sh-3: 0 28px 64px rgba(74,12,20,.24);
  --ring: 0 0 0 3px rgba(243,144,57,.45);

  /* ---- 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: 280ms; --d-slow: 680ms;

  /* ---- 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). L'accent d'action est le bordeaux ; l'orange sert
     aux aplats. ---- */
  --c-ink: var(--c-braise); --c-ink-soft: var(--c-braise-3);
  --c-noir: var(--c-braise); --c-nuit: var(--c-braise); --c-nuit-2: var(--c-braise-2);
  --c-nuit-3: var(--c-braise-3); --c-nuit-4: var(--c-braise-4);
  --c-charbon: var(--c-braise-2); --c-charbon-2: var(--c-braise-3); --c-charbon-3: var(--c-braise-4);
  --c-red: var(--c-bordeaux); --c-red-deep: var(--c-bordeaux-lo);
  --c-gold: var(--c-bun); --c-gold-a: var(--c-bun); --c-orange: var(--c-bun);
  --c-couronne: var(--c-bordeaux); --c-couronne-hi: var(--c-bordeaux-hi); --c-couronne-lo: var(--c-bordeaux-lo);
  --c-piment: var(--c-bordeaux); --c-flamme: var(--c-bordeaux); --c-tomate: var(--c-bordeaux);
  --c-citron: var(--c-bun); --c-naan: var(--c-mie-2); --c-creme: var(--c-mie);
  --c-green: var(--c-cornichon); --c-vert: var(--c-cornichon); --c-basilic: var(--c-cornichon); --c-coriandre: var(--c-cornichon);
  --c-light: #FFFFFF; --c-white: #FFFFFF;
  --grad-heat: var(--grad-bord); --grad-couronne: var(--grad-bord); --grad-braise: var(--grad-bord);
  --grad-gold: var(--grad-bun); --grad-citron: var(--grad-bun); --grad-basil: var(--grad-bun);
  --grad-ink: var(--grad-nuit);
  --sh-red: none; --sh-gold: none; --glow-braise: var(--ring); --glow-citron: var(--ring);

  color-scheme: light;
}

/* ---------- Mode sombre : la salle le soir, bordeaux très profond ---------- */
[data-theme="dark"] {
  --bg:          #1C0709;
  --bg-alt:      #260A0E;
  --bg-raise:    #331017;
  --bg-invert:   var(--c-mie);
  --text:        #FCEFDF;
  --text-mute:   #C9A9A6;
  --text-invert: var(--c-braise);
  --line:        rgba(252,239,223,.13);
  --line-strong: rgba(252,239,223,.3);
  --accent:      var(--c-bun);
  --accent-ink:  var(--c-braise);
  --danger:      #FF7A6B;
  --ok:          #7FC878;
  --glass-bg:    rgba(38,10,14,.92);
  --glass-brd:   rgba(252,239,223,.12);
  --sh-1: 0 1px 2px rgba(0,0,0,.5), 0 2px 10px rgba(0,0,0,.35);
  --sh-2: 0 12px 30px rgba(0,0,0,.5);
  --sh-3: 0 26px 64px rgba(0,0,0,.6);
  --c-red: var(--c-bun); --c-couronne: var(--c-bun); --c-piment: var(--c-bun);
  --c-flamme: var(--c-bun); --c-tomate: var(--c-bun);
  --grad-heat: var(--grad-bun); --grad-couronne: var(--grad-bun); --grad-braise: var(--grad-bun);
  color-scheme: dark;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); scroll-behavior: smooth; }
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: clip;
}
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: 800;
  line-height: var(--lh-snug); letter-spacing: -.025em; text-wrap: balance;
}
h1, h2 { line-height: var(--lh-tight); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--c-bun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-bun); color: var(--c-braise); }
.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-bun); color: var(--c-braise); font-weight: 700;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-md);
  transition: top var(--d-fast) var(--e-out);
}
.skip-link:focus { top: var(--s-4); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
