/* ==========================================================================
   LE PINOCCHIO - Lillebonne
   Design system sur mesure. Aucune dependance, aucun framework.
   Toutes les couleurs sont echantillonnees sur les photos de l'etablissement,
   la tracabilite de chaque hex est dans DA-BRIEF.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES AUTO-HEBERGEES
   Bricolage Grotesque prolonge les capitales interlettrees de l'enseigne.
   Instrument Sans porte le texte courant.
   Sous-ensembles latin et latin etendu uniquement, 149 Ko au total.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-latin.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: 400 800;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-latin-ext.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-latin.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-latin-ext.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;
}

/* --------------------------------------------------------------------------
   2. JETONS
   -------------------------------------------------------------------------- */
:root {
  /* --- Palette brute. Chaque valeur remonte a une surface reelle, relevee par
         filtrage de teinte puis mediane sur les photos. La maison est chaude :
         les teintes mesurees vont de 16 a 28 deg, du store aux tomettes. --- */

  /* Terracotta : l'enduit de la facade (H23), le store de l'enseigne (H18),
     l'encadrement de la porte (H16,5) et les tomettes du sol (H20,6).
     Teinte de travail 20 deg, la mediane des quatre. */
  --c-terra-900: #602b10;
  --c-terra-800: #823b17;
  --c-terra-700: #9f491e;   /* primaire. Blanc dessus a 6,09:1 */
  --c-terra-600: #ba5826;
  --c-terra-500: #c06030;   /* filets et surlignes, 3,2:1 minimum sur les cremes */
  --c-terra-300: #eba684;   /* accent du mode sombre */
  --c-terra-200: #f1d4c5;
  --c-terra-100: #f9e9e1;

  /* Brun : les colombages et le soubassement de la salle relevent a H6, un bordeaux
     tres sombre ; les tomettes et le bois a H20. La rampe est posee a H14, entre les
     deux familles mesurees. C'est l'encre du site et le fond du mode sombre. */
  --c-brun-950: #200e09;
  --c-brun-900: #31170f;
  --c-brun-800: #4a261c;
  --c-brun-700: #64382b;
  --c-brun-500: #7a584e;   /* texte secondaire, 4,78:1 sur le creme le plus enfonce */
  --c-brun-300: #d2b9b2;

  /* Cremes : les toiles murales de la salle et le lettrage de l'enseigne, H27,4 */
  --c-creme-50:  #faf6f2;
  --c-creme-100: #f6eee7;
  --c-creme-200: #ecded2;
  --c-creme-300: #d9c6b4;

  --c-beurre-400: #e0be7b;   /* assises des chaises bistrot. Etoiles de la note */

  /* --- Roles, mode clair : les toiles creme des murs de la salle --- */
  --bg:            var(--c-creme-50);
  --bg-alt:        var(--c-creme-100);
  --bg-sunk:       var(--c-creme-200);
  --surface:       #fffbf7;
  --surface-ring:  rgb(32 14 9 / .08);
  --bg-inverse:    var(--c-brun-950);
  --text:          var(--c-brun-900);
  --text-strong:   var(--c-brun-950);
  --text-muted:    var(--c-brun-500);
  --text-on-dark:  var(--c-creme-100);
  --text-on-dark-muted: var(--c-brun-300);
  --accent:        var(--c-terra-700);
  --accent-hover:  var(--c-terra-800);
  --accent-soft:   var(--c-terra-100);
  --accent-line:   var(--c-terra-500);
  --on-accent:     #ffffff;
  --border:        rgb(32 14 9 / .12);
  --border-strong: rgb(32 14 9 / .22);
  --star:          var(--c-terra-600);
  --focus:         var(--c-terra-700);
  --shadow-1: 0 1px 2px rgb(49 23 15 / .05), 0 2px 8px rgb(49 23 15 / .04);
  --shadow-2: 0 2px 4px rgb(49 23 15 / .05), 0 12px 28px -8px rgb(49 23 15 / .12);
  --shadow-3: 0 4px 10px rgb(49 23 15 / .06), 0 28px 60px -18px rgb(49 23 15 / .22);

  /* --- Espace, echelle 4 px --- */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  /* --- Rythme vertical des sections --- */
  --section-y: clamp(4.5rem, 3rem + 7vw, 8.5rem);

  /* --- Typographie --- */
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-hero:  clamp(2.9rem, 1.7rem + 5.2vw, 5.6rem);
  --t-h2:    clamp(2rem, 1.35rem + 2.9vw, 3.4rem);
  --t-h3:    clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --t-h4:    clamp(1.15rem, 1.06rem + .4vw, 1.35rem);
  --t-lede:  clamp(1.125rem, 1.05rem + .38vw, 1.3rem);
  --t-body:  clamp(1.0625rem, 1.02rem + .2vw, 1.125rem);
  --t-sm:    .9375rem;
  --t-xs:    .8125rem;

  /* --- Rayons. Systeme unique :
         pilule pour tout ce qui est interactif, 22 px pour les blocs media,
         14 px pour les petits blocs, 10 px pour les pastilles. --- */
  --r-pill: 999px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  /* --- Mouvement --- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-1: .18s;
  --dur-2: .34s;
  --dur-3: .7s;

  /* --- Couches --- */
  --z-base: 1;
  --z-sticky: 20;
  --z-bar: 30;
  --z-overlay: 40;

  --header-h: 68px;

  /* --- Traitement photo homogene.
         Les sources vont du tungstene tres chaud a l'inox froid,
         ce filtre discret les raccorde sans virage sepia. --- */
  --photo-filter: saturate(1.04) contrast(1.03);

  color-scheme: light;
}

