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

   Tout vient du logo : l’encre du pinceau, le papier, le soleil
   vermillon et les pétales de sakura.
   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: 'Shippori Mincho B1'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/shippori-mincho-b1-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: 'Shippori Mincho B1'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/shippori-mincho-b1-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: 'Shippori Mincho B1'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/shippori-mincho-b1-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: 'Shippori Mincho B1'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/shippori-mincho-b1-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: 'Shippori Mincho B1'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/shippori-mincho-b1-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: 'Shippori Mincho B1'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/shippori-mincho-b1-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: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-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: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-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: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-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: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-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: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-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: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/zen-kaku-gothic-new-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: 'Yuji Boku'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/yuji-boku-kanji.woff2') format('woff2'); unicode-range: U+3000-30FF, U+4E00-9FFF; }

:root {
  /* ---- Palette relevée sur le logo ----
     Sumi : l'encre du pinceau. Washi : le papier. Shu : le vermillon du
     soleil levant derrière le roll. Le saumon et le sakura ne servent
     qu'en touches. */
  --c-sumi:      #121110;
  --c-sumi-2:    #1B1917;
  --c-sumi-3:    #28241F;
  --c-sumi-4:    #3A342D;
  --c-washi:     #F6F1E7;
  --c-washi-2:   #EDE4D3;
  --c-kinari:    #FCFAF5;
  --c-shu:       #D62718;
  --c-shu-hi:    #EE3A2A;
  --c-shu-lo:    #A91C10;
  --c-sake:      #F27A55;   /* le saumon */
  --c-sakura:    #F6C9CD;
  --c-matcha:    #4F7A33;   /* végétarien */
  --c-gold:      #B89049;   /* filets très discrets */

  /* ---- Sémantique : clair par défaut (le papier) ---- */
  --bg:          var(--c-washi);
  --bg-alt:      var(--c-kinari);
  --bg-raise:    #FFFFFF;
  --bg-invert:   var(--c-sumi);
  --text:        #17140F;
  --text-mute:   #6B6257;
  --text-invert: var(--c-washi);
  --line:        rgba(23,20,15,.12);
  --line-strong: rgba(23,20,15,.26);
  --accent:      var(--c-shu);
  --accent-ink:  #FFFFFF;
  --ok:     var(--c-matcha);
  --warn:   var(--c-gold);
  --danger: var(--c-shu);

  --grad-shu:   linear-gradient(135deg, var(--c-shu-hi), var(--c-shu) 55%, var(--c-shu-lo));
  --grad-nuit:  linear-gradient(180deg, var(--c-sumi-2) 0%, var(--c-sumi) 100%);
  --grad-veil:  linear-gradient(180deg, rgba(18,17,16,.1) 0%, rgba(18,17,16,.55) 55%, rgba(18,17,16,.94) 100%);

  --glass-bg:   rgba(252,250,245,.9);
  --glass-brd:  rgba(23,20,15,.1);
  --glass-blur: saturate(140%) blur(14px);

  /* ---- Typographie
     Shippori Mincho : un mincho à empattements, comme les enseignes
     japonaises, pour les titres. Zen Kaku Gothic : net et doux pour le
     texte. Yuji Boku : le pinceau, réservé aux kanji décoratifs. ---- */
  --font-display: 'Shippori Mincho B1', 'Hiragino Mincho ProN', Georgia, 'Times New Roman', serif;
  --font-body:    'Zen Kaku Gothic New', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brush:   'Yuji Boku', 'Shippori Mincho B1', 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.95rem, 1.45rem + 2.10vw, 3.10rem);
  --t-3xl:  clamp(2.45rem, 1.60rem + 3.70vw, 4.60rem);
  --t-4xl:  clamp(2.90rem, 1.60rem + 5.80vw, 6.40rem);
  --lh-tight: 1.06;
  --lh-snug:  1.16;
  --lh-body:  1.7;

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

  /* ---- Rayons : francs, comme un plateau laqué ---- */
  --r-sm: 3px; --r-md: 6px; --r-lg: 10px; --r-xl: 16px; --r-full: 999px;

  /* ---- Ombres : chaudes, jamais grises ---- */
  --sh-1: 0 1px 2px rgba(40,24,10,.06), 0 3px 12px rgba(40,24,10,.06);
  --sh-2: 0 12px 30px rgba(40,24,10,.12);
  --sh-3: 0 26px 64px rgba(40,24,10,.2);
  --ring: 0 0 0 2px var(--c-shu);

  /* ---- 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: 78px;

  /* ---- Alias attendus par les feuilles structurelles (panier,
     fiche plat, filtres) : ils pointent tous vers le vermillon. ---- */
  --c-noir: var(--c-sumi); --c-charbon: var(--c-sumi-2); --c-charbon-2: var(--c-sumi-3); --c-charbon-3: var(--c-sumi-4);
  --c-couronne: var(--c-shu); --c-couronne-hi: var(--c-shu-hi); --c-couronne-lo: var(--c-shu-lo);
  --c-blanc: #FFFFFF; --c-naan: var(--c-washi-2); --c-piment: var(--c-shu); --c-coriandre: var(--c-matcha);
  --c-red: var(--c-shu);  --c-red-deep: var(--c-shu-lo);
  --c-gold-a: var(--c-shu); --c-orange: var(--c-sake);
  --c-braise: var(--c-shu); --c-braise-hi: var(--c-shu-hi); --c-braise-lo: var(--c-shu-lo);
  --c-citron: var(--c-shu);
  --c-green: var(--c-matcha); --c-vert: var(--c-matcha); --c-basilic: var(--c-matcha);
  --c-flamme: var(--c-shu); --c-tomate: var(--c-shu);
  --c-ink: var(--c-sumi); --c-ink-soft: var(--c-sumi-3); --c-nuit: var(--c-sumi);
  --c-nuit-2: var(--c-sumi-2); --c-nuit-3: var(--c-sumi-3); --c-nuit-4: var(--c-sumi-4);
  --c-light: #FFFFFF; --c-white: #FFFFFF; --c-creme: var(--c-washi);
  --grad-couronne: var(--grad-shu);
  --grad-heat: var(--grad-shu); --grad-gold: var(--grad-shu);
  --grad-braise: var(--grad-shu); --grad-citron: var(--grad-shu);
  --grad-basil: var(--grad-shu); --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, l'encre ---------- */
[data-theme="dark"] {
  --bg:          var(--c-sumi);
  --bg-alt:      var(--c-sumi-2);
  --bg-raise:    var(--c-sumi-3);
  --bg-invert:   var(--c-washi);
  --text:        #F3EDE2;
  --text-mute:   #B3A999;
  --text-invert: var(--c-sumi);
  --line:        rgba(243,237,226,.12);
  --line-strong: rgba(243,237,226,.26);
  --glass-bg:    rgba(27,25,23,.9);
  --glass-brd:   rgba(243,237,226,.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);
  --ring: 0 0 0 2px var(--c-shu-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-shu); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--c-shu); color: #fff; }
.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-shu); 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;
  }
}
