/* Axam Aqvayli — La Maison Kabyle
   Concept « Axxam » : le site se parcourt comme une maison kabyle —
   le seuil, la maison, le couscous, la carte, les heures, le chemin.
   Grille 12 colonnes ; frises inspirées des poteries et tissages kabyles. */

@layer reset, tokens, base, layout, components, utilities;

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url("../fonts/unbounded-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: "Unbounded"; font-weight: 400; font-display: swap; src: url("../fonts/unbounded-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: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-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: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-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: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-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: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-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: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-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: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-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: "Noto Sans Tifinagh"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-tifinagh-tifinagh-400-normal.woff2") format("woff2"); unicode-range: U+2D30-2D7F; }

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; }
}

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    /* Couleurs : murs blanchis à la chaux, encre, corail des bijoux kabyles,
       bleu d'émail, safran. Un seul accent : le corail. */
    --bg: #EFEEE9;
    --fg: #17191A;
    --muted: #5B5F5E;
    --rule: rgb(23 25 26 / 0.16);
    --accent: #B3361F;
    --band: #134B63;
    --band-fg: #EFEEE9;
    --band-muted: #B7CBD3;
    --gold: #DDA233;
    --selection: #F2C7BC;

    --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
    --font-tif: "Noto Sans Tifinagh", "Ebrima", "Segoe UI Historic", sans-serif;

    --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.86rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
    --step-3: clamp(2rem, 1.5rem + 2.6vw, 3.6rem);
    --step-4: clamp(2.6rem, 1.6rem + 5vw, 6rem);
    --step-5: clamp(3rem, 1.4rem + 8vw, 9.5rem);

    --cols: 12;
    --gutter: clamp(16px, 2vw, 32px);
    --margin: clamp(16px, 5vw, 80px);
    --max: 1600px;
    --section-y: clamp(72px, 11vw, 176px);
    --ease: cubic-bezier(.2, .7, .1, 1);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121414; --fg: #ECEAE4; --muted: #A3A7A4; --rule: rgb(236 234 228 / 0.16);
      --accent: #EE6C52; --band: #0E3B4F; --band-fg: #ECEAE4; --band-muted: #9FBCC8;
      --gold: #E3AA3E; --selection: #5A2A20; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #121414; --fg: #ECEAE4; --muted: #A3A7A4; --rule: rgb(236 234 228 / 0.16);
    --accent: #EE6C52; --band: #0E3B4F; --band-fg: #ECEAE4; --band-muted: #9FBCC8;
    --gold: #E3AA3E; --selection: #5A2A20; color-scheme: dark;
  }
  @media (max-width: 1024px) { :root { --cols: 6; } }
  @media (max-width: 640px)  { :root { --cols: 4; } }
}

/* ---------- Base ---------- */
@layer base {
  @view-transition { navigation: auto; }
  html { -webkit-text-size-adjust: 100%; }
    body {
    background: var(--bg); color: var(--fg);
    font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--selection); }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: .95; letter-spacing: -0.02em; text-wrap: balance; }
  p { max-width: 62ch; text-wrap: pretty; }
  a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
  a:hover { color: var(--accent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
  [lang="kab-Tfng"], .tif { font-family: var(--font-tif); letter-spacing: 0.04em; }
}

/* ---------- Layout ---------- */
@layer layout {
  .wrap {
    max-width: var(--max); margin-inline: auto;
    padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
    padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
  }
  .grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
  .section { padding-block: var(--section-y); }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 20; }
  .skip:focus { left: 16px; }
}

