/* ==========================================================================
   ATELIER LUNE — Calibre 07 « Lunaison »
   Encre de nuit, ivoire, or. Instrument Serif pour la voix, JetBrains Mono pour la précision.
   ========================================================================== */

:root {
  --ink: #0b0d12;
  --ink-2: #12151c;
  --ink-3: #1c2029;
  --ink-4: #2b303b;
  --ivory: #efe8dc;
  --ivory-60: rgba(239, 232, 220, 0.6);
  --ivory-45: rgba(239, 232, 220, 0.45);
  --line: rgba(239, 232, 220, 0.12);
  --line-strong: rgba(239, 232, 220, 0.24);
  --paper: #f3efe7;
  --graphite: #16181d;
  --gold: #d9a85b;
  --gold-hi: #f2d9a8;

  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(96px, 12vw, 176px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100vw; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--mono); font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; color: var(--ivory); background: var(--ink); -webkit-font-smoothing: antialiased; }
.nav-open body { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; background: var(--gold); color: var(--ink); transform: translateY(-180%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 92px); line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.h2 em, .serif-i { font-style: italic; color: var(--gold-hi); }
.lead { font-size: 14px; line-height: 1.8; color: var(--ivory-60); max-width: 46ch; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head > div { display: flex; flex-direction: column; gap: 20px; }

/* Boutons : plaque angulaire (coin coupé), remplissage or au survol */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; border: 0; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: color .25s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-io); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--ivory); }
.btn--line { color: var(--gold); background: rgba(11, 13, 18, 0.4); box-shadow: inset 0 0 0 1px rgba(217, 168, 91, 0.55); }
.btn:hover::before { transform: scaleX(1); }
.btn--line:hover { color: var(--ink); }

/* Chargement */
.loader { display: none; }
.motion .loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink); transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__moon { width: 96px; height: 96px; }
.loader__word { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.loader__bar { width: 200px; height: 1px; background: var(--ink-4); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.header.is-solid { background: rgba(11, 13, 18, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; }
.brand svg { width: 13px; height: 13px; }
.nav__list { display: flex; gap: 36px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav__list a:not(.btn) { position: relative; color: var(--ivory-60); transition: color .2s var(--ease); }
.nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__list a:not(.btn):hover { color: var(--gold); }
.nav__list a:not(.btn):hover::after { transform: scaleX(1); }
.nav__mobile-cta { display: none; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header__cta { min-height: 42px; padding: 0 18px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero triptyque
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; }
.triptych { position: absolute; inset: calc(var(--header-h) + 2px) 12px 12px; display: flex; gap: 8px; }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; background: var(--ink-2); transition: flex-grow 1.1s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.panel.is-active { flex-grow: 2.6; }
.panel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.6) brightness(.55); transition: transform 1.6s var(--ease), filter 1.1s var(--ease); }
.panel.is-active .panel__video { transform: none; filter: none; }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 18, .5) 0%, transparent 26%, transparent 45%, rgba(11, 13, 18, .92) 100%); }
.panel__tag { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.panel__tag b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--gold); letter-spacing: 0; }
.panel__meta { position: absolute; top: 20px; right: 20px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-60); white-space: nowrap; opacity: 0; transition: opacity .6s var(--ease) .2s; }
.panel.is-active .panel__meta { opacity: 1; }
.motion .hero:not(.is-revealed) .panel { clip-path: inset(100% 0 0 0); }

