/* Hanabi Ramune — démo KuroganeStudio88 · hero produit 3D */

/* Couleurs de saveur animables (changées par scene.js) */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #0d4a42; }
@property --bg2 { syntax: '<color>'; inherits: true; initial-value: #03201c; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffd84a; }

:root {
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, .72);
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .22);
  --dark: rgba(4, 8, 14, .78);
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-script: 'Pacifico', cursive;
  --f-jp: 'Zen Maru Gothic', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  background: var(--bg2);
  transition: --bg 1.1s ease, --bg2 1.1s ease, --accent 1.1s ease;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--pad);
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav.scrolled { padding-block: 12px; background: color-mix(in srgb, var(--bg2) 75%, transparent); backdrop-filter: blur(14px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font: 22px var(--f-script); }
/* ─── Barre « floating notch » ─── */
.notch {
  --h: 62px; --ball: 50px;
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  width: 380px; height: var(--h); margin-top: 18px; padding: 0 30px;
}
.notch-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.notch-bg path { fill: rgba(16, 18, 26, .62); stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.notch::before { /* flou de verre, découpé à la même forme que la barre */
  content: ''; position: absolute; inset: 0; border-radius: 18px; z-index: -1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  clip-path: var(--clip, none);
}
.notch-item {
  position: relative; z-index: 1; display: grid; place-items: center; text-decoration: none;
  color: rgba(255, 255, 255, .62); transition: color .25s;
}
.notch-item svg {
  width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.notch-item span {
  position: absolute; bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s;
}
.notch-item:hover { color: var(--ink); }
.notch-item:hover svg { transform: translateY(-2px) scale(1.08); }
.notch-item.active svg { opacity: 0; transform: translateY(-14px) scale(.6); }
.notch-item.active span { opacity: 1; transform: none; transition-delay: .25s; }
.notch-item:focus-visible { outline: none; }
.notch-item:focus-visible svg { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.notch-ball {
  position: absolute; left: 0; top: 0; z-index: 2; width: var(--ball); height: var(--ball);
  margin: calc(var(--ball) / -2) 0 0 calc(var(--ball) / -2);
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, color-mix(in srgb, var(--accent) 70%, white) 22%, var(--accent) 55%, color-mix(in srgb, var(--accent) 60%, black));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 -4px 10px rgba(0, 0, 0, .2);
  will-change: transform;
}
.notch-ball svg { width: 22px; height: 22px; fill: none; stroke: #15171f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .15s; }
.notch-ball.blink svg { opacity: 0; }
.nav-cta {
  padding: 12px 26px; border-radius: 999px; background: var(--dark);
  text-decoration: none; font-weight: 800; font-size: 15px; transition: transform .25s;
}
.nav-cta:hover { transform: translateY(-2px); }

/* ─── Hero ─── */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 55% 50%, color-mix(in srgb, var(--bg) 85%, white 15%), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 40%, var(--bg), var(--bg2) 75%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-kanji {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0;
  font: 900 min(42vw, 72vh)/1 var(--f-jp); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .07);
  transition: opacity .5s, transform .8s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none; user-select: none;
}
.hero-kanji.swap { opacity: 0; transform: translate(-50%, -46%) scale(.94); }

.fallback { position: absolute; left: 50%; top: 52%; height: 62vh; transform: translate(-50%, -50%) rotate(-12deg); z-index: 1; }
.webgl .fallback, .webgl .hero-kanji { display: none; } /* le kanji est alors dessiné dans la scène 3D */

.hero-copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-46%); z-index: 3; max-width: 420px; }
.hero-title { margin: 0; font: 400 clamp(60px, 7.4vw, 112px)/1.04 var(--f-script); text-shadow: 0 8px 40px rgba(0, 0, 0, .25); }
.hero-title .line { display: block; }
.hero-title .ch {
  display: inline-block; white-space: pre;
  transition: opacity .4s, transform .6s cubic-bezier(.3, 1.5, .5, 1), filter .4s;
  transition-delay: calc(var(--i) * 32ms);
}
.hero-title .line:nth-child(2) .ch { transition-delay: calc(var(--i) * 32ms + 90ms); }
.hero-title .line.out .ch { opacity: 0; transform: translateY(55%) rotate(12deg) scale(.8); filter: blur(5px); transition-duration: .25s; }
.hero-text { margin: 28px 0 34px; font-size: 18px; color: var(--soft); max-width: 360px; transition: opacity .45s; }
.hero-text.out { opacity: 0; }
.shop {
  display: inline-flex; align-items: center; gap: 22px; padding: 8px 8px 8px 28px;
  background: var(--dark); border-radius: 999px; text-decoration: none; font-weight: 800;
  transition: transform .25s;
}
.shop i {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #111; font: 800 22px var(--f-body); font-style: normal;
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.shop:hover { transform: translateY(-2px); }
.shop:hover i { transform: rotate(90deg); }

/* Carte « saveur suivante » + flèches */
.picker { position: absolute; right: var(--pad); top: 50%; transform: translateY(-40%); z-index: 3; display: grid; gap: 18px; justify-items: center; }
.next-card {
  position: relative; width: 150px; height: 196px; overflow: hidden; cursor: pointer;
  display: grid; align-content: end; justify-items: center; padding: 0 0 16px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 26px;
  backdrop-filter: blur(14px); transition: transform .35s, border-color .35s;
}
.next-card:hover { transform: translateY(-4px) rotate(-1.5deg); border-color: rgba(255, 255, 255, .5); }
.next-card .nc-bottle { position: absolute; left: 50%; top: 30px; transform: translateX(-50%) rotate(8deg); --c: var(--nc, #fff); }
.nc-shot { position: absolute; left: 50%; top: 12px; height: 128px; translate: -50% 0; rotate: 8deg; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); transition: rotate .4s cubic-bezier(.3, 1.5, .5, 1); }
.next-card:hover .nc-shot { rotate: -4deg; }
.next-card.has-shot .nc-bottle { display: none; }
.nc-kanji { position: absolute; top: 10px; right: 12px; font: 900 15px var(--f-jp); color: rgba(255, 255, 255, .45); writing-mode: vertical-rl; }
.nc-name { position: relative; font: 18px var(--f-script); line-height: 1.3; }
.nc-price { position: relative; font-size: 13px; font-weight: 800; color: var(--soft); }
.arrows { display: flex; align-items: center; gap: 12px; }
.arrows button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 18px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px);
  transition: background .25s, color .25s;
}
.arrows button:hover { background: var(--accent); color: #111; }
#next { position: relative; }
.ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 148; stroke-dashoffset: 148; }
.ring.run circle { animation: ring 7s linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }

/* Chargement de la scène */
.loader {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 14px; font: 22px var(--f-script);
  transition: opacity .5s, transform .5s;
}
.loader-marble {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(200, 235, 255, .7) 55%, rgba(120, 180, 230, .7));
  animation: hop .7s cubic-bezier(.3, 0, .7, 1) infinite alternate;
}
@keyframes hop { to { transform: translateY(-26px); } }
.ready .loader, .no-webgl .loader { opacity: 0; transform: translate(-50%, -40%); pointer-events: none; }

