/* =========================================================
   Maison Mazal · questionnaire de création
   Papier ivoire, encre chaude, rouge cire de sceau.
   ========================================================= */
:root {
  --paper: oklch(0.975 0.008 85);
  --paper-2: oklch(0.955 0.012 80);
  --paper-3: oklch(0.93 0.016 78);
  --ink: oklch(0.25 0.015 50);
  --ink-soft: oklch(0.47 0.015 55);
  --line: oklch(0.86 0.014 72);
  --seal: oklch(0.47 0.135 27);
  --seal-deep: oklch(0.38 0.115 25);
  --seal-wash: oklch(0.95 0.025 30);
  --gold: oklch(0.7 0.085 75);

  --font-display: "Cormorant Garamond", "Garamond", serif;
  --font-ui: "Instrument Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --gutter: clamp(16px, 5vw, 40px);
  --grain: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    var(--grain),
    radial-gradient(120% 70% at 50% 0%, transparent 55%, oklch(0.93 0.018 75 / 0.7)),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 38px; height: 38px; margin: -4px -2px -4px -6px; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-step {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--line);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--seal);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
body[data-step="0"] .progress,
body[data-step="0"] .top-step { visibility: hidden; }

/* ---------- Mise en page ---------- */
.layout {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.flow { padding: 28px 0 120px; }

.live { display: none; }

@media (min-width: 980px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
  }
  .flow { padding: 48px 0 140px; max-width: 38rem; }
  .live {
    display: block;
    position: sticky;
    top: 96px;
    margin-top: 56px;
  }
  body[data-step="0"] .live,
  body[data-step="10"] .live { visibility: hidden; }
  .mini { display: none; }
}

/* ---------- Typographie ---------- */
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--seal-deep); }

.lead {
  margin: 14px 0 0;
  max-width: 34rem;
  font-size: 1.04rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.step-head { margin-bottom: 28px; }

.q {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.q-note { font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }

.fine { margin: 14px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.hint { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Étapes ---------- */
.step { animation: rise 0.5s var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

.block { margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }

/* ---------- Accueil ---------- */
.hero { padding-top: 12px; }
.hero-seal {
  width: 112px;
  height: 112px;
  margin: -10px 0 14px -12px;
  transform-origin: 50% 60%;
  animation: stamp 1s var(--ease) both;
}
.hero-seal--big { width: 160px; height: 160px; margin: 0 0 10px; }

.phone {
  position: relative;
  flex: none;
  width: 86px;
  padding: 4px;
  border-radius: 17px;
  background: linear-gradient(145deg, oklch(0.36 0.01 60), oklch(0.18 0.01 60));
  box-shadow: inset 0 0 0 1px oklch(0.5 0.01 60), 0 14px 24px -12px oklch(0.25 0.02 50 / 0.55);
  transform: rotate(-5deg);
  transition: transform 0.6s var(--ease);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 22px;
  height: 6px;
  margin-left: -11px;
  border-radius: 999px;
  background: oklch(0.15 0.01 60);
  z-index: 1;
}

/* ---------- Soyez sûrs de vos choix ---------- */
.sure {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--seal-wash);
  font-size: 0.9rem;
}
.sure p { margin: 0; }
.sure-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--seal-deep); margin-bottom: 4px !important; }
.sure-seal { width: 56px; height: 56px; margin: -8px 0 0 -8px; }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.label { font-size: 0.86rem; font-weight: 500; }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(0.99 0.004 85);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--seal);
  box-shadow: 0 0 0 3px oklch(0.47 0.135 27 / 0.14);
}
.field input:disabled { opacity: 0.45; }
.field input::placeholder,
.field textarea::placeholder { color: oklch(0.65 0.012 60); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair .field { margin-top: 20px; }

.chips { display: flex; gap: 8px; }
.chips--wrap { flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--seal); flex: none; }
.check--small { margin-top: 14px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Le jour J ---------- */
.events { display: grid; gap: 10px; }
.event {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.25s, background 0.25s;
}
.event.is-on { border-color: var(--ink); background: var(--paper-2); }
.event-toggle { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; font-weight: 500; }
.event-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--seal); }
.event-fields { padding: 0 16px 18px; border-top: 1px dashed var(--line); }

/* ---------- Choix illustrés (ambiance, écriture) ---------- */
.styles,
.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .styles { grid-template-columns: repeat(3, 1fr); } }

.option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.4s var(--ease);
}
.option:hover { transform: translateY(-2px); }
.option[aria-pressed="true"] { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); background: var(--seal-wash); }
.option:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.option-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; line-height: 1.2; padding: 0 4px; }
.option-text { font-size: 0.78rem; color: var(--ink-soft); padding: 0 4px; }

.perso-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border: 1.5px dashed oklch(0.75 0.03 40);
  border-radius: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--seal);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, oklch(0.47 0.135 27 / 0.05) 10px 20px), var(--paper);
}

.option--font { justify-content: flex-end; min-height: 150px; padding: 18px 12px 14px; }
.font-names {
  display: block;
  margin-bottom: 4px;
  padding: 0 4px;
  font-size: 1.9rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.font-sample { font-size: 0.82rem; color: var(--ink-soft); padding: 0 4px 10px; }
.font-names--free { font-family: var(--font-display); font-style: italic; color: var(--seal); font-size: 2.4rem; }
.option--font[data-font="romantique"] .font-names { font-family: "Pinyon Script", cursive; font-size: 2.1rem; }
.option--font[data-font="romantique"] .font-sample { font-family: "EB Garamond", serif; font-size: 0.95rem; }
.option--font[data-font="classique"] .font-names { font-family: "Bodoni Moda", serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.15rem; }
.option--font[data-font="classique"] .font-sample { font-family: "EB Garamond", serif; font-style: italic; font-size: 0.95rem; }
.option--font[data-font="moderne"] .font-names { font-family: "Marcellus", serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 1.05rem; }
.option--font[data-font="moderne"] .font-sample { font-family: "Jost", sans-serif; font-weight: 300; letter-spacing: 0.08em; }
.option--font[data-font="manuscrit"] .font-names { font-family: "Parisienne", cursive; font-size: 1.9rem; }
.option--font[data-font="manuscrit"] .font-sample { font-family: "Lora", serif; font-style: italic; }

/* ---------- Palettes ---------- */
.palettes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .palettes { grid-template-columns: repeat(3, 1fr); } }

.palette {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.palette[aria-pressed="true"] { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); background: var(--seal-wash); }
.palette-dots { display: flex; }
.palette-dots i {
  width: 28px;
  height: 28px;
  margin-right: -7px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 2px var(--paper);
}
.palette .option-name { padding: 0; font-size: 1.05rem; }
.dot-plus {
  display: grid;
  place-items: center;
  background: var(--paper-3) !important;
  color: var(--seal);
  font-style: normal;
  font-size: 1.1rem;
}

.custom-colors { margin-top: 22px; }
.color-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch-pick { position: relative; width: 48px; height: 48px; cursor: pointer; }
.swatch-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch-pick span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line);
}
.swatch-btn {
  width: 40px;
  height: 40px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
}

.mini { display: flex; align-items: center; gap: 18px; margin: -6px 0 22px; }
.mini-preview { width: 128px; flex: none; }
.mini .hint { margin: 0; max-width: 14rem; }
@media (min-width: 980px) { .mini { display: none; } }

