/* Kaza Fournaise — démo vitrine LKB Studio */
:root {
  --fond: #0b0908;
  --fond-2: #130e0b;
  --carte: #1b1410;
  --carte-2: #261b15;
  --ivoire: #f3ece2;
  --ivoire-2: #b9a99a;
  --braise: #e0531d;
  --flamme: #f2a24a;
  --flamme-clair: #ffd08a;
  --brique: #7a2d10;
  --ligne: rgba(243, 236, 226, 0.13);
  --vert: #8fc79a;
  --titre: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --texte: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gouttiere: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--ivoire);
  font: 400 16px/1.55 var(--texte);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--flamme-clair); outline-offset: 3px; border-radius: 6px; }
em { font: italic 400 1.14em/1 var(--serif); letter-spacing: -0.005em; color: var(--flamme-clair); }
section[id] { scroll-margin-top: 70px; }

.logo span { white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gouttiere);
  background: linear-gradient(to bottom, rgba(11, 9, 8, 0.92), rgba(11, 9, 8, 0.6) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 19px/1 var(--titre); letter-spacing: 0.02em; text-transform: uppercase; font-stretch: 90%; }
.logo svg { fill: var(--braise); flex: none; }
.logo b { font-weight: 800; color: var(--flamme); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--ivoire-2); transition: color 0.25s; }
.nav a:hover { color: var(--ivoire); }
.btn-reserver { min-height: 42px; padding: 0 20px; font-size: 14.5px; }

