/* =========================================================
   La Scuderia — Italian pizzeria × racing motion design
   ========================================================= */
:root {
  --ink: #140f0c;
  --ink-2: #1f1814;
  --ink-3: #2b221c;
  --cream: #f6ecd9;
  --cream-2: #eddcc0;
  --red: #e1251b;
  --red-d: #b3140c;
  --green: #2f8a43;
  --gold: #f2b33d;
  --text: #f6ecd9;
  --text-dim: rgba(246, 236, 217, .62);
  --dark-dim: rgba(20, 15, 12, .62);
  --f-display: 'Big Shoulders Display', 'Impact', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --checker: conic-gradient(var(--ink) 25%, var(--cream) 0 50%, var(--ink) 0 75%, var(--cream) 0) 0 0 / 28px 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { overflow-x: clip; }   /* sur mobile, empêche la page de « dézoomer » à cause d'un décor qui dépasse */
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: var(--cream); }

.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

.title-xl {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(56px, 10vw, 160px);
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
}
.title-xl em, .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.02em;
  color: var(--red);
}
.title-xl--light { color: var(--cream); }

/* split text helpers */
.split { display: inline-block; }
.char { display: inline-block; }
.word { display: inline-block; white-space: nowrap; }
.line { display: block; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 30px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cream);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn span { position: relative; display: inline-block; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(246,236,217,.5); }
.btn--ghost-dark { --fg: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-dark::before { background: var(--ink); }
.btn--ghost-dark:hover { color: var(--cream); }
.btn--cream { --bg: var(--cream); --fg: var(--ink); }
.btn--cream::before { background: var(--red); }
.btn--cream:hover { color: var(--cream); }
.btn--full { width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 200;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
}
.cursor__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(225,37,27,.25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: grid; place-items: center;
}
.loader__checker {
  position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: var(--checker);
  opacity: .9;
}
.loader__inner { text-align: center; }
.lights { display: flex; gap: clamp(10px, 2.4vw, 22px); justify-content: center; padding: 18px 24px; background: #0a0807; border-radius: 18px; box-shadow: 0 0 0 2px #2b221c; }
.light {
  width: clamp(36px, 7vw, 64px); aspect-ratio: 1;
  border-radius: 50%;
  background: #2a1512;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.6);
}
.light.on { background: radial-gradient(circle at 40% 35%, #ff8a7a, var(--red) 45%, #8e0c06); box-shadow: 0 0 30px 6px rgba(225,37,27,.55), inset 0 -6px 12px rgba(0,0,0,.3); }
.light.go { background: radial-gradient(circle at 40% 35%, #b6ffc8, #2fd36a 45%, #0d7a33); box-shadow: 0 0 34px 8px rgba(47,211,106,.6), inset 0 -6px 12px rgba(0,0,0,.25); }
.loader__words {
  position: relative; height: 1.1em; overflow: hidden;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(42px, 8vw, 96px); line-height: 1.1;
  margin: 28px 0 8px;
}
.loader__words span { position: absolute; left: 0; right: 0; transform: translateY(110%); }
.loader__count { margin: 0; font-weight: 700; letter-spacing: .2em; color: var(--text-dim); font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--pad);
  transition: background .4s, padding .4s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(20,15,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 10px; padding-bottom: 10px; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: block; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 14px; position: relative; padding: 4px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 12px 22px; font-size: 14px; }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
/* sélecteur de langue */
.lang { position: relative; }
.lang__btn { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 99px; border: 1.5px solid rgba(246,236,217,.3); font-weight: 800; font-size: 13px; letter-spacing: .08em; user-select: none; transition: border-color .3s; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.lang[open] .lang__btn::after { transform: translateY(1px) rotate(-135deg); }
.lang__btn:hover, .lang[open] .lang__btn { border-color: var(--cream); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--ink-2); box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.lang__list a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.lang__list a:hover { background: rgba(246,236,217,.08); }
.lang__list a[aria-current="page"] { color: var(--gold); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--red);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.mobile-menu a { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 12vw, 80px); line-height: 1; text-decoration: none; color: var(--cream); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: 0; }
  .lang { margin-left: auto; }
  .nav__logo img { height: 28px; }
}

/* ---------- HERO ---------- */
.hero {
  --pz: min(64svh, 44vw);
  position: relative;
  height: 100svh;
  min-height: 620px;
  padding: 110px var(--pad) 46px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 55%, #3b1a0f 0%, #1a110d 45%, var(--ink) 75%);
  isolation: isolate;
}

/* mur de typo */
.hero__wall {
  position: absolute; inset: -10% -20%;
  display: flex; flex-direction: column; justify-content: center; gap: 1vw;
  transform: rotate(-7deg);
  z-index: 0;
  pointer-events: none;
}
.tw { overflow: hidden; white-space: nowrap; }
.tw__track { display: inline-flex; will-change: transform; }
.tw__track span {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(80px, 13vw, 240px); line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 236, 217, .13);
  padding-right: .3em;
}
.tw .it { display: inline-block; width: .42em; height: .2em; margin: 0 .35em; vertical-align: .28em; transform: skewX(-14deg); border-radius: .05em;
  background: linear-gradient(90deg, #2f8a43 0 33.3%, #f6ecd9 0 66.6%, #e1251b 0); opacity: .22; }
.tw--solid .tw__track span { color: rgba(225, 37, 27, .14); -webkit-text-stroke: 0; }

.hero__glow {
  position: absolute; left: 50%; top: 52%; z-index: 0;
  width: calc(var(--pz) * 1.9); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 140, 50, .5), rgba(225, 37, 27, .16) 42%, transparent 68%);
  pointer-events: none;
}
.hero__speed { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__speed i {
  position: absolute; left: 0; height: 2px; width: 40vw;
  background: linear-gradient(90deg, transparent, rgba(246, 236, 217, .9), transparent);
  opacity: 0;
}
.hero__speed i:nth-child(1) { top: 22%; } .hero__speed i:nth-child(2) { top: 34%; height: 1px; }
.hero__speed i:nth-child(3) { top: 47%; height: 3px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.hero__speed i:nth-child(4) { top: 58%; } .hero__speed i:nth-child(5) { top: 69%; height: 1px; }
.hero__speed i:nth-child(6) { top: 80%; height: 3px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.hero__flour { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.hero__kicker { position: relative; z-index: 5; margin: 0; font-weight: 600; font-size: 14px; letter-spacing: .08em; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.dot.is-closed { background: #d9473b; animation: none; box-shadow: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47,138,67,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,138,67,0); } 100% { box-shadow: 0 0 0 0 rgba(47,138,67,0); } }

/* scène : titre plein / pizza / titre contour */
.hero__stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__title {
  position: absolute; left: 0; right: 0; top: 52%;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(88px, 20.5vw, 400px);
  line-height: .8; letter-spacing: -.02em;
  white-space: nowrap;
}
.hero__title .split { display: inline-block; }
.hero__title { will-change: transform, opacity; }   /* le titre géant grossit au scroll : sur sa propre couche, il n'est pas redessiné à chaque image */
.hero__title--solid { color: var(--cream); z-index: 1; }
.hero__title--outline { color: transparent; -webkit-text-stroke: 2px var(--cream); z-index: 3; }
.hero__word { position: relative; display: inline-block; }
.hero__la {
  position: absolute; left: -.05em; top: -.98em;
  transform: rotate(-8deg); transform-origin: left bottom;
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: .36em; line-height: 1; letter-spacing: 0;
  color: var(--red);
  -webkit-text-stroke: 0;
}
.hero__title--outline .hero__la { visibility: hidden; }

.hero__pizza {
  position: absolute; left: 50%; top: 52%; z-index: 2;
  width: var(--pz); aspect-ratio: 1;
  margin: calc(var(--pz) / -2) 0 0 calc(var(--pz) / -2);
  perspective: 1200px;
  pointer-events: auto;
}
/* ombre portée fixe sous la pizza : un filtre drop-shadow sur les parts qui tournent recalculait tout à chaque image */
.hero__shadow { position: absolute; left: 6%; right: 6%; top: 30%; bottom: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,.28) 55%, transparent); pointer-events: none; }
.slices { position: absolute; inset: 0; transform-style: preserve-3d; }
.slice { position: absolute; inset: 0; will-change: transform; }
.slice__clip { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.slice__clip img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.hero__reveal {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: calc(var(--pz) * .2); line-height: .85; color: var(--cream);
  opacity: 0;
}
.hero__reveal em { font-family: var(--f-serif); font-weight: 400; text-transform: none; color: var(--red); font-size: .8em; }
.hero__shock {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(246, 236, 217, .8);
  opacity: 0; pointer-events: none;
}
  position: absolute; z-index: 4;
  left: calc(50% + var(--pz) * .36); top: calc(52% - var(--pz) * .62);
  width: clamp(96px, 9vw, 140px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  color: var(--cream); text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  transition: background .3s, color .3s;
}

.floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fl { position: absolute; display: block; will-change: transform; }
.fl--basil { width: 110px; left: 12%; top: 24%; transform: rotate(-30deg); }
.fl--basil2 { width: 80px; right: 13%; top: 68%; transform: rotate(140deg); }
.fl--tomato { width: 90px; right: 15%; top: 20%; }
.fl--tomato2 { width: 64px; left: 22%; bottom: 20%; }
.fl--chili { width: 150px; right: 5%; bottom: 24%; transform: rotate(-20deg); }
.fl--mozz { width: 64px; left: 32%; top: 16%; }
.fl--olive { width: 46px; left: 6%; top: 60%; }

.hero__bottom {
  grid-row: 3;
  position: relative; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.hero__lead { max-width: 380px; margin: 0; color: var(--text-dim); font-size: 16px; }
.hero__lead em { font-family: var(--f-serif); font-size: 1.2em; color: var(--cream); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero { --pz: min(80vw, 40svh); padding-top: 96px; padding-bottom: 30px; }
  .hero__title { top: 29%; font-size: 23vw; }
  .hero__pizza, .hero__glow { top: 58%; }
  .fl--chili { display: none; }
  .hero__title--outline { -webkit-text-stroke-width: 1.2px; }
  .hero__lead { font-size: 15px; }
  .fl--basil { width: 60px; left: 3%; top: 41%; }
  .fl--chili { width: 90px; right: 0; bottom: 30%; }
  .fl--tomato { width: 56px; right: 6%; top: 19%; }
  .fl--mozz, .fl--olive, .fl--tomato2, .fl--basil2 { display: none; }
  .hero__ctas .btn { flex: 1; }
  .hero__ctas { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 5;
  background: var(--red);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
  margin: -20px 0 0;
  border-block: 3px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__track > * { margin-right: 34px; flex-shrink: 0; }
.marquee__track span { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 6vw, 84px); line-height: 1; }
.marquee__track span.o { color: transparent; -webkit-text-stroke: 2px var(--cream); }
.marquee__track b { font-size: 30px; color: var(--ink); }
.marquee__track b.chk { width: 30px; height: 30px; background: var(--checker); background-size: 15px 15px; transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--cream); color: var(--ink); padding: clamp(100px, 16vw, 200px) var(--pad) clamp(80px, 10vw, 140px); }
.manifesto__text {
  font-family: var(--f-serif);
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 clamp(60px, 9vw, 120px);
  max-width: 1300px;
}
.manifesto__text .word { opacity: .14; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(20,15,12,.15); border: 2px solid rgba(20,15,12,.15); border-radius: 24px; overflow: hidden; }
.pillar { background: var(--cream); padding: 36px 30px 40px; position: relative; overflow: hidden; transition: color .5s var(--ease); }
.pillar::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: translateY(101%); transition: transform .6s var(--ease); }
.pillar > * { position: relative; }
.pillar:hover { color: var(--cream); }
.pillar:hover::before { transform: translateY(0); }
.pillar__n { font-weight: 800; font-size: 13px; letter-spacing: .2em; opacity: .5; }
.pillar h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 5vw, 72px); line-height: 1; margin: 40px 0 12px; }
.pillar p { margin: 0; max-width: 300px; opacity: .8; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Ricetta ---------- */
.ricetta { background: var(--ink-2); position: relative; overflow: hidden; }   /* le contenu ne peut pas déborder sur la section suivante */
.ricetta__pin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 100px var(--pad) 60px;
  overflow: hidden;
}
.lap { color: var(--cream); letter-spacing: .14em; }
.lap__n { color: var(--red); }
.steps { position: relative; height: clamp(260px, 34vw, 400px); }
.step { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.step.is-active { opacity: 1; visibility: visible; }
.step__n { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--red); }
.step h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 9vw, 150px); line-height: .85; margin: 8px 0 18px; }
.step p { font-size: clamp(16px, 1.4vw, 20px); color: var(--text-dim); max-width: 420px; margin: 0; }
.ricetta.is-static .steps { height: auto; display: grid; gap: 30px; }
.ricetta.is-static .step { position: static; opacity: 1; visibility: visible; }
.fav__price { transition: transform .8s var(--ease); }
.fav:hover .fav__price { transform: rotate(348deg) scale(1.08); }
.ricetta__stage { position: absolute; inset: 0; z-index: 0; }
/* tant que la scène 3D se prépare, la photo de la pizza occupe la place, puis la 3D apparaît en fondu */
.kitchen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.kitchen__fallback { display: block; position: absolute; right: 6%; top: 50%; width: min(46vw, 560px); transform: translateY(-50%); transition: opacity .6s ease; }
.ricetta__stage.is-3d .kitchen { opacity: 1; }
.ricetta__stage.is-3d .kitchen__fallback { opacity: 0; pointer-events: none; }
.ricetta__stage.no-webgl .kitchen { display: none; }
.ricetta__pin { position: relative; }
.ricetta__pin::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,15,12,.92) 0%, rgba(20,15,12,.7) 26%, rgba(20,15,12,0) 50%); }
.ricetta__left { position: relative; z-index: 2; }
.pz { width: min(100%, 620px); height: auto; overflow: visible; position: relative; }
.pz__dough { transform-origin: 250px 250px; }
.finale { position: absolute; inset: 0; display: grid; place-items: end center; pointer-events: none; z-index: 3; padding: 0 0 4vh 30%; }
@media (max-width: 860px) { .finale { padding: 0 0 6vh; } }
.finale__txt { position: relative; margin: 0; text-align: center; line-height: .82; }
.pz__strands { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.finale__a { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 44px); color: var(--gold); text-shadow: 0 3px 12px rgba(0,0,0,.6); }
.finale__b { display: block; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 80px); letter-spacing: -.01em; color: var(--cream);
  text-shadow: 0 3px 0 var(--red), 0 6px 0 #8e0c06; }
/* message plus discret et animé d'un bloc (sur sa propre couche) : les grosses lettres animées une par une faisaient ramer */
.finale__txt { will-change: transform, opacity; }
@media (max-width: 860px) {
  .ricetta__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding-top: 86px; align-content: start; }
  .ricetta__pin::before { background: linear-gradient(180deg, rgba(20,15,12,.95) 0%, rgba(20,15,12,.75) 30%, rgba(20,15,12,0) 50%); }
  .steps { height: 200px; }
  .step h2 { font-size: 64px; margin: 4px 0 8px; }
  .step p { font-size: 15px; }
  .pz { width: min(88vw, 52svh); }
}

/* ---------- Favoris ---------- */
.favoris { background: var(--cream); color: var(--ink); overflow: hidden; }
.favoris__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 60px; gap: 40px; }
.favoris__head { padding: 0 var(--pad); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; }
.favoris__head .eyebrow { width: 100%; }
.favoris__hint { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.favoris__hint span { display: inline-block; animation: nudge 1.4s var(--ease) infinite; color: var(--red); }
@keyframes nudge { 50% { transform: translateX(8px); } }
.favoris__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.fav {
  position: relative;
  width: clamp(260px, 28vw, 400px);
  flex-shrink: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fav__img { width: 100%; aspect-ratio: 4/4.4; overflow: hidden; }
.fav__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1s var(--ease); }
.fav:hover .fav__img img { transform: scale(1.04); }
.fav__body { padding: 22px 24px 26px; }
.fav__body h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1; margin: 0 0 8px; }
.fav__body p { margin: 0; font-size: 14px; color: var(--text-dim); }
.fav__price {
  position: absolute; top: 18px; right: 18px;
  width: 84px; aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: 24px;
  transform: rotate(-12deg);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.fav--cta { background: var(--red); justify-content: center; align-items: flex-start; padding: 40px 34px; gap: 24px; }
.fav--cta p { font-family: var(--f-serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.05; margin: 0; }
.fav--cta strong { font-style: italic; font-weight: 400; color: var(--ink); }
@media (max-height: 880px) and (min-width: 901px) {
  .fav__img { max-height: max(170px, 100svh - 500px); }   /* la carte entière tient dans l'écran */
  .favoris__pin { padding: 84px 0 28px; gap: 24px; }
  .favoris .title-xl { font-size: clamp(56px, 11svh, 110px); }
  .fav__body { padding: 16px 22px 20px; }
  .fav__body h3 { font-size: 28px; }
}
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .favoris__track { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--pad); width: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .favoris__track::-webkit-scrollbar { display: none; }
  .fav { width: min(78vw, 360px); scroll-snap-align: start; scroll-snap-stop: always; }
  .favoris__pin { min-height: 0; padding: 90px 0; }
}

/* ---------- Menu ---------- */
.menu { background: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad); }
.menu__head { margin-bottom: 40px; }
.menu__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; position: relative; }
.tab {
  position: relative; z-index: 1;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid rgba(246,236,217,.22);
  background: transparent;
  font-weight: 700; font-size: 14px;
  transition: color .3s, border-color .3s;
}
.tab:hover { border-color: var(--cream); }
.tab[aria-selected="true"] { color: var(--cream); border-color: transparent; }
.tab__pill { position: absolute; z-index: 0; border-radius: 999px; background: var(--red); pointer-events: none; }
.menu__grid { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.menu__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.dish {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(246,236,217,.12);
  position: relative;
}
.dish__name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dish__price { font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--gold); }
.dish__desc { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--text-dim); max-width: 46ch; }
.dish__tag { font-family: var(--f-body); font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 4px 8px; border-radius: 99px; background: var(--ink-3); color: var(--cream); }
.dish__tag--best { background: var(--red); }
.dish__tag--veggie { background: var(--green); }
.dish__tag--piccante { background: #f07a1a; }
/* allergènes : petites lettres comme sur la carte papier */
.dish__alg { grid-column: 1 / -1; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dish__alg abbr { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(242,179,61,.55); font-size: 10.5px; font-weight: 800; color: var(--gold); text-decoration: none; cursor: help; }
.dish__alg--ask { font-size: 11.5px; font-style: italic; color: rgba(246,236,217,.45); }
.menu__note, .menu__legend { grid-column: 1 / -1; margin: 22px 0 0; font-size: 14px; color: var(--text-dim); max-width: 80ch; }
.menu__legend { margin-top: 10px; font-size: 13px; }
.menu__legend button, .ardoise__empty button { padding: 0; background: none; border: 0; font: inherit; font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.menu__list--full { grid-template-columns: 1fr; }

/* l'ardoise du chef */
.ardoise { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 22px; border: 10px solid #5a3a22; box-shadow: inset 0 0 60px rgba(0,0,0,.55), 0 20px 50px rgba(0,0,0,.4);
  background: radial-gradient(120% 90% at 30% 20%, #3a4038, #22261f 70%); }
.ardoise__kicker { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ardoise__title { margin: 0; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 4vw, 54px); line-height: 1; color: #f3efe6; }
.ardoise__period { margin: 8px 0 0; font-weight: 700; color: rgba(243,239,230,.7); }
.ardoise__empty { margin: 18px 0 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: rgba(243,239,230,.85); }
.ardoise__empty a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.menu__list .dish { align-content: start; }
.ardoise__list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.ardoise .dish { border-bottom-color: rgba(243,239,230,.16); }
.tab--suggestions { border-style: dashed; border-color: rgba(242,179,61,.6); }

/* le plat de la semaine */
.ardoise--week { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; overflow: hidden; }
.ardoise--week.has-photo { grid-template-columns: 1.25fr 1fr; }
.ardoise--week::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen;   /* poussière de craie */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ardoise__main { position: relative; }
.ardoise__chalk { display: block; width: min(300px, 70%); height: 12px; margin: 10px 0 22px; }
.ardoise__chalk path { fill: none; stroke: rgba(243,239,230,.55); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 3 22 2; }
.ardoise__cat { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,239,230,.6); }
.ardoise__dish { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 6vw, 92px); line-height: .88; color: #f3efe6; text-shadow: 0 0 1px rgba(243,239,230,.5), 0 0 18px rgba(243,239,230,.12); }
.ardoise__desc { margin: 14px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.55; color: rgba(243,239,230,.8); }
.ardoise--week .dish__alg { margin-top: 14px; }
.ardoise__foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ardoise__price { display: grid; place-items: center; width: 104px; height: 104px; flex: none; border-radius: 50%; border: 2px dashed var(--gold); transform: rotate(-8deg);
  font-family: var(--f-display); font-weight: 900; font-size: 30px; color: var(--gold); }
.ardoise__next { flex-basis: 100%; font-size: 13px; font-weight: 700; color: rgba(243,239,230,.55); }
.ardoise__next::before { content: '↻ '; color: var(--gold); }
.ardoise__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; transform: rotate(2deg); border: 8px solid #f3efe6; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.ardoise__photo img { width: 100%; height: 100%; object-fit: cover; }
/* l'ardoise du chef, avec la photo du vrai tableau */
.ardoise--chef.has-photo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.ardoise--chef .ardoise__list { grid-template-columns: 1fr; }
.ardoise__board { margin: 0; position: sticky; top: 120px; transform: rotate(2deg); }
.ardoise__board img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 6px solid #5a3a22; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.ardoise__board figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; color: rgba(243,239,230,.6); text-align: center; transform: rotate(-2deg); }
@media (max-width: 1100px) {
  .ardoise--chef.has-photo { grid-template-columns: 1fr; }
  .ardoise__board { position: static; order: -1; transform: rotate(-1.5deg); }
}
.menu__note .ardoise__link { padding: 0; background: none; border: 0; font: inherit; font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 700px) {
  .ardoise--week.has-photo { grid-template-columns: 1fr; }
  .ardoise__photo { order: -1; aspect-ratio: 16 / 10; transform: rotate(-1.5deg); border-width: 6px; }
  .ardoise__price { width: 84px; height: 84px; font-size: 24px; }
}

/* l'onglet allergènes */
.alg__intro, .alg__note { margin: 0; max-width: 70ch; color: var(--text-dim); }
.alg__grid { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 28px; }
.alg__grid li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(246,236,217,.12); font-weight: 600; }
.alg__grid abbr { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 800; text-decoration: none; }
.alg__note { font-size: 14px; }
.dish.is-picked { background: linear-gradient(90deg, rgba(225,37,27,.18), transparent); }
.dish.is-picked .dish__name { color: var(--red); }

.roulette { position: sticky; top: 110px; text-align: center; background: var(--ink-2); border-radius: 28px; padding: 30px 24px; }
.roulette__wheel { position: relative; width: 220px; margin: 0 auto 10px; }
.roulette__pizza { width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.roulette__pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--cream); }
.roulette__q { font-family: var(--f-serif); font-style: italic; font-size: 30px; margin: 10px 0 14px; }
.roulette__result { min-height: 3em; margin: 16px 0 0; font-weight: 600; }
.roulette__result b { font-family: var(--f-display); font-size: 28px; text-transform: uppercase; color: var(--gold); display: block; }
@media (max-width: 1000px) {
  .menu__grid { grid-template-columns: 1fr; }
  .roulette { position: relative; top: 0; order: -1; display: grid; grid-template-columns: 120px 1fr; text-align: left; align-items: center; gap: 4px 20px; padding: 20px; }
  .roulette__wheel { width: 120px; margin: 0; grid-row: span 3; }
  .roulette__q { margin: 0; font-size: 24px; }
  .roulette__btn { justify-self: start; padding: 14px 22px; }
  .roulette__result { margin: 0; min-height: 0; }
}
@media (max-width: 700px) {
  .menu__list, .ardoise__list { grid-template-columns: 1fr; }
  .dish__name, .dish__price { font-size: 22px; }
  /* 15 onglets : sur téléphone ils défilent sur une ligne au lieu d'empiler 6 rangées */
  .menu__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)) 32px; padding: 0 var(--pad);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - 40px), transparent); }
  .menu__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 10px 16px; }
}

