/*
 * Maestria — la charte de l'app, portée sur le web.
 * Source : maestria-native/src/constants/theme.ts et la passation design
 * (« la fenêtre »). Le fond est un mur la nuit ; la seule surface claire
 * d'un écran est la plaque d'ivoire ; seule la lumière bouge.
 *
 * Règles typographiques de l'app, tenues ici :
 *   Cormorant Garamond jamais sous 18 px en 300 ; italique jamais sous 16 px ;
 *   graisse 300 jamais sous 16 px (en dessous, Spectral 400).
 */

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

:root {
  --wall: #000000;
  --ivory: #EDE7DC;
  --ink-95: rgba(237, 231, 220, 0.95);
  --ink-80: rgba(237, 231, 220, 0.80);
  --ink-62: rgba(237, 231, 220, 0.62);
  --ink-45: rgba(237, 231, 220, 0.45);
  --ink-22: rgba(237, 231, 220, 0.22);
  --ink-12: rgba(237, 231, 220, 0.12);
  --ink-06: rgba(237, 231, 220, 0.06);
  --plate-ink: #16130E;
  --lamp: 217, 165, 91;

  --display: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
  --body: 'Spectral', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --filament: cubic-bezier(0.9, 0, 0.1, 1);

  --gutter: clamp(22px, 6vw, 96px);
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--wall); }
[hidden] { display: none !important; }

body {
  background: var(--wall);
  color: var(--ink-80);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Le mur n'est pas un aplat : un grain très bas, fixe, comme une pièce la nuit. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: var(--grain-light); opacity: 0.045;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1px solid var(--ink-80); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ── Voix ─────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--body); font-weight: 400; font-size: 12px; line-height: 1.4;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-45);
}
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 300; color: var(--ink-95);
  letter-spacing: -0.02em; text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--ink-62); }
h1 { font-size: clamp(44px, 5.6vw, 86px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.02; }
h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.lede { font-style: italic; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--ink-80); max-width: 32em; text-wrap: pretty; }
p { text-wrap: pretty; }
.muted { color: var(--ink-62); }
.small { font-family: var(--body); font-weight: 400; font-size: 13.5px; letter-spacing: 0.02em; color: var(--ink-45); }
.engraved { text-shadow: 0 -0.034em 0 rgba(0, 0, 0, 0.9), 0 0.034em 0 rgba(237, 231, 220, 0.16); }

/* ── La plaque d'ivoire : la seule surface claire, la seule action ────── */
.plate, .btn {
  --h: 62px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 0 calc(var(--h) * 0.95) 0 calc(var(--h) * 0.95 + 0.32em);
  font-family: var(--body); font-weight: 400; font-size: 13px; line-height: 1;
  letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--plate-ink); border: 0; cursor: pointer;
  background-color: var(--ivory);
  background-image: var(--grain-dark), linear-gradient(180deg, #F4EFE7 0%, #EAE3D6 48%, #D9D1C2 100%);
  clip-path: polygon(calc(var(--h) * 0.3) 0, calc(100% - var(--h) * 0.3) 0, 100% 50%, calc(100% - var(--h) * 0.3) 100%, calc(var(--h) * 0.3) 100%, 0 50%);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.plate:hover, .btn:hover { filter: brightness(1.04); }
.plate:active, .btn:active { transform: scale(0.985) translateY(1px); filter: brightness(0.88); }
.plate:focus-visible, .btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--plate-ink); }
.plate[disabled], .plate[aria-disabled="true"] { filter: brightness(0.6); cursor: default; pointer-events: none; }
.plate.small-plate { --h: 52px; font-size: 12px; }
.plate.wide { width: 100%; }

/* Lien gravé : l'action secondaire, jamais une seconde plaque. */
.etched, .btn-ghost {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 0;
  font-family: var(--body); font-weight: 400; font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-80); text-decoration: none; background: none; border: 0; border-bottom: 0.5px solid var(--ink-45);
  cursor: pointer; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); min-height: 44px;
  clip-path: none;
}
.etched::after, .btn-ghost::after { content: "→"; letter-spacing: 0; transition: transform 0.3s var(--ease); }
.etched:hover, .btn-ghost:hover { color: var(--ivory); border-color: var(--ivory); filter: none; }
.etched:hover::after, .btn-ghost:hover::after { transform: translateX(4px); }
.etched.quiet::after { content: none; }