/* ---------- Inspirations ---------- */
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 28px 16px;
  border: 1.5px dashed oklch(0.78 0.025 50);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.drop:hover { border-color: var(--seal); background: var(--seal-wash); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.is-full { pointer-events: none; opacity: 0.5; }
.drop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}
.drop-title { font-family: var(--font-display); font-size: 1.25rem; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; margin: 0; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: oklch(0.25 0.015 50 / 0.75);
  color: var(--paper);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Récapitulatif ---------- */
.recap {
  margin: 28px 0 0;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.recap div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.recap div:last-child { border-bottom: 0; }
.recap dt { font-size: 0.8rem; color: var(--ink-soft); }
.recap dd { margin: 0; font-size: 0.92rem; }

/* ---------- Remerciement ---------- */
.step--thanks { padding-top: 10vh; text-align: center; display: grid; justify-items: center; }
.step--thanks .lead { margin-inline: auto; }

/* ---------- Erreur et navigation ---------- */
.error {
  margin: 22px 0 0;
  color: var(--seal);
  font-size: 0.9rem;
  font-weight: 500;
}
.error:empty { display: none; }
.is-invalid { animation: nudge 0.4s var(--ease); }
.field.is-invalid input,
.field.is-invalid textarea,
input.is-invalid { border-color: var(--seal); }
@keyframes nudge {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.nav [data-next] { margin-left: auto; }

@media (min-width: 980px) {
  .nav {
    position: static;
    margin-top: 40px;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: 0;
  }
}

/* Boutons de papeterie : carton rouge cire, filet doré gravé à l'intérieur,
   capitales espacées et une flèche qui avance au survol. */
.btn {
  --btn-bg: var(--seal-deep);
  --btn-rule: oklch(0.82 0.08 80 / 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 2px;
  background: var(--btn-bg);
  box-shadow:
    inset 0 0 0 4px var(--btn-bg),
    inset 0 0 0 5px var(--btn-rule),
    0 1px 1px oklch(0.3 0.05 30 / 0.25),
    0 12px 22px -16px oklch(0.3 0.08 28 / 0.8);
  color: oklch(0.97 0.015 80);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.3s var(--ease);
}
.btn::after {
  content: "→";
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.45s var(--ease);
}
.btn:hover { --btn-bg: var(--ink); --btn-rule: oklch(0.8 0.09 80); }
.btn:hover::after { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.hero-cta::after { content: "↓"; }
.hero-cta:hover::after { transform: translateY(4px); }

/* Retour : un simple lien en italique, sans cadre */
.btn--ghost {
  gap: 10px;
  padding: 0 4px;
  background: none;
  box-shadow: none;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.btn--ghost::after { content: none; }
.btn--ghost::before { content: "←"; font-style: normal; font-size: 1rem; transition: transform 0.45s var(--ease); }
.btn--ghost:hover { --btn-bg: transparent; color: var(--ink); }
.btn--ghost:hover::before { transform: translateX(-4px); }

/* ---------- Aperçu en direct ---------- */
.live-card { width: 100%; }
.live-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--ink-soft); }

/* =========================================================
   Faire-part miniature : un univers + une palette + une écriture
   Les tailles suivent la largeur de la carte (unités cqi).
   ========================================================= */
.invite {
  --f-names: "Pinyon Script", cursive;
  --f-text: "EB Garamond", serif;
  --names-size: 13cqi;
  --names-case: none;
  --names-track: 0;
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2%;
  aspect-ratio: 3 / 4;
  padding: 14% 12%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c4);
  color: var(--c5);
  text-align: center;
  box-shadow: 0 1px 2px oklch(0.3 0.02 50 / 0.1), 0 14px 32px -12px oklch(0.3 0.02 50 / 0.32);
  transition: background 0.5s, color 0.5s;
}
.invite > * { position: relative; z-index: 1; }
.invite > .art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.invite-kicker {
  font-family: var(--f-text);
  font-size: 3.2cqi;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}
.invite-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-names);
  font-size: var(--names-size);
  line-height: 1.05;
  text-transform: var(--names-case);
  letter-spacing: var(--names-track);
  color: var(--names-color, var(--c1));
  overflow-wrap: anywhere;
}
.invite-names i { font-style: normal; font-size: 0.6em; opacity: 0.8; margin: 0.5cqi 0; }
.invite-date { font-family: var(--f-text); font-size: 4cqi; font-style: italic; }

/* Écritures */
.invite[data-font="romantique"] { --f-names: "Pinyon Script", cursive; --f-text: "EB Garamond", serif; }
.invite[data-font="classique"] { --f-names: "Bodoni Moda", serif; --f-text: "EB Garamond", serif; --names-case: uppercase; --names-track: 0.12em; --names-size: 7.4cqi; }
.invite[data-font="moderne"] { --f-names: "Marcellus", serif; --f-text: "Jost", sans-serif; --names-case: uppercase; --names-track: 0.16em; --names-size: 6.8cqi; }
.invite[data-font="manuscrit"] { --f-names: "Parisienne", cursive; --f-text: "Lora", serif; --names-size: 12cqi; }

/* Aquarelle de votre lieu : le domaine peint en tête de carte */
.invite[data-style="lieu"] { justify-content: flex-end; padding: 0 10% 12%; gap: 1.5%; }
.invite[data-style="lieu"] > .art { inset: 4% 3% auto; height: auto; width: 94%; }
.invite[data-style="lieu"]::after {
  content: "";
  position: absolute;
  inset: 3%;
  border: 1px solid color-mix(in oklch, var(--c3) 60%, transparent);
  border-radius: 1cqi;
  pointer-events: none;
}

/* Votre histoire illustrée : la scène peinte en pleine page */
.invite[data-style="scene"] { justify-content: flex-start; padding-top: 13%; color: var(--c4); --names-color: var(--c4); }
.invite[data-style="scene"] > .art { object-fit: cover; }
.invite[data-style="scene"]::before {
  content: "";
  position: absolute;
  inset: 0 0 45%;
  z-index: 0;
  background: linear-gradient(180deg, oklch(0.3 0.06 160 / 0.55), transparent);
}
.invite[data-style="scene"] .invite-names,
.invite[data-style="scene"] .invite-kicker { text-shadow: 0 1px 8px oklch(0.25 0.05 160 / 0.5); }

/* Dolce vita : rayures, carte festonnée et citrons */
.invite[data-style="dolce"] {
  background: repeating-linear-gradient(90deg, var(--c2) 0 5%, var(--c4) 5% 10%);
  padding: 22% 18% 16%;
}
.invite[data-style="dolce"] .art-lemons { position: absolute; z-index: 2; width: 46%; height: auto; }
.invite[data-style="dolce"] .art-lemons--a { top: 1%; left: -3%; }
.invite[data-style="dolce"] .art-lemons--b { bottom: 0; right: -4%; transform: rotate(180deg); width: 34%; }

/* Paysages à l'aquarelle : la scène en haut, le texte en bas */
.invite:is([data-style="desert"], [data-style="mykonos"], [data-style="provence"], [data-style="mer"]) {
  justify-content: flex-end;
  padding: 0 12% 11%;
  gap: 1.5%;
}

/* Lettre d'amour vintage : timbres, tampon et cachet */
.invite[data-style="timbres"] {
  background:
    repeating-linear-gradient(0deg, color-mix(in oklch, var(--c5) 6%, transparent) 0 1px, transparent 1px 2.4%),
    var(--c4);
  padding: 34% 12% 18%;
}
.invite[data-style="timbres"] .art-seal { position: absolute; z-index: 2; bottom: 3%; left: 50%; width: 17%; margin-left: -8.5%; }

/* Soirée noir & or : dorure, cadre art déco, monogramme */
.invite[data-style="noir"] {
  background:
    radial-gradient(90% 60% at 50% 30%, color-mix(in oklch, var(--c1) 55%, oklch(0.16 0.01 270)), oklch(0.13 0.01 270));
  color: var(--c4);
  --names-color: var(--c3);
  padding: 34% 14% 14%;
}

/* Bohème champêtre : papier déchiré, bouquet de fleurs séchées */
.invite[data-style="champetre"] { background: transparent; box-shadow: none; padding: 40% 14% 14%; }

/* Personnalisé */
.invite[data-style="perso"] { outline: 1px dashed var(--c1); outline-offset: -6%; }

/* ---------- Décor des cartes du choix d'ambiance ---------- */
.option-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--scene, var(--paper-3));
}
.option-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.9;
}
.option-art .invite { width: 74%; transform: rotate(-2.5deg); transition: transform 0.6s var(--ease); }
.option:hover .option-art .invite { transform: rotate(0deg) scale(1.03); }
.option-art .prop { position: absolute; z-index: 2; width: 24%; right: 7%; bottom: 6%; transform: rotate(-12deg); }
.option-art[data-scene="lieu"] { --scene: linear-gradient(160deg, oklch(0.9 0.025 140), oklch(0.82 0.04 140)); }
.option-art[data-scene="scene"] { --scene: linear-gradient(160deg, oklch(0.88 0.03 85), oklch(0.8 0.045 80)); }
.option-art[data-scene="dolce"] { --scene: linear-gradient(160deg, oklch(0.78 0.06 245), oklch(0.66 0.09 250)); }
.option-art[data-scene="provence"] { --scene: linear-gradient(160deg, oklch(0.86 0.04 300), oklch(0.72 0.07 295)); }
.option-art[data-scene="mer"] { --scene: linear-gradient(160deg, oklch(0.88 0.04 210), oklch(0.7 0.08 215)); }
.option-art[data-scene="desert"] { --scene: linear-gradient(160deg, oklch(0.86 0.06 65), oklch(0.72 0.1 45)); }
.option-art[data-scene="mykonos"] { --scene: linear-gradient(160deg, oklch(0.84 0.05 240), oklch(0.62 0.11 250)); }
.option-art[data-scene="timbres"] { --scene: linear-gradient(160deg, oklch(0.78 0.05 70), oklch(0.68 0.06 60)); }
.option-art[data-scene="noir"] { --scene: linear-gradient(160deg, oklch(0.62 0.04 60), oklch(0.45 0.04 50)); }
.option-art[data-scene="champetre"] { --scene: linear-gradient(160deg, oklch(0.82 0.05 50), oklch(0.72 0.07 45)); }
.option-art[data-scene="perso"] { --scene: var(--paper-2); }
.option-art .perso-art { width: 74%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Finitions
   ========================================================= */

/* Le sceau se pose comme un cachet qu'on presse */
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.7) rotate(-18deg); filter: blur(4px); }
  55% { opacity: 1; transform: scale(0.96) rotate(2deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Petit cachet de cire sur chaque choix retenu */
.option, .palette { position: relative; }
.offer:has(input:checked)::after,
.option[aria-pressed="true"]::after,
.palette[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -12px;
  z-index: 3;
  width: 46px;
  height: 46px;
  background: url("assets/sceau.png") center / contain no-repeat;
  pointer-events: none;
  animation: stamp 0.55s var(--ease) both;
}
.palette[aria-pressed="true"]::after { width: 38px; height: 38px; top: -12px; right: -10px; }



/* Case finale : on scelle sa demande */
.check input[name="terms"] {
  appearance: none;
  width: 30px;
  height: 30px;
  margin: -2px 0 0;
  border: 1.5px dashed oklch(0.7 0.05 35);
  border-radius: 50%;
  background: oklch(0.99 0.004 85);
  cursor: pointer;
}
.check input[name="terms"]:checked {
  border-color: transparent;
  background: url("assets/sceau.png") center / 150% no-repeat;
  animation: stamp 0.55s var(--ease) both;
}
.check input[name="terms"]:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

/* Grain de papier sur les faire-part */
.invite > .invite-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--grain);
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
}