/* ---------- Forno : la typo géante qui défile, façon tableau de course ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.forno { position: relative; height: 100svh; overflow: hidden; background: #140a07; }   /* même principe que .lumi */
.forno.forno--static { height: auto; }
/* ligne de départ entre le menu et le four */
.forno::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 3;
  background: var(--checker); background-size: 26px 26px; animation: checkerRun 6s linear infinite; }
@keyframes checkerRun { to { background-position: 260px 0; } }
.corsa { position: relative; height: 100%; overflow: hidden; display: flex; align-items: center; background: radial-gradient(80% 60% at 30% 60%, #2a1209, #140a07 70%); }
.corsa__top { position: absolute; z-index: 2; top: clamp(90px, 13vh, 130px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: flex-start; }
.corsa__top .eyebrow { color: var(--gold); }
.corsa__count { margin: 0; display: flex; align-items: baseline; gap: 8px; font-family: var(--f-display); font-weight: 900; line-height: .8; }
.corsa__count b { font-size: clamp(60px, 9vh, 110px); color: var(--red); font-variant-numeric: tabular-nums; }
.corsa__count span { font-size: clamp(20px, 3vh, 32px); color: rgba(246,236,217,.4); }
.corsa__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 90px); width: max-content; padding: 0 var(--pad); will-change: transform; }
.corsa__item { position: relative; flex: none; }
.corsa__n { display: block; margin-bottom: 1.2vh; font-weight: 800; font-size: 13px; letter-spacing: .24em; color: var(--red); }
.corsa__w { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(110px, 30vh, 320px); line-height: .8; letter-spacing: -.005em; white-space: nowrap; color: var(--cream); }
.corsa__w--line { color: transparent; -webkit-text-stroke: 2px var(--cream); }
.corsa__w--gold { padding-top: .18em; margin-top: -.18em; color: transparent; background: linear-gradient(0deg, #e1251b, #ff7a18 25%, #ffd36b 45%, #ff7a18 65%, #e1251b 85%, #ff7a18); background-size: 100% 300%; -webkit-background-clip: text; background-clip: text; animation: flamme 3.5s linear infinite; }
@keyframes flamme { to { background-position: 0 -300%; } }
.corsa__cap { margin: 2.4vh 0 0; max-width: 34ch; font-size: clamp(15px, 1.2vw, 18px); color: var(--text-dim); }
.corsa__link { flex: none; font-family: var(--f-serif); font-style: italic; font-size: clamp(44px, 9vh, 100px); color: var(--red); white-space: nowrap; }
.corsa__sep { flex: none; width: clamp(80px, 9vw, 150px); height: 16px; transform: skewX(-14deg); background: linear-gradient(90deg, var(--green) 0 33.3%, var(--cream) 0 66.6%, var(--red) 0); }
.corsa__end { flex: none; width: clamp(260px, 26vw, 380px); }
.corsa__end p { margin: 0 0 22px; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; color: var(--cream); }
.corsa__bar { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(30px, 6vh, 56px); height: 10px; background: rgba(246,236,217,.08); border-radius: 2px; overflow: hidden; }
.corsa__bar i { display: block; height: 100%; background: var(--checker); background-size: 10px 10px; transform: scaleX(var(--p, 0)); transform-origin: left; }
/* sans animation : les trois mots s'empilent */
.forno--static .corsa { height: auto; padding: 140px 0 90px; }
.forno--static .corsa__top { position: static; }
.forno--static .corsa__track { flex-direction: column; align-items: flex-start; width: auto; }
.forno--static .corsa__w { font-size: clamp(64px, 12vw, 180px); white-space: normal; }
.forno--static .corsa__bar, .forno--static .corsa__count { display: none; }
@media (max-width: 700px) {
  .corsa__w { font-size: clamp(96px, 24vh, 200px); }
  .corsa__count b { font-size: 56px; }
  .corsa__top .eyebrow { max-width: 60%; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); color: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad); }
.gallery__head { margin-bottom: 50px; }
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 220px); gap: clamp(10px, 1.4vw, 20px); }
.g { margin: 0; border-radius: 24px; overflow: hidden; position: relative; clip-path: inset(0 0 0 0 round 24px); }
.g img { width: 100%; height: 130%; object-fit: cover; position: absolute; top: -15%; }
.g--1 { grid-column: 1 / 6; grid-row: span 3; }
.g--2 { grid-column: 6 / 13; grid-row: span 2; }
.g--3 { grid-column: 6 / 9; grid-row: span 2; }
.g--4 { grid-column: 9 / 13; grid-row: span 2; }
.g--5 { grid-column: 1 / 6; grid-row: span 1; }
@media (max-width: 700px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g--1 { grid-column: 1 / 2; grid-row: span 2; }
  .g--2 { grid-column: 2 / 3; grid-row: span 1; }
  .g--3 { grid-column: 2 / 3; grid-row: span 1; }
  .g--4 { grid-column: 1 / 3; grid-row: span 2; }
  .g--5 { grid-column: 1 / 3; grid-row: span 1; }
}