/* Info-bulle au survol de la bouteille */
.pop-hint {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  padding: 8px 14px; border-radius: 14px; background: var(--dark); backdrop-filter: blur(8px);
  font-weight: 800; font-size: 13px; line-height: 1.3; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -150%) scale(.85); transition: opacity .2s, transform .25s;
}
.pop-hint small { display: block; font-weight: 600; font-size: 11px; color: var(--soft); }
.pop-hint.show { opacity: 1; transform: translate(-50%, -150%) scale(1); }
.grab #scene { cursor: grab; }
.grabbing #scene { cursor: grabbing; }

/* Apparitions au défilement */
.js-reveal .rv { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js-reveal .rv.in { opacity: 1; transform: none; }
.count { font-size: 13px; color: var(--soft); min-width: 52px; text-align: center; }
.count b { color: var(--ink); }

/* Petite bouteille en CSS (cartes) */
.nc-bottle, .fl-bottle {
  --c: var(--accent);
  width: 46px; height: 112px; display: block;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .55), transparent 28%, transparent 70%, rgba(255, 255, 255, .25)),
    linear-gradient(transparent 52%, rgba(255, 255, 255, .9) 52% 72%, transparent 72%),
    color-mix(in srgb, var(--c) 55%, transparent);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 44% 44% 12px 12px / 26% 26% 12px 12px;
}
.nc-bottle::before, .fl-bottle::before {
  content: ''; position: absolute; left: 32%; width: 36%; height: 30%; top: -26%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .5), color-mix(in srgb, var(--c) 40%, transparent));
  border: 1px solid rgba(255, 255, 255, .6); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.nc-bottle::after, .fl-bottle::after {
  content: ''; position: absolute; left: 50%; top: -14%; width: 30%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, rgba(200, 230, 255, .6) 60%, rgba(120, 170, 220, .6));
}