/* ---------- Boutons, textes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 4px;
  font: 600 15px/1 var(--titre); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border: 0;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s, border-color 0.25s;
}
.btn-plein { background: var(--braise); color: #180803; box-shadow: 0 10px 40px -12px rgba(224, 83, 29, 0.75); }
.btn-plein:hover { transform: translateY(-2px); background: var(--flamme); }
.btn-ligne { border: 1px solid rgba(243, 236, 226, 0.35); color: var(--ivoire); background: transparent; }
.btn-ligne:hover { border-color: var(--ivoire); transform: translateY(-2px); }

.surtitre { font: 600 12.5px/1 var(--titre); letter-spacing: 0.2em; text-transform: uppercase; color: var(--braise); margin: 0 0 16px; }
.titre-xl { font: 700 clamp(52px, 9.4vw, 148px)/0.9 var(--titre); font-stretch: 84%; letter-spacing: -0.035em; word-spacing: 0.1em; margin: 0; }
.titre-l { font: 700 clamp(38px, 5.6vw, 84px)/0.98 var(--titre); font-stretch: 86%; letter-spacing: -0.03em; word-spacing: 0.08em; margin: 0; text-wrap: balance; }
.titre-xl .ligne { display: block; }
.chapo { font-size: clamp(16px, 1.35vw, 19px); color: var(--ivoire-2); max-width: 46ch; margin: 22px 0 0; }
.chapo strong { color: var(--ivoire); font-weight: 500; }
.entete-section { padding: 0 var(--gouttiere); max-width: 1440px; margin: 0 auto 56px; }

/* ---------- 1. Ouverture ---------- */
.ouverture {
  position: relative;
  min-height: calc(100svh - 30px);
  display: grid;
  align-items: end;
  padding: 120px var(--gouttiere) clamp(48px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
  margin-top: -78px;
}
.ouv-image { position: absolute; inset: 0; z-index: -2; }
.ouv-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.ouverture::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 9, 8, 0.94) 0%, rgba(11, 9, 8, 0.6) 42%, rgba(11, 9, 8, 0.05) 76%),
    linear-gradient(0deg, var(--fond) 0%, transparent 34%);
}
.ouv-mot {
  position: absolute; left: 50%; top: 44%; translate: -50% -50%; z-index: -1;
  font: 800 clamp(80px, 20vw, 320px)/1 var(--titre); font-stretch: 78%;
  letter-spacing: -0.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 208, 138, 0.2);
  pointer-events: none; user-select: none;
}
.ouv-texte { max-width: 820px; position: relative; }
.pastille-statut { display: inline-flex; align-items: center; gap: 9px; text-transform: none; letter-spacing: 0.02em; font: 500 14px/1.2 var(--texte); color: var(--ivoire); background: rgba(11, 9, 8, 0.55); border: 1px solid var(--ligne); border-radius: 99px; padding: 7px 15px 7px 12px; backdrop-filter: blur(6px); }
.pastille-statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d76a4b; box-shadow: 0 0 0 4px rgba(215, 106, 75, 0.18); }
.pastille-statut.ouvert::before { background: var(--vert); box-shadow: 0 0 0 4px rgba(143, 199, 154, 0.2); }
p.pastille-statut { margin: 0 0 22px; }
.lieu-fiche p.pastille-statut { align-self: flex-start; margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.braises { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.braise {
  position: absolute; width: var(--s, 8px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff3d2 0, #ffb85a 34%, rgba(224, 83, 29, 0) 72%);
  filter: drop-shadow(0 0 7px rgba(255, 150, 60, 0.95));
}
.b1 { top: 62%; right: 40%; --s: 9px; }
.b2 { top: 70%; right: 28%; --s: 6px; }
.b3 { top: 54%; right: 22%; --s: 12px; filter: blur(1px) drop-shadow(0 0 9px rgba(255, 150, 60, 0.95)); }
.b4 { top: 74%; right: 12%; --s: 7px; }
.b5 { top: 46%; right: 34%; --s: 5px; opacity: 0.8; }
.b6 { top: 82%; right: 48%; --s: 10px; filter: blur(1.5px) drop-shadow(0 0 9px rgba(255, 150, 60, 0.95)); }
.b7 { top: 40%; right: 10%; --s: 6px; }
.b8 { top: 66%; right: 6%; --s: 14px; filter: blur(2px) drop-shadow(0 0 10px rgba(255, 150, 60, 0.95)); opacity: 0.85; }
.defiler { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; translate: -50% 0; border: 1.5px solid rgba(243, 236, 226, 0.4); border-radius: 20px; }
.defiler span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--ivoire); animation: molette 1.8s var(--ease) infinite; }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 2. Du bois à la part ---------- */
.histoire { position: relative; overflow-x: clip; }
.histoire-scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 80px var(--gouttiere);
  max-width: 1440px;
  margin: 0 auto;
}
.histoire-objets { position: relative; height: min(72vh, 680px); display: grid; place-items: center; }
.arche { position: relative; height: 100%; aspect-ratio: 5 / 6; }
.anneau { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px rgba(224, 83, 29, 0.6)); }
.anneau path { fill: none; stroke: url(#feu-degrade); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.fenetre {
  position: absolute; inset: 4% 5.4% 2.2%;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 62%, rgba(224, 83, 29, 0.38), transparent 62%), #120c09;
  isolation: isolate;
}
.v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.v-four { object-position: 50% 42%; }
.v-pelle { object-position: 64% 50%; }
.v-part { object-position: 36% 50%; }
.v-disque { position: absolute; left: 50%; top: 56%; translate: -50% -50%; width: 88%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.65)); will-change: transform, opacity; }
.puces { list-style: none; margin: 0; padding: 0; }
.puce {
  position: absolute; white-space: nowrap;
  font: 500 13px/1 var(--texte); letter-spacing: 0.02em;
  background: rgba(11, 9, 8, 0.78); border: 1px solid rgba(255, 208, 138, 0.4); color: var(--flamme-clair);
  border-radius: 99px; padding: 8px 14px 8px 12px; backdrop-filter: blur(4px);
}
.puce::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--braise); vertical-align: 1px; }
.p1 { top: 21%; left: -4%; }
.p2 { top: 38%; right: -9%; }
.p3 { top: 64%; left: -2%; }
.p4 { top: 80%; right: -6%; }
.h-braise {
  position: absolute; left: 50%; top: 50%; width: 12px; aspect-ratio: 1; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle, #fff3d2 0, #ffb85a 34%, rgba(224, 83, 29, 0) 72%);
  filter: drop-shadow(0 0 8px rgba(255, 150, 60, 0.95));
}
.hb2, .hb5 { width: 8px; margin: -4px 0 0 -4px; }
.hb3 { width: 16px; margin: -8px 0 0 -8px; filter: blur(1px) drop-shadow(0 0 9px rgba(255, 150, 60, 0.95)); }
.histoire-texte { display: grid; gap: 0; align-content: center; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.etape .num { display: flex; align-items: center; gap: 14px; font: 600 14px/1 var(--titre); color: var(--braise); letter-spacing: 0.14em; }
.etape .num b { font-weight: 600; letter-spacing: 0.06em; color: var(--ivoire-2); border: 1px solid var(--ligne); border-radius: 99px; padding: 5px 10px; }
.etape h2 { font: 700 clamp(30px, 3.6vw, 54px)/1 var(--titre); font-stretch: 86%; letter-spacing: -0.03em; margin: 14px 0 10px; text-wrap: balance; }
.etape p { margin: 0; color: var(--ivoire-2); max-width: 42ch; }
.scenes-anim .etapes { grid-template-areas: "e"; gap: 0; }
.scenes-anim .etape { grid-area: e; }
.suivi { display: none; list-style: none; margin: 34px 0 0; padding: 0; gap: clamp(8px, 2vw, 24px); }
.scenes-anim .suivi { display: flex; }
.suivi li { flex: 1 1 0; min-width: 0; font: 600 12px/1 var(--titre); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 236, 226, 0.35); padding-top: 12px; border-top: 1px solid var(--ligne); transition: color 0.4s, border-color 0.4s; }
.suivi li.on { color: var(--flamme); border-top-color: var(--braise); }
/* Sans animation : la scène reste lisible, tout est visible */
html:not(.scenes-anim) .v-pelle, html:not(.scenes-anim) .v-part, html:not(.scenes-anim) .v-disque, html:not(.scenes-anim) .puces, html:not(.scenes-anim) .h-braise { display: none; }