/* ---------- Avis : tickets sur le rail de cuisine ---------- */
.avis { background: var(--cream-2); color: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad) clamp(90px, 10vw, 140px); overflow: hidden; }
.avis__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px 60px; flex-wrap: wrap; margin-bottom: clamp(50px, 6vw, 80px); }
.avis__side { max-width: 380px; }
.avis__intro { color: var(--dark-dim); font-size: 17px; margin: 0 0 22px; }

.rail { position: relative; }
.rail__bar {
  position: absolute; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); top: 0; height: 18px; z-index: 2;
  background: linear-gradient(180deg, #f4f4f2 0%, #b9b9b6 35%, #8c8c89 60%, #d6d6d3 85%, #7a7a77 100%);
  box-shadow: 0 10px 18px -6px rgba(20, 15, 12, .45);
}
.rail__bar::before, .rail__bar::after { content: ''; position: absolute; top: -10px; width: 14px; height: 38px; border-radius: 4px; background: #3a3633; }
.rail__bar::before { left: calc(var(--pad) + 6px); } .rail__bar::after { right: calc(var(--pad) + 6px); }
.rail__tickets { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 34px); padding-top: 9px; align-items: start; }

.order {
  --zz: 14px;
  position: relative; margin: 0; padding: 30px 24px calc(30px + var(--zz));
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(20, 15, 12, .045) 27px 28px),
    #fffdf6;
  color: var(--ink);
  transform-origin: 50% 0;
  filter: drop-shadow(0 18px 18px rgba(20, 15, 12, .22));
  /* bas déchiré en dents de scie */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) var(--zz) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) var(--zz) repeat-x;
  cursor: default;
}
.order:nth-child(2) { margin-top: 24px; } .order:nth-child(3) { margin-top: 8px; } .order:nth-child(4) { margin-top: 30px; }
.order__clip { position: absolute; left: 50%; top: -9px; width: 54px; height: 22px; margin-left: -27px; border-radius: 4px 4px 8px 8px;
  background: linear-gradient(180deg, #5a5552, #2e2a28); box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.order__top { display: flex; justify-content: space-between; margin: 6px 0 14px; padding-bottom: 12px; border-bottom: 2px dashed rgba(20, 15, 12, .25);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.order__title { margin: 0 0 10px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 2vw, 30px); line-height: 1; }
.order__text { margin: 0; font-family: var(--f-serif); font-size: clamp(18px, 1.35vw, 21px); line-height: 1.3; }
.order__who { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 12px; border-top: 2px dashed rgba(20, 15, 12, .25); }
.order__who cite { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.order__who span { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--red); }

@media (max-width: 1000px) {
  .rail__tickets { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .order:nth-child(n) { margin-top: 0; }
}
@media (max-width: 640px) {
  .rail__tickets { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 9px var(--pad) 40px; scrollbar-width: none; }
  .rail__tickets::-webkit-scrollbar { display: none; }
  .order { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ---------- Gift ---------- */
.gift { background: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; perspective: 1200px; }
.gift__card { border-radius: 28px; overflow: hidden; transform-style: preserve-3d; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); will-change: transform; }
.gift__card img { width: 100%; }
.gift__text p { color: var(--text-dim); max-width: 460px; margin: 24px 0 32px; font-size: 17px; }
@media (max-width: 860px) { .gift { grid-template-columns: 1fr; } }

/* ---------- Réservation ---------- */
.resa { background: var(--cream); color: var(--ink); padding: clamp(100px, 12vw, 160px) var(--pad); }
.resa__head { margin-bottom: 50px; }
.resa__head, .resa__form { max-width: 1320px; margin-left: auto; margin-right: auto; }
.resa__form { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.resa__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rf { border: 0; margin: 0; padding: 28px; background: #fff8ec; border-radius: 26px; box-shadow: 0 0 0 1.5px rgba(20,15,12,.08); min-width: 0; }
.resa__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rf--contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.rf--contact legend { grid-column: 1 / -1; margin-bottom: 4px; }
.rf--contact .field:nth-of-type(4) { grid-column: 1 / -1; }
.rf--contact .hp { grid-column: 1 / -1; }
.rf legend { float: left; width: 100%; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 28px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 0; }
.rf legend span { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; font-size: 18px; }
.rf > *:not(legend) { clear: both; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { margin: 0; font-weight: 800; text-transform: capitalize; font-size: 17px; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(20,15,12,.18); background: none; font-size: 16px; transition: background .3s, color .3s; }
.cal__nav:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow span { font-size: 11px; font-weight: 800; opacity: .45; padding: 4px 0; }
.day { height: 42px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 15px; position: relative; transition: background .25s, color .25s, transform .25s var(--ease); }
.day:hover:not(:disabled) { background: rgba(225,37,27,.12); }
.day:disabled { opacity: .22; cursor: default; }
.day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.day[aria-pressed="true"] { background: var(--red); color: var(--cream); transform: scale(1.06); }
.day[aria-pressed="true"]::after { background: var(--cream); }

.guests { display: flex; align-items: center; gap: 14px; }
.guests__btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); font-size: 26px; line-height: 1; transition: background .3s, transform .2s; }
.guests__btn:hover { background: var(--red); }
.guests__btn:active { transform: scale(.9); }
.guests__n { font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: 1; min-width: 70px; text-align: center; display: inline-block; }
.guests__label { font-weight: 700; opacity: .6; }
.guests__note { font-size: 13px; color: var(--dark-dim); margin: 12px 0 0; }
.guests__note a { color: var(--red); font-weight: 700; }
.slots__label { margin: 16px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .5; }
.slots__row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; }
.slots__empty { font-size: 14px; color: var(--dark-dim); margin: 6px 0; font-style: italic; }
.slot { padding: 9px 13px; border-radius: 999px; border: 1.5px solid rgba(20,15,12,.16); background: transparent; font-weight: 700; font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { opacity: .25; cursor: default; text-decoration: line-through; }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  border: 0; border-bottom: 2px solid rgba(20,15,12,.2);
  background: transparent;
  padding: 26px 0 10px;
  font: inherit; font-size: 18px; font-weight: 600;
  color: var(--ink);
  resize: none;
  border-radius: 0;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field label { position: absolute; left: 0; top: 26px; font-weight: 600; color: var(--dark-dim); pointer-events: none; transition: transform .35s var(--ease), font-size .35s var(--ease), color .3s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); color: var(--red); }
.field.is-invalid input { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hp { position: absolute; left: -9999px; }

.ticket {
  position: sticky; top: 100px;
  background: var(--ink); color: var(--cream);
  border-radius: 26px;
  padding: 28px;
  overflow: hidden;
}
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--checker); background-size: 14px 14px; opacity: .9; }
.ticket__top { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 20px; }
.ticket__top img { height: 40px; width: auto; }
.ticket__no { font-size: 12px; letter-spacing: .14em; color: var(--text-dim); }
.ticket__rows { margin: 0; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(246,236,217,.18); }
.ticket__rows dt { color: var(--text-dim); font-size: 14px; }
.ticket__rows dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; text-align: right; display: inline-block; }
.ticket__tear { height: 26px; margin: 10px -28px 18px; background: radial-gradient(circle at 0 50%, var(--cream) 12px, transparent 13px) left / 50% 100% no-repeat, radial-gradient(circle at 100% 50%, var(--cream) 12px, transparent 13px) right / 50% 100% no-repeat; position: relative; }
.ticket__tear::after { content: ''; position: absolute; left: 24px; right: 24px; top: 50%; border-top: 2px dashed rgba(246,236,217,.25); }
.ticket__error { color: #ff8a7a; font-weight: 700; font-size: 14px; min-height: 1.4em; margin: 0 0 10px; }
.ticket__small { font-size: 12px; color: var(--text-dim); text-align: center; margin: 14px 0 0; }
.ticket__ok {
  position: absolute; inset: 0;
  background: var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 30px; gap: 20px;
  clip-path: circle(0% at 50% 100%);
  visibility: hidden;
}
.ticket__stamp { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 46px; border: 4px solid var(--cream); border-radius: 14px; padding: 6px 18px; transform: rotate(-8deg); }
.ticket__ok p { font-size: 18px; margin: 0; }
.ticket__again { background: none; border: 0; text-decoration: underline; font-weight: 700; }
@media (max-width: 1100px) {
  .resa__form { grid-template-columns: 1fr; }
  .ticket { position: relative; top: 0; }
}
@media (max-width: 700px) {
  .resa__steps { grid-template-columns: 1fr; }
  .rf { padding: 22px 18px; }
  .rf--contact { grid-template-columns: 1fr; }
  .rf--contact .field:nth-of-type(4) { grid-column: auto; }
}

/* ---------- Infos : façade ---------- */
.infos { background: var(--ink-2); padding: clamp(90px, 10vw, 140px) var(--pad); display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.infos__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 6vw, 96px); line-height: .86; margin: 0 0 26px; }
.infos__title em { font-family: var(--f-serif); font-weight: 400; text-transform: none; color: var(--red); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(246,236,217,.12); font-weight: 600; }
.hours li span:last-child { text-align: right; }
.hours small { color: var(--text-dim); font-weight: 500; }
.open-now { display: flex; align-items: center; gap: 10px; margin: 16px 0 26px; font-weight: 700; }
.open-now i { width: 10px; height: 10px; border-radius: 50%; background: #777; }
.open-now.is-open i { background: #3fd26a; box-shadow: 0 0 12px #3fd26a; }
.infos__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; text-transform: uppercase; margin: 0 0 10px; }
.infos__contact { margin: 0 0 24px; color: var(--text-dim); font-size: 15px; }
.infos a { text-decoration: none; }
.infos__info a:not(.btn):hover { color: var(--red); }
.facade__scene { position: relative; border-radius: 28px; overflow: hidden; background: #4a2550; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.fx { display: block; width: 100%; height: auto; }
.fx-sign { font-family: var(--f-display); font-weight: 800; font-size: 46px; letter-spacing: 9px; fill: #fffaf0; }
.fx-p { font-family: var(--f-body); font-weight: 800; font-size: 18px; fill: #fff; }
.fx-doorsign__txt { font-family: var(--f-display); font-weight: 900; font-size: 19px; letter-spacing: 2px; fill: var(--green); }
.fx-doorsign.is-closed .fx-doorsign__txt { fill: var(--red); }
@media (max-width: 1000px) { .infos { grid-template-columns: 1fr; } .facade__scene { border-radius: 20px; } }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: var(--cream); padding: 0 var(--pad) 30px; overflow: hidden; }
.footer__checker { height: 28px; margin: 0 calc(var(--pad) * -1); background: var(--checker); }
.footer__row { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 600; }
.footer__row p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__credit a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Extras ---------- */
/* aperçu photo du menu */
.peek {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 230px; aspect-ratio: 4 / 5;
  margin: -150px 0 0 34px;
  border-radius: 20px; overflow: hidden;
  pointer-events: none;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.7), 0 0 0 3px var(--cream);
}
.peek img { width: 100%; height: 100%; object-fit: cover; }
.dish.has-photo .dish__name::after {
  content: 'photo'; font-family: var(--f-body); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 99px; border: 1px solid rgba(246,236,217,.3); color: var(--text-dim);
}
@media (hover: none), (pointer: coarse) { .dish.has-photo .dish__name::after { display: none; } }

/* pizza de progression */
.pp {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  opacity: 0; transform: scale(.5) translateY(30px); pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease);
}
.pp.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.pp svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pp__track { fill: none; stroke: rgba(246,236,217,.15); stroke-width: 5; }
.pp__bar { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pp img { width: 44px; height: 44px; transition: transform .5s var(--ease), opacity .3s; }
.pp span { position: absolute; font-weight: 800; font-size: 20px; color: var(--cream); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.pp:hover img { opacity: .25; }
.pp:hover span { opacity: 1; transform: none; }
@media (max-width: 700px) { .pp { width: 54px; height: 54px; right: 14px; bottom: 14px; } .pp img { width: 36px; height: 36px; } }

/* texte qui roule */
.roll, .btn .roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.roll__b { transform: translateY(105%); }
a:hover .roll__a, .btn:hover .roll__a, .btn:focus-visible .roll__a { transform: translateY(-105%); }
a:hover .roll__b, .btn:hover .roll__b, .btn:focus-visible .roll__b { transform: translateY(0); }

/* reflet carte cadeau */
.gift__card { position: relative; }
.gift__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.45), transparent 45%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .4s;
}
.gift__card:hover .gift__glare { opacity: 1; }

/* ---------- Barre de scroll : la F1 ---------- */
html.has-scrollcar { scrollbar-width: none; }
html.has-scrollcar::-webkit-scrollbar { display: none; }
html.has-scrollcar body { padding-right: 30px; }
.scrollcar { position: fixed; top: 0; right: 0; bottom: 0; width: 30px; z-index: 120; background: #3a3330; cursor: pointer; }
.scrollcar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 9px, var(--cream) 9px 18px);
}
.scrollcar__road {
  position: absolute; inset: 0 0 0 3px;
  background-image: linear-gradient(rgba(246,236,217,.4) 55%, transparent 55%);
  background-size: 2px 20px; background-repeat: repeat-y; background-position-x: center;
}
.scrollcar__car { position: absolute; left: 50%; top: 0; width: 25px; height: 50px; margin-left: -11px; cursor: grab; transform-origin: 50% 50%; }
.scrollcar__car svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 1px rgba(255,255,255,.5)) drop-shadow(0 3px 4px rgba(0,0,0,.6)); transition: transform .3s var(--ease); }
.scrollcar__car:hover svg, .scrollcar.is-drag .scrollcar__car svg { transform: scale(1.25); }
.scrollcar.is-drag, .scrollcar.is-drag .scrollcar__car { cursor: grabbing; }
html.has-scrollcar .pp { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader { display: none; }
  .manifesto__text .word { opacity: 1; }
}