/* Aperçu : le faire-part glissé dans son enveloppe */
.envelope { position: relative; padding: 0 20px; margin-top: calc(6px + 26%); }
.envelope .live-card { position: relative; z-index: 1; transform: translateY(-20%) rotate(-1.6deg); }
.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 4px;
}
.envelope::before {
  bottom: -9%;
  height: 62%;
  z-index: 0;
  background: linear-gradient(180deg, oklch(0.9 0.025 70), oklch(0.86 0.03 68));
  box-shadow: 0 24px 40px -22px oklch(0.3 0.03 50 / 0.5);
}
.envelope::after {
  bottom: -9%;
  height: 34%;
  z-index: 2;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), oklch(0.78 0.03 65) 50%, transparent calc(50% + 1px)) left bottom / 50% 70% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), oklch(0.78 0.03 65) 50%, transparent calc(50% + 1px)) right bottom / 50% 70% no-repeat,
    var(--grain),
    linear-gradient(180deg, oklch(0.93 0.022 72), oklch(0.89 0.028 70));
  box-shadow: 0 -6px 14px -10px oklch(0.3 0.03 50 / 0.4);
}
.env-seal {
  position: absolute;
  left: 50%;
  bottom: calc(14.8% - 32px);
  z-index: 3;
  width: 64px;
  height: 64px;
  margin-left: -32px;
}
.live-note { margin-top: calc(9% + 18px); }

@media (prefers-reduced-motion: reduce) {
  .hero-seal, .check input[name="terms"]:checked, .offer:has(input:checked)::after,
  .option[aria-pressed="true"]::after, .palette[aria-pressed="true"]::after { animation: none; }
}

/* =========================================================
   Mouvement
   ========================================================= */

/* Poussière d'or qui flotte derrière la page */
.dust { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.88 0.1 85), oklch(0.72 0.11 75 / 0));
  opacity: 0;
  animation: drift var(--d) linear var(--delay) infinite;
}
@keyframes drift {
  10% { opacity: 0.9; }
  85% { opacity: 0.6; }
  to { opacity: 0; transform: translate(var(--sway), -105vh); }
}
.top, .layout { position: relative; z-index: 1; }

/* Accueil : le titre se dévoile ligne par ligne */
.hero .eyebrow { animation: rise 0.8s var(--ease) 0.35s both; }
.hero .display { animation: unveil 1.1s var(--ease) 0.5s both; }
.hero .display em { display: inline-block; animation: unveil 1.1s var(--ease) 0.8s both; }
.hero .lead { animation: rise 0.9s var(--ease) 1.05s both; }
@keyframes unveil {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; filter: blur(0); clip-path: inset(0 0 -20% 0); }
}

/* Les éléments d'une étape arrivent les uns après les autres */
.reveal { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }


/* La barre de progression brille */
.progress span {
  background: linear-gradient(90deg, var(--seal), oklch(0.72 0.11 75), var(--seal)) 0 0 / 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Cartes : légère lévitation au survol */
.option:hover .option-art .invite { transform: rotate(0deg) translateY(-4px) scale(1.04); }
.option-art .prop { transition: transform 0.6s var(--ease); }
.option:hover .option-art .prop { transform: rotate(-4deg) scale(1.08); }

/* Aperçu : le faire-part sort de son enveloppe, puis respire */
.envelope .live-card { animation: slide-out 1.4s var(--ease) 0.4s both; }
@keyframes slide-out {
  from { transform: translateY(32%) rotate(0deg); }
  to { transform: translateY(-20%) rotate(-1.6deg); }
}
.envelope .live-card .invite { animation: breathe 6s ease-in-out 2s infinite; }
@keyframes breathe { 50% { transform: translateY(-5px) rotate(0.6deg); } }
.live-card.is-new .invite { animation: pop 0.6s var(--ease); }
@keyframes pop { from { opacity: 0.4; transform: scale(0.96) rotate(-1deg); filter: blur(2px); } }
.env-seal { animation: stamp 0.9s var(--ease) 1.5s both; }

.mini-preview.is-new .invite { animation: pop 0.6s var(--ease); }

/* Galerie : le site d'Eden & Gad défile en continu */
.portfolio { margin-top: 34px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pf-head .eyebrow { width: 100%; margin: 0; }
.pf-title { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.pf-note { margin: 4px 0 0; width: 100%; font-size: 0.82rem; color: var(--ink-soft); }
.pf-wrap {
  margin: 14px -16px 0;
  padding: 18px 0 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.pf-track { display: flex; gap: 22px; width: max-content; margin: 0; padding: 0 11px; list-style: none; animation: marquee 38s linear infinite; }
.pf-wrap:hover .pf-track, .pf-wrap:focus-within .pf-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pf-track li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pf-track .phone { width: 138px; transform: rotate(var(--tilt, -3deg)); animation: float 5s ease-in-out infinite; animation-delay: var(--float, 0s); }
.pf-track li:nth-child(even) .phone { --tilt: 3deg; --float: -2.5s; }
.pf-track li:hover .phone { transform: rotate(0) scale(1.06); }
.pf-track img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; border-radius: 13px; }
.pf-cap { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }
@keyframes float { 50% { translate: 0 -6px; } }
@media (min-width: 980px) { .pf-wrap { margin-inline: 0; } .pf-track .phone { width: 150px; } }

/* Merci : une pluie de pétales */
.petals { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 0.75);
  border-radius: 80% 0 80% 0;
  background: var(--c);
  opacity: 0.9;
  animation: fall var(--d) cubic-bezier(0.3, 0.1, 0.5, 1) var(--delay) forwards;
}
@keyframes fall {
  to { transform: translate(var(--sway), 110vh) rotate(var(--r)); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .dust, .petals { display: none; }
  .pf-wrap { overflow-x: auto; }
}

/* =========================================================
   Ouverture : la donne des univers (nov. 2026)
   Les dix univers sont distribués en éventail comme un jeu de
   cartes, se rassemblent en une pile que le cachet vient sceller,
   puis s'envolent dans toutes les directions pour révéler la page.
   ========================================================= */
body.is-intro { overflow: hidden; }
.intro {
  --deck-y: 42%;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  cursor: pointer;
  background:
    var(--grain),
    radial-gradient(70% 55% at 50% var(--deck-y), oklch(0.36 0.05 35), transparent 70%),
    linear-gradient(180deg, oklch(0.22 0.025 40), oklch(0.15 0.018 40));
}
.intro.is-leaving { animation: intro-out 0.7s var(--ease) forwards; }
.intro.is-skipped { animation: intro-out 0.45s ease forwards; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

.intro-deck {
  position: absolute;
  left: 50%;
  top: var(--deck-y);
  width: 0;
  height: 0;
}
.intro.is-playing .intro-deck { animation: deck-turn 2s var(--ease) 0.2s both; }
@keyframes deck-turn { from { rotate: -10deg; } to { rotate: 3deg; } }

.deal-card {
  --w: clamp(82px, 23vw, 176px);
  --step: 8.5deg;
  --a: calc((var(--i) - 4.5) * var(--step));
  position: absolute;
  left: calc(var(--w) * -0.5);
  top: calc(var(--w) * -0.667);
  width: var(--w);
  transform-origin: 50% 270%;
  rotate: var(--a);
  opacity: 0;
  will-change: translate, rotate, scale, opacity;
}
@media (min-width: 700px) { .deal-card { --step: 10.5deg; } }
.deal-card .invite { box-shadow: 0 2px 3px oklch(0.1 0.02 40 / 0.4), 0 22px 36px -14px oklch(0.05 0.02 40 / 0.8); }
.intro.is-playing .deal-card {
  opacity: 1;
  animation:
    deal 0.95s var(--ease) both,
    gather 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards,
    scatter 0.75s cubic-bezier(0.5, 0, 0.75, 0) forwards;
  animation-delay:
    calc(0.15s + var(--i) * 0.075s),
    calc(1.75s + (9 - var(--i)) * 0.035s),
    2.75s;
}
@keyframes deal {
  from { translate: 0 80vh; rotate: calc(var(--a) * -0.5); opacity: 0; }
  30% { opacity: 1; }
}
@keyframes gather { to { rotate: var(--g); } }
@keyframes scatter {
  from { rotate: var(--g); translate: 0 0; scale: 1; opacity: 1; }
  75% { opacity: 1; }
  to { rotate: var(--sr); translate: var(--sx) var(--sy); scale: 1.5; opacity: 0; }
}

/* Le cachet tombe sur la pile, la lumière jaillit, puis tout s'envole */
.intro-seal {
  --s: clamp(64px, 17vw, 118px);
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(var(--deck-y) + var(--s) * 0.15);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) * -0.5) 0 0 calc(var(--s) * -0.5);
  opacity: 0;
  filter: drop-shadow(0 10px 14px oklch(0.08 0.03 30 / 0.6));
}
.intro.is-playing .intro-seal {
  animation: stamp 0.7s var(--ease) 2.2s both, seal-out 0.6s cubic-bezier(0.5, 0, 0.75, 0) 2.85s forwards;
}
@keyframes seal-out { to { scale: 2.4; opacity: 0; filter: blur(4px); } }

.intro-burst {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: var(--deck-y);
  width: min(120vw, 900px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.95 0.08 85 / 0.85), oklch(0.82 0.12 80 / 0.35) 30%, transparent 65%);
  opacity: 0;
  pointer-events: none;
}
.intro.is-playing .intro-burst { animation: burst 1s var(--ease) 2.3s both; }
@keyframes burst { 0% { opacity: 0; scale: 0.1; } 25% { opacity: 1; } 100% { opacity: 0; scale: 1.2; } }

.intro-title {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  text-align: center;
  opacity: 0;
}
.intro.is-playing .intro-title { animation: appear 0.9s var(--ease) 0.9s both, fade 0.45s ease 2.8s forwards; }
@keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 1; } to { opacity: 0; } }
.intro-kicker { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: oklch(0.8 0.08 80); }
.intro-name { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); line-height: 1; color: oklch(0.95 0.02 85); }

@media (max-width: 699px) {
  .intro { --deck-y: 45%; }
  .intro-title { bottom: 21%; }
}

.intro-skip {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: oklch(0.8 0.02 80 / 0.7);
  opacity: 0;
  animation: appear 0.8s var(--ease) 1.2s forwards;
}

/* Animations réduites : le nom et le cachet, immobiles, puis un fondu */
@media (prefers-reduced-motion: reduce) {
  .intro-title, .intro-seal { opacity: 1; }
  .intro-burst, .intro-skip, .intro-deck { display: none; }
}

/* Le titre de l'accueil attend la fin de l'ouverture */
body.is-intro .hero :is(.hero-seal, .eyebrow, .display, .display em, .lead, .hero-actions, .fan-card, .fan-seal) { animation: none; opacity: 0; }

/* =========================================================
   Accueil, version vitrine (nov. 2026)
   Inspiré des sites de mariage repérés sur Land-book : les
   prénoms en très grand, une bande sombre qui tranche, et de
   vrais faire-part mis en scène dès le premier écran.
   ========================================================= */
body { overflow-x: clip; }

/* Accueil sur grand écran : toute la largeur, sans l'aperçu */
@media (min-width: 980px) {
  body[data-step="0"] .layout { grid-template-columns: minmax(0, 1fr); }
  body[data-step="0"] .live { display: none; }
  body[data-step="0"] .flow { max-width: none; padding-top: 24px; }
  .step[data-step="0"] > .block,
  body[data-step="0"] .nav,
  body[data-step="0"] .error { max-width: 46rem; margin-inline: auto; }
}

.hero { display: grid; gap: 8px; }

/* Téléphone : l'éventail monte juste sous le titre, pour être vu dès
   le premier écran ; la barre du bas porte déjà le bouton Commencer. */