.hero__content { position: absolute; left: calc(12px + clamp(20px, 3vw, 48px)); right: calc(12px + clamp(20px, 3vw, 48px)); bottom: calc(12px + clamp(24px, 3.4vw, 52px)); z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 10vw, 176px); line-height: 0.86; letter-spacing: -0.03em; }
.hero__lead { max-width: 52ch; font-size: 13px; line-height: 1.8; color: rgba(239, 232, 220, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.tonight { position: absolute; right: calc(12px + clamp(20px, 3vw, 48px)); bottom: calc(12px + clamp(24px, 3.4vw, 52px)); z-index: 3; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  background: rgba(11, 13, 18, .62); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tonight svg { width: 58px; height: 58px; flex-shrink: 0; }
.tonight__label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.tonight__value { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.tonight__sub { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-45); }

.cursor-orb { position: fixed; top: 0; left: 0; z-index: 70; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; opacity: 0; transform: scale(.4);
  border: 1px solid rgba(217, 168, 91, .7); color: var(--gold); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(11, 13, 18, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.cursor-orb.is-on { opacity: 1; transform: scale(1); }
@media (hover: none), (max-width: 1023px) { .cursor-orb { display: none; } }

.motion [data-hero-fade] { opacity: 0; transform: translateY(18px); }
.word { display: inline-block; }
.motion [data-split] .word { opacity: 0; transform: translateY(18px); filter: blur(6px); }

/* ==========================================================================
   Lunaison — section épinglée
   ========================================================================== */
.lunaison { position: relative; height: 420vh; background: var(--ink); }
.lunaison__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stars { position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 34% 72%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 64%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 56% 30%, #f2d9a8 50%, transparent 51%), radial-gradient(1px 1px at 22% 46%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 8%, #fff 50%, transparent 51%); }
.lunaison__moon { position: absolute; left: 50%; top: 50%; width: min(64vh, 46vw); aspect-ratio: 1; transform: translate(-50%, -50%); }
.lunaison__moon svg { width: 100%; height: 100%; }
.lunaison__ticks line { stroke: rgba(239, 232, 220, .18); stroke-width: .8; transition: stroke .4s var(--ease); }
.lunaison__ticks line.is-on { stroke: var(--gold); }
.lunaison__ticks line.is-now { stroke: var(--gold-hi); stroke-width: 1.6; }
.lunaison__ticks text { font-family: var(--mono); font-size: 5px; letter-spacing: .5px; fill: rgba(239, 232, 220, .4); }
.lunaison__pct { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; color: var(--ivory-45); }
.chap { position: absolute; top: 50%; transform: translateY(-50%); width: min(380px, 28vw); display: flex; flex-direction: column; gap: 14px; }
.chap[data-chap="0"], .chap[data-chap="2"] { left: var(--gutter); }
.chap[data-chap="1"], .chap[data-chap="3"] { right: var(--gutter); }
.chap__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5vw, 84px); line-height: .9; letter-spacing: -0.02em; }
.chap__title em { color: var(--gold-hi); }
.chap__text { font-size: 13px; color: var(--ivory-60); }
.chap__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 6px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.motion .chap { opacity: 0; visibility: hidden; }
.motion .chap[data-chap="0"] { opacity: 1; visibility: visible; }
.lunaison__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--ink-4); }
.lunaison__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
html:not(.motion) .lunaison { height: auto; }
html:not(.motion) .lunaison__stage { position: relative; height: auto; display: grid; gap: 64px; padding: var(--section-y) var(--gutter); }
html:not(.motion) .lunaison__moon { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; width: min(320px, 70vw); }
html:not(.motion) .chap { position: relative; top: auto; left: auto; right: auto; transform: none; width: auto; max-width: 560px; }
html:not(.motion) .lunaison__progress, html:not(.motion) .stars { display: none; }

/* ==========================================================================
   Configurateur
   ========================================================================== */
.config { background: var(--paper); color: var(--graphite); }
.config .eyebrow { color: #9a6f2c; } .config .eyebrow::before { background: #9a6f2c; }
.config .h2 em { color: #9a6f2c; }
.config .lead { color: rgba(22, 24, 29, .62); }
.config__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.config__visual { position: relative; aspect-ratio: 1168 / 880; background: var(--ink); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.config__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.config__img.is-on { opacity: 1; transform: none; }
.config__stock { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); background: rgba(11, 13, 18, .7); }
.config__panel { display: flex; flex-direction: column; gap: 26px; }
.opt { border: 0; display: grid; gap: 10px; }
.opt legend { margin-bottom: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(22, 24, 29, .55); }
.opt__card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; border: 1px solid rgba(22, 24, 29, .14); transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.opt__card input, .chip input, .toggle input { position: absolute; opacity: 0; pointer-events: none; }
.opt__card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; }
.opt__card small { font-size: 11px; color: rgba(22, 24, 29, .6); }
.opt__card i { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.opt__card:has(input:checked) { border-color: var(--graphite); background: #fff; }
.opt__card:has(input:focus-visible), .chip:has(input:focus-visible), .toggle:has(input:focus-visible) { outline: 2px solid #9a6f2c; outline-offset: 2px; }
.opt--row { grid-template-columns: repeat(3, auto); justify-content: start; }
.chip { cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(22, 24, 29, .18); transition: background-color .25s var(--ease), color .25s var(--ease); }
.chip input:checked + span { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.toggle { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.toggle__ui { position: relative; flex-shrink: 0; width: 44px; height: 24px; margin-top: 2px; border-radius: 12px; background: rgba(22, 24, 29, .18); transition: background-color .25s var(--ease); }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.toggle input:checked + .toggle__ui { background: #9a6f2c; }
.toggle input:checked + .toggle__ui::after { transform: translateX(20px); }
.toggle b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.toggle small { font-size: 12px; color: rgba(22, 24, 29, .6); }
.config__total { padding-top: 20px; border-top: 1px solid rgba(22, 24, 29, .18); }
.config__total > p:first-child { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(22, 24, 29, .55); }
.config__price { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.config__price small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: rgba(22, 24, 29, .55); }
.config__note { margin-top: 6px; font-size: 12px; color: rgba(22, 24, 29, .6); }
.config__cta { align-self: flex-start; }

/* ==========================================================================
   Votre lune
   ========================================================================== */
.mylune__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mylune__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mylune__form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-45); }
.field i { font-style: normal; opacity: .7; }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 14px; font-size: 14px; background: rgba(239, 232, 220, .04); border: 1px solid var(--line-strong); color: var(--ivory); color-scheme: dark; border-radius: 0; appearance: none; resize: vertical; transition: border-color .25s var(--ease); }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.mylune__result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--line-strong); }
.mylune__result div { padding: 14px 0; }
.mylune__result dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-45); }
.mylune__result dd { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.mylune__visual { position: relative; aspect-ratio: 1; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.mylune__visual img { width: 100%; height: 100%; object-fit: cover; }
.mylune__engrave { position: absolute; left: 50%; top: 50%; width: 52%; transform: translate(-50%, -50%); }
.mylune__engrave text { font-family: var(--mono); font-size: 7px; letter-spacing: 1.5px; fill: rgba(242, 217, 168, .8); }
.mylune__visual figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-45); }
.mylune__engrave path { transition: d .8s var(--ease); }

/* ==========================================================================
   Atelier · étapes
   ========================================================================== */
.atelier { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); filter: saturate(.85); transition: filter .6s var(--ease); }
.step:hover img { filter: none; }
.step__n { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; }
.step p:last-child { font-size: 13px; color: var(--ivory-60); }

/* ==========================================================================
   Édition · tournée
   ========================================================================== */
.edition { background: var(--ink-2); }
.edition__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.edition__grid > div { display: flex; flex-direction: column; gap: 24px; }
.meter__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-60); margin-bottom: 10px; }
.meter__head b { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ivory); letter-spacing: 0; }
.meter__bar { height: 2px; background: var(--ink-4); }
.meter__bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--gold); transform-origin: left; }
.motion .meter__bar span { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.motion .meter.is-in .meter__bar span { transform: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.facts div { padding: 16px 0; }
.facts dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-45); }
.facts dd { font-family: var(--serif); font-size: 26px; }
.tour li { display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.tour li:last-child { border-bottom: 1px solid var(--line); }
.tour span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-45); }
.tour b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.tour small { font-size: 11px; color: var(--ivory-45); text-align: right; }
.tour .is-past { opacity: .45; }
.tour .is-next span { color: var(--gold); }
.tour .is-next b::after { content: " · prochaine étape"; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); vertical-align: middle; }