/* =========================================================
   LA SALA — le soir venu, la salle s'allume
   ========================================================= */
/* section épinglée : sa hauteur est figée en pixels au calcul ; le contenu suit cette hauteur (100 %) au lieu de 100svh,
   qui peut changer ensuite sur iPhone et faire déborder la mosaïque sur la section suivante */
.lumi { position: relative; height: 100svh; overflow: hidden; background: var(--ink); color: var(--cream); }
.lumi__pin { position: relative; height: 100%; overflow: hidden; }
.lumi.lumi--static { height: auto; overflow: visible; }

/* la mosaïque finale */
.lumi__grid { position: absolute; inset: 96px var(--pad) 28px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.lumi__cell { grid-column: 3 / 5; grid-row: 1 / 3; }
.lumi__tile { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--ink-2); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.lumi__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lumi__tile:hover img { transform: scale(1.06); }
.lumi__tile figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(16px, 1.4vw, 22px); line-height: 1; padding: 7px 11px 6px; border-radius: 10px; background: rgba(20,15,12,.78); backdrop-filter: blur(6px); }
.lumi__tile--1 { grid-area: 1 / 1; }
.lumi__tile--2 { grid-area: 1 / 2; }
.lumi__tile--3 { grid-area: 2 / 2; }
.lumi__tile--4 { grid-area: 1 / 5; }
.lumi__tile--5 { grid-area: 2 / 5; }
.lumi__tile--6 { grid-area: 2 / 6; }
.lumi__tile--7 { grid-area: 1 / 6; }
.lumi__tile--7 img { object-position: 30% 50%; }   /* le hublot est à gauche sur la photo */