.hero-foot { position: absolute; left: var(--pad); bottom: 32px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.down {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px);
}
.down svg { width: 22px; height: 22px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.hero-foot p { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; }
.hero-foot small { display: block; font-weight: 600; font-size: 12px; color: var(--soft); letter-spacing: .12em; }

.tagline {
  position: absolute; right: var(--pad); bottom: 26px; z-index: 3; margin: 0; text-align: right;
  font: 400 clamp(44px, 5.6vw, 92px)/.98 var(--f-script); text-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  pointer-events: none;
}
.tagline span { display: block; }
.tagline span:last-child { padding-left: 1.4em; }

/* ─── Sections : bases ─── */
.sec-head { margin-bottom: 48px; }
.eyebrow { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { margin: 0; font: 800 clamp(36px, 5vw, 68px)/1.06 var(--f-body); letter-spacing: -.025em; }
.sec-head em { font: 400 1.05em var(--f-script); color: var(--accent); letter-spacing: 0; }
.note { margin: 18px var(--pad) 0; font-size: 13px; color: var(--soft); text-align: center; }
.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; }

/* ─── Ruban : deux bandes croisées, accélérées par le scroll ─── */
.ribbon { position: relative; z-index: 4; height: clamp(150px, 16vw, 230px); margin-top: calc(clamp(150px, 16vw, 230px) / -2); overflow-x: clip; pointer-events: none; }
.ribbon-row {
  position: absolute; left: -5%; top: 50%; display: flex; align-items: center; gap: 30px;
  width: max-content; padding: 8px 30px; white-space: nowrap; will-change: transform;
  font: 400 clamp(34px, 4.6vw, 70px)/1.25 var(--f-script);
  background: var(--accent); color: #14141c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform: translateY(-62%) rotate(-3deg);
}
.ribbon-row b { font: 900 .8em var(--f-jp); }
.ribbon-row i { font-style: normal; font-size: .5em; }
.ribbon-alt {
  font: 900 clamp(22px, 2.8vw, 40px)/1.6 var(--f-body); text-transform: uppercase; letter-spacing: .04em;
  background: rgba(10, 11, 16, .92); color: var(--ink); border-block: 1px solid rgba(255, 255, 255, .14);
  transform: translateY(-20%) rotate(2.5deg);
}
.ribbon-alt i { color: var(--accent); }
.hollow { color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .7); }