.cta { display: grid; gap: 14px; justify-items: start; }
.link-note { font-size: 15px; font-style: italic; color: var(--ink-62); min-height: 1.4em; }
.assurance { font-family: var(--body); font-weight: 400; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-45); }

/* ── Les pièces fondatrices : ce qui reste, dit avec un vrai chiffre ──── */
.founding { display: grid; gap: 10px; max-width: 420px; }
.founding .count { font-family: var(--display); font-weight: 300; font-size: 22px; color: var(--ink-95); }
.founding .count b { font-weight: 400; font-style: italic; }
.founding .small { line-height: 1.5; }

/* ── Héros : un mur, une édition sous la lampe ───────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 880px);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center;
  gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 5vh, 60px) var(--gutter) clamp(40px, 6vh, 80px);
  max-width: 1500px; margin: 0 auto;
}
.hero-text { display: grid; gap: clamp(20px, 3vh, 30px); align-content: center; }
.hero > .window { justify-self: center; }

/* La barre de paiement du téléphone : le total et le bouton restent sous le pouce. */
.paybar { display: none; }
.artwork { justify-self: end; width: 100%; max-width: 760px; display: grid; gap: 12px; }
.artwork img { width: 100%; height: auto; display: block; }
.artwork figcaption { font-family: var(--body); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-45); text-align: right; }

/* L'offre d'un clic, après le paiement. */
.oto { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.oto-figure img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.oto .includes li { justify-content: flex-start; }
.wordmark { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: 0.02em; color: var(--ink-80); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.price-line .num { font-family: var(--display); font-weight: 300; font-size: 34px; color: var(--ink-95); letter-spacing: -0.01em; }

.edition-figure { position: relative; justify-self: end; width: 100%; display: grid; gap: 14px; }
.edition-figure img { width: 100%; height: auto; box-shadow: 0 0 0 0.5px var(--ink-12), 0 80px 160px -80px rgba(var(--lamp), 0.25); }
.edition-figure figcaption { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 19px; color: var(--ink-62); text-align: right; }

/* La fenêtre (pages secondaires) */
.window {
  position: relative; justify-self: center; width: min(100%, 460px);
  aspect-ratio: 0.62; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 0.5px var(--ink-22), 0 60px 160px -60px rgba(var(--lamp), 0.28);
}
.window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0.55), inset 0 0 60px 10px rgba(0, 0, 0, 0.7);
}
.window.scene { aspect-ratio: 600 / 683; width: min(100%, 520px); }
.window.scene img { object-position: 50% 50%; }

/* Seule la lumière bouge : allumage en courbe de filament, puis respiration. */
@media (prefers-reduced-motion: no-preference) {
  .window img, .edition-figure img { animation: allumage 3.2s var(--filament) 0.2s both, souffle 9s ease-in-out 3.4s infinite alternate; }
  .hero-text > * { animation: monte 1.1s var(--ease) both; }
  .hero-text > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.24s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.36s; }
  .hero-text > *:nth-child(5) { animation-delay: 0.48s; }
  .hero-text > *:nth-child(6) { animation-delay: 0.6s; }
}
@keyframes allumage { from { filter: brightness(0.18); } to { filter: brightness(1); } }
@keyframes souffle { from { filter: brightness(1); } to { filter: brightness(0.92); } }
@keyframes monte { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Pages secondaires ────────────────────────────────────────────────── */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 26px var(--gutter); }
.topbar .wordmark { text-decoration: none; }
.page-top { padding: clamp(36px, 8vh, 96px) 0 clamp(72px, 11vh, 130px); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(84px, 12vh, 150px) 0; position: relative; }
.section + .section { border-top: 0.5px solid var(--ink-12); }
.section.tight { padding: clamp(56px, 8vh, 96px) 0; }
.stack { display: grid; gap: 26px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vh, 64px); }
.head p { max-width: 34em; }