/* la grande salle : plein écran au début, puis elle rejoint sa case dans la mosaïque */
.lumi__photo { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; container-type: size; background: #0a0705; }
.lumi__img { position: absolute; left: 50%; width: max(100cqw, 75cqh); aspect-ratio: 3 / 4; transform: translateX(-50%);
  /* équivalent d'un « cover » qui garde les suspensions dans le cadre : les lueurs restent calées sur les lampes */
  top: clamp(calc(100cqh - max(100cqw, 75cqh) * 4 / 3), calc(50cqh - max(100cqw, 75cqh) * 0.56), 0px); }
.lumi__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lumi__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0c16, #120905); opacity: var(--dark, .84); pointer-events: none; }
.lumi__img::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(90% 60% at 50% 28%, rgba(255,176,80,.9), rgba(255,130,40,.45) 55%, rgba(120,50,10,.3)); opacity: calc(1 - var(--dark, .84) / .84); }   /* la lumière chaude des suspensions */
.lumi__note { margin: 0; align-self: end; font-size: 15px; color: var(--text-dim); max-width: 26ch; }
.lumi__note--1 { grid-area: 2 / 1; align-self: center; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.05; color: var(--cream); }
.lumi__note--1 span { display: block; margin-bottom: 10px; font-family: var(--f-body); font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.glow { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: calc(var(--s) * 14%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(var(--g, 0)); background: radial-gradient(circle, rgba(255,236,190,1) 0 6%, rgba(255,190,90,.55) 22%, rgba(255,150,50,.18) 45%, transparent 68%); mix-blend-mode: screen; pointer-events: none; }
.lumi.is-lit .glow { animation: flicker 3.2s ease-in-out infinite; }
.lumi.is-lit .glow:nth-of-type(2n) { animation-duration: 4.1s; animation-delay: -1.3s; }
@keyframes flicker { 0%, 100% { filter: brightness(1); } 47% { filter: brightness(1.15); } 50% { filter: brightness(.85); } 53% { filter: brightness(1.1); } }

.lumi__cta { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; opacity: 0; visibility: hidden; }
.lumi__cta p { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.lumi__photo::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .16; mix-blend-mode: overlay;   /* grain photo : rend la grande image plus nette à l'œil */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lumi__photo::after { content: ''; position: absolute; inset: 55% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(10,6,4,.75)); opacity: var(--shade, 0); pointer-events: none; }

/* le titre au centre, dans la pénombre */
.lumi__intro { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); pointer-events: none; }
.lumi__intro .eyebrow { color: var(--gold); }
.lumi__intro::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 40% at 50% 50%, rgba(10,6,4,.62), transparent 75%); }
.lumi__title { margin: 0; line-height: .9; }
.lumi__t1 { display: block; text-shadow: 0 4px 30px rgba(0,0,0,.5); font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 11vw, 190px); letter-spacing: -.01em; }
.lumi__t2 { display: block; font-family: var(--f-serif); font-weight: 400; font-size: clamp(48px, 8.5vw, 150px); color: var(--gold); text-shadow: 0 0 40px rgba(242,179,61,.45); }
.lumi__t2 .ch { display: inline-block; opacity: 0; }