/* ---------- Bandeau ---------- */
.bandeau { overflow: hidden; border-block: 1px solid var(--ligne); padding: 22px 0; margin: 40px 0 120px; }
.bandeau-piste { display: flex; gap: 28px; width: max-content; font: italic 400 clamp(30px, 4.4vw, 62px)/1 var(--serif); animation: defile 38s linear infinite; }
.bandeau-piste i { color: var(--braise); font-style: normal; font-size: 0.5em; align-self: center; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- 3. La carte ---------- */
.carte { padding-bottom: 140px; }
.menu { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding: 0 var(--gouttiere); max-width: 1440px; margin: 0 auto; }
.menu-visuel { position: sticky; top: 110px; aspect-ratio: 1; display: grid; place-items: center; }
.menu-visuel::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(224, 83, 29, 0.42), transparent 68%); filter: blur(14px); }
.menu-anneau { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 40s linear infinite; }
.menu-anneau circle { fill: none; stroke: rgba(255, 208, 138, 0.45); stroke-width: 0.5; stroke-dasharray: 1.4 3.6; }
@keyframes tourne { to { transform: rotate(360deg); } }
.menu-disque { position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--carte); box-shadow: 0 40px 70px -20px rgba(0, 0, 0, 0.75); }
.menu-disque img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14) rotate(-5deg); transition: opacity 0.6s var(--ease), transform 1s var(--ease); }
.menu-disque img.on { opacity: 1; transform: none; }
.menu-disque img[data-photo="piment"] { object-position: 66% 62%; }
.menu-disque img[data-photo="blanche"] { object-position: 46% 50%; }
.menu-disque img[data-photo="kreol"] { object-position: 38% 55%; }
.menu-disque img[data-photo="four"] { object-position: 50% 42%; }
.menu-groupe + .menu-groupe { margin-top: 44px; }
.menu-titre { font: 600 13px/1 var(--titre); letter-spacing: 0.2em; text-transform: uppercase; color: var(--flamme); margin: 0 0 14px; }
.menu-titre small { font: inherit; color: var(--ivoire-2); margin-left: 10px; letter-spacing: 0.16em; }
.menu-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.menu-ligne { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: center; gap: 16px; padding: 20px 6px; border-bottom: 1px solid var(--ligne); border-radius: 14px; transition: background 0.3s, padding 0.5s var(--ease); cursor: default; }
.menu-ligne:hover, .menu-ligne.actif { background: rgba(243, 236, 226, 0.04); padding-left: 16px; padding-right: 16px; }
.menu-vignette { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; display: none; }
.menu-ligne[data-photo="piment"] .menu-vignette { object-position: 66% 78%; }
.menu-ligne[data-photo="blanche"] .menu-vignette { object-position: 46% 52%; }
.menu-ligne[data-photo="kreol"] .menu-vignette { object-position: 36% 58%; }
/* Pizza sans photo à elle : la flamme du logo plutôt qu'une photo d'une autre pizza */
.menu-vignette-vide { place-items: center; background: var(--carte); border: 1px solid var(--ligne); }
.menu-vignette-vide svg { fill: var(--braise); opacity: 0.85; }
.menu-texte { display: grid; gap: 4px; min-width: 0; }
.menu-nom { font: 600 clamp(21px, 2.1vw, 28px)/1.1 var(--titre); font-stretch: 90%; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.menu-desc { font-size: 14.5px; color: var(--ivoire-2); max-width: 48ch; }
.menu-pointilles { align-self: end; margin-bottom: 14px; border-bottom: 1.5px dotted rgba(243, 236, 226, 0.22); min-width: 20px; }
.menu-prix { font: 500 20px/1 var(--titre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.etiquette { font: 600 11px/1 var(--texte); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(224, 83, 29, 0.14); border: 1px solid rgba(224, 83, 29, 0.55); color: var(--flamme-clair); border-radius: 99px; padding: 5px 10px; }
.carte-note { margin: 30px 0 0; font-size: 13.5px; color: var(--ivoire-2); max-width: 60ch; opacity: 0.8; }

/* ---------- 4. La recette ---------- */
.geste { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.geste-image { position: absolute; inset: 0; z-index: -1; }
.geste-image img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.geste-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 9, 8, 0.95) 0%, rgba(11, 9, 8, 0.72) 50%, rgba(11, 9, 8, 0.2)), linear-gradient(0deg, var(--fond), transparent 25%, transparent 75%, var(--fond)); }
.geste-texte { padding: 0 var(--gouttiere); max-width: 940px; }
.phrase { font: 600 clamp(32px, 4.8vw, 72px)/1.05 var(--titre); font-stretch: 88%; letter-spacing: -0.035em; margin: 0; }
.phrase span { display: inline-block; }
.phrase .cle { color: var(--flamme-clair); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -0.01em; }

/* ---------- 5. Le lieu ---------- */
.lieu { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 80svh; border-top: 1px solid var(--ligne); }
.lieu-image { overflow: hidden; }
.lieu-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.lieu-fiche { padding: clamp(40px, 6vw, 90px) var(--gouttiere); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.adresse { font: 500 22px/1.3 var(--titre); font-stretch: 92%; margin: 22px 0 12px; }
.horaires { margin: 0; display: grid; gap: 2px; max-width: 380px; }
.horaires div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--ligne); padding: 8px 0; font-size: 15px; }
.horaires dt { color: var(--ivoire-2); }
.horaires dd { margin: 0; font-variant-numeric: tabular-nums; }
.horaires .ferme dd { color: var(--ivoire-2); }
.horaires .auj { color: var(--flamme-clair); }
.horaires .auj dt { color: var(--flamme-clair); }
.horaires .auj dt::after { content: " · aujourd'hui"; font-size: 12px; opacity: 0.8; }
.lieu .actions { margin-top: 26px; }
.petit { font-size: 13.5px; color: var(--ivoire-2); margin: 14px 0 0; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--ligne); padding: 60px var(--gouttiere) 40px; overflow: hidden; }
.pied-mot { font: italic 400 clamp(80px, 17vw, 280px)/1.1 var(--serif); padding-bottom: 0.06em; letter-spacing: -0.03em; color: var(--carte-2); text-align: center; user-select: none; white-space: nowrap; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 24px 0 16px; font-size: 14.5px; }
.pied-liens a { color: var(--ivoire-2); text-underline-offset: 3px; }
.pied-note { text-align: center; color: var(--ivoire-2); font-size: 13px; opacity: 0.75; margin: 0 auto; max-width: 70ch; }