/* L'édition debout : une image qui appartient au mur, sans cadre. */
.bundle { margin: 0 auto clamp(40px, 6vh, 72px); max-width: 1100px; display: grid; gap: 12px; }
.bundle img { width: 100%; height: auto; display: block; }
.bundle figcaption { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 19px; color: var(--ink-62); text-align: center; }
.bundle.compact { max-width: 760px; margin-bottom: clamp(20px, 4vh, 40px); }

/* L'édition : six objets, six lignes. */
.edition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px) clamp(18px, 3vw, 40px); }
.item { display: grid; gap: 12px; align-content: start; }
.item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #000; }
.item b { font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1.1; color: var(--ink-95); }
.item span { font-size: 16px; color: var(--ink-62); line-height: 1.55; }
.item .worth { font-family: var(--body); font-weight: 400; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-45); }

/* Le mur des vies : une façade qui dérive, une fenêtre par âme. */
.facade { overflow: hidden; margin-top: clamp(40px, 6vh, 64px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.facade-track { display: flex; gap: clamp(18px, 2.2vw, 34px); width: max-content; padding: 4px 0; }
@media (prefers-reduced-motion: no-preference) {
  .facade-track { animation: derive 150s linear infinite; }
  .facade:hover .facade-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .facade { overflow-x: auto; } }
@keyframes derive { to { transform: translateX(-50%); } }
.life { width: clamp(150px, 15vw, 214px); display: grid; gap: 12px; }
.life img { width: 100%; aspect-ratio: 600 / 683; object-fit: cover; box-shadow: 0 0 0 0.5px var(--ink-22); }
.life span { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 19px; color: var(--ink-45); }

/* Écouter : la pochette d'une pièce. */
.sleeve { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 880px; }
.soul-name { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(56px, 7vw, 104px); line-height: 0.9; color: var(--ink-95); letter-spacing: -0.02em; }
.soul-text { font-style: italic; font-size: 19px; line-height: 1.8; color: var(--ink-80); max-width: 34em; }
.disc {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background-color: var(--ivory); background-image: var(--grain-dark), radial-gradient(circle at 40% 30%, #F6F2EB, #DDD5C7);
  color: var(--plate-ink); transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.disc:hover { filter: brightness(1.04); }
.disc:active { transform: scale(0.97); filter: brightness(0.9); }
.disc svg { width: 22px; height: 22px; }

/* Les trois temps. */
.steps, .ritual { list-style: none; display: grid; counter-reset: s; }
.steps li, .ritual li { counter-increment: s; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 22px; padding: 28px 0; border-top: 0.5px solid var(--ink-22); }
.steps li::before, .ritual li::before { content: counter(s, upper-roman); font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 1; color: var(--ink-22); }
.steps h3, .ritual h3 { font-size: 30px; }
.steps p, .ritual p { grid-column: 2; color: var(--ink-62); font-size: 17px; max-width: 34em; }

/* Les promesses : deux plaques gravées. */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.promise { position: relative; padding: clamp(28px, 3.4vw, 44px); border: 0.5px solid var(--ink-22); display: grid; gap: 14px; align-content: start; }
.promise::before { content: ""; position: absolute; inset: 6px; border: 0.5px solid var(--ink-06); pointer-events: none; }
.promise h3 { font-family: var(--body); font-weight: 400; font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-62); }
.promise p { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; color: var(--ink-95); }
.promise .fine { font-family: var(--body); font-size: 14px; color: var(--ink-45); font-style: italic; line-height: 1.5; }

/* ── La soirée : le miroir, le témoin, le retournement ─────────────── */
.evening { display: grid; gap: clamp(22px, 3vh, 32px); max-width: 40em; }
.evening .prose { font-family: var(--display); font-weight: 300; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.45; color: var(--ink-80); text-wrap: pretty; }
.witness { margin: clamp(10px, 2vh, 18px) 0; padding-left: clamp(18px, 2.4vw, 28px); border-left: 0.5px solid var(--ink-45); display: grid; gap: 10px; }
.witness p { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; color: var(--ink-95); }
.witness .who { font-family: var(--body); font-size: 14px; color: var(--ink-45); line-height: 1.5; }
.turn { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.12; color: var(--ink-95); margin-top: clamp(8px, 1.5vh, 16px); text-wrap: balance; }
.turn em { font-style: italic; }

/* L'interlude : une seule phrase devant une scène. */
.interlude { position: relative; min-height: clamp(420px, 72vh, 720px); display: grid; align-items: end; overflow: hidden; }
.interlude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.interlude::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.25) 60%, #000 100%); z-index: 1; }
.interlude .wrap { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 110px); }
.interlude p { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(36px, 5vw, 76px); line-height: 1.02; color: var(--ink-95); max-width: 13em; letter-spacing: -0.02em; }
.interlude.painting img { object-position: 50% 30%; }
.interlude .credit { font-family: var(--body); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-45); margin-top: 18px; font-style: normal; }