/* l'interrupteur */
.lumi__switch { position: absolute; z-index: 4; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 99px; background: rgba(20,15,12,.7); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.lumi__toggle { position: relative; width: 46px; height: 26px; border-radius: 99px; background: rgba(246,236,217,.18); transition: background .4s; }
.lumi__toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .45s var(--ease), background .4s, box-shadow .4s; }
.lumi__on { display: none; color: var(--gold); }
.lumi.is-lit .lumi__toggle { background: rgba(242,179,61,.35); }
.lumi.is-lit .lumi__toggle i { transform: translateX(20px); background: var(--gold); box-shadow: 0 0 14px rgba(242,179,61,.9); }
.lumi.is-lit .lumi__off { display: none; }
.lumi.is-lit .lumi__on { display: inline; }

/* sans animation : directement la mosaïque, lumières allumées */
.lumi--static .lumi__pin { display: flex; flex-direction: column; height: auto; overflow: visible; padding: clamp(90px, 10vw, 140px) var(--pad) 60px; }
.lumi--static .lumi__intro { order: -1; position: static; display: block; text-align: left; padding: 0 0 36px; }
.lumi--static .lumi__t2 .ch { opacity: 1; }
.lumi--static .lumi__grid { position: relative; inset: auto; height: min(78vh, 760px); }
.lumi--static .lumi__photo { position: relative; border-radius: 18px; }
.lumi--static .lumi__img::after { opacity: 0; }
.lumi--static .glow { --g: 1; }
.lumi--static .lumi__cta { opacity: 1; visibility: visible; }
.lumi--static .lumi__photo::after { opacity: 1; }
.lumi--static .lumi__switch { display: none; }