/* ---------- Page « Mentions légales » ---------- */
.page-legale .entete { justify-content: space-between; }
.btn-retour { min-height: 44px; padding: 0 18px; font-size: 13.5px; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px var(--gouttiere) 80px; overflow-wrap: anywhere; }
.legal h2 { font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--titre); font-stretch: 88%; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ivoire-2); }
.legal a { color: var(--flamme-clair); text-underline-offset: 3px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal-avis { margin: 28px 0 0; padding: 18px 20px; border: 1px solid rgba(255, 208, 138, 0.35); border-radius: 10px; background: var(--carte); }
.legal-avis strong { color: var(--ivoire); }
.legal-fiche { margin: 0; display: grid; gap: 2px; }
.legal-fiche div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 20px; padding: 10px 0; border-bottom: 1px dashed var(--ligne); }
.legal-fiche dt { color: var(--ivoire-2); font-size: 14.5px; }
.legal-fiche dd { margin: 0; }
.legal-cta { margin-top: 48px; }
.legal-cta .btn { color: #180803; }
@media (max-width: 600px) { .legal-fiche div { grid-template-columns: 1fr; } }

/* ---------- Menu (bouton visible sous 960 px) ---------- */
.menu-bouton { display: none; }
.nav-appel { display: none; }

/* ---------- Avis « démo » (liens tel: et mailto:) ---------- */
.demo-avis {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 400;
  width: min(520px, calc(100vw - 2 * 16px));
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: start;
  padding: 16px 16px 16px 18px; border-radius: 10px;
  background: rgba(27, 20, 16, 0.97); border: 1px solid rgba(255, 208, 138, 0.35); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  font-size: 14.5px; line-height: 1.45;
}
.demo-avis p { margin: 0; grid-column: 1; }
.demo-avis a { grid-column: 1; color: var(--flamme-clair); font-weight: 600; text-underline-offset: 3px; }
.demo-fermer { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; margin: -10px -8px 0 0; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ivoire-2); border-radius: 6px; }
.demo-fermer:hover { color: var(--ivoire); }