/* ---------- Components ---------- */
@layer components {

  /* Labels / eyebrows */
  .label {
    font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
    text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  }
  .label--accent { color: var(--accent); }

  /* Header */
  .site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
  .brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
  .brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
  .brand__tif { font-size: .95rem; color: var(--accent); }
  .nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
  .nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding-block: 10px; }
  .nav__links { display: flex; gap: clamp(12px, 2.4vw, 28px); }
  .lang { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
  .lang a, .lang span { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
  .lang [aria-current="page"] { background: var(--fg); color: var(--bg); }
  @media (max-width: 760px) { .nav__links { display: none; } }

  /* Frise (motif de poterie / tissage) */
  .frise {
    height: 22px; width: 100%; background: var(--accent);
    -webkit-mask: var(--frise) repeat-x left center / 44px 22px;
            mask: var(--frise) repeat-x left center / 44px 22px;
    --frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M22 1l5 5-5 5-5-5z M0 22l11-9 11 9z M22 22l11-9 11 9z M0 6.5h12v-1H0z M32 6.5h12v-1H32z'/%3E%3C/svg%3E");
  }
  .frise--gold { background: var(--gold); }
  .frise--band { background: var(--band-fg); opacity: .9; }
  .frise--flip { transform: scaleY(-1); }
  .js .frise[data-weave] { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
  .js .frise[data-weave].is-in { clip-path: inset(0 0 0 0); }
  @media (prefers-reduced-motion: reduce) { .js .frise[data-weave] { clip-path: none; transition: none; } }

  /* Hero — le seuil */
  .hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 120px) clamp(40px, 6vw, 88px); }
  .hero__tif {
    position: absolute; right: -0.08em; top: 50%; transform: translateY(-58%);
    font-size: clamp(9rem, 30vw, 30rem); line-height: 1; color: var(--accent); opacity: .13;
    pointer-events: none; user-select: none; white-space: nowrap;
  }
  .hero .grid { position: relative; row-gap: clamp(24px, 4vw, 48px); }
  .hero__eyebrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .hero__title { grid-column: 1 / span 11; font-size: var(--step-5); letter-spacing: -0.035em; line-height: .9; }
  .hero__title em { font-style: normal; color: var(--accent); display: block; }
  .hero__lede { grid-column: 1 / span 6; font-size: var(--step-1); line-height: 1.4; }
  .hero__lede .kab { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: .4em; }
  .hero__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); border-top: 1px solid var(--rule); padding-top: 24px; }
  .fact { display: grid; gap: 6px; align-content: start; min-width: 0; }
  .fact__value { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
  .fact__value a { text-decoration: none; }
  .fact__value--big { font-size: var(--step-2); color: var(--accent); }
  .fact__note { color: var(--muted); font-size: .95rem; }
  @media (max-width: 1024px) { .hero__lede { grid-column: 1 / -1; } .hero__title { grid-column: 1 / -1; } }
  @media (max-width: 760px) { .hero__facts { grid-template-columns: 1fr; } .hero__tif { top: 12px; transform: none; font-size: 34vw; opacity: .09; } }

  /* La maison — statement */
  .maison .grid { row-gap: 40px; }
  .maison__head { grid-column: 1 / span 3; }
  .maison__statement { grid-column: 4 / span 8; font-size: var(--step-3); letter-spacing: -0.03em; }
  .maison__text { grid-column: 4 / span 5; font-size: var(--step-1); line-height: 1.45; }
  .maison__facts { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { border: 1px solid var(--fg); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
  .chip span { color: var(--muted); font-weight: 400; margin-left: 6px; }
  @media (max-width: 1024px) {
    .maison__head, .maison__statement, .maison__text, .maison__facts { grid-column: 1 / -1; }
  }

  /* Chapitre Seksu — bande bleu d'émail */
  .seksu { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; padding-bottom: 0; }
  .seksu__frise { margin-top: var(--section-y); padding-bottom: 14px; }
  .seksu .grid { row-gap: 48px; align-items: start; }
  .seksu__word { grid-column: 1 / span 6; position: sticky; top: 112px; }
  .seksu__word h2 { font-size: clamp(4rem, 1rem + 10vw, 11.5rem); letter-spacing: -0.05em; line-height: .9; width: fit-content; max-width: 100%; padding-right: .04em; }
  .seksu__word .tif { display: block; font-size: var(--step-3); color: var(--gold); margin-top: 24px; }
  .seksu__word p { margin-top: 24px; font-size: var(--step-1); color: var(--band-muted); max-width: 26ch; }
  .seksu__list { grid-column: 8 / -1; }
  .seksu .dish { border-color: rgb(255 255 255 / 0.18); }
  .seksu .dish__note { color: var(--band-muted); }
  .seksu .dish--star .dish__name { color: var(--gold); }
  .seksu__order { margin-top: 32px; border: 1px solid rgb(255 255 255 / 0.3); padding: 20px; display: grid; gap: 6px; }
  .seksu__order strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; }
  .seksu__order span { color: var(--band-muted); }
  @media (max-width: 1024px) { .seksu__word { position: static; grid-column: 1 / -1; } .seksu__list { grid-column: 1 / -1; } }

  /* Dishes (index list) */
  .dish {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 2px;
    padding-block: 14px; border-bottom: 1px solid var(--rule); align-items: baseline;
  }
  .dish:first-child { border-top: 1px solid currentColor; }
  .dish__name { font-weight: 600; font-size: var(--step-0); }
  .dish__price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
  .dish__note { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
  .dish__tag { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); vertical-align: 2px; }
  .seksu .dish__tag { color: var(--gold); }

  /* Carte — umuɣ */
  .carte__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(40px, 6vw, 88px); }
  .carte__head h2 { font-size: var(--step-4); letter-spacing: -0.04em; }
  .carte__head h2 .tif { font-size: .45em; color: var(--accent); margin-left: .3em; vertical-align: .55em; letter-spacing: .02em; }
  .carte__head p { color: var(--muted); max-width: 36ch; }
  .groups { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) var(--gutter); }
  .group { min-width: 0; }
  .group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .group__head h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
  .group__sub { margin-top: 28px; margin-bottom: 4px; }
  @media (max-width: 860px) { .groups { grid-template-columns: 1fr; } }

  .boissons { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--fg); }
  .boissons summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-block: 24px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em;
  }
  .boissons summary::-webkit-details-marker { display: none; }
  .boissons summary .plus { flex: none; width: 44px; height: 44px; border: 1px solid var(--fg); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-body); font-size: 1.4rem; font-weight: 400; transition: transform .3s var(--ease); }
  .boissons[open] summary .plus { transform: rotate(45deg); }
  .boissons summary .label { margin-left: 12px; font-family: var(--font-body); }
  .boissons__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gutter); padding-bottom: 24px; }
  @media (max-width: 1024px) { .boissons__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .boissons__body { grid-template-columns: 1fr; } }

  /* Heures — akud */
  .heures { border-top: 1px solid var(--rule); }
  .heures__head { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
  .heures__head h2 { font-size: var(--step-4); letter-spacing: -0.04em; }
  .heures__head p { color: var(--muted); }
  .days { grid-column: 7 / -1; }
  .day { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); align-items: baseline; }
  .day:first-child { border-top: 1px solid var(--fg); }
  .day__name { font-weight: 600; }
  .day__name small { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: .85rem; }
  .day__hours { font-variant-numeric: tabular-nums; text-align: right; }
  .day--closed .day__hours { color: var(--muted); }
  .day.is-today { color: var(--accent); }
  .day.is-today .day__name::after { content: attr(data-today); margin-left: 10px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
  @media (max-width: 1024px) { .heures__head, .days { grid-column: 1 / -1; } .days { margin-top: 40px; } }

  /* Accès — anda nella */
  .acces { background: var(--fg); color: var(--bg); }
  .acces .grid { row-gap: 48px; }
  .acces__head { grid-column: 1 / span 7; }
  .acces__head h2 { font-size: var(--step-4); letter-spacing: -0.04em; margin-top: 20px; }
  .acces__head .label { color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
  .acces__addr { grid-column: 1 / span 7; font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-style: normal; }
  .acces__side { grid-column: 9 / -1; display: grid; gap: 28px; align-content: start; }
  .acces__item { display: grid; gap: 6px; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, var(--fg)); padding-top: 16px; }
  .acces__item .label { color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
  .acces__item a, .acces__item strong { font-size: var(--step-1); font-weight: 600; text-decoration: none; }
  .acces__item a:hover { color: var(--gold); }
  .acces__item p { color: color-mix(in srgb, var(--bg) 75%, var(--fg)); }
  @media (max-width: 1024px) { .acces__head, .acces__addr, .acces__side { grid-column: 1 / -1; } }

  /* Footer */
  .site-footer { padding-block: clamp(64px, 9vw, 140px) 40px; overflow: hidden; }
  .footer__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 1rem + 11vw, 13rem); letter-spacing: -0.05em; line-height: .85; color: var(--accent); }
  .footer__tif { font-size: var(--step-2); margin-top: 16px; color: var(--muted); }
  .footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: clamp(40px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
  .footer__row a { text-decoration: none; }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media print {
  .site-header, .frise, .hero__tif, .boissons summary .plus { display: none !important; }
  .seksu, .acces { background: none !important; color: #000 !important; }
  .boissons__body { display: grid !important; }
}

/* ================= Immersion & effets ================= */
@layer components {
  /* Hero title lines (masked reveal on load) */
  .hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
  .hero__title .line > span { display: inline-block; }
  .hero__tif span { display: inline-block; }
  .hero__tif { will-change: transform; }

  /* Ink reveal: words darken as you read */
  [data-ink] .w { transition: color .3s; }
  .js [data-ink].is-inking .w { color: var(--muted); }
  .js [data-ink].is-inking .w.on { color: var(--fg); }
  .js [data-ink].is-inking .w.on.hot { color: var(--accent); }

  /* Seksu fills with gold as the chapter scrolls */
  .seksu__word h2 {
    background: linear-gradient(to top, var(--gold) var(--fill, 0%), var(--band-fg) var(--fill, 0%));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  @supports not ((-webkit-background-clip: text) or (background-clip: text)) { .seksu__word h2 { color: var(--band-fg); } }

  /* Dish rows: lozenge + underline sweep on hover */
  .dish { position: relative; transition: padding-left .35s var(--ease); }
  .dish::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    background: var(--accent); transform: rotate(45deg) scale(0); transition: transform .35s var(--ease);
  }
  .dish:has(.dish__note)::before { top: 26px; margin-top: 0; }
  .seksu .dish::before { background: var(--gold); }
  .dish::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .seksu .dish::after { background: var(--gold); }
  @media (hover: hover) {
    .dish:hover { padding-left: 20px; }
    .dish:hover::before { transform: rotate(45deg) scale(1); }
    .dish:hover::after { transform: scaleX(1); }
  }

  /* Phone & links: underline sweep */
  .fact__value a, .acces__item a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease), color .2s; }
  .fact__value a:hover, .acces__item a:hover { background-size: 100% 1px; }

  /* Today: living dot */
  .day.is-today .day__hours::before {
    content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    margin-right: 10px; vertical-align: 1px; animation: pulse 2s ease-out infinite;
  }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

  /* Footer letters */
  [data-chars] .ch { display: inline-block; }

  /* Scroll progress woven along the header */
  .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

  @media (prefers-reduced-motion: reduce) {
    .day.is-today .day__hours::before { animation: none; }
    .dish, .dish::before, .dish::after { transition: none; }
  }
}