/* L'offre. */
.offer-card { position: relative; border: 0.5px solid var(--ink-22); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.offer-card::before { content: ""; position: absolute; inset: 8px; border: 0.5px solid var(--ink-06); pointer-events: none; }
.offer-price { font-family: var(--display); font-weight: 300; font-size: clamp(64px, 7vw, 104px); line-height: 0.9; color: var(--ink-95); letter-spacing: -0.03em; }
.offer-price s { font-size: 0.42em; color: var(--ink-45); text-decoration-thickness: 0.5px; margin-left: 0.3em; letter-spacing: 0; vertical-align: 0.5em; }
.includes { list-style: none; display: grid; }
.includes li { padding: 12px 0; border-top: 0.5px solid var(--ink-12); font-size: 16.5px; color: var(--ink-80); display: flex; gap: 14px; justify-content: space-between; }
.includes li::before { content: "◇"; color: var(--ink-45); font-size: 13px; line-height: 1.9; }
.includes li span { flex: 1; }
.includes li i { font-style: italic; color: var(--ink-45); font-size: 14px; white-space: nowrap; }

/* L'échelle : deux paliers au-dessus, sans bouton. */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vh, 56px); border-top: 0.5px solid var(--ink-22); }
.ladder a, .ladder div { display: grid; gap: 4px; padding: 26px 22px 26px 0; text-decoration: none; border-left: 0.5px solid var(--ink-12); padding-left: 22px; transition: background 0.3s var(--ease); }
.ladder > :first-child { border-left: 0; padding-left: 0; }
.ladder a:hover { background: var(--ink-06); }
.ladder b { font-family: var(--display); font-weight: 300; font-size: 26px; color: var(--ink-95); line-height: 1.1; }
.ladder .p { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ink-80); }
.ladder .w { font-family: var(--body); font-weight: 400; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-45); }
.ladder .now b { color: var(--ivory); }

.aside-year { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding: 30px 0; border-top: 0.5px solid var(--ink-22); }

/* Questions. */
.faq details { border-top: 0.5px solid var(--ink-22); }
.faq details:last-child { border-bottom: 0.5px solid var(--ink-22); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.3vw, 30px); color: var(--ink-95); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 20px; color: var(--ink-45); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 26px; color: var(--ink-62); max-width: 40em; }

/* Formulaires : l'encre sur la vitre. */
.form { display: grid; gap: 30px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1.25; color: var(--ink-95); }
.field .hint { font-size: 15.5px; color: var(--ink-45); font-style: italic; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 0.5px solid var(--ink-45); border-radius: 0;
  color: var(--ink-95); font: 300 18px var(--body); padding: 12px 0; outline: none; transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ivory); }