@media (max-width: 900px) {
  /* 3 photos sur la 2e ligne, 4 sur la 3e (noms courts) */
  .lumi__grid { inset: 84px var(--pad) 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1.5fr 1fr 1fr; gap: 8px; }
  .lumi__cell { grid-column: 1 / 13; grid-row: 1; }
  .lumi__tile--1 { grid-area: 2 / 1 / 3 / 5; } .lumi__tile--2 { grid-area: 2 / 5 / 3 / 9; } .lumi__tile--4 { grid-area: 2 / 9 / 3 / 13; }
  .lumi__tile--3 { grid-area: 3 / 1 / 4 / 4; } .lumi__tile--7 { grid-area: 3 / 4 / 4 / 7; } .lumi__tile--5 { grid-area: 3 / 7 / 4 / 10; } .lumi__tile--6 { grid-area: 3 / 10 / 4 / 13; }
  .lumi__grid :is(.lumi__tile--3, .lumi__tile--5, .lumi__tile--6, .lumi__tile--7) figcaption { font-size: 11px; }
  .lumi__tile { border-radius: 12px; }
  .lumi__note { display: none; }
  .lumi__tile figcaption { left: 6px; bottom: 6px; font-size: 13px; padding: 5px 7px 4px; border-radius: 7px; }
  .lumi__cta { left: 12px; right: 12px; bottom: 12px; }
  .lumi__cta .btn { padding: 12px 18px; font-size: 14px; }
  .lumi__switch { bottom: 22px; }
  .lumi--static .lumi__grid { height: 110vw; }
}