/* Mode sombre : la meme maison, cote boiserie. En clair elle est faite des toiles
   creme des murs, en sombre du soubassement brun releve a H18,5. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            var(--c-brun-950);
    --bg-alt:        var(--c-brun-900);
    --bg-sunk:       #160a06;
    --surface:       #351d15;
    --surface-ring:  rgb(246 238 231 / .09);
    --bg-inverse:    #100704;
    --text:          var(--c-creme-100);
    --text-strong:   var(--c-creme-50);
    --text-muted:    var(--c-brun-300);
    --text-on-dark:  var(--c-creme-100);
    --text-on-dark-muted: var(--c-brun-300);
    --accent:        var(--c-terra-300);
    --accent-hover:  var(--c-creme-100);
    --accent-soft:   rgb(192 96 48 / .18);
    --accent-line:   var(--c-terra-500);
    --on-accent:     var(--c-brun-950);
    --border:        rgb(246 238 231 / .14);
    --border-strong: rgb(246 238 231 / .28);
    --star:          var(--c-beurre-400);
    --focus:         var(--c-terra-300);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .3), 0 12px 28px -8px rgb(0 0 0 / .5);
    --shadow-3: 0 4px 10px rgb(0 0 0 / .35), 0 28px 60px -18px rgb(0 0 0 / .6);
    --photo-filter: saturate(1.02) contrast(1.02) brightness(.94);
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   3. REINITIALISATION
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

[hidden] { display: none !important; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: .06em; }
a:hover { color: var(--accent-hover); }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  transform: translateY(-160%);
  z-index: 100; padding: .7rem 1.1rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--on-accent); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.12; }
h4 { font-size: var(--t-h4); line-height: 1.2; letter-spacing: -.012em; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Suréclat : capitales interlettrees, echo direct du bandeau du store.
   Rationne a une occurrence toutes les trois sections. */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.section-head { max-width: 60ch; }
.section-head h2 + p { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   5. STRUCTURE
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}
@media (min-width: 640px) { .wrap { width: min(100% - 4rem, 1240px); } }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * .62); }

/* --------------------------------------------------------------------------
   6. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem;
  min-height: 48px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.005em;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }

.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-2);
}
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-3); }

.btn--ghost {
  background: transparent; color: var(--text-strong);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-sunk); color: var(--text-strong); border-color: var(--text-strong); }

.btn--on-dark {
  background: transparent; color: var(--c-creme-100);
  border: 1.5px solid rgb(246 238 231 / .34);
}
.btn--on-dark:hover { background: rgb(246 238 231 / .1); color: #fff; border-color: rgb(246 238 231 / .6); }

/* Icone logee dans son propre disque, calee sur le bord interieur du bouton */
.btn__icon {
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-right: -.4rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .18);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.btn--ghost .btn__icon, .btn--on-dark .btn__icon { background: var(--accent-soft); }
.btn:hover .btn__icon { transform: translateX(2px); background: rgb(255 255 255 / .3); }
.btn--ghost:hover .btn__icon { background: var(--accent-soft); }
.btn__icon svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   7. PASTILLES ET ETOILES
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--t-sm);
  line-height: 1.35;
  color: var(--text);
}
.chip--plain { background: transparent; }
.chip--dark { background: rgb(246 238 231 / .06); border-color: rgb(246 238 231 / .16); color: var(--text-on-dark); }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }

/* Etat d'ouverture. La pastille de couleur porte ici un etat reel, pas un ornement. */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--t-xs); font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.status__dot {
  width: 7px; height: 7px; border-radius: var(--r-pill);
  background: var(--text-muted); flex: none;
}
/* Texte, donc seuil 4,5 : terra-600 n'y arrive pas (4,33), terra-700 oui (5,67). */
.status[data-open="true"] { color: var(--c-terra-700); }
.status[data-open="true"] .status__dot { background: currentColor; }
@media (prefers-color-scheme: dark) { .status[data-open="true"] { color: var(--c-beurre-400); } }

/* --------------------------------------------------------------------------
   8. EN-TETE
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .header { backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); }
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--shadow-1); }

.header__inner {
  display: flex; align-items: center; gap: var(--sp-6);
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text-strong);
  flex: none;
}
.brand__mark { width: 34px; height: 21px; color: var(--accent); flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.02rem;
  letter-spacing: .16em;                /* interlettrage releve sur l'enseigne */
  text-transform: uppercase;
  line-height: 1;
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; flex: 1; justify-content: center; align-items: center; gap: var(--sp-6); }
  .nav a {
    font-size: var(--t-sm); font-weight: 500; color: var(--text);
    text-decoration: none; position: relative; padding-block: .4rem;
    white-space: nowrap;
  }
  .nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
  .nav a[aria-current="true"] { color: var(--accent); }
}

.header__aside { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; flex: none; }
@media (min-width: 1024px) { .header__aside { margin-left: 0; } }
.header__status { display: none; }
@media (min-width: 1180px) { .header__status { display: inline-flex; } }
.header__cta { display: none; }
@media (min-width: 768px) {
  .header__cta { display: inline-flex; padding: .6rem 1.15rem; min-height: 42px; font-size: .95rem; }
}

/* Bouton menu, morphing des trois barres en croix */
.burger {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-right: -.6rem;
  border-radius: var(--r-pill);
  flex: none;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__bar {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--text-strong);
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu plein ecran mobile */
.menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: grid; align-content: center;
  padding: var(--sp-16) var(--sp-6) var(--sp-12);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-2) var(--ease), visibility var(--dur-2);
}
@supports (backdrop-filter: blur(1px)) {
  .menu { backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
}
.menu[data-open="true"] { visibility: visible; opacity: 1; }
.menu__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.menu__list a {
  display: block; padding: .5rem 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 3.6vw, 2.8rem);
  letter-spacing: -.03em; color: var(--text-strong); text-decoration: none;
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color var(--dur-1) var(--ease);
}
.menu[data-open="true"] .menu__list a { opacity: 1; transform: none; }
.menu[data-open="true"] li:nth-child(1) a { transition-delay: .06s; }
.menu[data-open="true"] li:nth-child(2) a { transition-delay: .11s; }
.menu[data-open="true"] li:nth-child(3) a { transition-delay: .16s; }
.menu[data-open="true"] li:nth-child(4) a { transition-delay: .21s; }
.menu[data-open="true"] li:nth-child(5) a { transition-delay: .26s; }
.menu__list a:hover { color: var(--accent); }
.menu__foot {
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  display: grid; gap: var(--sp-3);
}
.menu__tel {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -.02em; text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. HERO - split asymetrique, texte a gauche, photo portrait a droite
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 1.2rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; }
}

.hero__title { font-size: var(--t-hero); line-height: .94; letter-spacing: -.038em; }
.hero__title-main { display: block; }
.hero__title-sub {
  display: block;
  margin-top: .5em;
  font-size: clamp(1.05rem, .84rem + .92vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--text-muted);
}
.hero__lede { margin-top: var(--sp-6); max-width: 46ch; }
.hero__actions { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__status { margin-top: var(--sp-6); }
/* Au-dela de 1180 px le badge de l'en-tete apparait : un seul etat a l'ecran, pas deux. */
@media (min-width: 1180px) { .hero__status { display: none; } }

/* Le cadre : coque exterieure discrete, noyau interieur, rayons concentriques */
.frame {
  padding: 8px;
  border-radius: calc(var(--r-lg) + 8px);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--surface-ring), var(--shadow-3);
}
.frame > img, .frame > picture > img {
  width: 100%; border-radius: var(--r-lg);
  filter: var(--photo-filter);
  background: var(--bg-sunk);
}
.hero__media { position: relative; }
@media (min-width: 900px) {
  .hero__media { max-width: 470px; margin-left: auto; }
  /* Hauteur bornee : la photo ne doit jamais pousser les boutons hors du premier ecran */
  .hero__media .frame > img { height: min(56vh, 560px); object-fit: cover; }
}