/* ─── Vitrine des saveurs ─── */
.showcase { position: relative; background: var(--bg2); }
.sc-head { padding: clamp(110px, 12vw, 160px) var(--pad) 30px; position: relative; z-index: 3; }
.sc-dots { display: none; }
.sc-track { display: grid; }
.sc-panel {
  --px: 0;
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw;
  padding: 60px var(--pad);
  background:
    radial-gradient(ellipse 55% 65% at 30% 55%, color-mix(in srgb, var(--bg) 78%, white 14%), transparent 70%),
    radial-gradient(ellipse 120% 100% at 40% 50%, var(--bg), var(--bg2) 80%);
}
.sc-kanji {
  position: absolute; left: 50%; top: 52%; z-index: 0; white-space: nowrap; pointer-events: none;
  font: 900 min(calc(92vw / var(--len)), 78vh)/1 var(--f-jp);
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .09);
  transform: translate(calc(-50% + var(--px) * -26vw), -50%);
}
.sc-burst {
  position: absolute; left: 27%; top: 52%; width: min(86vh, 70vw); aspect-ratio: 1; z-index: 0; pointer-events: none;
  translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%);
  mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.sc-visual {
  position: relative; z-index: 1; height: min(calc(100vh - 250px), 620px); min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(calc(var(--px) * 60px)) rotate(calc(-7deg + var(--px) * 22deg));
}
.sc-shot { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.sc-visual .fl-bottle { transform: scale(3); }
.has-shot .fl-bottle { display: none; }
.sc-shadow { position: absolute; bottom: 2%; left: 50%; width: 46%; height: 26px; translate: -50% 0; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(14px); z-index: -1; }

.sc-info { position: relative; z-index: 2; max-width: 480px; }
.sc-num { margin: 0; font: 800 14px var(--f-body); letter-spacing: .2em; color: var(--accent); }
.sc-num span { color: var(--soft); }
.sc-info h3 { margin: 6px 0 14px; font: 400 clamp(52px, 5.8vw, 96px)/1.08 var(--f-script); text-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.sc-text { margin: 0; font-size: 18px; color: var(--soft); }
.meters { margin: 28px 0 22px; display: grid; gap: 12px; }
.meters div { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
.meters dt { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.meters dd { margin: 0; }
.meter { display: flex; gap: 6px; }
.meter i { position: relative; flex: 1; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.meter i::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  box-shadow: 0 0 12px var(--accent); transform-origin: left; transform: scaleX(0);
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); transition-delay: calc(var(--n) * 90ms + 150ms);
}
.meter i:nth-child(1) { --n: 1; } .meter i:nth-child(2) { --n: 2; } .meter i:nth-child(3) { --n: 3; }
.meter i:nth-child(4) { --n: 4; } .meter i:nth-child(5) { --n: 5; }
.sc-panel.on .meter i::after { transform: scaleX(clamp(0, calc(var(--v) - var(--n) + 1), 1)); }
.sc-notes { margin: 0 0 28px; font-size: 16px; }
.sc-notes small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; }
.sc-buy { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.sc-price { font: 800 34px var(--f-body); }
button.shop { border: 0; cursor: pointer; color: var(--ink); }

/* Mode épinglé (écrans larges) : la vitrine défile à l'horizontale. */
.showcase.pinned .sc-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.showcase.pinned .sc-head { position: absolute; top: 0; left: 0; padding-top: 118px; pointer-events: none; }
.showcase.pinned .sc-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
.showcase.pinned .sc-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.showcase.pinned .sc-panel { width: 100vw; height: 100%; padding: 170px var(--pad) 70px; }
.showcase.pinned .sc-dots { display: flex; gap: 8px; position: absolute; left: 50%; bottom: 34px; z-index: 3; translate: -50% 0; }
.sc-dots i { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .4s, background .4s; }
.sc-dots i.on { width: 34px; background: var(--accent); }

/* ─── Le rituel ─── */
.ritual { position: relative; padding: clamp(90px, 10vw, 150px) var(--pad) 40px; max-width: 1320px; margin: 0 auto; }
.ritual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.ritual-stage { position: sticky; top: 11vh; height: 78vh; display: flex; align-items: center; justify-content: center; }
.ritual-stage::before {
  content: ''; position: absolute; inset: 8% 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
}
.ritual-svg { height: 86%; width: auto; max-width: 100%; overflow: visible; }
/* Version 3D : le canvas remplace le dessin, bords fondus dans la page. */
.ritual-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.ritual-stage.gl .ritual-svg, .ritual-stage.gl .ritual-fizz { display: none; }
.rv-liquid { fill: var(--accent); opacity: .5; }
.rv-glass { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; }
.rv-label { fill: #fbf6ea; }
.rv-label-txt { font: 24px var(--f-script); fill: #1c2440; }
.rv-marble { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.rv-plunger rect { fill: var(--accent); stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.rv-foam circle { fill: #fff; opacity: 0; transform-box: fill-box; }
.fizzing .rv-foam circle { animation: rise 1.4s ease-in infinite; animation-delay: calc(var(--k) * -.09s); }
@keyframes rise { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-240px); } }
.ritual-fizz { position: absolute; left: 50%; top: 9%; width: 0; height: 0; }
.ritual-fizz i {
  --dx: calc((var(--k) - 6.5) * 11px);
  position: absolute; width: calc(7px + var(--k) * .7px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85); opacity: 0;
}
.spray .ritual-fizz i { animation: spray 1.1s cubic-bezier(.2, .7, .4, 1) infinite; animation-delay: calc(var(--k) * -.08s); }
@keyframes spray {
  0% { opacity: 1; transform: translate(0, 0) scale(.3); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 2.4), calc(-150px - var(--k) * 6px)) scale(1); }
}
.ritual-steps { list-style: none; margin: 0; padding: 0; }
.ritual-steps li { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transform: translateX(20px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.ritual-steps li:last-child { min-height: 70vh; }
.ritual-steps li.active { opacity: 1; transform: none; }
.ritual-steps b { font: 900 clamp(80px, 9vw, 140px)/1 var(--f-body); color: transparent; -webkit-text-stroke: 2px var(--accent); }
.ritual-steps h3 { margin: 10px 0 12px; font: 800 clamp(28px, 3vw, 42px)/1.15 var(--f-body); letter-spacing: -.02em; }
.ritual-steps p { margin: 0; max-width: 430px; font-size: 18px; color: var(--soft); }

/* ─── Avis ─── */
.voices { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.voices-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; max-width: 1320px; margin: 0 auto 50px; padding: 0 var(--pad); }
.voices-head.sec-head { margin-bottom: 50px; }
.score { margin: 0; display: flex; align-items: flex-start; gap: 8px; }
.score b { font: 900 clamp(70px, 9vw, 130px)/.85 var(--f-body); color: var(--accent); letter-spacing: -.04em; }
.score span { font: 800 26px var(--f-body); color: var(--soft); }
.score small { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; }
.voices-row { padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.voices-track { display: flex; gap: 22px; width: max-content; animation: marquee 55s linear infinite; }
.reverse .voices-track { animation-direction: reverse; animation-duration: 65s; }
.voices-row:hover .voices-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.voice {
  --r: -1.4deg;
  flex: 0 0 360px; margin: 0; padding: 26px; border-radius: 28px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg) 75%, transparent), rgba(255, 255, 255, .04));
  border: 1px solid var(--glass-line); rotate: var(--r);
  transition: rotate .4s, scale .4s, border-color .3s;
}
.voice:nth-child(even) { --r: 1.2deg; }
.voice:hover { rotate: 0deg; scale: 1.04; border-color: var(--accent); }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 18px; }
.voice blockquote { margin: 12px 0 20px; font-size: 17px; line-height: 1.55; }
.voice figcaption { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #14141c; font-size: 15px; }
.voice em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--accent); white-space: nowrap; }

/* ─── Footer feux d'artifice ─── */
.foot {
  position: relative; overflow: hidden; padding: 80px var(--pad) 40px; text-align: center; color: var(--soft);
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, color-mix(in srgb, var(--bg) 70%, transparent), transparent 70%),
    linear-gradient(var(--bg2), #05060b 55%);
  cursor: crosshair;
}
#fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.foot-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.foot-big {
  margin: 0; font: 900 clamp(150px, 30vw, 430px)/.95 var(--f-jp); pointer-events: none; user-select: none;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .14);
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 30%, transparent)); -webkit-background-clip: text; background-clip: text;
}
.foot-hint { margin: 0 0 50px; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; animation: nudge 2.4s ease-in-out infinite; }
.club { cursor: auto; max-width: 620px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 48px); border-radius: 34px; background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); }
.club h2 { margin: 0 0 8px; color: var(--ink); font: 800 clamp(30px, 4vw, 46px)/1.1 var(--f-body); letter-spacing: -.02em; }
.club h2 em { font: 400 1.05em var(--f-script); color: var(--accent); }
.club > p { margin: 0 0 24px; }
.club-field { display: flex; gap: 10px; }
.club input {
  flex: 1; min-width: 0; padding: 0 22px; height: 58px; border-radius: 999px; font: 600 16px var(--f-body);
  color: var(--ink); background: rgba(0, 0, 0, .3); border: 1px solid var(--glass-line);
}
.club input:focus { outline: none; border-color: var(--accent); }
.club-out { min-height: 1.6em; margin: 14px 0 0; font-weight: 800; color: var(--accent); }
.foot-cols { cursor: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 640px; margin: 70px auto 0; text-align: left; }
.foot-cols b { display: block; margin-bottom: 8px; color: var(--ink); }
.foot-cols a, .foot-cols span { display: block; line-height: 2; text-decoration: none; transition: color .2s; }
.foot-cols a:hover { color: var(--accent); }
.foot-legal { margin: 60px 0 0; font-size: 13px; }
.foot-legal a { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .notch { width: 330px; }
}
@media (max-width: 860px) {
  .tagline, .next-card, .hero-foot { display: none; }
  /* La barre passe en bas de l'écran, façon appli. */
  .notch {
    position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); top: auto; margin: 0;
    width: min(400px, calc(100% - 32px)); transform: translateX(-50%); z-index: 60;
  }
  .foot { padding-bottom: 130px; }
  /* backdrop-filter sur le header capturerait la barre fixe : fond plein à la place */
  .nav.scrolled { backdrop-filter: none; background: color-mix(in srgb, var(--bg2) 92%, transparent); }
  .hero-copy { top: auto; bottom: 168px; transform: none; right: var(--pad); max-width: none; }
  .hero-title { font-size: clamp(48px, 13vw, 72px); }
  .hero-text { margin: 12px 0 18px; font-size: 15px; }
  .picker { top: auto; bottom: 104px; right: var(--pad); transform: none; }
  .shop { position: relative; z-index: 1; }
  .hero::after {
    content: ''; position: absolute; inset: 40% 0 0; z-index: 2; pointer-events: none;
    background: linear-gradient(transparent, color-mix(in srgb, var(--bg2) 85%, transparent) 55%);
  }
  .sc-panel { grid-template-columns: 1fr; padding: 30px var(--pad) 70px; gap: 10px; }
  .sc-visual { height: 50vh; }
  .sc-burst { left: 50%; top: 28%; width: 110vw; }
  .sc-kanji { top: 30%; }
  .ritual-grid { grid-template-columns: 1fr; gap: 0; }
  .ritual-stage { top: 64px; height: 44vh; z-index: 1; background: linear-gradient(var(--bg2) 90%, transparent); }
  .ritual-steps li, .ritual-steps li:last-child { min-height: 56vh; justify-content: flex-start; padding-top: 4vh; }
  .voice { flex-basis: 290px; }
  .club-field { flex-direction: column; }
  .club-field .shop { justify-content: space-between; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav-cta { padding: 10px 18px; font-size: 14px; }
  .meters div { grid-template-columns: 92px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  html { scroll-behavior: auto; }
}