@media (max-width: 979px) {
  .hero-copy { display: contents; }
  .hero .hero-seal { display: none; }
  .hero .eyebrow { order: 1; }
  .hero .display { order: 2; }
  .hero-fan { order: 3; }
  .hero .lead { order: 4; margin-top: 4px; }
  .hero-actions { order: 5; margin-top: 14px; }
  .hero-cta { display: none; }
}
@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
    min-height: min(640px, calc(100dvh - 120px));
  }
  .hero .display { font-size: clamp(3rem, 1.6rem + 2.6vw, 4.4rem); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
  animation: rise 0.9s var(--ease) 1.25s both;
}
.hero-cta { display: inline-flex; text-decoration: none; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* L'éventail : trois univers posés comme sur une table */
.hero-fan {
  position: relative;
  height: clamp(300px, 88vw, 400px);
  margin-top: 18px;
}
@media (min-width: 980px) { .hero-fan { height: 520px; margin-top: 0; } }

.fan-card {
  --w: clamp(150px, 42vw, 200px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w);
  margin: calc(var(--w) * -0.667) 0 0 calc(var(--w) * -0.5);
  translate: var(--x, 0) var(--y, 0);
  rotate: var(--r, 0deg);
  animation: fan-in 1.2s var(--ease) both;
  animation-delay: calc(0.9s + var(--i) * 0.14s);
}
@media (min-width: 980px) { .fan-card { --w: 260px; } }
.fan-card[data-id="noir"] { --x: -58%; --y: 6%; --r: -10deg; z-index: 1; }
.fan-card[data-id="dolce"] { --x: 58%; --y: 9%; --r: 9deg; z-index: 2; }
.fan-card[data-id="lieu"] { --x: 0%; --y: -3%; --r: -1.5deg; z-index: 3; }
.fan-card .invite {
  box-shadow: 0 2px 4px oklch(0.3 0.02 50 / 0.12), 0 30px 50px -18px oklch(0.25 0.03 45 / 0.5);
  animation: breathe 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -2.3s);
}
@keyframes fan-in {
  from { opacity: 0; transform: translateY(70px) scale(0.9) rotate(calc(var(--r, 0deg) * -1)); }
}
@media (hover: hover) {
  .hero-fan .fan-card { transition: translate 0.7s var(--ease), rotate 0.7s var(--ease); }
  .hero-fan:hover .fan-card[data-id="noir"] { --x: -70%; --r: -14deg; }
  .hero-fan:hover .fan-card[data-id="dolce"] { --x: 70%; --r: 13deg; }
}

.fan-seal {
  position: absolute;
  z-index: 4;
  left: calc(50% + 34px);
  top: calc(50% + 92px);
  width: 76px;
  height: 76px;
  animation: stamp 0.9s var(--ease) 1.9s both;
  filter: drop-shadow(0 6px 8px oklch(0.25 0.05 30 / 0.35));
}
@media (min-width: 980px) { .fan-seal { left: calc(50% + 60px); top: calc(50% + 140px); width: 96px; height: 96px; } }

/* Ruban : les univers défilent en petites capitales, comme une ligne de papeterie */
.univers {
  margin: 40px calc(50% - 50vw) 0;
  padding: 13px 0;
  overflow: hidden;
  border-block: 1px solid color-mix(in oklch, var(--gold) 35%, var(--line));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.univers-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.univers-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.6em;
  padding-right: 1.6em;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-soft);
  white-space: nowrap;
}
.univers-track span::after { content: "✦"; font-size: 0.85em; letter-spacing: 0; color: var(--gold); }

/* Vitrine Eden & Gad : une bande sombre, leurs prénoms en très grand */
.showcase {
  margin: 0 calc(50% - 50vw);
  padding: clamp(48px, 7vw, 84px) var(--gutter) 14px;
  background:
    var(--grain),
    radial-gradient(70% 80% at 50% 0%, oklch(0.4 0.07 150 / 0.9), transparent 70%),
    linear-gradient(180deg, oklch(0.27 0.045 152), oklch(0.2 0.03 155));
  color: oklch(0.94 0.02 85);
  text-align: center;
}
.showcase .pf-head { display: block; }
.showcase .eyebrow { margin: 0; color: oklch(0.83 0.08 82); }
.sc-names {
  margin: 6px 0 0;
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-size: clamp(4rem, 1.6rem + 10vw, 9.5rem);
  line-height: 1;
  color: oklch(0.88 0.07 84);
  text-shadow: 0 2px 30px oklch(0.75 0.1 80 / 0.25);
}
.sc-names i { font-style: normal; font-size: 0.55em; color: oklch(0.78 0.06 84); }
.showcase .pf-note { margin: 6px auto 0; color: oklch(0.85 0.02 90 / 0.75); }
.showcase .pf-wrap { margin-inline: auto; max-width: 72rem; }
.showcase .pf-cap { color: oklch(0.9 0.03 85 / 0.8); }
.showcase .phone { box-shadow: inset 0 0 0 1px oklch(0.5 0.01 60), 0 22px 34px -14px oklch(0.08 0.02 150 / 0.8); }
.showcase + .block { margin-top: 44px; }

@media (prefers-reduced-motion: reduce) {
  .fan-card, .fan-card .invite, .fan-seal, .hero-actions, .univers-track { animation: none; }
  .univers { overflow-x: auto; }
}


/* =========================================================
   Formules : deux cartons de papeterie
   ========================================================= */
.offers {
  display: grid;
  gap: 30px 22px;
  padding: 14px 0 30px;
}
@media (min-width: 640px) { .offers { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.offer {
  --o-frame: oklch(0.72 0.08 76 / 0.75);
  --o-num: oklch(0.55 0.09 70);
  --o-name: var(--ink);
  --o-price: var(--seal);
  --o-text: var(--ink-soft);
  --o-pick: var(--seal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px 34px;
  border: 1px solid oklch(0.83 0.03 70);
  border-radius: 3px;
  background:
    var(--grain),
    radial-gradient(120% 70% at 50% 0%, oklch(0.99 0.006 85), oklch(0.955 0.014 80));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.7) inset,
    0 2px 5px -3px oklch(0.3 0.04 40 / 0.25),
    0 26px 40px -30px oklch(0.3 0.04 40 / 0.55);
  cursor: pointer;
  transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.35s, filter 0.35s, border-color 0.3s;
}
/* Double filet doré à l'intérieur du carton */
.offer::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--o-frame);
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px color-mix(in oklch, var(--o-frame) 45%, transparent);
  pointer-events: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.offer input { position: absolute; opacity: 0; pointer-events: none; }

.offer-num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--o-num);
}
.offer-num::before,
.offer-num::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }

.offer-name {
  max-width: 17ch;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.08;
  color: var(--o-name);
  text-wrap: balance;
}
.offer-price {
  font-family: var(--font-display);
  font-size: 3.7rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--o-price);
  font-variant-numeric: lining-nums;
}
.offer-price small { margin-left: 3px; font-size: 0.42em; vertical-align: 0.95em; }

.offer-orn {
  position: relative;
  width: 72%;
  height: 12px;
  margin: 18px 0 16px;
  background:
    linear-gradient(90deg, transparent, var(--o-frame)) left center / calc(50% - 14px) 1px no-repeat,
    linear-gradient(90deg, var(--o-frame), transparent) right center / calc(50% - 14px) 1px no-repeat;
}
.offer-orn::before {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  color: var(--o-num);
}

.offer-list { display: grid; gap: 9px; max-width: 30ch; font-size: 0.9rem; line-height: 1.45; color: var(--o-text); text-wrap: balance; }
.offer-list span + span::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  margin: 0 auto 9px;
  background: var(--o-frame);
}

.offer-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--o-pick);
}
.offer-pick::before,
.offer-pick::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.5; transition: width 0.4s var(--ease); }
.pick-on { display: none; }