/* ---------- Ancre « Le feu » : la scène du four, dans le film (≈ 15 % du défilement) ---------- */
.film-ancre { position: absolute; left: 0; top: 120svh; width: 1px; height: 1px; pointer-events: none; scroll-margin-top: 0; }

/* ---------- Tablette / téléphone ---------- */
@media (max-width: 960px) {
  .btn-reserver { margin-left: auto; }
  .menu-bouton {
    display: grid; place-content: center; gap: 6px; flex: none;
    width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; border-radius: 6px;
  }
  .menu-bouton span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ivoire); transition: transform 0.3s var(--ease); }
  .entete.ouvert .menu-bouton span:first-child { transform: translateY(4px) rotate(45deg); }
  .entete.ouvert .menu-bouton span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gouttiere) 22px;
    background: rgba(11, 9, 8, 0.97); border-bottom: 1px solid var(--ligne); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .entete.ouvert .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s; }
  .nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--ligne); font: 600 26px/1.1 var(--titre); font-stretch: 88%; letter-spacing: -0.02em; color: var(--ivoire); }
  .nav .nav-appel { display: flex; border-bottom: 0; margin-top: 10px; font: 500 15px/1.2 var(--texte); letter-spacing: 0; color: var(--flamme-clair); }
}
@media (max-width: 760px) {
  .film-ancre { top: 116svh; }
}
@media (max-width: 760px) {
  .ouverture { align-items: end; padding-top: 140px; }
  .ouv-image img { object-position: 70% 40%; }
  .ouverture::after { background: linear-gradient(0deg, var(--fond) 8%, rgba(11, 9, 8, 0.84) 46%, rgba(11, 9, 8, 0.25) 80%); }
  .ouv-mot { top: 24%; }
  .b3, .b6, .b8 { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .histoire-scene { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 70px var(--gouttiere) 40px; gap: 0; align-content: center; }
  .histoire-objets { height: 50svh; order: -1; }
  .puces { display: none; }
  .etapes { gap: 18px; }
  .etape h2 { font-size: 28px; margin: 10px 0 6px; }
  .etape p { font-size: 15px; }
  .bandeau { margin: 20px 0 80px; }
  .carte { padding-bottom: 90px; }
  .menu { grid-template-columns: 1fr; gap: 0; }
  .menu-visuel { display: none; }
  .menu-vignette { display: block; }
  .menu-vignette-vide { display: grid; }
  .menu-ligne { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 14px 2px; }
  .menu-ligne:hover, .menu-ligne.actif { padding-left: 2px; padding-right: 2px; background: none; }
  .menu-pointilles { display: none; }
  .menu-prix { grid-column: 3; grid-row: 1; align-self: start; margin-top: 4px; font-size: 18px; }
  .menu-nom { font-size: 20px; }
  .menu-desc { font-size: 13.5px; }
  .geste { min-height: 80svh; align-items: end; padding-bottom: 60px; }
  .geste-image::after { background: linear-gradient(0deg, var(--fond) 10%, rgba(11, 9, 8, 0.78) 55%, rgba(11, 9, 8, 0.28)), linear-gradient(180deg, var(--fond), transparent 20%); }
  .lieu { grid-template-columns: 1fr; }
  .lieu-image { aspect-ratio: 16 / 10; }
}
@media (max-width: 380px) {
  .titre-xl { font-size: 46px; }
  .logo span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bandeau-piste, .defiler span, .menu-anneau { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Intro : la flamme du logo ---------- */
.intro-zone { display: none; }
html.intro { overflow: hidden; }
html.intro .intro-zone { display: block; position: fixed; inset: 0; z-index: 300; overflow: hidden; background: #070504; will-change: transform; }
.iv-braise { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 60% 50% at 50% 54%, rgba(224, 83, 29, 0.38) 0%, rgba(120, 40, 12, 0.16) 45%, transparent 75%); }
.iv-centre { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(16px, 3vh, 28px); }
.iv-flamme { width: clamp(72px, 14vw, 120px); height: auto; overflow: visible; filter: drop-shadow(0 0 28px rgba(255, 120, 40, 0.55)); }
.iv-marque { font: 500 clamp(30px, 6vw, 72px)/1 var(--titre); letter-spacing: 0.02em; text-transform: uppercase; font-stretch: 90%; color: var(--ivoire); white-space: nowrap; }
.iv-marque b { font-weight: 800; color: var(--flamme); }
.intro-passer { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(14px, 3vh, 30px); z-index: 3; background: rgba(11, 9, 8, 0.4); border: 1px solid var(--ligne); color: var(--ivoire-2); border-radius: 99px; min-height: 44px; padding: 0 20px; white-space: nowrap; font: 500 14px/1 var(--texte); backdrop-filter: blur(6px); transition: color 0.2s, border-color 0.2s; }
.intro-passer:hover { color: var(--ivoire); border-color: rgba(243, 236, 226, 0.5); }

/* ---------- 2. De la pâte à la porte : la pizza en 3D ---------- */
.film { display: none; position: relative; height: 820svh; background: #070504; }
html.webgl .film { display: block; }
html.webgl .histoire { display: none; }
.film-scene { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #070504; }
.film-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-scene::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 52%, transparent 50%, rgba(0, 0, 0, 0.5) 100%), linear-gradient(90deg, rgba(7, 5, 4, 0.78) 0%, rgba(7, 5, 4, 0.5) 28%, rgba(7, 5, 4, 0.14) 46%, transparent 58%), linear-gradient(0deg, rgba(7, 5, 4, 0.62) 0%, rgba(7, 5, 4, 0.22) 22%, transparent 40%); }
/* Grain de pellicule animé, par-dessus le film et le feu (voir « Rendu cinéma » plus bas) */
.film-scene::before { z-index: 2; }
.film-noir { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 2; }
.film-compte { position: absolute; right: var(--gouttiere); top: 22%; z-index: 3; font: 800 clamp(64px, 11vw, 170px)/1 var(--titre); font-stretch: 80%; letter-spacing: -0.03em; color: var(--flamme-clair); text-shadow: 0 0 60px rgba(255, 120, 40, 0.7); opacity: 0; transition: opacity 0.5s; font-variant-numeric: tabular-nums; pointer-events: none; }
.film-compte.on { opacity: 0.9; }
.film-legende { position: absolute; left: var(--gouttiere); bottom: clamp(36px, 9vh, 96px); z-index: 3; width: min(460px, calc(100vw - 2 * var(--gouttiere))); }
.film-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-areas: "e"; }
.film-etape { grid-area: e; opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); pointer-events: none; }
.film-etape.active { opacity: 1; transform: none; pointer-events: auto; }
.film-etape h2 { font: 700 clamp(28px, 3.6vw, 52px)/1 var(--titre); font-stretch: 86%; letter-spacing: -0.03em; word-spacing: 0.06em; margin: 14px 0 10px; text-wrap: balance; }
.film-etape p { margin: 0; color: var(--ivoire-2); max-width: 40ch; }
.film-cta { margin-top: 24px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.6s, transform 0.6s var(--ease); }
.film-cta.on { opacity: 1; transform: none; pointer-events: auto; }
html.film-debug .film { position: fixed; inset: 0; height: 100svh; z-index: 900; }
html.film-debug .intro-zone { display: none; }
@media (max-width: 760px) {
  .film-scene::after { background: linear-gradient(0deg, rgba(7, 5, 4, 0.95) 0%, rgba(7, 5, 4, 0.82) 38%, rgba(7, 5, 4, 0.5) 58%, transparent 76%); }
  .film-compte { top: 16%; }
    .film-etape h2 { font-size: 27px; margin: 10px 0 6px; }
  .film-etape p { font-size: 14.5px; }
  .iv-marque { font-size: clamp(28px, 9vw, 50px); }
}


/* En-tête compact sur petit téléphone (placé en dernier pour l’emporter) */
@media (max-width: 480px) { .entete { gap: 10px; } .logo { font-size: 14px; gap: 6px; } .logo svg { width: 15px; height: 18px; } .btn-reserver { padding: 0 12px; min-height: 44px; font-size: 12.5px; margin-left: auto; letter-spacing: .02em; } }

/* ---------- Une seule ouverture : le film 3D commence tout en haut de la page ---------- */
html.webgl .ouverture { display: none; }
html.webgl .film { margin-top: -78px; height: 900svh; }
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: 0; transition: opacity 0.9s ease; }
.film-scene canvas { z-index: 1; opacity: 0; transition: opacity 0.9s ease; }
html.film-pret .film-scene canvas { opacity: 1; }
html.film-pret .film-poster { opacity: 0; }
.film-hero { position: absolute; left: var(--gouttiere); bottom: clamp(48px, 11vh, 120px); z-index: 3; max-width: min(760px, calc(100vw - 2 * var(--gouttiere))); will-change: opacity, transform; }
.film-hero .chapo { color: var(--ivoire-2); }
.film-legende { z-index: 3; }
@media (max-width: 760px) {
  html.webgl .film { height: 860svh; }
  .film-hero { bottom: 34px; }
  .film-hero .titre-xl { font-size: clamp(46px, 13.5vw, 70px); }
  .film-hero .chapo { font-size: 15px; margin-top: 14px; }
  .film-hero .actions { margin-top: 20px; }
}