/* --------------------------------------------------------------------------
   10. BANDEAU CONFIANCE
   -------------------------------------------------------------------------- */
.trust {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-10);
}
.trust__grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .trust__grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }
.trust__item { display: grid; gap: .3rem; }
@media (min-width: 720px) {
  .trust__item + .trust__item { padding-left: var(--sp-6); border-left: 1px solid var(--border); }
}
.trust__figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem);
  line-height: 1; letter-spacing: -.03em; color: var(--text-strong);
}
.trust__label { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.4; }
.trust__stars { margin-top: .15rem; }

/* --------------------------------------------------------------------------
   11. LA MAISON - editorial, texte puis image large
   -------------------------------------------------------------------------- */
.maison__head { max-width: 62ch; }
.maison__body {
  margin-top: var(--sp-8);
  display: grid; gap: var(--sp-8);
}
@media (min-width: 900px) {
  .maison__body { grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }
}
.maison__media { margin-top: var(--sp-12); }
.maison__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.maison__facts { display: grid; gap: var(--sp-5); align-content: start; }
.fact { display: grid; gap: .2rem; padding-left: var(--sp-5); border-left: 2px solid var(--accent-line); }
.fact__k { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h4); color: var(--text-strong); }
.fact__v { font-size: var(--t-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   12. SIGNATURE - bloc plein, aplat brun, composition typographique.
   Aucune des onze photos ne montre cette pizza, donc aucune photo ici.
   -------------------------------------------------------------------------- */
.signature {
  background: var(--bg-inverse);
  color: var(--text-on-dark);
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}
.signature::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 12% 0%, rgb(132 54 42 / .38), transparent 62%);
  pointer-events: none;
}
.signature__grid { position: relative; display: grid; gap: var(--sp-10); }
@media (min-width: 900px) {
  .signature__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
}
.signature h2 { color: var(--c-creme-50); }
.signature .eyebrow { color: var(--c-terra-500); }
.signature p { color: var(--text-on-dark-muted); }
.signature__name { font-size: clamp(2.6rem, 1.8rem + 3.8vw, 4.4rem); letter-spacing: -.04em; }
.signature__kicker {
  margin-top: var(--sp-4); font-size: var(--t-lede);
  color: var(--c-creme-200); max-width: 40ch;
}
.signature__note { margin-top: var(--sp-6); font-size: var(--t-sm); max-width: 46ch; }

.recipe { list-style: none; padding: 0; margin: 0; display: grid; }
.recipe li {
  display: flex; align-items: baseline; gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-top: 1px solid rgb(246 238 231 / .16);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.95rem);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
  color: var(--c-creme-50);
}
.recipe li:last-child { border-bottom: 1px solid rgb(246 238 231 / .16); }
.recipe small {
  display: block; margin-top: .3rem;
  font-family: var(--font-body); font-size: var(--t-sm);
  font-weight: 400; letter-spacing: 0; color: var(--c-brun-300);
}

/* --------------------------------------------------------------------------
   13. LA CARTE - bento a quatre cellules, rythme asymetrique
   -------------------------------------------------------------------------- */
.carte__grid {
  margin-top: var(--sp-10);
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .carte__grid { grid-template-columns: repeat(12, 1fr); }
  .dish--pizzas   { grid-column: span 7; grid-row: span 2; }
  .dish--entrees  { grid-column: span 5; }
  .dish--viandes  { grid-column: span 5; }
  .dish--desserts { grid-column: span 12; }
}