/* ================= Illustrations au trait ================= */
@layer components {
  .illu { --ink: var(--fg); --paper: var(--bg); display: block; overflow: visible; }
  .seksu .illu { --ink: var(--band-fg); --paper: var(--band); }
  .illu .ln, .illu .lna, .illu .lnp, .illu .lng { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .illu .ln { stroke: var(--ink); }
  .illu .ln.thin { stroke-width: 1.6; }
  .illu .lna { stroke: var(--accent); }
  .illu .lng { stroke: var(--gold); }
  .illu .lnp { stroke: var(--paper); }
  .illu .fa { fill: var(--accent); }
  .illu .fg { fill: var(--gold); }
  .illu .fi { fill: var(--ink); }
  .illu .fp { fill: var(--paper); }

  .group__illu { width: clamp(72px, 7vw, 104px); height: auto; margin-bottom: 14px; margin-left: -6px; }
  .seksu__illu { width: clamp(150px, 16vw, 230px); height: auto; margin-top: 28px; }
  .boissons summary { justify-content: flex-start; }
  .boissons summary .plus { margin-left: auto; }
  .boissons__illu { width: clamp(44px, 4.5vw, 60px); height: auto; flex: none; }

  /* Tracé à la main : le trait se dessine, puis les couleurs se posent */
  .js .illu[data-draw] [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
  .js .illu[data-draw] .fa, .js .illu[data-draw] .fg, .js .illu[data-draw] .fi { opacity: 0; transform: scale(.85); transform-box: fill-box; transform-origin: center; transition: opacity .6s ease .7s, transform .9s var(--ease) .7s; }
  .js .illu[data-draw].is-in [pathLength] { stroke-dashoffset: 0; }
  .js .illu[data-draw].is-in .fa, .js .illu[data-draw].is-in .fg, .js .illu[data-draw].is-in .fi { opacity: 1; transform: none; }
  @media (hover: hover) {
    .group:hover .group__illu, .boissons summary:hover .boissons__illu { transform: rotate(-4deg); }
    .group__illu, .boissons__illu { transition: transform .5s var(--ease); }
  }
  @media (prefers-reduced-motion: reduce) {
    .js .illu[data-draw] [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
    .js .illu[data-draw] .fa, .js .illu[data-draw] .fg, .js .illu[data-draw] .fi { opacity: 1; transform: none; transition: none; }
  }
}

/* ================= Photos en arrière-plan de section ================= */
@layer components {
  .bgph { position: relative; isolation: isolate; overflow: hidden; }
  .bgph::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--overlay), var(--img) center / cover no-repeat;
    transform: scale(1.08); transition: transform 2.6s var(--ease);
  }
  .bgph.is-in::before { transform: scale(1); }
  @media (prefers-reduced-motion: reduce) { .bgph::before { transform: none; transition: none; } }

  /* Texte clair sur photo */
  .on-dark {
    --fg: #F1EFE9; --muted: #C4C1B9; --rule: rgb(241 239 233 / 0.22); --accent: #F28A70;
    --ink-shadow: 0 1px 24px rgb(0 0 0 / .35);
    color: var(--fg); background-color: #141515;
  }
  .on-dark h2, .on-dark .maison__text { text-shadow: var(--ink-shadow); }

  .bgph--maison { --img: url("../img/table-partagee-1600.webp"); --overlay: linear-gradient(100deg, rgb(15 16 16 / .9) 0%, rgb(15 16 16 / .78) 55%, rgb(15 16 16 / .62) 100%); }
  .bgph--acces  { --img: url("../img/poteries-1600.webp"); --overlay: linear-gradient(rgb(15 16 16 / .84), rgb(15 16 16 / .9)); }
  @media (max-width: 800px) {
    .bgph--maison { --img: url("../img/table-partagee-800.webp"); }
    .bgph--acces  { --img: url("../img/poteries-800.webp"); }
  }

  /* Accès : version photo */
  .acces.on-dark { color: var(--fg); }
  .acces.on-dark .label, .acces.on-dark .acces__head .label, .acces.on-dark .acces__item .label { color: var(--muted); }
  .acces.on-dark .acces__item { border-top-color: var(--rule); }
  .acces.on-dark .acces__item p { color: var(--muted); }
  .footer__row small { font-size: .78rem; }
}