fieldset.field { border: 0; }
.levels { display: grid; gap: 10px; margin-top: 10px; }
.levels label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; border: 0.5px solid var(--ink-22); padding: 16px 18px; cursor: pointer; font-family: var(--body); font-size: 17px; color: var(--ink-80); transition: border-color 0.3s var(--ease); }
.levels label:hover { border-color: var(--ink-62); }
.levels input { accent-color: #EDE7DC; margin-top: 6px; }
.levels b { font-weight: 400; color: var(--ink-95); }
.levels span span { display: block; font-size: 15.5px; color: var(--ink-62); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-style: italic; color: var(--ink-80); min-height: 1.5em; }

/* Listes génériques des pages secondaires. */
.items { list-style: none; display: grid; }
.items li { display: grid; gap: 4px; padding: 22px 0; border-top: 0.5px solid var(--ink-22); }
.items b { font-family: var(--display); font-weight: 300; font-size: 28px; color: var(--ink-95); }
.items span { color: var(--ink-62); font-size: 16.5px; }

/* ── La commande : l'étape avant le paiement ─────────────────────────── */
.order { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.order-main { display: grid; gap: clamp(40px, 6vh, 64px); }
.included { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); align-items: center; border: 0.5px solid var(--ink-22); padding: clamp(20px, 3vw, 32px); }
.included img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.included ul { list-style: none; display: grid; gap: 6px; font-size: 15.5px; color: var(--ink-62); }
.included ul li::before { content: "◇ "; color: var(--ink-45); font-size: 12px; }
.included b { font-family: var(--display); font-weight: 300; font-size: 30px; color: var(--ink-95); line-height: 1.05; display: block; margin-bottom: 8px; }

.addons { display: grid; gap: 14px; }
.addon { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 26px; gap: clamp(16px, 2.4vw, 28px); align-items: center; border: 0.5px solid var(--ink-22); padding: 18px; cursor: pointer; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.addon:hover { border-color: var(--ink-62); }
.addon.on { border-color: var(--ivory); background: var(--ink-06); }
.addon img { width: 112px; height: auto; aspect-ratio: 1; object-fit: cover; }
.addon .t { display: grid; gap: 4px; }
.addon b { font-family: var(--display); font-weight: 300; font-size: 26px; color: var(--ink-95); line-height: 1.1; }
.addon .t span { font-size: 15.5px; color: var(--ink-62); line-height: 1.5; }
.addon .price { font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1; color: var(--ink-95); white-space: nowrap; text-align: right; display: grid; gap: 4px; justify-items: end; }
.addon .price s { font-size: 15px; color: var(--ink-45); text-decoration-thickness: 0.5px; }
.toggle { width: 26px; height: 26px; border: 0.5px solid var(--ink-45); display: grid; place-items: center; color: var(--plate-ink); background: transparent; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.toggle svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.2s var(--ease); }
.addon.on .toggle { background: var(--ivory); border-color: var(--ivory); }
.addon.on .toggle svg { opacity: 1; }
.addon input { position: absolute; opacity: 0; pointer-events: none; }

.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 0.5px solid var(--ink-12); padding: clamp(22px, 3vw, 32px); text-decoration: none; transition: border-color 0.3s var(--ease); }
.invite:hover { border-color: var(--ink-45); }
.invite b { font-family: var(--display); font-weight: 300; font-size: 28px; color: var(--ink-95); line-height: 1.1; display: block; }
.invite p { font-size: 15.5px; color: var(--ink-62); margin-top: 6px; max-width: 36em; }

.summary { position: sticky; top: 24px; border: 0.5px solid var(--ink-22); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; min-width: 0; }
.summary > * { min-width: 0; }
.summary .plate { --h: 58px; padding: 0 22px; letter-spacing: 0.22em; font-size: 12.5px; }
.summary::before { content: ""; position: absolute; inset: 6px; border: 0.5px solid var(--ink-06); pointer-events: none; }
.summary .lines { display: grid; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 0.5px solid var(--ink-12); font-size: 16px; color: var(--ink-80); }
.summary .line:first-child { border-top: 0; }
.summary .line i { font-style: italic; color: var(--ink-45); font-size: 14px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 0.5px solid var(--ink-45); }
.summary .total b { font-family: var(--display); font-weight: 300; font-size: 40px; color: var(--ink-95); }
.summary .total span { font-family: var(--body); font-weight: 400; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-45); }
.summary .cta { justify-items: stretch; }
.summary .cta .plate { width: 100%; }
.summary .fine { font-size: 14px; color: var(--ink-45); font-style: italic; line-height: 1.5; }

#checkout { min-height: 520px; }
.checkout-frame { border: 0.5px solid var(--ink-22); padding: clamp(10px, 2vw, 22px); background: #000; }
.checkout-frame::after { content: ""; display: block; }

/* Pied de page. */
footer { border-top: 0.5px solid var(--ink-12); padding: 56px 0 72px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 26px; }
.footer-brand { font-family: var(--display); font-weight: 300; font-size: 28px; color: var(--ink-62); }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { font-family: var(--body); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-45); text-decoration: none; }
.footer-links a:hover { color: var(--ivory); }
.badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.badges a { line-height: 0; opacity: 0.85; transition: opacity 0.3s var(--ease); }
.badges a:hover { opacity: 1; }
.badges .ios img { height: 40px; width: auto; }
.badges .gp img { height: calc(40px * 250 / 168); width: auto; margin: calc(40px * -41 / 168); }

