/* =========================================================
   LE SÉSAME — Jetons de conception du site public
   (L’administration garde tokens.css : ce fichier ne la touche pas.)

   Tout vient du logo : le rond crème, l’encre noire du lettrage,
   le filet doré et les graines de sésame du pain.
   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: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-sans-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: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/dm-sans-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: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext-500-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: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-500-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: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/dm-sans-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: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/dm-sans-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: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/caveat-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: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/caveat-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; }

:root {
  /* ---- Palette relevée sur le logo ----
     Noir : le lettrage « SÉSAME ». Crème : le fond du rond.
     Or : le filet et les graines. Le ketchup et la salade ne servent
     qu'en touches (piquant, végétarien). */
  --c-noir:      #151311;
  --c-noir-2:    #1E1B18;
  --c-noir-3:    #2A2622;
  --c-noir-4:    #3B352F;
  --c-creme:     #F5EFE2;
  --c-creme-2:   #ECE2CC;
  --c-creme-3:   #E2D4B6;
  --c-mie:       #FBF8F1;
  --c-or:        #C8962E;
  --c-or-hi:     #E2B04A;
  --c-or-lo:     #7A560F;   /* or lisible sur crème (AA, 5,5:1) */
  --c-ketchup:   #C8361D;
  --c-salade:    #3F7A3A;

  /* ---- Sémantique : clair par défaut (le rond crème) ---- */
  --bg:          var(--c-creme);
  --bg-alt:      var(--c-mie);
  --bg-raise:    #FFFDF8;
  --bg-invert:   var(--c-noir);
  --text:        #1A1714;
  --text-mute:   #6A5F52;
  --text-invert: var(--c-creme);
  --line:        rgba(26,23,20,.13);
  --line-strong: rgba(26,23,20,.3);
  --ink-line:    var(--c-noir);           /* contour « sticker » */
  --accent:      var(--c-or);
  --accent-text: var(--c-or-lo);
  --accent-ink:  var(--c-noir);
  --ok:     var(--c-salade);
  --warn:   var(--c-or);
  --danger: var(--c-ketchup);

  --grad-or:    linear-gradient(135deg, var(--c-or-hi), var(--c-or) 55%, #B07F1F);
  --grad-nuit:  linear-gradient(180deg, var(--c-noir-2) 0%, var(--c-noir) 100%);
  --grad-veil:  linear-gradient(180deg, rgba(21,19,17,.05) 0%, rgba(21,19,17,.55) 55%, rgba(21,19,17,.94) 100%);

  --glass-bg:   rgba(251,248,241,.9);
  --glass-brd:  rgba(26,23,20,.1);
  --glass-blur: saturate(140%) blur(14px);

  /* ---- Typographie
     Bricolage Grotesque : une grotesque charnue et un peu effrontée,
     comme une enseigne de snack. DM Sans : net et lisible pour le texte.
     Caveat : l'écriture à la main de l'ardoise, en petites touches. ---- */
  --font-display: 'Bricolage Grotesque', 'Arial Black', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand:    'Caveat', 'Comic Sans MS', cursive;
  --font-brush:   var(--font-hand);
  --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.12rem, 1.05rem + .36vw, 1.3rem);
  --t-xl:   clamp(1.38rem, 1.18rem + .95vw, 1.9rem);
  --t-2xl:  clamp(2rem, 1.45rem + 2.3vw, 3.3rem);
  --t-3xl:  clamp(2.5rem, 1.6rem + 4vw, 4.9rem);
  --t-4xl:  clamp(3rem, 1.5rem + 6.6vw, 7.2rem);
  --lh-tight: .98;
  --lh-snug:  1.1;
  --lh-body:  1.65;

  /* ---- 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(1rem, .6rem + 2.4vw, 3rem);
  --maxw:      1240px;
  --maxw-text: 64ch;

  /* ---- Rayons : ronds comme le logo, généreux comme un pain burger ---- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-full: 999px;

  /* ---- Ombres : l'ombre franche « autocollant » en plus des douces ---- */
  --sh-1: 0 1px 2px rgba(40,28,10,.06), 0 4px 14px rgba(40,28,10,.07);
  --sh-2: 0 14px 34px rgba(40,28,10,.14);
  --sh-3: 0 28px 70px rgba(40,28,10,.22);
  --sh-hard: 5px 5px 0 var(--c-noir);
  --sh-hard-sm: 3px 3px 0 var(--c-noir);
  --ring: 0 0 0 3px var(--c-or);

  /* ---- Mouvement : un peu de rebond, comme un pain qui retombe ---- */
  --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: 150ms; --d-mid: 300ms; --d-slow: 700ms;

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

  /* ---- Motif : graines de sésame (SVG en ligne, aucune requête) ---- */
  --seeds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23C8962E'%3E%3Cellipse cx='14' cy='18' rx='5' ry='2.6' transform='rotate(-28 14 18)'/%3E%3Cellipse cx='62' cy='10' rx='5' ry='2.6' transform='rotate(18 62 10)'/%3E%3Cellipse cx='98' cy='40' rx='5' ry='2.6' transform='rotate(-55 98 40)'/%3E%3Cellipse cx='36' cy='60' rx='5' ry='2.6' transform='rotate(40 36 60)'/%3E%3Cellipse cx='80' cy='84' rx='5' ry='2.6' transform='rotate(-12 80 84)'/%3E%3Cellipse cx='20' cy='102' rx='5' ry='2.6' transform='rotate(62 20 102)'/%3E%3Cellipse cx='110' cy='108' rx='5' ry='2.6' transform='rotate(-40 110 108)'/%3E%3C/g%3E%3C/svg%3E");

  /* ---- Alias attendus par les feuilles structurelles (panier,
     fiche plat, filtres) : ils pointent vers l'or et le noir. ---- */
  --c-sumi: var(--c-noir); --c-sumi-2: var(--c-noir-2); --c-sumi-3: var(--c-noir-3); --c-sumi-4: var(--c-noir-4);
  --c-washi: var(--c-creme); --c-washi-2: var(--c-creme-2); --c-kinari: var(--c-mie);
  --c-shu: var(--c-or); --c-shu-hi: var(--c-or-hi); --c-shu-lo: var(--c-or-lo);
  --c-matcha: var(--c-salade);
  --c-charbon: var(--c-noir-2); --c-charbon-2: var(--c-noir-3); --c-charbon-3: var(--c-noir-4);
  --c-couronne: var(--c-or); --c-couronne-hi: var(--c-or-hi); --c-couronne-lo: var(--c-or-lo);
  --c-blanc: #FFFFFF; --c-naan: var(--c-creme-2); --c-piment: var(--c-ketchup); --c-coriandre: var(--c-salade);
  --c-red: var(--c-or-lo);  --c-red-deep: #6E4E0E;
  --c-gold: var(--c-or); --c-gold-a: var(--c-or); --c-orange: var(--c-or-hi);
  --c-braise: var(--c-or); --c-braise-hi: var(--c-or-hi); --c-braise-lo: var(--c-or-lo);
  --c-citron: var(--c-or);
  --c-green: var(--c-salade); --c-vert: var(--c-salade); --c-basilic: var(--c-salade);
  --c-flamme: var(--c-ketchup); --c-tomate: var(--c-ketchup);
  --c-ink: var(--c-noir); --c-ink-soft: var(--c-noir-3); --c-nuit: var(--c-noir);
  --c-nuit-2: var(--c-noir-2); --c-nuit-3: var(--c-noir-3); --c-nuit-4: var(--c-noir-4);
  --c-light: #FFFFFF; --c-white: #FFFFFF;
  --grad-shu: var(--grad-or); --grad-couronne: var(--grad-or);
  --grad-heat: var(--grad-or); --grad-gold: var(--grad-or);
  --grad-braise: var(--grad-or); --grad-citron: var(--grad-or);
  --grad-basil: var(--grad-or); --grad-ink: var(--grad-nuit);
  --sh-red: var(--ring); --sh-gold: var(--ring);
  --glow-braise: var(--ring); --glow-citron: var(--ring);

  color-scheme: light;
}