/* La formule complète : carton lie-de-vin, lettres d'or */
.offer--plus {
  --o-frame: oklch(0.8 0.09 82 / 0.8);
  --o-num: oklch(0.82 0.09 82);
  --o-name: oklch(0.96 0.018 85);
  --o-price: oklch(0.86 0.1 84);
  --o-text: oklch(0.86 0.025 70);
  --o-pick: oklch(0.84 0.09 82);
  border-color: oklch(0.26 0.07 22);
  background:
    var(--grain),
    radial-gradient(130% 80% at 50% 0%, oklch(0.4 0.11 24), oklch(0.25 0.065 20));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.12) inset,
    0 2px 6px -3px oklch(0.2 0.05 25 / 0.4),
    0 30px 44px -28px oklch(0.25 0.07 25 / 0.75);
}
.offer--plus .offer-price {
  background: linear-gradient(180deg, oklch(0.92 0.08 88), oklch(0.74 0.1 72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer-badge {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: linear-gradient(180deg, oklch(0.88 0.08 85), oklch(0.72 0.1 74));
  color: oklch(0.27 0.07 24);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%);
}
.offer-badge::before,
.offer-badge::after { content: "✦"; font-size: 0.8em; letter-spacing: 0; }

/* Survol : le carton se soulève */
@media (hover: hover) {
  .offer:hover { translate: 0 -5px; }
  .offer:hover .offer-pick::before,
  .offer:hover .offer-pick::after { width: 30px; }
}

/* Choix fait : le cachet de cire scelle le carton, l'autre s'efface */
.offer:has(input:checked) { border-color: var(--seal); }
.offer:has(input:checked)::before { border-color: var(--seal); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px color-mix(in oklch, var(--seal) 40%, transparent); }
.offer--plus:has(input:checked) { border-color: oklch(0.8 0.09 82); }
.offer--plus:has(input:checked)::before { border-color: oklch(0.86 0.09 84); }
.offer:has(input:checked) .pick-off { display: none; }
.offer:has(input:checked) .pick-on { display: inline; }
.offer:has(input:checked)::after {
  top: auto;
  right: auto;
  bottom: -27px;
  left: 50%;
  translate: -50% 0;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 5px oklch(0.2 0.05 25 / 0.35));
}
.offers:has(.offer input:checked) .offer:not(:has(input:checked)) { opacity: 0.68; filter: saturate(0.75); }
.offers:has(.offer input:checked) .offer:not(:has(input:checked)):hover { opacity: 0.9; }
.offer:has(input:focus-visible) { outline: 2px solid var(--seal); outline-offset: 4px; }

@media (max-width: 639px) {
  .offer { padding: 36px 22px 32px; }
  .offer-price { font-size: 3.3rem; }
}

/* =========================================================
   Comment ça se passe : trois temps en chiffres romains
   ========================================================= */
#formules > .q,
.how > .q {
  display: block;
  width: 100%;
  margin-bottom: 26px;
  text-align: center;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 500;
}
.how > .q { margin-bottom: 30px; }

.how-list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-list li { position: relative; display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; padding-bottom: 24px; }
.how-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: oklch(0.6 0.09 72);
}
.how-title { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; line-height: 1.15; color: var(--ink); text-wrap: balance; padding-top: 4px; }
.how-text { margin-top: 5px; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
/* Le fil qui relie les étapes */
.how-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 3rem;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

@media (min-width: 700px) {
  .how-list { grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
  .how-list li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
  .how-title { padding-top: 12px; }
  .how-text { max-width: 24ch; }
  .how-list li:not(:last-child)::after {
    left: calc(50% + 40px);
    right: calc(-50% + 40px - 18px);
    top: 1.3rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), color-mix(in oklch, var(--gold) 25%, transparent));
  }
}

.how-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 34rem;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.35;
  text-align: center;
  color: var(--ink-soft);
}
.how-pay::before,
.how-pay::after { content: "✦"; flex: none; font-style: normal; font-size: 0.6em; color: var(--gold); }

/* =========================================================
   Espace retouches : le lien privé expliqué, avec deux écrans
   ========================================================= */
.how-text a { color: var(--seal-deep); text-decoration-color: color-mix(in oklch, var(--seal) 40%, transparent); text-underline-offset: 3px; }

.espace {
  margin: 56px calc(50% - 50vw) 0;
  padding: clamp(44px, 7vw, 80px) var(--gutter) clamp(40px, 6vw, 72px);
  background: var(--grain), linear-gradient(180deg, var(--paper-2), var(--paper-3));
  border-block: 1px solid color-mix(in oklch, var(--gold) 45%, var(--line));
  scroll-margin-top: 70px;
}
.espace-in {
  display: grid;
  grid-template-areas: "head" "phones" "steps" "note";
  gap: 30px;
  max-width: 64rem;
  margin: 0 auto;
}
.espace-head { grid-area: head; }
.espace-head .eyebrow { margin-bottom: 8px; }
.espace-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
}
.espace-title em { font-style: italic; color: var(--seal-deep); }
.espace-lead { margin: 14px 0 0; max-width: 36rem; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

/* Deux téléphones qui se chevauchent : la demande, puis l'aperçu */
.espace-phones {
  grid-area: phones;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 6px 0 0;
}
.espace-phone { width: min(46%, 200px); padding: 5px; border-radius: 22px; }
.espace-phone:first-child { transform: rotate(-4deg) translateY(14px); z-index: 1; }
.espace-phone:nth-child(2) { margin-left: -6%; transform: rotate(3.5deg); z-index: 2; }
.espace-phone img { display: block; width: 100%; height: auto; border-radius: 17px; }
.espace-cap {
  width: 100%;
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Trois verbes, un fil doré */
.espace-steps { grid-area: steps; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.espace-steps li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.espace-verb {
  grid-row: span 3;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--seal);
}
.espace-step-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.espace-text { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.espace-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.espace-status span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.espace-status i { font-style: normal; font-size: 0.8rem; color: var(--gold); }
.espace-status .is-live { border-color: oklch(0.85 0.05 155); background: oklch(0.94 0.035 155); color: oklch(0.38 0.08 155); }

.espace-note {
  grid-area: note;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink);
}
.espace-note::before,
.espace-note::after { content: "✦"; flex: none; font-style: normal; font-size: 0.6em; color: var(--gold); }

@media (max-width: 420px) {
  .espace-steps li { grid-template-columns: 1fr; }
  .espace-verb { grid-row: auto; font-size: 1.15rem; }
}

@media (min-width: 900px) {
  .espace-in {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "phones head" "phones steps" "note note";
    column-gap: clamp(40px, 6vw, 80px);
    row-gap: 28px;
    align-items: start;
  }
  .espace-phones { padding-top: 20px; }
  .espace-phone { width: min(48%, 230px); }
  .espace-note { padding-top: 8px; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .espace-phones:hover .espace-phone:first-child { transform: rotate(-6deg) translate(-8px, 10px); }
  .espace-phones:hover .espace-phone:nth-child(2) { transform: rotate(1deg) translateY(-6px); }
}

/* ---------- Démo interactive : l'enveloppe en 3D ---------- */
.essai {
  margin: 0 calc(50% - 50vw);
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background:
    radial-gradient(90% 70% at 70% 40%, oklch(0.3 0.04 130 / 0.9), transparent 70%),
    var(--grain),
    oklch(0.19 0.022 135);
  color: oklch(0.93 0.02 85);
  scroll-margin-top: 70px;
}
.essai-in {
  display: grid;
  gap: 36px;
  justify-items: center;
  max-width: 64rem;
  margin: 0 auto;
}
.essai-head { max-width: 30rem; text-align: center; }
.essai-head .eyebrow { color: oklch(0.8 0.09 78); }
.essai-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  line-height: 1.02;
  text-wrap: balance;
}
.essai-title em { font-style: italic; color: oklch(0.84 0.08 78); }
.essai-lead { margin: 16px 0 0; font-size: 1rem; line-height: 1.6; color: oklch(0.86 0.015 85); text-wrap: pretty; }
.essai-note { margin: 12px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: oklch(0.8 0.06 80); }
.essai-full {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid oklch(0.8 0.08 78 / 0.5);
  color: oklch(0.9 0.03 85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.essai-full::after { content: " ↗"; letter-spacing: 0; }
.essai-full:hover { border-bottom-color: currentColor; }

/* Le téléphone : l'écran fait 390 × 844 points, réduit à la bonne taille */
.essai-device {
  --w: min(300px, 76vw);
  position: relative;
  width: var(--w);
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(150deg, oklch(0.34 0.01 70), oklch(0.16 0.01 70) 60%, oklch(0.26 0.01 70));
  box-shadow:
    inset 0 0 0 1.5px oklch(0.52 0.01 70),
    inset 0 0 0 4px oklch(0.12 0.01 70),
    0 40px 70px -30px oklch(0.05 0.02 130 / 0.9),
    0 0 0 1px oklch(0.1 0.01 70 / 0.6);
}
.essai-device::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 22px;
  translate: -50% 0;
  border-radius: 999px;
  background: oklch(0.1 0.005 70);
  pointer-events: none;
}
.essai-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: 36px;
  background: oklch(0.2 0.025 135);
  isolation: isolate;
}
.essai-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.7));
}
.essai-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.essai-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.essai-poster.is-gone { opacity: 0; visibility: hidden; }
.essai-poster:focus-visible { outline: 2px solid oklch(0.84 0.08 78); outline-offset: -6px; border-radius: 36px; }
/* invitation discrète, comme dans la démo : une ligne en italique sous le cachet et un filet d'or qui respire */
.essai-screen { container-type: inline-size; }
.essai-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: 68.5%;
  display: grid;
  justify-items: center;
  gap: 0.55em;
  font: italic 500 4.45cqw/1.2 var(--font-display);
  letter-spacing: 0.02em;
  color: oklch(0.52 0.06 78 / 0.92);
  text-shadow: 0 0 10px oklch(0.97 0.015 85 / 0.9), 0 0 2px oklch(0.97 0.015 85 / 0.8);
  pointer-events: none;
}
.essai-hint-text { opacity: 0; translate: 0 4px; animation: essai-hint-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards; }
.essai-hint-line {
  width: 16.4cqw;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.7 0.09 80 / 0.9) 30% 70%, transparent);
  opacity: 0;
  scale: 0 1;
  animation: essai-line-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards, essai-line 3.6s ease-in-out 3.4s infinite;
}
@keyframes essai-hint-in { to { opacity: 1; translate: 0 0; } }
@keyframes essai-line-in { to { opacity: 1; scale: 1 1; } }
@keyframes essai-line {
  0%, 100% { opacity: 1; scale: 1 1; }
  50% { opacity: 0.45; scale: 0.55 1; }
}
/* pendant le chargement : la phrase s'efface, le filet s'étire doucement */
.essai-hint-text, .essai-hint-line { transition: opacity 0.4s ease; }
.essai-poster.is-loading .essai-hint-text { animation: none; opacity: 0; }
.essai-poster.is-loading .essai-hint-line { animation: essai-line 1.4s ease-in-out infinite; opacity: 1; }