/* ── Petits écrans ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Le premier écran du téléphone : la promesse, le bouton, le prix — et le tableau derrière, pas au-dessus. */
  .hero { grid-template-columns: 1fr; min-height: 100svh; align-content: end; padding: 0 0 clamp(28px, 5svh, 48px); gap: 0; position: relative; isolation: isolate; }
  .hero-text { padding: 0 var(--gutter); position: relative; z-index: 1; gap: 16px; margin-top: 34svh; }
  .artwork { position: absolute; inset: 0; z-index: 0; max-width: none; margin: 0; display: block; }
  .artwork img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 28%; opacity: 0.62;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, rgba(0,0,0,0.55) 50%, transparent 72%); mask-image: linear-gradient(180deg, #000 0%, #000 34%, rgba(0,0,0,0.55) 50%, transparent 72%); }
  .artwork figcaption { position: absolute; right: var(--gutter); top: 14px; font-size: 10.5px; color: var(--ink-45); text-align: right; }
  .hero-text .more, .hero-text .founding .small { display: none; }
  .hero-text .lede { font-size: 18px; line-height: 1.5; }
  .hero-text .founding { gap: 8px; }
  .hero-text .founding .count { font-size: 19px; }
  .edition-figure { order: -1; width: 100%; }
  h2 { font-size: clamp(30px, 8vw, 40px); }
  .oto { grid-template-columns: 1fr; }
  .oto-figure { order: 2; max-width: 300px; margin: 0 auto; }
  .edition-figure img { box-shadow: none; }
  .edition-figure figcaption { display: none; }
  .window { order: -1; width: 100%; aspect-ratio: auto; height: 68svh; min-height: 440px; box-shadow: none; }
  .window::after { box-shadow: none; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 55%, #000 100%); }
  .window img { object-position: 50% 52%; }
  .split, .offer-card, .sleeve, .order, .included, .invite { grid-template-columns: 1fr; }
  .promises, .ladder { grid-template-columns: 1fr; }
  .ladder > * { border-left: 0; padding-left: 0; border-top: 0.5px solid var(--ink-12); }
  .ladder > :first-child { border-top: 0; }
  .steps li, .ritual li { grid-template-columns: 52px minmax(0, 1fr); }
  .steps li::before, .ritual li::before { font-size: 32px; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .edition-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .item b { font-size: 22px; }
  .item span { font-size: 14.5px; }
  .addon { grid-template-columns: 64px minmax(0, 1fr) 26px; gap: 12px 14px; padding: 14px; align-items: start; }
  .addon img { width: 64px; }
  .addon b { font-size: 20px; }
  .addon .t span { font-size: 14.5px; }
  .addon .price { grid-column: 2; grid-row: 2; justify-items: start; font-size: 22px; }
  .addon .toggle { grid-column: 3; grid-row: 1; margin-top: 4px; }
}
@media (max-width: 900px) {
  .paybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(0,0,0,0.92); border-top: 0.5px solid var(--ink-22); backdrop-filter: blur(10px); }
  .paybar .sum { display: grid; gap: 2px; }
  .paybar .sum span { font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-45); }
  .paybar .sum b { font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1; color: var(--ink-95); }
  .paybar .plate { --h: 50px; font-size: 12px; letter-spacing: 0.16em; padding: 0 22px; }
  body.has-paybar { padding-bottom: 96px; }
}
@media (max-width: 480px) {
  /* La plaque doit tenir dans 375 px moins les marges : espacement et embouts réduits. */
  .plate, .btn { --h: 56px; font-size: 12px; letter-spacing: 0.2em; padding: 0 calc(var(--h) * 0.5) 0 calc(var(--h) * 0.5 + 0.2em); max-width: 100%; }
  .offer-card, .included, .summary { padding: 26px 20px; }
  .etched, .btn-ghost { font-size: 12px; letter-spacing: 0.2em; }
  body { font-size: 17px; }
}