.dish {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--surface-ring), var(--shadow-1);
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.dish:hover { box-shadow: 0 0 0 1px var(--surface-ring), var(--shadow-3); transform: translateY(-3px); }
.dish__media { position: relative; overflow: hidden; background: var(--bg-sunk); }
.dish__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-filter);
  transition: transform 1.1s var(--ease);
}
.dish:hover .dish__media img { transform: scale(1.035); }
.dish--pizzas .dish__media img { aspect-ratio: 4 / 5; }
.dish--entrees .dish__media img, .dish--viandes .dish__media img { aspect-ratio: 3 / 2; }
.dish--desserts .dish__media img { aspect-ratio: 16 / 9; }
@media (min-width: 760px) {
  .dish--desserts { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
  .dish--desserts .dish__media { height: 100%; }
  .dish--desserts .dish__media img { aspect-ratio: auto; height: 100%; }
}
.dish__body { padding: var(--sp-6); display: grid; gap: var(--sp-4); align-content: start; }
@media (min-width: 760px) { .dish__body { padding: var(--sp-8); } }
.dish__body p { font-size: var(--t-sm); color: var(--text-muted); }
.dish__note {
  font-size: var(--t-sm); color: var(--text-muted);
  padding-top: var(--sp-4); border-top: 1px solid var(--border);
}

.carte__foot {
  margin-top: var(--sp-8);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  font-size: var(--t-sm); color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. LES JULIOBONALES - composition decalee
   -------------------------------------------------------------------------- */
.julio { background: var(--bg-alt); }
.julio__grid { display: grid; gap: var(--sp-10); align-items: center; }
@media (min-width: 900px) {
  .julio__grid { grid-template-columns: .82fr 1.18fr; gap: var(--sp-16); }
  .julio__media { order: -1; }
}
.julio__media img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .julio__media { max-width: 380px; } }
.julio__latin {
  margin-top: var(--sp-6);
  list-style: none; padding: 0;
  display: grid; gap: var(--sp-3);
  font-size: var(--t-sm);
}
.julio__latin li { display: grid; gap: .1rem; padding-left: var(--sp-5); border-left: 2px solid var(--accent-line); }
.julio__latin i { font-style: italic; font-weight: 600; color: var(--text-strong); font-size: var(--t-body); }
.julio__latin span { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. LA DEVANTURE
   -------------------------------------------------------------------------- */
.devanture__grid { display: grid; gap: var(--sp-10); align-items: center; }
@media (min-width: 900px) { .devanture__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-16); } }
.devanture__media { max-width: 520px; }
.devanture__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.devanture__credit {
  margin-top: var(--sp-3);
  font-size: var(--t-xs); color: var(--text-muted);
}
.devanture__actions { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   16. GALERIE - bento trois cellules, visionneuse au clic
   -------------------------------------------------------------------------- */
.gallery__grid {
  margin-top: var(--sp-10);
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(2) { grid-column: span 2; }
  .gallery__item:nth-child(3) { grid-column: span 2; }
}
.gallery__item {
  display: block; padding: 0; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-sunk);
  box-shadow: 0 0 0 1px var(--surface-ring);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-filter);
  transition: transform 1.1s var(--ease), filter var(--dur-3) var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(1) img { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(2) img,
.gallery__item:nth-child(3) img { aspect-ratio: 16 / 10; }
@media (max-width: 719px) {
  .gallery__item img { aspect-ratio: 4 / 3; }
}

/* Visionneuse */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: var(--sp-6);
  background: rgb(20 12 18 / .92);
  color: var(--c-creme-100);
  border: 0;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: rgb(20 12 18 / .92); }
.lightbox img {
  max-width: min(100%, 1000px); max-height: 82vh;
  width: auto; border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
}
.lightbox__cap {
  margin-top: var(--sp-4); text-align: center;
  color: var(--c-creme-200); font-size: var(--t-sm);
  max-width: 60ch;
}
.lightbox__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgb(246 238 231 / .12); color: var(--c-creme-50);
  transition: background var(--dur-2) var(--ease);
}
.lightbox__close:hover { background: rgb(246 238 231 / .24); }
.lightbox__close svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   17. AVIS
   -------------------------------------------------------------------------- */
.avis__grid {
  margin-top: var(--sp-10);
  display: grid; gap: var(--sp-8);
}
@media (min-width: 760px) { .avis__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-10); } }
@media (min-width: 1100px) { .avis__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); } }

