/* ==========================================================================
   Quilles — site de présentation
   Deux ambiances, comme dans l’app : Cave (laque noire, laiton, LED) et
   Pierre (calcaire de Bourgogne, marbre, bronze). Chaque section choisit la
   sienne avec .amb-cave ou .amb-pierre ; les composants lisent les jetons.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* New York sur les appareils Apple (la police de l’app), Newsreader ailleurs ;
     les kanas et kanjis passent aux mincho et gothiques du système. */
  --serif: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;

  /* Or poli, identique dans les deux ambiances (remplissages, sceaux, rails). */
  --gold: #c79e62;
  --gold-bright: #ecc98a;
  --gold-deep: #78582e;
  --on-gold: #1b140d;
  --gold-fill: linear-gradient(135deg, #ecc98a 0%, #c79e62 38%, #8f6a38 70%, #c79e62 100%);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 52px;
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --gold: color(display-p3 .76 .62 .41);
    --gold-bright: color(display-p3 .91 .79 .56);
  }
}

/* Nuit : l’armoire laquée. */
.amb-cave {
  --bg: #0a0908;
  --bg-2: #0e0d0b;
  --panel: #161412;
  --panel-2: #1e1c18;
  --text: #f1e7d1;
  --muted: #a39d8f;
  --faint: rgba(163, 157, 143, .62);
  --brass: #c79e62;
  --brass-bright: #ecc98a;
  --brass-deep: #78582e;
  --hair: rgba(255, 255, 255, .085);
  --veil: rgba(255, 255, 255, .055);
  --shade: rgba(0, 0, 0, .7);
  --keep: #8fa880;
  --ready: #ecc26e;
  --past: #b87359;
  color-scheme: dark;
}

/* Jour : la cave de pierre du sommelier. */
.amb-pierre {
  --bg: #eee9df;
  --bg-2: #e6e0d3;
  --panel: #f7f5ef;
  --panel-2: #fbf9f5;
  --text: #291e16;
  --muted: #6b5e4f;
  --faint: rgba(107, 94, 79, .6);
  --brass: #956e39;
  --brass-bright: #815a26;
  --brass-deep: #5e421d;
  --hair: rgba(84, 64, 41, .16);
  --veil: rgba(84, 64, 41, .065);
  --shade: rgba(66, 46, 26, .28);
  --keep: #54774d;
  --ready: #a8761c;
  --past: #a64d33;
  color-scheme: light;
}

/* ─────────────────────────── Base ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: #0a0908;
}
html.i18n-pending body { opacity: 0; }

body {
  margin: 0;
  background: #0a0908;
  color: #f1e7d1;
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: opacity .25s ease;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: rgba(199, 158, 98, .35); color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass-bright, #ecc98a);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--on-gold);
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ─────────────────────────── Typographie ─────────────────────────── */

.eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--brass);
  font: 600 12px/1.3 var(--sans);
  font-stretch: 125%;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.section__head--center .eyebrow, .hero .eyebrow { justify-content: center; }