/* ---------- Mode sombre : le comptoir le soir ---------- */
[data-theme="dark"] {
  --bg:          var(--c-noir);
  --bg-alt:      var(--c-noir-2);
  --bg-raise:    var(--c-noir-3);
  --bg-invert:   var(--c-creme);
  --text:        #F4EDDF;
  --text-mute:   #B7AB98;
  --text-invert: var(--c-noir);
  --line:        rgba(244,237,223,.13);
  --line-strong: rgba(244,237,223,.3);
  --ink-line:    rgba(244,237,223,.55);
  --accent-text: var(--c-or-hi);
  --c-red:       var(--c-or-hi);
  --glass-bg:    rgba(30,27,24,.9);
  --glass-brd:   rgba(244,237,223,.12);
  --sh-1: 0 1px 2px rgba(0,0,0,.5), 0 2px 10px rgba(0,0,0,.35);
  --sh-2: 0 14px 34px rgba(0,0,0,.5);
  --sh-3: 0 28px 70px rgba(0,0,0,.6);
  --sh-hard: 5px 5px 0 var(--c-or);
  --sh-hard-sm: 3px 3px 0 var(--c-or);
  --ring: 0 0 0 3px var(--c-or-hi);
  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); }
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: -.005em; text-wrap: balance;
}
h1, h2 { line-height: var(--lh-tight); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--c-or); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--c-or); 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-or); color: #fff; font-weight: 700;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  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;
  }
}