.film-etape h2, .film-etape p, .film-hero .chapo { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75); }
.film-etape p { color: var(--ivoire); }

@media (min-width: 761px) { .film-legende { transition: top 0.6s var(--ease), bottom 0.6s var(--ease); } .film-legende.haut { bottom: auto; top: clamp(120px, 26vh, 280px); } }

/* ---------- Lot 3 : rendu cinéma commun (film, feu, photos) ---------- */
/* Étalonnage léger, le même partout : un peu plus de contraste (lot 3b : sépia retirée, elle voilait l'image) */
:root { --etalonnage: contrast(1.05) saturate(1.06); }
.film-scene canvas, .film-poster, .geste-image img, .lieu-image img, .menu-disque img { filter: var(--etalonnage); }
.film-feu { pointer-events: none; }
/* Grain de pellicule : une texture de bruit qui saute de place 16 fois par seconde (transform seulement : rien à recalculer) */
.film-scene::before, .geste::after, .lieu-image::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") 0 0 / 200px 200px;
  mix-blend-mode: overlay; opacity: 0.1;
  animation: grain 0.5s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(-6%, 3%); } 25% { transform: translate(4%, -7%); } 37.5% { transform: translate(-2%, 6%); }
  50% { transform: translate(7%, 2%); } 62.5% { transform: translate(-7%, -5%); } 75% { transform: translate(3%, 6%); } 87.5% { transform: translate(-4%, -2%); }
}
.geste::after { z-index: 0; opacity: 0.08; }
.geste-texte { position: relative; z-index: 1; }
.lieu-image { position: relative; }
.lieu-image::before { z-index: 1; opacity: 0.08; }
/* Balayage de lumière chaude au défilement (position pilotée par --balayage dans scenes.js) */
.geste-image::before, .lieu-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 186, 110, 0.16) 50%, transparent 62%);
  mix-blend-mode: screen; transform: translateX(var(--balayage, -120%));
}
.geste-image::before { z-index: 1; }
.geste-image::after { z-index: 2; }
.lieu-image::after { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .film-scene::before, .geste::after, .lieu-image::before { animation: none !important; }
}