.display {
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.display--m { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }
.display em {
  font-style: italic;
  padding-right: .08em;
  background: linear-gradient(100deg, var(--brass-bright) 0%, var(--brass) 45%, var(--brass-deep) 85%, var(--brass) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: 38rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.6;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.section__head--center .lead { margin-inline: auto; }

.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font: 700 10px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fineprint { margin-top: 28px; color: var(--faint); font-size: 14px; line-height: 1.55; max-width: 34rem; }

/* ─────────────────────────── Apparition au défilement ─────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1.1s var(--ease) var(--d, 0s),
    filter 1s var(--ease) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ─────────────────────────── Navigation ─────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  color: #f1e7d1;
  background: rgba(10, 9, 8, .62);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .5s, color .5s, border-color .5s;
}
.nav.is-light {
  color: #291e16;
  background: rgba(240, 235, 226, .72);
  border-bottom-color: rgba(84, 64, 41, .14);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 100%;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font: italic 400 22px/1 var(--serif);
  letter-spacing: -.01em;
}
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .15); }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; letter-spacing: .01em;
  text-decoration: none;
  opacity: .72;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__end { display: flex; align-items: center; gap: 14px; }
.nav__cta {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: 999px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(199, 158, 98, .35); }

/* Sélecteur de langue : pastille globe + code, menu natif du système par-dessus. */
.lang-picker {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(128, 118, 104, .16);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  transition: background .25s;
}
.lang-picker:hover { background: rgba(128, 118, 104, .26); }
.lang-picker:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.lang-picker__globe { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .8; }
.lang-picker::after {
  content: "";
  width: 5px; height: 5px; margin: -3px 0 0 1px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
}
.lang-picker select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* évite le zoom de Safari iOS */
}

@media (max-width: 900px) {
  .nav__links { display: none; }
}
@media (max-width: 420px) {
  .nav__brand span { display: none; }
}

/* ─────────────────────────── Matières de fond ─────────────────────────── */

/* Laque, veinage vertical et lumière de l’armoire. */
.section.amb-cave, .hero, .outro, .footer {
  background:
    repeating-linear-gradient(90deg, rgba(255, 236, 205, .016) 0 1px, transparent 1px 13px),
    var(--bg);
}

/* Calcaire de Bourgogne : grain fin et nuages. */
.section.amb-pierre, .ambiances__day {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .25 0 0 0 0 .16 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .007' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .36 .22 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    #eee9df;
}

.section {
  position: relative;
  padding: clamp(104px, 13vw, 176px) 0;
  color: var(--text);
  overflow: clip;
}
.section--tight { padding-top: 0; }
.section__head { max-width: 44rem; }
.section__head--center { margin-inline: auto; text-align: center; }

/* Bandeau LED : trait lumineux et halo chaud qui tombe sur la paroi. */
.led {
  position: absolute; top: 0; left: 5%; right: 5%; z-index: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffd49a 7%, #ffe7c4 50%, #ffd49a 93%, transparent);
  box-shadow: 0 0 10px 1px rgba(255, 196, 120, .55), 0 0 44px 8px rgba(245, 158, 72, .2);
  pointer-events: none;
}
.led::after {
  content: "";
  position: absolute; left: 10%; right: 10%; top: 2px;
  height: 320px;
  background: radial-gradient(55% 100% at 50% 0%, rgba(245, 158, 72, .13), transparent 72%);
}

/* ─────────────────────────── Appareils ─────────────────────────── */

/* iPhone : bande de titane, bord noir, écran 1004 × 2180. */
.device {
  --w: 300px;
  --ring: calc(var(--w) * .012);
  --bezel: calc(var(--w) * .03);
  position: relative;
  flex: none;
  width: var(--w);
  padding: var(--bezel);
  border: var(--ring) solid transparent;
  border-radius: calc(var(--w) * .18);
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(150deg, #a39a8f 0%, #4a453f 22%, #7d756b 48%, #2e2b27 74%, #8f877c 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 calc(var(--w) * .16) calc(var(--w) * .3) calc(var(--w) * -.1) rgba(0, 0, 0, .75),
    0 calc(var(--w) * .04) calc(var(--w) * .08) rgba(0, 0, 0, .35);
}
.device::before, .device::after {
  content: "";
  position: absolute;
  width: calc(var(--w) * .012);
  border-radius: 2px;
  background: linear-gradient(90deg, #3a3631, #8c8479 50%, #3a3631);
}
.device::before {
  left: calc(var(--ring) * -2 - 1px);
  top: 21%; height: 6%;
  box-shadow: 0 calc(var(--w) * .2) 0 #6d665d;
}
.device::after {
  right: calc(var(--ring) * -2 - 1px);
  top: 27%; height: 10%;
}
.device__screen {
  position: relative;
  aspect-ratio: 1004 / 2180;
  overflow: hidden;
  border-radius: calc(var(--w) * .137);
  background: #000;
  isolation: isolate;
}
.device__screen > img, .device__screen > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.amb-pierre .device {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 calc(var(--w) * .14) calc(var(--w) * .26) calc(var(--w) * -.1) rgba(66, 46, 26, .45),
    0 calc(var(--w) * .03) calc(var(--w) * .06) rgba(66, 46, 26, .18);
}

/* iPad : écran 1528 × 2036. */
.device--ipad {
  --w: min(640px, 64vw);
  --ring: calc(var(--w) * .006);
  --bezel: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .07);
}
.device--ipad .device__screen { aspect-ratio: 1528 / 2036; border-radius: calc(var(--w) * .032); }
.device--ipad::before { top: 7%; height: 5%; width: calc(var(--w) * .006); box-shadow: 0 calc(var(--w) * .09) 0 #6d665d; left: auto; right: calc(var(--ring) * -2 - 1px); }
.device--ipad::after { top: -1px; right: 10%; height: calc(var(--w) * .006); width: 9%; }

/* ─────────────────────────── Accueil ─────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 104px)) 0 0;
  overflow: clip;
  text-align: center;
}
.hero .led { top: var(--nav-h); animation: led-on 2.4s steps(1, end) .2s both; }
.hero__glow {
  position: absolute; inset: var(--nav-h) 0 auto;
  height: 90vh;
  background: radial-gradient(45% 60% at 50% 0%, rgba(245, 158, 72, .14), transparent 70%);
  pointer-events: none;
  animation: glow-on 2.6s ease .6s both;
}
@keyframes led-on {
  0% { opacity: 0; }
  8% { opacity: .7; }
  11% { opacity: .05; }
  19% { opacity: .9; }
  22% { opacity: .2; }
  34%, 100% { opacity: 1; }
}
@keyframes glow-on { from { opacity: 0; } to { opacity: 1; } }

.hero__text { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 980px); margin-inline: auto; }
.hero .eyebrow { margin-bottom: 26px; }
.hero .display { font-size: clamp(3.4rem, 9.2vw, 8.2rem); line-height: .93; }
.hero .lead { margin-inline: auto; max-width: 35rem; }
.hero__actions {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 40px;
}
.hero__meta { margin-top: 22px; color: var(--faint); font-size: 13px; letter-spacing: .02em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brass-bright);
  font-size: 16px; font-weight: 500;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.link-arrow:hover::after { transform: translateY(0) rotate(45deg); }

/* Scène : trois iPhone posés sur une étagère, plaques de laiton en façade. */
.hero__stage {
  --p: 0;
  position: relative;
  margin-top: clamp(48px, 7vh, 80px);
}
.hero__devices {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: flex-end;
}
.slot { position: relative; display: flex; flex-direction: column; align-items: center; }
.slot::before {
  /* Ombre portée sur la tablette. */
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: 30px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .75);
  filter: blur(10px);
}
.device--hero { --w: clamp(248px, 25vw, 330px); z-index: 2; }
.device--side { --w: clamp(200px, 20vw, 268px); }
.slot--center { z-index: 2; }
.slot--left { margin-right: calc(clamp(200px, 20vw, 268px) * -.14); transform: translate3d(calc(var(--p) * -48px), 0, 0); }
.slot--right { margin-left: calc(clamp(200px, 20vw, 268px) * -.14); transform: translate3d(calc(var(--p) * 48px), 0, 0); }
.slot--left .device, .slot--right .device { filter: brightness(.72) saturate(.9); }

.shelf {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: 40px;
  background:
    linear-gradient(180deg, rgba(255, 214, 160, .38) 0, rgba(255, 214, 160, .08) 1px, transparent 2px),
    linear-gradient(180deg, #6a4526 0, #4a2f18 9px, #2c1b0d 10px, #3b2512 12px, #24160a 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .75), 0 -30px 60px -20px rgba(245, 158, 72, .12);
}
.shelf::after {
  content: "";
  position: absolute; inset: 10px 0 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 220, 170, .03) 0 2px, transparent 2px 37px);
  mix-blend-mode: overlay;
}
.plaque {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 15px 0 9px;
  height: 16px; padding: 0 8px;
  border-radius: 2px;
  background: linear-gradient(#f4ead3, #dccaa4);
  box-shadow: inset 0 0 0 1px rgba(120, 88, 46, .7), 0 1px 2px rgba(0, 0, 0, .6);
  color: #2d2114;
  font: 600 9.5px/1 var(--serif);
  white-space: nowrap;
}
.plaque i { width: 5px; height: 5px; background: #6b1a1d; border-radius: 1px; }
.plaque b { font-weight: 600; font-family: var(--sans); font-size: 8.5px; color: #5e421d; }

/* Écran de lancement : la vidéo s’efface sur l’armoire qui s’allume. */
.launch__final { opacity: 0; }
.launch__video { z-index: 1; transition: opacity 1s ease; }
[data-launch].is-done .launch__video { opacity: 0; }
[data-launch].is-done .launch__final { animation: lights-on 1.4s ease both; }
@keyframes lights-on {
  0% { opacity: 1; filter: brightness(.25); }
  12% { filter: brightness(.7); }
  16% { filter: brightness(.35); }
  34% { filter: brightness(.95); }
  100% { opacity: 1; filter: none; }
}

@media (max-width: 760px) {
  .slot--left, .slot--right { display: none; }
  .device--hero { --w: min(72vw, 300px); }
}

/* ─────────────────────────── Badge App Store ─────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 17px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  text-decoration: none;
  text-align: left;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.badge:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 201, 138, .7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 4px rgba(199, 158, 98, .12);
}
.badge__logo { width: 27px; height: 27px; fill: currentColor; margin-top: -4px; }
.badge__text { display: flex; flex-direction: column; }
.badge__text small { font-size: 11px; line-height: 1.1; letter-spacing: .01em; }
.badge__text strong { font-size: 22px; line-height: 1.05; font-weight: 600; letter-spacing: -.025em; }
.badge--large { height: 64px; border-radius: 16px; padding: 0 26px 0 20px; }
.badge--large .badge__logo { width: 31px; height: 31px; }
.badge--large .badge__text strong { font-size: 25px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 30px rgba(199, 158, 98, .18);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 36px rgba(199, 158, 98, .32); }

/* ─────────────────────────── L’armoire : récit épinglé ─────────────────────────── */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 8vh, 96px);
}
.story__steps { display: flex; flex-direction: column; }
.story__step {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 78vh;
  max-width: 30rem;
  opacity: .28;
  transition: opacity .6s ease;
}
.story__step.is-active { opacity: 1; }
.story__index {
  margin-bottom: 18px;
  color: var(--brass);
  font: italic 400 20px/1 var(--serif);
}
.story__step h3 {
  font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.08 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.story__step p { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.device--inline { display: none; }

.story__sticky {
  position: sticky; top: 0;
  align-self: start;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.story__light {
  position: absolute; inset: 10% 0;
  background: radial-gradient(50% 45% at 50% 45%, rgba(245, 158, 72, .16), transparent 70%);
  pointer-events: none;
}
.device--story { --w: min(320px, 38vh); }
.device--story .device__screen img { opacity: 0; transition: opacity .7s ease; }
.device--story .device__screen img.is-active { opacity: 1; }
.story__dots { display: flex; gap: 8px; }
.story__dots li { width: 6px; height: 6px; border-radius: 3px; background: var(--hair); transition: width .4s var(--ease), background .4s; }
.story__dots li.is-active { width: 22px; background: var(--brass); }

@media (max-width: 900px) {
  .story { display: block; }
  .story__sticky { display: none; }
  .story__step { min-height: 0; max-width: none; opacity: 1; padding: 56px 0 0; }
  .device--inline { display: block; --w: min(78vw, 300px); margin: 40px auto 0; }
}

/* ─────────────────────────── Les bouteilles ─────────────────────────── */

.art {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.art__niche { text-align: center; }
/* Niche voûtée, comme une alcôve de cave. */
.niche {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 600 / 840;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px;
  background: #0b0908;
  box-shadow:
    0 0 0 1px rgba(199, 158, 98, .28),
    0 0 0 9px #0f0d0b,
    0 0 0 10px rgba(199, 158, 98, .12),
    0 60px 120px -30px rgba(0, 0, 0, .9);
}
.niche::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px 20px rgba(0, 0, 0, .55);
  border-radius: inherit;
  pointer-events: none;
}
.niche__video { width: 100%; height: 100%; object-fit: cover; }
.niche__hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 13px; letter-spacing: .04em;
}
.niche__hint::before {
  content: "";
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14.2-5M20 12a8 8 0 0 1-14.2 5'/%3E%3Cpath d='M18.5 3v4h-4M5.5 21v-4h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14.2-5M20 12a8 8 0 0 1-14.2 5'/%3E%3Cpath d='M18.5 3v4h-4M5.5 21v-4h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.specs { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--hair); }
.spec {
  display: grid; grid-template-columns: 76px 1fr; align-items: baseline; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}
.spec dt {
  font: 400 54px/1 var(--serif);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec dd { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.art__dust {
  margin-top: 32px;
  color: var(--text);
  font: italic 400 clamp(1.2rem, 1.7vw, 1.45rem)/1.5 var(--serif);
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .art { grid-template-columns: 1fr; }
  .niche { width: min(100%, 380px); }
}

/* ─────────────────────────── Colonnes ─────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.split__media { display: flex; justify-content: center; }
.split .display { font-size: clamp(2.6rem, 5.2vw, 4.7rem); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .split__media { order: 2; }
}

.checks { display: grid; gap: 14px; margin-top: 36px; }
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 16.5px;
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--veil);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.checks li::after {
  content: "";
  position: absolute; left: 7px; top: 8px;
  width: 6px; height: 9px;
  border-right: 1.6px solid var(--brass-bright);
  border-bottom: 1.6px solid var(--brass-bright);
  transform: rotate(40deg);
}

/* ─────────────────────────── Scan intelligent ─────────────────────────── */

.scan {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, #121010, #0a0908);
  box-shadow: 0 0 0 1px var(--hair), 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.scan__viewfinder {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(70% 80% at 50% 45%, rgba(62, 40, 22, .9), rgba(10, 8, 6, 1) 75%),
    #0a0806;
  perspective: 900px;
}
.scan__viewfinder::before {
  /* Verre de la bouteille, derrière l’étiquette. */
  content: "";
  position: absolute; left: 18%; right: 18%; top: -10%; bottom: -10%;
  border-radius: 40px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(40, 52, 36, .55) 30%, rgba(90, 110, 80, .35) 42%, rgba(30, 40, 28, .6) 60%, rgba(0, 0, 0, .8));
}
.scan__label {
  --lw: 52%;
  position: absolute; left: 24%; top: 7.7%;
  width: var(--lw); height: 84.6%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqi;
  container-type: inline-size;
  padding: 6% 7%;
  border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 .14 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #cbbd9c, #f1e7cf 18%, #f7efdc 50%, #efe4ca 80%, #c2b390);
  color: #5a1a1c;
  text-align: center;
  box-shadow: inset 0 0 0 5px #f4ecd9, inset 0 0 0 6px rgba(90, 26, 28, .55), inset 0 0 0 8px #f4ecd9, inset 0 0 0 8.6px rgba(90, 26, 28, .35);
  transform: rotateY(-24deg) rotateX(10deg) rotateZ(-5deg) scale(.9);
  transform-origin: 50% 50%;
  font-family: var(--serif);
}
.scan__grand { font-size: 5.2cqi; letter-spacing: .3em; text-transform: uppercase; color: #6f5a3a; }
.scan__chateau { flex: none; width: 58%; height: auto; aspect-ratio: 120 / 44; color: #5a1a1c; }
.scan__name { font-size: 12cqi; line-height: 1.02; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.scan__app { font-size: 6cqi; letter-spacing: .12em; text-transform: uppercase; color: #3b2a1a; }
.scan__year { font-size: 11cqi; color: #5a1a1c; }
.scan__fine { font-size: 4.3cqi; letter-spacing: .18em; text-transform: uppercase; color: #6f5a3a; }

.scan__corner {
  position: absolute; z-index: 2;
  width: 9%; aspect-ratio: 1;
  border: 3px solid #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5));
  transition: left .8s var(--ease), top .8s var(--ease), border-color .4s;
}
.scan__corner--tl { left: 20%; top: 14%; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.scan__corner--tr { left: 72%; top: 5%; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.scan__corner--bl { left: 26%; top: 80%; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.scan__corner--br { left: 66%; top: 86%; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.scan.is-playing .scan__corner { border-color: var(--gold-bright); transition-delay: .35s; }
.scan.is-playing .scan__corner--tl { left: 22.5%; top: 5.5%; }
.scan.is-playing .scan__corner--tr { left: 68.5%; top: 5.5%; }
.scan.is-playing .scan__corner--bl { left: 22.5%; top: 82.5%; }
.scan.is-playing .scan__corner--br { left: 68.5%; top: 82.5%; }
.scan.is-playing .scan__label { transform: none; transition: transform 1s var(--ease) 1.1s; }

.scan__beam {
  position: absolute; z-index: 1; left: 22%; right: 22%; top: 6%;
  height: 16%;
  background: linear-gradient(180deg, transparent, rgba(236, 201, 138, .28) 70%, rgba(255, 240, 210, .9) 96%, transparent);
  opacity: 0;
  mix-blend-mode: screen;
}
.scan.is-playing .scan__beam { animation: beam 1.3s var(--ease-in-out) 2.1s both; }
@keyframes beam {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(460%); }
}

.scan__fields { display: grid; gap: 2px; margin-top: 14px; }
.scan__fields li {
  display: grid;
  grid-template-columns: 22px 100px minmax(0, 1fr);
  grid-template-areas: "icon key value" "icon key source";
  align-items: center; column-gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s var(--ease);
}
.scan.is-playing .scan__fields li { opacity: 1; transform: none; transition-delay: calc(3.3s + var(--i) * .22s); }
.scan__key { grid-area: key; color: #8f887b; font-size: 12px; letter-spacing: .02em; }
.scan__fields strong { grid-area: value; color: #f1e7d1; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan__fields em { grid-area: source; color: #8f887b; font-style: normal; font-size: 11.5px; }
.src { grid-area: icon; width: 18px; height: 18px; background: var(--gold); }
.src--label { -webkit-mask: var(--m-viewfinder) center / contain no-repeat; mask: var(--m-viewfinder) center / contain no-repeat; }
.src--book { -webkit-mask: var(--m-book) center / contain no-repeat; mask: var(--m-book) center / contain no-repeat; }
.src--ai {
  background: linear-gradient(135deg, #f5a55a, #e45ea5 40%, #8e6cf5 70%, #4ea8f0);
  -webkit-mask: var(--m-sparkle) center / contain no-repeat; mask: var(--m-sparkle) center / contain no-repeat;
}
.scan {
  --m-viewfinder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3M8 10h8M8 14h5'/%3E%3C/svg%3E");
  --m-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 4.5A1.5 1.5 0 0 1 6.5 3H19v15H6.5A1.5 1.5 0 0 0 5 19.5ZM5 19.5A1.5 1.5 0 0 0 6.5 21H19v-3M9 7h6'/%3E%3C/svg%3E");
  --m-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2.5l1.6 5a3 3 0 0 0 1.9 1.9l5 1.6-5 1.6a3 3 0 0 0-1.9 1.9l-1.6 5-1.6-5a3 3 0 0 0-1.9-1.9l-5-1.6 5-1.6a3 3 0 0 0 1.9-1.9ZM19 2l.7 2.1 2.1.7-2.1.7L19 7.6l-.7-2.1-2.1-.7 2.1-.7Z'/%3E%3C/svg%3E");
}

.replay {
  display: flex; align-items: center; gap: 6px;
  height: 30px; margin: 14px auto 2px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(20, 18, 16, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #f1e7d1;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s ease;
}
.scan.is-done .replay { opacity: 1; }

@media (max-width: 520px) {
  .scan { padding: 12px; border-radius: 24px; }
  .scan__fields li { grid-template-columns: 20px 82px minmax(0, 1fr); }
  .scan__fields strong { font-size: 14px; }
}

/* ─────────────────────────── Deux ambiances ─────────────────────────── */

.ambiances {
  --text: #f1e7d1;
  --muted: #a39d8f;
  --faint: rgba(163, 157, 143, .62);
  --brass: #c79e62;
  --brass-bright: #ecc98a;
  --brass-deep: #78582e;
  --hair: rgba(255, 255, 255, .085);
  background: #0a0908;
  color-scheme: dark;
  isolation: isolate;
}
.ambiances > .container { position: relative; z-index: 1; }
.ambiances__night, .ambiances__day {
  position: absolute; inset: 0; z-index: 0;
  transition: opacity 1.1s ease;
}
.ambiances__night {
  background:
    repeating-linear-gradient(90deg, rgba(255, 236, 205, .016) 0 1px, transparent 1px 13px),
    #0a0908;
}
.ambiances__day { opacity: 0; }
.ambiances.is-day .ambiances__day { opacity: 1; }
.ambiances.is-day .ambiances__night { opacity: 0; }
.ambiances .display, .ambiances .lead, .ambiances .eyebrow, .ambiances__note { transition: color 1.1s ease; }
.ambiances.is-day {
  --text: #291e16;
  --muted: #6b5e4f;
  --faint: rgba(107, 94, 79, .7);
  --brass: #956e39;
  --brass-bright: #815a26;
  --brass-deep: #5e421d;
  --hair: rgba(84, 64, 41, .16);
  color-scheme: light;
}
.ambiances.is-day .display em { transition: none; }

.compare {
  position: relative;
  width: fit-content;
  margin: clamp(48px, 7vh, 80px) auto 36px;
}
.device--compare { --w: clamp(260px, 29vw, 350px); }
.compare .device__screen { cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.compare .device__screen img { pointer-events: none; -webkit-user-drag: none; }
.compare__day { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  left: var(--pos);
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(255, 236, 200, .95) 12%, rgba(255, 236, 200, .95) 88%, transparent);
  box-shadow: 0 0 12px rgba(236, 201, 138, .7);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 calc(-23px + (.5 - var(--t, 0)) * 46px);
  border-radius: 50%;
  background: rgba(30, 26, 22, .45);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 6px 20px rgba(0, 0, 0, .35);
}
.compare__knob::before, .compare__knob::after {
  content: "";
  position: absolute; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff;
}
.compare__knob::before { left: 12px; transform: rotate(45deg); }
.compare__knob::after { right: 12px; transform: rotate(-135deg); }
.compare:has(.compare__range:focus-visible) .device__screen { outline: 2px solid var(--brass-bright); outline-offset: 4px; }

.segmented {
  display: flex; width: fit-content;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: var(--hair);
}
.segmented button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .4s, color .4s, box-shadow .4s;
}
.segmented svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.segmented button[aria-pressed="true"] {
  background: var(--gold-fill);
  color: var(--on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(0, 0, 0, .2);
}
.ambiances__note { margin-top: 22px; text-align: center; color: var(--faint); font-size: 13.5px; }

/* ─────────────────────────── Matières ─────────────────────────── */

.device--plinth { --w: clamp(250px, 27vw, 330px); }

.atelier {
  margin-top: 44px;
  padding: 22px;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -30px var(--shade);
}
.atelier__preview {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: #16110c;
}
.atelier__led {
  position: absolute; left: 6%; right: 6%; top: 10px; z-index: 2;
  height: 2px; border-radius: 2px;
  background: var(--led);
  box-shadow: 0 0 10px 1px var(--led), 0 0 36px 6px color-mix(in srgb, var(--glow) 45%, transparent);
  transition: background .5s, box-shadow .5s;
}
.atelier__led::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 2px; height: 90px;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--glow) 32%, transparent), transparent 75%);
  transition: background .5s;
}
.atelier__wood {
  position: absolute; left: 0; right: 0; top: 0; bottom: 50%;
  background:
    var(--grain),
    linear-gradient(180deg, var(--wood-shade), var(--wood-base) 70%, var(--wood-light));
  transition: background .5s;
}
.atelier__wood::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-base) 40%, var(--wood-shade));
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5);
}
.atelier__marble {
  position: absolute; left: 0; right: 0; top: 50%; bottom: 0;
  background: var(--marble);
  background-size: cover;
  box-shadow: inset 0 10px 18px -8px rgba(0, 0, 0, .45);
  transition: background .5s;
}
.atelier__rows { display: grid; gap: 18px; margin-top: 22px; }
.atelier__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label value" "swatches swatches";
  gap: 10px;
}
.atelier__label { grid-area: label; color: var(--muted); font-size: 13px; }
.atelier__value { grid-area: value; color: var(--text); font: italic 400 16px/1.2 var(--serif); }
.swatches { grid-area: swatches; display: flex; gap: 12px; flex-wrap: wrap; }
.sw {
  position: relative;
  width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 2px 6px rgba(66, 46, 26, .2);
  transition: transform .25s var(--ease);
}
.sw::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--brass);
  opacity: 0; transform: scale(.9);
  transition: opacity .25s, transform .25s var(--ease);
}
.sw:hover { transform: scale(1.06); }
.sw[aria-checked="true"]::after { opacity: 1; transform: none; }
.atelier__note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 13.5px; }

/* Marbres (couleurs de CellarStone), veinage généré en SVG. */
.atelier, .sw {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' preserveAspectRatio='none'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .16' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -.9 0 0 0 .62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") center / 100% 100%;
}
.sw--calacatta, .atelier[data-stone="calacatta"] {
  --marble: url("../img/marbre-calacatta.svg") center / cover;
}
.sw--carrare, .atelier[data-stone="carrare"] {
  --marble: url("../img/marbre-carrare.svg") center / cover;
}
.sw--travertin, .atelier[data-stone="travertin"] {
  --marble: url("../img/marbre-travertin.svg") center / cover;
}
.sw--marquina, .atelier[data-stone="marquina"] {
  --marble: url("../img/marbre-marquina.svg") center / cover;
}
.sw--calacatta, .sw--carrare, .sw--travertin, .sw--marquina { background: var(--marble); background-size: 400% 400%; }

/* Bois (couleurs de CellarWood). */
.sw--chene, .atelier[data-wood="chene"] { --wood-light: #8c613a; --wood-base: #54361d; --wood-shade: #291a0e; }
.sw--noyer, .atelier[data-wood="noyer"] { --wood-light: #664229; --wood-base: #382314; --wood-shade: #1a0f09; }
.sw--wenge, .atelier[data-wood="wenge"] { --wood-light: #382b24; --wood-base: #1c1612; --wood-shade: #0d0a09; }
.sw--acacia, .atelier[data-wood="acacia"] { --wood-light: #b88752; --wood-base: #784f2b; --wood-shade: #402814; }
.sw--chene, .sw--noyer, .sw--wenge, .sw--acacia {
  background: var(--grain), linear-gradient(160deg, var(--wood-light), var(--wood-base) 55%, var(--wood-shade));
}

/* Lumières (couleurs de CellarLight). */
.sw--ambre, .atelier[data-light="ambre"] { --led: #ffc775; --glow: #f59e47; }
.sw--chaud, .atelier[data-light="chaud"] { --led: #ffe6bd; --glow: #facc8f; }
.sw--froid, .atelier[data-light="froid"] { --led: #dbedff; --glow: #9ec2f5; }
.sw--ambre, .sw--chaud, .sw--froid {
  background: radial-gradient(circle at 50% 50%, #fff 0 12%, var(--led) 30%, color-mix(in srgb, var(--glow) 70%, #1a140e) 70%, #1a140e 100%);
}

/* ─────────────────────────── Carnet ─────────────────────────── */

.split__media--pair { position: relative; min-height: 520px; align-items: center; }
.split__media--pair .device--back { --w: clamp(220px, 22vw, 290px); transform: translateX(-26%) rotate(-3deg); }
.split__media--pair .device--front { --w: clamp(220px, 22vw, 290px); position: absolute; left: 50%; top: 50%; transform: translate(-10%, -44%) rotate(3deg); }
@media (max-width: 900px) {
  .split__media--pair { min-height: 0; padding: 20px 0 40px; }
  .split__media--pair .device--back { --w: min(58vw, 260px); transform: translateX(-24%) rotate(-3deg); }
  .split__media--pair .device--front { --w: min(58vw, 260px); transform: translate(-16%, -46%) rotate(3deg); }
}

.window {
  margin-top: 44px;
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -32px var(--shade);
}
.window__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.window__eyebrow { color: var(--brass); font: 600 11px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.window__wine { margin-top: 8px; font: 400 22px/1.2 var(--serif); }
.window__wine em { color: var(--brass); }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--status) 14%, transparent);
  color: var(--status);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background .4s, color .4s;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-status="keep"] { --status: var(--keep); }
.status[data-status="ready"] { --status: var(--ready); }
.status[data-status="past"] { --status: var(--past); }

.window__track {
  position: relative;
  display: flex;
  height: 12px;
  margin-top: 40px;
  border-radius: 6px;
  background: var(--veil);
}
.window__zone { height: 100%; }
.window__zone--keep { background: linear-gradient(90deg, color-mix(in srgb, var(--keep) 25%, transparent), color-mix(in srgb, var(--keep) 55%, transparent)); border-radius: 6px 0 0 6px; }
.window__zone--ready { background: linear-gradient(90deg, #e2b865, #c79e62 60%, #b8862e); }
.window__zone--past { background: linear-gradient(90deg, color-mix(in srgb, var(--past) 55%, transparent), color-mix(in srgb, var(--past) 22%, transparent)); border-radius: 0 6px 6px 0; }
.window__marker {
  position: absolute; top: -9px; bottom: -9px;
  left: var(--x, 30%);
  width: 2px; margin-left: -1px;
  border-radius: 1px;
  background: var(--text);
}
.window__year {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--panel);
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.window__scale {
  position: relative;
  height: 18px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.window__scale span { position: absolute; top: 0; white-space: nowrap; }
.window__scale span:first-child { left: 0; }
.window__scale span:last-child { right: 0; }
.window__scale span:nth-child(2) { left: var(--peak-x); transform: translateX(-50%); }
.window__scale span:nth-child(3) { left: var(--limit-x); transform: translateX(-50%); }
.window__control input { width: 100%; margin: 18px 0 0; accent-color: var(--gold); }
.window__message { margin-top: 12px; color: var(--muted); font-size: 15px; min-height: 1.5em; }

/* ─────────────────────────── Accords ─────────────────────────── */

.pairing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "text chips" "text result";
  gap: 28px 64px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(251, 249, 245, .82), rgba(244, 240, 232, .9)),
    url("../img/marbre-calacatta.svg") center / cover;
  box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -40px var(--shade);
}
.pairing__text { grid-area: text; }
.chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; }
.chips li {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: var(--veil);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text);
  font-size: 14px;
}
.chips li.is-on { background: var(--gold-fill); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); font-weight: 600; }
.pairing__result {
  grid-area: result; align-self: start;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -22px var(--shade);
}
.pairing__badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-fill); color: var(--on-gold);
  font-size: 11px; font-weight: 700;
}
.pairing__badge::before { content: "♛"; font-size: 11px; }
.pairing__wine { margin-top: 10px; font: 400 22px/1.2 var(--serif); }
.pairing__wine span { display: block; margin-top: 2px; color: var(--muted); font: 400 14px/1.4 var(--sans); }
.pairing__why { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) {
  .pairing { grid-template-columns: 1fr; grid-template-areas: "text" "chips" "result"; }
}

/* ─────────────────────────── Santé ─────────────────────────── */

#sante .led { left: 20%; right: 20%; }
.toast-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 600 / 860;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 94%, transparent);
  mask-composite: intersect;
}
.toast-stage__video { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────────────────── Widgets ─────────────────────────── */

.section--widgets { padding-bottom: clamp(80px, 10vw, 140px); }
.widgets {
  position: relative;
  width: min(100%, 1040px);
  aspect-ratio: 1040 / 620;
  margin: clamp(56px, 8vw, 96px) auto 0;
}
.widgets img {
  position: absolute;
  border-radius: clamp(14px, 2.4vw, 28px);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .65)) drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
  transition: transform 1.2s var(--ease);
}
.widgets__xl { left: 17%; top: 0; width: 66%; }
.widgets__l { left: 0; top: 30%; width: 27%; z-index: 1; }
.widgets__m { right: 0; top: 58%; width: 31%; z-index: 1; }
.widgets.is-in .widgets__l { transform: translateY(-4%); }
.widgets.is-in .widgets__m { transform: translateY(-8%); }
@media (max-width: 700px) {
  .widgets { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .widgets img { position: static; width: 100%; }
  .widgets__xl { grid-column: 1 / -1; }
  .widgets__m { align-self: center; }
}

/* ─────────────────────────── Partout ─────────────────────────── */

.ecosystem {
  position: relative;
  display: flex; justify-content: center;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-right: min(8vw, 90px);
}
.device--companion { --w: clamp(150px, 17vw, 220px); position: absolute; right: max(0px, calc(50% - min(640px, 64vw) / 2 - 90px)); bottom: -6%; }
@media (max-width: 700px) {
  .ecosystem { padding-right: 0; }
  .device--ipad { --w: 82vw; }
  .device--companion { --w: 30vw; right: 0; }
}

.platforms {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0;
  margin-top: clamp(56px, 7vw, 80px);
}
.platforms li {
  padding: 0 22px;
  color: var(--text);
  font: 400 clamp(1.1rem, 1.8vw, 1.45rem)/1.2 var(--serif);
}
.platforms li + li { border-left: 1px solid var(--hair); }
@media (max-width: 560px) {
  .platforms { gap: 8px 20px; }
  .platforms li { padding: 0; }
  .platforms li + li { border-left: 0; }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.tile {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--hair);
}
.tile svg { width: 32px; height: 32px; fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile :is(h2, h3) { margin-top: 20px; font: 400 22px/1.2 var(--serif); }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ─────────────────────────── Premium ─────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-top: clamp(48px, 7vw, 80px);
  align-items: stretch;
}
.plan {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 30px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -36px var(--shade);
  overflow: hidden;
}
.plan__name { color: var(--brass); font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.plan__price { margin-top: 14px; font: 400 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); }
.plan__sub { margin-top: 14px; color: var(--muted); font-size: 15px; }
.plan__list { display: grid; gap: 12px; margin-top: 28px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 16px; }
.plan__list li::before {
  content: "";
  position: absolute; left: 2px; top: 6px;
  width: 6px; height: 11px;
  border-right: 1.7px solid var(--brass);
  border-bottom: 1.7px solid var(--brass);
  transform: rotate(40deg);
}
.plan--premium {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(245, 158, 72, .12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 236, 205, .018) 0 1px, transparent 1px 13px),
    #0e0c0a;
  box-shadow: 0 0 0 1px rgba(199, 158, 98, .3), 0 50px 90px -40px rgba(40, 24, 10, .7);
}
.plan--premium::before {
  content: "";
  position: absolute; top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd49a 12%, #ffe7c4 50%, #ffd49a 88%, transparent);
  box-shadow: 0 0 12px 1px rgba(255, 196, 120, .6);
}
.plan__list--rich { gap: 20px; }
.plan__list--rich li { padding-left: 30px; }
.plan__list--rich strong { display: block; font-weight: 600; font-size: 16.5px; color: var(--text); }
.plan__list--rich span { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan--premium .button { margin-top: 34px; }
.plans__note { margin-top: 22px; text-align: center; color: var(--faint); font-size: 13.5px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin: clamp(80px, 10vw, 128px) auto 0; }
.faq__title { margin-bottom: 18px; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); text-align: center; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 14px; height: 1.6px;
  background: var(--brass);
  transition: transform .35s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); line-height: 1.65; }

/* ─────────────────────────── Final ─────────────────────────── */

.outro {
  position: relative;
  display: grid; place-items: center;
  min-height: 92vh;
  padding: 120px var(--gutter) 110px;
  color: var(--text);
  text-align: center;
  overflow: clip;
}
.outro__glow {
  position: absolute; inset: 0;
  background: radial-gradient(40% 40% at 50% 38%, rgba(245, 158, 72, .1), transparent 70%);
  pointer-events: none;
}
.outro__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.outro__bottle {
  width: 48px; height: 178px;
  fill: none;
  stroke: url(#or-outro);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(236, 190, 120, .45));
  overflow: visible;
}
.outro__bottle path { vector-effect: non-scaling-stroke; }
.js .outro__bottle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .outro__bottle.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-in-out) .2s; }
.wordmark {
  margin-top: 30px;
  font: italic 400 clamp(4.4rem, 13vw, 9.5rem)/1 var(--serif);
  letter-spacing: -.03em;
  padding: 0 .08em .08em;
  background: linear-gradient(100deg, #f3d9a4 0%, #c79e62 45%, #8a6534 85%, #c79e62 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outro__tagline {
  margin-top: 18px;
  color: var(--muted);
  font: 500 13px/1.4 var(--sans);
  font-stretch: 125%;
  letter-spacing: .5em;
  text-transform: uppercase;
  padding-left: .5em;
}
.outro .badge { margin-top: 48px; }
.outro__meta { margin-top: 20px; color: var(--faint); font-size: 14px; }
.definition {
  max-width: 30rem;
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font: 400 17px/1.6 var(--serif);
}
.definition b { color: var(--text); font-weight: 600; }
.definition i { color: var(--brass); }
.definition span { display: block; margin-top: 4px; font-style: italic; color: var(--faint); }

/* ─────────────────────────── Pied de page ─────────────────────────── */

.footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 13px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand lang" "links links" "health health" "legal legal";
  gap: 24px;
  align-items: center;
}
.footer__brand { grid-area: brand; display: flex; align-items: center; gap: 12px; }
.footer__brand img { border-radius: 9px; }
.footer__name { color: var(--text); font: italic 400 20px/1 var(--serif); }
.footer__copy { margin-top: 4px; color: var(--faint); font-size: 12.5px; }
.footer__langs { grid-area: lang; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.footer__langs button {
  height: 28px; padding: 0 11px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.footer__langs button:hover { color: var(--text); }
.footer__langs button[aria-pressed="true"] { background: var(--veil); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); }
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; grid-template-areas: "brand" "lang" "links" "health" "legal"; }
  .footer__langs { justify-content: flex-start; margin-left: -11px; }
}
.footer__links { grid-area: links; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--text); font-size: 13.5px; text-decoration: none; opacity: .85; }
.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer__health { grid-area: health; color: var(--text); opacity: .8; }
.footer__legal { grid-area: legal; color: var(--faint); font-size: 12px; line-height: 1.6; max-width: 60rem; }

/* ─────────────────────────── Confidentialité ─────────────────────────── */

.legal-page { padding-top: calc(var(--nav-h) + clamp(72px, 11vh, 128px)); }
.legal__updated { margin-top: 22px; color: var(--faint); font-size: 13.5px; }
.tiles--legal { max-width: 980px; margin: clamp(48px, 7vw, 80px) auto 0; }
.legal { max-width: 44rem; margin: clamp(56px, 8vw, 96px) auto 0; }
.legal section + section { margin-top: 44px; }
.legal h2 { font: 400 clamp(1.5rem, 2.4vw, 1.85rem)/1.2 var(--serif); letter-spacing: -.01em; }
.legal p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.legal a, .legal-page .lead a { color: var(--brass-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__back { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hair); }
.link-arrow--back::after { transform: translateY(0) rotate(135deg); }
.link-arrow--back:hover::after { transform: translateX(-3px) rotate(135deg); }
.link-arrow--back { flex-direction: row-reverse; }

/* ─────────────────────────── Page introuvable ─────────────────────────── */

.notfound { min-height: 100svh; }
.notfound .outro__bottle { margin-bottom: 36px; }
.notfound .display { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.notfound .lead { margin-inline: auto; }
.notfound__home { margin-top: 40px; }

/* ─────────────────────────── Langues ─────────────────────────── */

/* Allemand : mots composés longs, césure dans les paragraphes et les grands titres. */
:lang(de) .lead, :lang(de) p, :lang(de) dd, :lang(de) li, :lang(de) h3 { hyphens: auto; -webkit-hyphens: auto; }
:lang(de) .display { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Japonais : pas d’italique synthétique ni d’approche serrée, coupures par groupes de mots. */
:lang(ja) .display, :lang(ja) h3 { letter-spacing: 0; }
:lang(ja) .display { line-height: 1.16; word-break: auto-phrase; }
:lang(ja) .hero .display { font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: 1.1; }
:lang(ja) .display em, :lang(ja) .story__index, :lang(ja) .art__dust, :lang(ja) .definition span { font-style: normal; }
:lang(ja) .lead, :lang(ja) p, :lang(ja) li, :lang(ja) dd { line-break: strict; word-break: auto-phrase; }
:lang(ja) .lead { line-height: 1.85; }
:lang(ja) .eyebrow, :lang(ja) .window__eyebrow, :lang(ja) .outro__tagline { letter-spacing: .2em; }

/* ─────────────────────────── Mouvement réduit ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; filter: none; transition: opacity .5s ease; }
  .hero .led, .hero__glow, [data-launch].is-done .launch__final { animation: none; }
  .slot--left, .slot--right { transform: none !important; }
  .scan__label { transform: none; }
  .scan__fields li, .scan__corner { transition: none; }
  .scan.is-playing .scan__beam { animation: none; }
  .js .outro__bottle path { stroke-dashoffset: 0; }
}