@media (min-width: 900px) {
  .essai-in { grid-template-columns: 1fr auto; align-items: center; gap: 72px; justify-items: start; }
  .essai-head { text-align: left; }
  .essai-device { --w: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .essai-hint-text, .essai-hint-line { animation: none; opacity: 1; translate: none; scale: none; }
}

/* =========================================================
   L'ouverture : concepts dessinés au trait, enveloppe, idées
   ========================================================= */
.demo-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid color-mix(in oklch, var(--seal) 40%, transparent);
  color: var(--seal-deep);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s;
}
.demo-link::after { content: " ↗"; letter-spacing: 0; }
.demo-link:hover { border-bottom-color: currentColor; }

.openings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .openings { grid-template-columns: repeat(3, 1fr); } }

.opening-copy { display: flex; flex-direction: column; gap: 4px; }
.opening-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(90% 80% at 50% 40%, var(--paper), var(--paper-3));
}
.opening-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.9;
}
.opening-art svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease);
}
.option:hover .opening-art svg { transform: translateY(-3px) scale(1.04); }
.option--opening[aria-pressed="true"] .opening-art { background: radial-gradient(90% 80% at 50% 40%, oklch(0.99 0.006 85), var(--paper-2)); }

/* Le vocabulaire du dessin : papier, cire, or, voile */
.opening-art .oa-paper { fill: oklch(0.99 0.006 85); }
.opening-art .oa-lace { fill: oklch(0.99 0.004 85 / 0.92); }
.opening-art .oa-machine { fill: var(--paper-3); }
.opening-art .oa-shade { fill: var(--paper-2); }
.opening-art .oa-thin { stroke-width: 0.8; stroke: var(--ink-soft); }
.opening-art .oa-seal { fill: var(--seal); stroke: var(--seal-deep); stroke-width: 0.8; }
.opening-art .oa-seal-ring { stroke: oklch(0.75 0.09 30); stroke-width: 0.8; }
.opening-art .oa-satin { stroke: var(--seal-deep); }
.opening-art .oa-gold { stroke: var(--gold); stroke-width: 1.6; }
.opening-art .oa-gold-fill { fill: var(--gold); stroke: none; }
.opening-art .oa-wash { fill: var(--seal-wash); }
.opening-art .oa-veil { fill: oklch(0.99 0.004 85 / 0.72); }
.opening-art .oa-glow { fill: oklch(0.9 0.06 85 / 0.55); stroke: none; }
.opening-art .oa-page { fill: oklch(0.985 0.008 85); }
.opening-art .oa-dash { stroke: var(--seal); stroke-dasharray: 4 4; fill: oklch(0.99 0.006 85 / 0.6); }
.opening-art .oa-script { fill: var(--gold); stroke: none; font-family: var(--font-display); font-style: italic; font-size: 24px; }
.opening-art .oa-date { fill: var(--seal-deep); stroke: none; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }

/* Surprenez-nous : sur grand écran, une carte en largeur pour clore la grille */
@media (min-width: 640px) {
  .option--surprise { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
  .option--surprise .opening-art { flex: none; width: calc((100% - 24px) / 3 - 10px); margin: 0; }
}

/* L'enveloppe : papier et cachet */
.sub { margin: 20px 0 10px; font-size: 0.86rem; font-weight: 500; }
.envelope-details .q + .sub { margin-top: 0; }
.paper-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 8px -1px 0;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: inset 0 0 0 1px oklch(0.3 0.02 50 / 0.18);
}
.paper-dot--lin { background: repeating-linear-gradient(0deg, transparent 0 1px, oklch(0.6 0.03 70 / 0.25) 1px 2px), repeating-linear-gradient(90deg, transparent 0 1px, oklch(0.6 0.03 70 / 0.25) 1px 2px), var(--dot); }
.paper-dot--nacre { background: linear-gradient(135deg, oklch(0.97 0.02 330), oklch(0.96 0.02 200), oklch(0.97 0.03 85)); }
.chip input:checked + span .paper-dot { box-shadow: 0 0 0 1px oklch(0.97 0.01 85 / 0.6); }