/* ---------- Ouverture : film de 35 s joué au défilement (2026-11-16) : remplace l'ouverture « 3 temps » ----------
   Sans JS : section masquée (on garde « .ouverture » et « .histoire »).
   html.recit (JS) sans html.webgl : « réduire les animations », les 8 planches empilées, en fondu à l'arrivée.
   html.recit.webgl : une scène collante de 600 svh (500 svh de défilement pour 36,3 s de timeline) pilotée par js/ouverture.js.
   html.film-planches : la vidéo a échoué, les planches prennent sa place (fondus pilotés par le défilement).
   Attention : la classe « recit » est aussi posée sur <html>, d'où le :not(html). */
.recit:not(html) { display: none; position: relative; margin-top: -78px; background: #070504; }
html.recit .recit { display: block; }
html.recit .ouverture, html.recit .histoire { display: none; }
/* « Le feu » : la pelle arrive à 20,6 s de film sur 36,3 s de timeline, soit 20,6 / 36,3 × 500 svh */
.recit-ancre { position: absolute; left: 0; top: 284svh; width: 1px; height: 1px; pointer-events: none; scroll-margin-top: 0; }
html:not(.webgl) .recit-ancre { display: none; }
.recit-scene { position: relative; overflow: hidden; background: #070504; }
.mot { display: inline-block; white-space: nowrap; }
.mot .l { display: inline-block; }

/* Le film : l'affiche d'abord, la vidéo par-dessus dès sa 1re image, la suite d'images (secours) par-dessus le tout */
.film, html.webgl .recit .film { position: absolute; inset: 0; z-index: 0; height: auto; margin: 0; } /* l'ancienne section .film (900 svh) avait le même nom : on neutralise ses règles ici */
.film picture { display: contents; }
.film-affiche, .film-video, .film-images { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--etalonnage); }
.film-video, .film-images { opacity: 0; }
.film.video-prete .film-video, .film.images-pretes .film-images { opacity: 1; }
html:not(.webgl) .film, html.film-planches .film { display: none; }

/* Les planches et les textes : chaque texte est rangé dans la planche de son moment, mais reste au-dessus de toutes les images */
.planche { position: absolute; inset: 0; pointer-events: none; }
.planche > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; filter: var(--etalonnage); }
html.webgl:not(.film-planches) .planche > img { display: none; }
.moment {
  position: absolute; z-index: 3; pointer-events: auto;
  left: var(--gouttiere); top: clamp(104px, 17vh, 160px); max-width: min(480px, calc(100% - 2 * var(--gouttiere)));
}
/* Un voile sombre qui suit chaque texte (il apparaît et disparaît avec lui) : l'action reste visible autour */
.moment::before { content: ""; position: absolute; inset: -70px -110px -70px -90px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(7, 5, 4, 0.7), rgba(7, 5, 4, 0.32) 62%, transparent); }
.moment h2 { font: 700 clamp(28px, 3.6vw, 52px)/1 var(--titre); font-stretch: 86%; letter-spacing: -0.03em; word-spacing: 0.06em; margin: 0 0 10px; text-wrap: balance; }
.moment p:not(.pastille-statut) { margin: 0; color: var(--ivoire); max-width: 40ch; }
.moment h2, .moment p, .moment .titre-xl { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75); }
.moment .btn { margin-top: 24px; }
.m-hero { top: auto; bottom: clamp(40px, 10vh, 110px); max-width: min(640px, 48vw); }
.m-hero .titre-xl { font-size: clamp(48px, 6.6vw, 112px); }
.m-hero p.chapo { margin-top: 18px; max-width: 46ch; }
html.webgl:not(.recit-pret) .m-hero > * { opacity: 0; }