.avis__item { display: grid; gap: var(--sp-4); align-content: start; padding-top: var(--sp-5); border-top: 2px solid var(--border-strong); }
.avis__quote { font-size: var(--t-body); line-height: 1.5; color: var(--text-strong); }
.avis__who { font-size: var(--t-xs); color: var(--text-muted); line-height: 1.5; }
.avis__who b { display: block; font-family: var(--font-display); font-size: var(--t-sm); color: var(--text-strong); font-weight: 700; }
.avis__foot { margin-top: var(--sp-10); font-size: var(--t-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   18. INFOS PRATIQUES
   -------------------------------------------------------------------------- */
.infos { background: var(--bg-alt); }
.infos__grid { display: grid; gap: var(--sp-12); }
@media (min-width: 900px) { .infos__grid { grid-template-columns: 1.05fr .95fr; gap: var(--sp-16); align-items: start; } }

.hours { width: 100%; border-collapse: collapse; margin-top: var(--sp-6); }
.hours caption { text-align: left; font-size: var(--t-sm); color: var(--text-muted); padding-bottom: var(--sp-3); }
.hours th, .hours td { text-align: left; padding: .78rem .5rem; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.hours th { font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); color: var(--text-strong); width: 34%; }
.hours td { font-size: var(--t-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hours tr[data-today="true"] th, .hours tr[data-today="true"] td { color: var(--text-strong); font-weight: 700; }
.hours tr[data-today="true"] { background: var(--accent-soft); }
.hours tr[data-today="true"] th { border-left: 3px solid var(--accent); padding-left: calc(.5rem - 3px); }
.hours__closed { color: var(--text-muted); }

.infos__block + .infos__block { margin-top: var(--sp-10); }
.infos__block h3 { margin-bottom: var(--sp-4); }

/* --------------------------------------------------------------------------
   19. ACCES
   -------------------------------------------------------------------------- */
.acces__grid { display: grid; gap: var(--sp-10); }
@media (min-width: 900px) { .acces__grid { grid-template-columns: 1.15fr .85fr; gap: var(--sp-12); align-items: start; } }

.map {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
  box-shadow: 0 0 0 1px var(--surface-ring);
  aspect-ratio: 4 / 3;
}
@media (min-width: 900px) { .map { aspect-ratio: 3 / 2; } }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: var(--sp-4);
  padding: var(--sp-6); text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgb(132 78 47 / .05) 22px 44px),
    var(--bg-sunk);
  cursor: pointer;
}
.map__hint { font-size: var(--t-sm); line-height: 1.5; color: var(--text-muted); max-width: 34ch; }
.map__pin { width: 30px; height: 30px; color: var(--accent); }

.contact { display: grid; gap: var(--sp-6); align-content: start; }
.contact__row { display: grid; gap: .25rem; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }
.contact__k { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.contact__v { font-size: var(--t-body); color: var(--text-strong); }
.contact__v a { font-weight: 600; text-decoration: none; }
.contact__v a:hover { text-decoration: underline; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   20. PIED DE PAGE
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-inverse);
  color: var(--text-on-dark);
  padding-block: var(--section-y) var(--sp-10);
}
.footer a { color: var(--c-creme-100); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--sp-10); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--sp-10); } }
.footer__brand { display: grid; gap: var(--sp-5); align-content: start; }
.footer__logo { width: 190px; height: auto; }
.footer__tag { font-size: var(--t-sm); color: var(--text-on-dark-muted); max-width: 34ch; }
.footer h3 {
  color: var(--c-creme-50); font-size: var(--t-xs);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: var(--t-sm); color: var(--text-on-dark-muted); }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__hours { font-variant-numeric: tabular-nums; }
.footer__legal {
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  border-top: 1px solid rgb(246 238 231 / .16);
  display: grid; gap: var(--sp-2);
  font-size: var(--t-xs); color: var(--text-on-dark-muted); line-height: 1.6;
}

/* --------------------------------------------------------------------------
   21. BARRE D'ACTION MOBILE
   -------------------------------------------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px -12px rgb(32 14 9 / .4);
}
@supports (backdrop-filter: blur(1px)) {
  .actionbar { backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
}
@media (min-width: 768px) { .actionbar { display: none; } }
.actionbar a {
  display: grid; justify-items: center; gap: .22rem;
  padding: .62rem .3rem .7rem;
  min-height: 56px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: var(--text); text-decoration: none;
}
.actionbar a + a { border-left: 1px solid var(--border); }
.actionbar a:active { background: var(--bg-sunk); }
.actionbar svg { width: 19px; height: 19px; color: var(--accent); }
body { padding-bottom: 0; }
@media (max-width: 767px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   22. APPARITIONS AU DEFILEMENT
   Une seule intention : hierarchiser l'arrivee des blocs a la lecture.
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .menu__list a { opacity: 1; transform: none; }
}

/* Transparence reduite : on retire le flou et on repasse en aplats opaques. */
@media (prefers-reduced-transparency: reduce) {
  .header, .actionbar, .menu {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}

/* --------------------------------------------------------------------------
   23. IMPRESSION - un visiteur imprime l'adresse et les horaires
   -------------------------------------------------------------------------- */
@media print {
  .header, .actionbar, .menu, .hero__actions, .devanture__actions,
  .contact__actions, .map, .gallery__grid, [data-reveal] { transition: none; }
  .header, .actionbar, .menu, .map, .btn { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; break-inside: avoid; }
}