.seals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seal-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.78rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.seal-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seal-pick img,
.seal-free { width: min(48px, 100%); height: auto; aspect-ratio: 1; transition: transform 0.5s var(--ease); }
.seal-free {
  width: min(40px, 82%);
  margin: 4px 0;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px oklch(1 0 0 / 0.35), 0 2px 4px oklch(0.3 0.02 50 / 0.25);
  border-radius: 50%;
  background: conic-gradient(from 30deg, #e9b8bf, #e8d36a, #b9c7a5, #9a8bc2, #e9b8bf);
  color: var(--paper);
  font-size: 1.3rem;
  text-shadow: 0 1px 2px oklch(0.3 0.02 50 / 0.4);
}
.seal-pick:hover img,
.seal-pick:hover .seal-free { transform: rotate(-10deg) scale(1.05); }
.seal-pick:has(input:checked) { border-color: var(--seal); box-shadow: 0 0 0 1px var(--seal); background: var(--seal-wash); }
.seal-pick:has(input:checked) img,
.seal-pick:has(input:checked) .seal-free { animation: stamp 0.55s var(--ease) both; }
.seal-pick:has(input:focus-visible) { outline: 2px solid var(--seal); outline-offset: 2px; }

.field--block { margin-top: 32px; }
.field--block .label { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.field .q-note { font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .seal-pick:has(input:checked) img, .seal-pick:has(input:checked) .seal-free { animation: none; }
}

/* =========================================================
   Save the date : présentation sur l'accueil
   ========================================================= */
.stdo {
  margin: 0 calc(50% - 50vw);
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  background:
    var(--grain),
    radial-gradient(70% 60% at 25% 45%, oklch(0.93 0.03 125 / 0.7), transparent 70%),
    linear-gradient(180deg, oklch(0.965 0.012 92), oklch(0.948 0.016 88));
  scroll-margin-top: 70px;
}
.stdo-in {
  display: grid;
  gap: 38px;
  justify-items: center;
  max-width: 64rem;
  margin: 0 auto;
}
.stdo-head { max-width: 31rem; text-align: center; }
.stdo-head .eyebrow { color: oklch(0.45 0.06 135); }
.stdo-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  line-height: 1.02;
  text-wrap: balance;
}
.stdo-title em { font-style: italic; color: oklch(0.42 0.06 135); }
.stdo-lead { margin: 16px 0 0; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* deux petites étiquettes de prix, en carton à double filet */
.stdo-prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.stdo-price {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 128px;
  margin: 0;
  padding: 14px 16px 12px;
  border: 1px solid oklch(0.83 0.03 70);
  border-radius: 2px;
  background: var(--grain), radial-gradient(120% 80% at 50% 0%, oklch(0.99 0.006 85), oklch(0.96 0.013 82));
  box-shadow: 0 14px 22px -18px oklch(0.3 0.04 40 / 0.6);
}
.stdo-price::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid oklch(0.72 0.08 76 / 0.6);
  pointer-events: none;
}
.stdo-price-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.stdo-price-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 0.95; color: var(--seal); font-variant-numeric: lining-nums; }
.stdo-price-num small { margin-left: 2px; font-size: 0.45em; vertical-align: 0.9em; }
.stdo-note { margin: 12px 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.stdo-or { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }

.stdo-links { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.stdo-pick::after { content: "↓"; }
.stdo-pick:hover::after { transform: translateY(4px); }
.stdo-full {
  padding-bottom: 3px;
  border-bottom: 1px solid color-mix(in oklch, var(--seal) 40%, transparent);
  color: var(--seal-deep);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.stdo-full::after { content: " ↗"; letter-spacing: 0; }
.stdo-full:hover { border-bottom-color: currentColor; }
.stdo-device {
  box-shadow:
    inset 0 0 0 1.5px oklch(0.52 0.01 70),
    inset 0 0 0 4px oklch(0.12 0.01 70),
    0 40px 60px -32px oklch(0.25 0.04 120 / 0.75),
    0 0 0 1px oklch(0.1 0.01 70 / 0.6);
}
/* la phrase d'invitation, juste sous l'enveloppe */
.stdo-hint { top: 66.6%; color: oklch(0.86 0.06 84 / 0.95); text-shadow: none; }

@media (min-width: 900px) {
  .stdo-in { grid-template-columns: auto 1fr; align-items: center; gap: 80px; justify-items: start; }
  .stdo-device { order: -1; --w: 320px; }
  .stdo-head { text-align: left; }
  .stdo-prices { justify-content: flex-start; }
  .stdo-links { flex-direction: row; gap: 28px; }
}
@media (max-width: 380px) {
  .stdo-prices { gap: 8px; }
  .stdo-price { min-width: 0; padding-inline: 12px; }
}

/* =========================================================
   Formules : l'option save-the-date et la formule seule
   ========================================================= */
.addon {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid oklch(0.83 0.03 70);
  border-radius: 3px;
  background:
    var(--grain),
    linear-gradient(90deg, oklch(0.975 0.01 120), oklch(0.965 0.012 85));
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.7) inset, 0 18px 30px -26px oklch(0.3 0.04 40 / 0.55);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.35s;
}
.addon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed oklch(0.72 0.07 100 / 0.55);
  pointer-events: none;
  transition: border-color 0.3s;
}
.addon input { position: absolute; opacity: 0; pointer-events: none; }
/* la case : un cercle en pointillé qui reçoit un cachet de cire sauge */
.addon-box {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1.5px dashed oklch(0.62 0.06 120);
  border-radius: 50%;
  background: oklch(0.99 0.004 85);
}
.addon-box::after {
  content: "";
  position: absolute;
  inset: -9px;
  background: url("assets/sceau-sauge.png") center / contain no-repeat;
  opacity: 0;
}
.addon:has(input:checked) .addon-box { border-color: transparent; background: none; }
.addon:has(input:checked) .addon-box::after { opacity: 1; animation: stamp 0.55s var(--ease) both; }
.addon:has(input:focus-visible) { outline: 2px solid var(--seal); outline-offset: 4px; }
.addon-text { display: grid; gap: 3px; }
.addon-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.1; color: var(--ink); }
.addon-sub { font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
.addon-sub a { color: oklch(0.42 0.06 135); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.addon-price { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; color: oklch(0.42 0.06 135); white-space: nowrap; font-variant-numeric: lining-nums; }
.addon-price small { margin-left: 2px; font-size: 0.48em; vertical-align: 0.8em; }
.addon:has(input:checked) { border-color: oklch(0.55 0.06 130); box-shadow: 0 0 0 1px oklch(0.55 0.06 130), 0 18px 30px -24px oklch(0.3 0.05 130 / 0.6); }
.addon:has(input:checked)::before { border-style: solid; border-color: oklch(0.6 0.06 125 / 0.6); }
/* l'option ne concerne pas la formule seule */
.offers:has(.offer--std input:checked) .addon { opacity: 0.4; pointer-events: none; }
@media (hover: hover) { .addon:hover { border-color: oklch(0.7 0.06 120); } }

.offers-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.offers-or::before,
.offers-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, oklch(0.72 0.08 76 / 0.7)); }
.offers-or::after { transform: scaleX(-1); }

/* la formule seule : carton ivoire, filets et prix sauge */
.offer--std {
  --o-frame: oklch(0.66 0.06 125 / 0.7);
  --o-num: oklch(0.5 0.06 130);
  --o-price: oklch(0.42 0.06 135);
  --o-pick: oklch(0.42 0.06 135);
}
.offer-head { display: flex; flex-direction: column; align-items: center; }
.offer--std .offer-name { max-width: none; }
.no-wrap { white-space: nowrap; }

@media (min-width: 640px) {
  .addon, .offers-or, .offer--std { grid-column: 1 / -1; }
  .offer--std {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "head orn list" "pick pick pick";
    align-items: center;
    padding: 34px 34px 28px;
  }
  .offer--std .offer-head { grid-area: head; }
  .offer--std .offer-orn {
    grid-area: orn;
    width: 1px;
    height: 120px;
    margin: 0 10px;
    background: linear-gradient(180deg, transparent, var(--o-frame) 30% 70%, transparent);
  }
  .offer--std .offer-orn::before { inset: 0 -8px; }
  .offer--std .offer-list { grid-area: list; justify-self: center; }
  .offer--std .offer-pick { grid-area: pick; justify-self: center; padding-top: 18px; }
}
@media (max-width: 639px) {
  /* sur téléphone, l'option se glisse juste sous la formule choisie */
  .offers > .offer:nth-child(1) { order: 1; }
  .offers > .offer:nth-child(2) { order: 3; }
  .offers > .addon { order: 4; }
  .offers > .offers-or { order: 5; }
  .offers > .offer--std { order: 6; }
  .offers:has(> .offer:nth-child(1) input:checked) > .addon { order: 2; }
  .addon { gap: 12px; padding: 16px; }
  .addon-title { font-size: 1.18rem; }
  .addon-price { font-size: 1.7rem; }
}

[data-product] { white-space: nowrap; }
.stdo-pick { white-space: nowrap; }
.stdo-full { white-space: nowrap; }