/* Le compteur, pendant la cuisson */
.compte { position: absolute; right: var(--gouttiere); top: 18%; z-index: 4; font: 800 clamp(64px, 11vw, 170px)/1 var(--titre); font-stretch: 80%; letter-spacing: -0.03em; color: var(--flamme-clair); text-shadow: 0 0 60px rgba(255, 120, 40, 0.7); opacity: 0; transition: opacity 0.5s; font-variant-numeric: tabular-nums; pointer-events: none; }
.compte.on { opacity: 0.9; }
html:not(.webgl) .compte { display: none; }

/* Réduire les animations : les planches empilées, chacune apparaît en fondu (le seul mouvement gardé, voulu par le brief) */
html.recit:not(.webgl) .planche { position: relative; inset: auto; height: min(100svh, 56.25vw); min-height: 340px; overflow: hidden; }
html.recit:not(.webgl) .planche.p1 { height: 100svh; }
html.recit:not(.webgl) .planche > img { transition: opacity 1.2s ease !important; }
html.recit:not(.webgl) .planche.vu > img { opacity: 1; }

/* Grain et vignette du lot 3, sur toute la scène */
.recit-scene::before {
  content: ""; position: absolute; inset: -10%; z-index: 7; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") 0 0 / 200px 200px;
  mix-blend-mode: overlay; opacity: 0.1; animation: grain 0.5s steps(1) infinite;
}
html.webgl .recit-scene::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(ellipse at 50% 52%, transparent 52%, rgba(0, 0, 0, 0.5) 100%); }

/* Mode animé : une scène collante, le film et les textes superposés */
html.webgl .recit { height: 600svh; }
html.webgl .recit-scene { position: sticky; top: 0; height: 100svh; }
html.recit-debug .recit-scene { position: fixed; inset: 0; z-index: 900; }
html.recit-debug .intro-zone { display: none; }

/* Téléphone : la pizza est dans le bas du cadre vertical, les textes vont en haut ; le titre du début reste en bas (sol sombre du four) */
@media (max-width: 760px) {
  .moment { top: 92px; right: var(--gouttiere); max-width: none; }
  .moment::before { inset: -60px -40px -50px -40px; }
  .moment h2 { font-size: 27px; margin: 0 0 6px; }
  .moment p:not(.pastille-statut) { font-size: 14.5px; }
  .m-hero { top: auto; bottom: 34px; }
  .m-hero .titre-xl { font-size: clamp(42px, 12vw, 64px); }
  .m-hero p.chapo { font-size: 15px; margin-top: 14px; }
  .m-hero .actions { margin-top: 20px; }
  .compte { top: 42%; }
  html.recit:not(.webgl) .planche { height: 82svh; }
  html.recit:not(.webgl) .planche.p1 { height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  .recit-scene::before { animation: none !important; }
}