/* ==========================================================================
   Réserver
   ========================================================================== */
.reserve { position: relative; padding-block: var(--section-y); overflow: hidden; isolation: isolate; }
.reserve__bg { position: absolute; inset: 0; z-index: -1; }
.reserve__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.reserve__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 13, 18, .6) 35%, rgba(11, 13, 18, .82) 70%, var(--ink) 100%); }
.reserve__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: start; }
.reserve__intro { display: flex; flex-direction: column; gap: 22px; }
.summary { padding: 20px 22px; border: 1px solid rgba(217, 168, 91, .45); background: rgba(11, 13, 18, .55); }
.summary__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.summary__value { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.summary__price { font-size: 13px; color: var(--ivory-60); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3vw, 40px); background: rgba(18, 21, 28, .82); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.field--full { grid-column: 1 / -1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ivory-60); }
.consent input { margin-top: 4px; accent-color: var(--gold); }
.form-status { font-size: 13px; color: var(--gold-hi); min-height: 1em; }
.form-status.is-error { color: #ff9a7a; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ivory-60); max-width: 60ch; }

/* Footer */
.footer { padding-block: 72px 36px; border-top: 1px solid var(--line); }
.footer__grid { display: flex; flex-direction: column; gap: 32px; }
.footer__word { font-family: var(--serif); font-size: clamp(64px, 11vw, 190px); line-height: .85; letter-spacing: -0.03em; }
.footer__word em { color: var(--gold); }
.footer__legal { font-size: 11px; letter-spacing: .1em; color: var(--ivory-45); }
.footer__legal a { color: var(--gold); }

/* Révélations */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__list { gap: 22px; }
  .header__cta { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .chap { width: min(340px, 34vw); }
}
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
  .nav-open .nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a:not(.btn) { display: block; padding: 8px 0; font-family: var(--serif); font-size: clamp(36px, 9vw, 52px); letter-spacing: -0.01em; text-transform: none; color: var(--ivory); }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__mobile-cta { display: block; margin-top: 28px; }
  .nav__mobile-cta .btn { width: 100%; }
  .section-head, .config__grid, .mylune__grid, .edition__grid, .reserve__grid, .faq__grid { grid-template-columns: 1fr; }
  .tonight { display: none; }
  /* Lunaison : lune en haut, chapitres en bas */
  .lunaison__moon { top: 30%; width: min(42vh, 70vw); }
  .chap, .chap[data-chap="0"], .chap[data-chap="1"], .chap[data-chap="2"], .chap[data-chap="3"] { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 60px; transform: none; }
  .chap__img { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hero { min-height: 640px; }
  .triptych { inset: calc(var(--header-h) + 2px) 8px 8px; flex-direction: column; gap: 6px; }
  .panel.is-active { flex-grow: 4.2; }
  .panel__meta { display: none; }
  /* Voile sous le texte : les bandes vidéo restent lisibles derrière le titre */
  .hero::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 64%; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 13, 18, 0) 0%, rgba(11, 13, 18, .78) 38%, rgba(11, 13, 18, .95) 100%); }
  .hero__content { left: 22px; right: 22px; bottom: 22px; gap: 12px; }
  .hero__title { font-size: clamp(54px, 17vw, 84px); }
  .hero__lead { font-size: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .lunaison { height: 360vh; }
  .opt--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip span { width: 100%; justify-content: center; padding: 0 6px; font-size: 10px; }
  .config__cta, .mylune__text .btn { width: 100%; }
  .mylune__result { grid-template-columns: 1fr 1fr 1fr; }
  .mylune__result dd { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .tour li { grid-template-columns: 1fr; gap: 4px; }
  .tour small { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts dd { font-size: 20px; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
