/* Site — direction « Papier cadeau » (mêmes couleurs et polices que l'app :
   ios/Wishlist/DesignSystem/Palette.swift et Typography.swift). La nuit est
   réservée au Secret Santa. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ground: #EEF0F4;
  --ink: #18202E;
  --muted: #4A5468;
  --line: #E3E6EC;
  --card: #FFFFFF;
  --coral: #FF6F59;
  --navy: #1E2A78;
  --pine: #1E7A50;
  --cream: #F4E9D8;
  --sun: #F5B700;
  --lilac: #A98BFF;
  --candy: #FFB3D9;
  --sky: #DDE7F7;
  --blush: #FFD9D2;
  --coral-text: #B4321F;
  --blue: #4A63D9;
  --kraft: #C9A27A;
  --night: #0F1636;
  --night-deep: #0A1030;
  --bulb: #FFE08A;
  --cap: #C9A227;
  --gold-shadow: #B58600;
  --night-muted: rgba(244, 233, 216, 0.66);
  --night-surface: rgba(244, 233, 216, 0.08);
  --night-line: rgba(244, 233, 216, 0.12);
  --rule: rgba(24, 32, 46, 0.12);
  --rule-strong: rgba(24, 32, 46, 0.22);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(24, 32, 46, 0.06), 0 12px 32px -12px rgba(24, 32, 46, 0.18);
  --shadow-lg: 0 2px 4px rgba(24, 32, 46, 0.06), 0 40px 80px -28px rgba(24, 32, 46, 0.35);
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(24, 32, 46, 0.6); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--gold-shadow); }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-shadow); }
.btn--sun:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-shadow); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.55; pointer-events: none; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 22px 0 18px;
  border-radius: 16px;
  background: var(--ink); color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(24, 32, 46, 0.7); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.75; letter-spacing: 0.02em; }
.store strong { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.store.is-soon { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.store.is-mine { order: -1; }
.night .store { background: var(--cream); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* En-tête et pied de page                                             */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(238, 240, 244, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.site-nav a:hover { background: #fff; color: var(--ink); }
.site-header .btn { margin-left: 8px; }
@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

.site-footer { padding: 72px 0 48px; border-top: 1px solid var(--line); margin-top: 0; background: var(--ground); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 13px; font-family: var(--body); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fine { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 30ch; }
@media (max-width: 820px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ */
/* Papiers cadeaux (mêmes motifs que Wrapping.swift)                   */
/* ------------------------------------------------------------------ */

.paper--coral-dots { background: radial-gradient(circle, #fff 3.4px, transparent 3.9px) 0 0 / 18px 18px, var(--coral); }
.paper--pine-stripes { background: repeating-linear-gradient(-45deg, var(--pine) 0 8px, var(--cream) 8px 12px); }
.paper--sun-gingham {
  background:
    linear-gradient(90deg, rgba(30, 42, 120, 0.3) 50%, transparent 0) 0 0 / 22px 22px,
    linear-gradient(rgba(30, 42, 120, 0.3) 50%, transparent 0) 0 0 / 22px 22px,
    var(--sun);
}
.paper--lilac-stripes { background: repeating-linear-gradient(180deg, var(--lilac) 0 12px, var(--candy) 12px 19px); }
.paper--night-snow {
  background:
    radial-gradient(circle, var(--cream) 1.8px, transparent 2.3px) 0 0 / 22px 22px,
    radial-gradient(circle, rgba(244, 233, 216, 0.8) 1.1px, transparent 1.5px) 6px 9px / 13px 13px,
    var(--night);
}
.paper--rose-checks { background: conic-gradient(#FF8CC6 25%, transparent 0 50%, #FF8CC6 0 75%, transparent 0) 0 0 / 20px 20px, var(--candy); }
.paper--kraft { background: repeating-linear-gradient(180deg, rgba(90, 60, 30, 0.14) 0 1px, transparent 1px 5px), var(--kraft); }
.paper--sky-grid {
  background:
    linear-gradient(90deg, var(--blue) 2px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(var(--blue) 2px, transparent 0) 0 0 / 18px 18px,
    var(--sky);
}
.paper--red-plaid {
  background:
    linear-gradient(90deg, transparent 11px, rgba(255, 255, 255, 0.25) 0 13px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(24, 32, 46, 0.28) 6px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(rgba(24, 32, 46, 0.28) 6px, transparent 0) 0 0 / 22px 22px,
    #E85A45;
}
.paper--mint-dots { background: radial-gradient(circle, var(--pine) 2.9px, transparent 3.4px) 0 0 / 18px 18px, #9FE3C4; }
.paper--confetti {
  background:
    radial-gradient(circle, var(--coral) 2.9px, transparent 3.4px) 0 0 / 28px 28px,
    radial-gradient(circle, var(--blue) 2.9px, transparent 3.4px) 11px 17px / 34px 34px,
    radial-gradient(circle, var(--sun) 2.9px, transparent 3.4px) 5px 13px / 22px 22px,
    var(--cream);
}
/* Le papier de la marque : encre, fibres claires (icône, écran de lancement). */
.paper--brand { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px), var(--ink); }
.paper--gold-stars { background: radial-gradient(circle, var(--sun) 2.4px, transparent 2.9px) 0 0 / 20px 20px, var(--navy); }

/* ------------------------------------------------------------------ */
/* Paquet, ruban, nœud, étiquettes, tampon                             */
/* ------------------------------------------------------------------ */

.parcel {
  --ribbon: var(--navy);
  --rw: 14%;
  position: relative;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.parcel::before, .parcel::after {
  content: ""; position: absolute; background: var(--ribbon); pointer-events: none;
}
.parcel::before { left: calc(50% - var(--rw) / 2); width: var(--rw); top: 0; bottom: 0; }
.parcel::after { top: calc(46% - var(--rw) / 2); height: calc(var(--rw) * 0.9); left: 0; right: 0; }
.parcel .bow {
  position: absolute; left: 50%; top: 46%; width: 44%; z-index: 2;
  color: var(--ribbon);
  transform: translate(-50%, -62%);
  filter: drop-shadow(0 2px 2px rgba(24, 32, 46, 0.18));
}
.parcel .bow svg { width: 100%; height: auto; }

.label {
  position: absolute; z-index: 3;
  background: #fff;
  padding: 10px 18px 10px 30px;
  border-radius: 6px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  box-shadow: var(--shadow);
  font-family: var(--display);
  line-height: 1.1;
  filter: drop-shadow(0 6px 10px rgba(24, 32, 46, 0.18));
}
.label::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--line);
}
.label strong { display: block; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.label small { display: block; font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 2px; }

.stamp {
  position: absolute; z-index: 3;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 5px #fff, var(--shadow);
  display: grid; place-content: center; text-align: center;
  font-family: var(--display); line-height: 1;
}
.stamp small { color: var(--sun); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.stamp strong { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; margin-top: 3px; }

/* Étiquette de bagage (les personnes ; jamais en paquet). */
.luggage {
  position: relative;
  background: var(--cream);
  border-radius: 10px 10px 18px 18px;
  padding: 36px 18px 18px;
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  box-shadow: inset 0 0 0 1px rgba(90, 60, 30, 0.08);
}
.luggage::before {
  content: ""; position: absolute; left: 50%; top: 12px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 3px rgba(24, 32, 46, 0.12);
}
.luggage-wrap { position: relative; filter: drop-shadow(0 10px 16px rgba(24, 32, 46, 0.14)); transform-origin: 50% 0; }
.luggage-wrap::before {
  content: ""; position: absolute; left: 50%; top: -34px; width: 2px; height: 48px; margin-left: -1px;
  background: var(--ink); opacity: 0.35; border-radius: 2px;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff;
  border: 3px solid currentColor;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: #fff; color: var(--ink);
}
.chip--sun { background: var(--sun); }
.chip--dashed { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(24, 32, 46, 0.25); border-radius: 6px; }

/* ------------------------------------------------------------------ */
/* Téléphone                                                           */
/* ------------------------------------------------------------------ */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 470 / 1020;
  padding: 10px;
  border-radius: calc(var(--w) * 0.15);
  background: var(--ink);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c3547;
  flex: none;
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--w) * 0.12);
  overflow: hidden; background: var(--ground);
}
.phone .screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.phone--night .screen { background: var(--night); }
.phone--sm { --w: 240px; }

/* ------------------------------------------------------------------ */
/* Apparition au défilement                                            */
/* ------------------------------------------------------------------ */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Accueil : en-tête                                                   */
/* ------------------------------------------------------------------ */

.hero { position: relative; overflow-x: clip; padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); }
.hero h1 .ink-coral { color: var(--coral); display: block; }
.hero .lead { margin-top: 24px; max-width: 34ch; }
.hero .store-buttons { margin-top: 36px; }
.hero-meta { margin-top: 20px; color: var(--muted); font-size: 15px; font-weight: 600; }

.hero-stage { position: relative; height: 660px; display: grid; place-items: center; }
.hero-stage .phone { --w: 290px; z-index: 2; transform: rotate(-3deg); }
.js .hero-stage .phone { animation: phone-in 1.1s var(--ease-out) both 0.15s; }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotate(2deg); } to { opacity: 1; transform: rotate(-3deg); } }

.float { position: absolute; z-index: 3; }
.js .float { animation: drop-in 0.9s var(--ease-spring) both; animation-delay: var(--d, 0.4s); }
.float > * { animation: bob 6s ease-in-out infinite; animation-delay: var(--bob, 0s); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-80px) rotate(-12deg) scale(0.8); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 2deg)); } }

.float--a { left: 0; top: -5%; --d: 0.5s; }
.float--a .parcel { width: 130px; height: 100px; --r: -8deg; }
.float--b { right: -4%; top: 2%; --d: 0.7s; }
.float--b .parcel { width: 120px; height: 150px; --r: 9deg; --ribbon: var(--sun); --bob: -2s; }
.float--c { right: 0; bottom: 6%; --d: 0.9s; }
.float--c .parcel { width: 170px; height: 110px; --r: 5deg; --ribbon: var(--cream); --bob: -4s; }
.float--d { left: 2%; bottom: 10%; --d: 1.1s; }
.float--d .luggage-wrap { --r: -6deg; --bob: -1s; width: 190px; }

.float--d .luggage { padding-top: 34px; }
.tag-person { display: flex; gap: 12px; align-items: center; }
.tag-person .avatar { width: 46px; height: 46px; font-size: 19px; color: #fff; background: var(--pine); border-color: #fff; }
.tag-person strong { font-family: var(--display); font-size: 20px; display: block; line-height: 1; }
.tag-person small { font-size: 12px; color: var(--muted); font-weight: 600; }
.tag-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { height: 560px; margin-top: 8px; }
  .hero-stage .phone { --w: 250px; }
  .float--a .parcel { width: 120px; height: 96px; }
  .float--b .parcel { width: 96px; height: 120px; }
  .float--c .parcel { width: 130px; height: 86px; }
  .float--d .luggage-wrap { width: 160px; }
}
@media (max-width: 600px) {
  .float--a { display: none; }
  .store { min-height: 54px; padding: 0 16px 0 14px; gap: 10px; }
  .store strong { font-size: 17px; }
}
@media (max-width: 480px) {
  .hero-stage { height: 500px; }
  .hero-stage .phone { --w: 220px; }
  .float--a { left: -6%; }
  .float--b { right: -8%; }
  .float--c { right: -6%; }
  .float--d { left: -4%; }
}

/* ------------------------------------------------------------------ */
/* Bandeau de papiers                                                  */
/* ------------------------------------------------------------------ */

.papers { padding: 24px 0 8px; overflow: hidden; }
.papers-row { display: flex; gap: 16px; padding-right: 16px; width: max-content; animation: slide 60s linear infinite; }
.papers-row + .papers-row { margin-top: 16px; animation-direction: reverse; animation-duration: 70s; }
.papers:hover .papers-row { animation-play-state: paused; }
.papers-row .swatch { width: 132px; height: 84px; border-radius: 18px; flex: none; position: relative; overflow: hidden; }
.papers-row .swatch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; background: var(--ribbon, transparent); }
@keyframes slide { to { transform: translateX(-50%); } }
.papers-caption { text-align: center; color: var(--muted); font-weight: 600; margin-top: 22px; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 { font-size: clamp(36px, 5.4vw, 64px); margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.section-head .eyebrow + h2 { margin-top: 14px; }
.section-head h2:first-child { margin-top: 0; }
h2.title { font-size: clamp(36px, 5vw, 58px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Tes listes : trois étapes à gauche, un téléphone à droite. L'étape ouverte
   avance seule (le ruban se remplit), ou au clic. */
.tour { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.tour-main h2 { max-width: 13em; }
.tour-steps { display: grid; gap: 10px; max-width: 520px; margin-top: clamp(28px, 4vw, 44px); margin-left: -20px; }
.tour-step {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 0; border-radius: 22px; padding: 18px 20px; background: transparent; position: relative; overflow: hidden;
  transition: background-color 0.35s, box-shadow 0.35s;
}
.tour-step:hover { background: rgba(255, 255, 255, 0.55); }
.tour-step.is-active { background: #fff; box-shadow: var(--shadow); }
.tour-step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  font-family: var(--display); font-weight: 800; font-size: 17px; transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.tour-step.is-active .num { background: var(--coral); color: #fff; box-shadow: none; }
.tour-title { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.15; letter-spacing: -0.01em; color: var(--muted); transition: color 0.35s; }
.tour-step.is-active .tour-title { color: var(--ink); }
.tour-body { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.tour-step.is-active .tour-body { grid-template-rows: 1fr; }
.tour-text { overflow: hidden; color: var(--muted); font-size: 17px; line-height: 1.5; opacity: 0; transition: opacity 0.3s; }
.tour-step.is-active .tour-text { opacity: 1; transition-delay: 0.12s; padding-top: 8px; }
.tour-ribbon { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.tour-ribbon i { display: block; height: 100%; width: 0; background: var(--coral); }
.tour-step.is-active .tour-ribbon i { animation: tour-fill var(--tour-time, 6s) linear forwards; }
.tour.is-paused .tour-step.is-active .tour-ribbon i, .tour:not(.is-running) .tour-step.is-active .tour-ribbon i { animation-play-state: paused; }
.tour.is-manual .tour-ribbon { display: none; }
@keyframes tour-fill { to { width: 100%; } }
.tour-stage { display: grid; place-items: center; padding: 8px 0 24px; }
.tour-stage .phone { --w: 290px; }
.tour-stage .screen img { opacity: 0; transform: scale(1.04); transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out); }
.tour-stage .screen img.is-active { opacity: 1; transform: none; }
@media (max-width: 1100px) { .tour-steps { margin-left: 0; } }
@media (max-width: 760px) {
  /* Téléphone et petite tablette : la capture au-dessus, les étapes en dessous. */
  .tour { grid-template-columns: 1fr; gap: 28px; }
  .tour-stage { order: -1; padding: 0; }
  .tour-stage .phone { --w: min(240px, 62vw); }
  .tour-steps { max-width: none; gap: 6px; margin-left: 0; }
  .tour-main { display: contents; }
  .tour-main h2 { order: -2; }
  .tour-step { padding: 14px 16px; column-gap: 14px; grid-template-columns: 34px 1fr; }
  .tour-step .num { width: 34px; height: 34px; font-size: 15px; }
  .tour-text { font-size: 16px; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.points { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.points li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.points strong { display: block; }
.points span { display: block; color: var(--muted); margin-top: 2px; }
.points--lg { margin: 0; }
.points--lg li { padding: 20px 0; }
.points--lg strong { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.points--night { border-color: var(--night-line); margin-top: 32px; }
.points--night li { border-color: var(--night-line); }
.points--night strong { color: var(--cream); }
.points--night span { color: var(--night-muted); font-size: 15px; }

.demo { background: #fff; border-radius: 28px; padding: 18px; box-shadow: var(--shadow-lg); max-width: 480px; margin: 0 auto; width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--ground); border-radius: 999px; padding: 4px; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); transition: color 0.3s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform 0.45s var(--ease-spring); }
.seg[data-view="friends"]::before { transform: translateX(100%); }
.demo-head { margin: 16px 0 8px; height: 104px; border-radius: 18px; position: relative; overflow: hidden; }
.demo-head .label { left: 14px; bottom: 14px; }
.demo-head .label strong { font-size: 18px; }
.demo-rows { display: grid; gap: 12px; margin-top: 14px; }
.demo-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px 10px 10px; border-radius: 16px; background: var(--ground); position: relative; }
.giftbox { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 3px var(--coral); color: var(--ink); }
.giftbox svg { width: 24px; height: 24px; }
.demo-row strong { font-size: 15px; display: block; line-height: 1.2; }
.demo-row small { font-size: 12px; color: var(--muted); font-weight: 600; }
.demo-row .price { font-family: var(--display); font-weight: 700; font-size: 16px; }
.demo-row .who {
  position: absolute; right: 10px; top: -9px;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--pine); color: #fff;
  transform: scale(0.6) rotate(-6deg); opacity: 0; transition: transform 0.45s var(--ease-spring), opacity 0.3s;
}
.demo[data-view="friends"] .demo-row .who { opacity: 1; transform: rotate(-3deg); transition-delay: var(--d, 0s); }
.demo-note { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ground); font-size: 13px; font-weight: 600; color: var(--muted); min-height: 50px; }
.demo-note svg { width: 18px; height: 18px; flex: none; }
.demo-note [data-for] { display: none; }
.demo[data-view="owner"] .demo-note [data-for="owner"], .demo[data-view="friends"] .demo-note [data-for="friends"] { display: inline; }

/* Cadeau commun */
.gg { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow-lg); max-width: 480px; width: 100%; margin: 0 auto; }
.gg-top { display: flex; gap: 16px; align-items: center; }
.gg-top .giftbox { width: 64px; height: 64px; border-radius: 16px; box-shadow: inset 0 0 0 4px var(--sun); }
.gg-top strong { font-family: var(--display); font-size: 22px; display: block; line-height: 1.1; }
.gg-top small { color: var(--muted); font-weight: 600; }
.gg-bar { display: flex; height: 16px; border-radius: 999px; margin: 22px 0 12px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.gg-bar i { display: block; height: 100%; width: 0; transition: width 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.gg-bar i + i { box-shadow: -2px 0 0 #fff; }
.gg-total { font-family: var(--display); font-weight: 700; font-size: 20px; }
.gg-people { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.gg-people li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; opacity: 0; transform: translateX(-12px); transition: opacity 0.5s, transform 0.5s var(--ease-out); transition-delay: var(--d, 0s); }
.gg.is-in .gg-people li { opacity: 1; transform: none; }
.gg-people .dot { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--display); font-size: 15px; }
.gg-people b { font-family: var(--display); }
.gg-foot { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Proches et calendrier */
.tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; padding-top: 40px; }
.tags .luggage-wrap { transform: rotate(var(--r, 0deg)); transition: transform 0.6s var(--ease-spring); }
.tags .luggage-wrap:hover { transform: rotate(calc(var(--r, 0deg) * -1)); }
.js .tags.is-in .luggage-wrap { animation: swing 2.4s ease-in-out both; animation-delay: var(--d, 0s); }
@keyframes swing { 0% { transform: rotate(14deg); } 30% { transform: rotate(-8deg); } 55% { transform: rotate(4deg); } 80% { transform: rotate(-1deg); } 100% { transform: rotate(var(--r, 0deg)); } }
.tags .luggage { padding: 40px 14px 16px; min-height: 172px; display: flex; flex-direction: column; }
.tags .avatar { width: 54px; height: 54px; background: transparent; }
.tags strong { font-family: var(--display); font-size: 19px; margin-top: 12px; line-height: 1.05; }
.tags small { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; margin-top: 4px; }
.tags .jn { position: absolute; right: 12px; top: 22px; }
@media (max-width: 560px) { .tags { grid-template-columns: repeat(2, 1fr); } .tags > :nth-child(3) { display: none; } }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cards3 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; margin-top: 18px; }
.card p { color: var(--muted); margin-top: 10px; }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.card .icon svg { width: 26px; height: 26px; }

/* Captures alignées, chacune avec sa légende. */
.shots { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: clamp(20px, 4vw, 56px); margin-top: clamp(64px, 9vw, 104px); }
.shots figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.shots .phone { --w: min(250px, 26vw); }
.shots figcaption { font-weight: 700; font-size: 15px; color: var(--muted); text-align: center; }
.night .shots figcaption { color: var(--night-muted); }
@media (max-width: 600px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding: 0 var(--gutter); }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { scroll-snap-align: start; }
  .shots .phone { --w: min(210px, 56vw); }
}

/* ------------------------------------------------------------------ */
/* Secret Santa (nuit)                                                 */
/* ------------------------------------------------------------------ */

.night { background: var(--night); color: var(--cream); overflow: hidden; }
.night .eyebrow { color: var(--sun); }
.night .lead, .night p { color: var(--night-muted); }
.night h2, .night h3 { color: var(--cream); }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--cream); opacity: 0.6; animation: twinkle 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.stars i.gold { background: var(--sun); width: 4px; height: 4px; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.2); } }

.garland { position: relative; height: 210px; margin: 0 calc(var(--gutter) * -1) 24px; }
.garland svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.garland .wire { fill: none; stroke: #1E7A50; stroke-width: 5; stroke-linecap: round; }
.garland .wire-dots { fill: none; stroke: #3BAA74; stroke-width: 5; stroke-dasharray: 0.1 14; stroke-linecap: round; }
.garland .bulb { fill: #2a3358; transition: fill 0.25s; }
.garland .bulb.lit { fill: var(--bulb); filter: drop-shadow(0 0 6px rgba(255, 224, 138, 0.95)); }
.ornaments { position: absolute; inset: 0; }
.ornament {
  position: absolute; width: 64px; margin-left: -32px; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.ornament::before { content: ""; width: 2px; height: var(--h, 18px); background: var(--cap); opacity: 0.6; }
.ornament .cap { width: 16px; height: 8px; border-radius: 3px 3px 1px 1px; background: var(--cap); }
.ornament .ball {
  width: 56px; height: 56px; border-radius: 50%; margin-top: -1px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px;
  background: var(--c); color: var(--t, var(--cream));
  position: relative; overflow: hidden;
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.14);
}
.ornament .ball::after { content: ""; position: absolute; left: 22%; top: 16%; width: 26%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transform: rotate(-30deg); }
.ornament.is-me .ball { box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.14), 0 0 0 3px var(--cream); }
.ornament small { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--cream); white-space: nowrap; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (max-width: 720px) { .ornament.hide-sm { display: none; } .garland { height: 180px; } }

.santa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .santa-grid { grid-template-columns: 1fr; } }
.tree-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.tree { width: min(360px, 80vw); height: auto; overflow: visible; }
.tree .tier { transform-box: fill-box; transform-origin: 50% 100%; }
.js .tree .tier, .js .tree .star, .js .tree .tball { opacity: 0; }
.tree.is-in .tier { animation: grow 0.7s var(--ease-spring) both; animation-delay: var(--d); }
.tree.is-in .star { animation: pop 0.6s var(--ease-spring) both 1.5s; }
.tree.is-in .tball { animation: pop 0.5s var(--ease-spring) both; animation-delay: var(--d); }
.tree .star { transform-box: fill-box; transform-origin: center; }
.tree .tball { transform-box: fill-box; transform-origin: center; }
.tree .mine { stroke: var(--cream); stroke-width: 3; }
@keyframes grow { from { opacity: 0; transform: scaleY(0.2) scaleX(0.6); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.tree .glow { opacity: 0; filter: blur(12px); }
.tree.is-in .glow { animation: glow 3s ease-in-out infinite 2s; }
@keyframes glow { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.6; } }

.night .phone { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #2c3547; background: #070b20; }

/* Prix : un ticket cadeau */
.fine { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 46ch; }
.receipt {
  --paper: #FFFDF8;
  position: relative; max-width: 380px; width: 100%; margin: 0 auto; padding: 30px 28px 40px;
  background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 24px 30px rgba(24, 32, 46, 0.14)) drop-shadow(0 2px 2px rgba(24, 32, 46, 0.06));
  /* Bas déchiré en dents de scie, comme le papier de l'écran de lancement. */
  --tooth: 14px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) var(--tooth) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) var(--tooth) repeat-x;
}
.js .receipt.reveal { transform: translateY(24px) rotate(1.5deg); }
.js .receipt.reveal.is-in { transform: rotate(1.5deg); }
.receipt-head { text-align: center; padding-bottom: 18px; border-bottom: 2px dashed var(--rule-strong); }
.receipt-head strong { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.receipt-head span { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.receipt dl { margin: 14px 0 0; }
.receipt dl div { display: flex; align-items: baseline; padding: 7px 0; font-size: 15px; }
.receipt dt { flex: 1; display: flex; gap: 8px; font-weight: 600; }
.receipt dt::after { content: ""; flex: 1; border-bottom: 2px dotted var(--rule-strong); transform: translateY(-5px); }
.receipt dd { margin: 0; padding-left: 8px; font-weight: 700; white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 16px; border-top: 2px dashed var(--rule-strong); font-family: var(--display); font-weight: 800; font-size: 24px; }
.receipt-foot { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Appel final */
.cta-band { position: relative; border-radius: 36px; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; background: var(--coral); box-shadow: inset 0 5px 0 rgba(255,255,255,.18); }
.cta-band::after { content: ""; position: absolute; top: 0; bottom: 0; right: 22%; width: 44px; background: var(--coral); box-shadow: inset 5px 0 0 rgba(255,255,255,.18); }
.cta-card { position: relative; z-index: 2; background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.cta-card h2 { font-size: clamp(34px, 4.6vw, 54px); }
.cta-card p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.cta-card .store-buttons { margin-top: 26px; }
.cta-band .bow { position: absolute; z-index: 3; right: calc(22% - 64px); top: calc(50% - 53px); width: 172px; color: var(--coral); }
.js .cta-band .bow { transform: scale(0.4) rotate(-30deg); opacity: 0; transition: transform 0.9s var(--ease-spring), opacity 0.4s; }
.js .cta-band.is-in .bow { transform: none; opacity: 1; }
@media (max-width: 880px) {
  /* Le ruban passe à la verticale derrière la carte, le nœud au-dessus. */
  .cta-band { grid-template-columns: 1fr; padding-top: 112px; }
  .cta-band::before { display: none; }
  .cta-band::after { right: calc(50% - 22px); }
  .cta-band .bow { right: calc(50% - 86px); top: 20px; }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.3s var(--ease-out); }
.faq details[open]:not(.is-closing) summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* ------------------------------------------------------------------ */
/* Pages de texte (aide, légal)                                        */
/* ------------------------------------------------------------------ */

.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 12px; }
.page-head .lead { margin-top: 16px; max-width: 60ch; }
.prose { padding-bottom: 96px; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #2b3446; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose .box { background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: #fafbfc; }
.prose tr:last-child td { border-bottom: 0; }
.todo { background: var(--blush); color: var(--coral-text); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.updated { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ------------------------------------------------------------------ */
/* Télécharger                                                         */
/* ------------------------------------------------------------------ */

.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } }
.dl-card { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; position: relative; }
.dl-card.is-mine { box-shadow: var(--shadow-lg), inset 0 0 0 3px var(--ink); }
.dl-card h2 { font-size: 30px; display: flex; gap: 12px; align-items: center; }
.dl-card h2 svg { width: 30px; height: 30px; }
.dl-card p { color: var(--muted); }
.dl-card .btn { align-self: flex-start; margin-top: auto; }
.dl-card .mine { position: absolute; top: 20px; right: 20px; }
.dl-card .meta { font-size: 14px; color: var(--muted); }

.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 18px;
  border-radius: 16px; border: 0; background: var(--ground);
  font: 500 17px var(--body); color: var(--ink);
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.2s, background-color 0.2s;
}
.field input:focus, .field select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.field .radios label { cursor: pointer; display: inline; margin: 0; text-transform: none; letter-spacing: 0; font-size: inherit; color: inherit; position: relative; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--ground); font-weight: 700; font-size: 15px; transition: background-color 0.2s, color 0.2s; }
.radios input:checked + span { background: var(--ink); color: #fff; }
.radios input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-msg { font-weight: 600; font-size: 15px; min-height: 1.5em; }
.form-msg.ok { color: var(--pine); }
.form-msg.err { color: var(--coral-text); }

.waitlist { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 20px; }
.waitlist h2 { font-size: clamp(28px, 3.4vw, 38px); }
.waitlist p { color: var(--muted); margin-top: 12px; }
.waitlist.contact { grid-template-columns: 1fr auto; align-items: center; }
.btn--wrap { white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 760px) { .waitlist, .waitlist.contact { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Invitations (/join/…) et réservation (/reservation/…)               */
/* ------------------------------------------------------------------ */

.app-page { min-height: 100vh; display: flex; flex-direction: column; }
.app-page main { flex: 1; }
.invite { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) 80px; }

.list-head {
  position: relative; height: 210px; margin: 0 calc(var(--gutter) * -1);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
}
@media (min-width: 680px) { .list-head { margin: 0; border-radius: 28px 28px 0 0; } }
.list-head .label { left: 20px; bottom: 34px; padding: 12px 22px 12px 34px; }
.list-head .label strong { font-size: 26px; }
.list-head .label small { font-size: 13px; }
.list-head .stamp { right: 20px; top: 22px; }
.js .list-head .label { animation: label-in 0.8s var(--ease-spring) both 0.2s; }
@keyframes label-in { from { transform: translateX(-30px) rotate(-8deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.list-head .label { transform: rotate(-2deg); }

.owner-line { display: flex; align-items: center; gap: 12px; margin: 20px 0 6px; }
.owner-line .avatar { width: 44px; height: 44px; font-size: 18px; border: 0; background: var(--coral); }
.owner-line strong { font-family: var(--display); font-size: 22px; line-height: 1.1; display: block; }
.owner-line small { color: var(--muted); font-weight: 600; font-size: 14px; }

.open-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 22px; margin: 20px 0 28px; }
.open-card h2 { font-size: 22px; letter-spacing: -0.015em; }
.open-card p { color: rgba(255, 255, 255, 0.72); margin-top: 6px; font-size: 15px; }
.open-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.open-card .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.open-card .btn--ghost:hover { background: #fff; color: var(--ink); }
.open-card details { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.open-card summary { cursor: pointer; font-weight: 600; color: #fff; }
.open-card ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }

.wishes { display: grid; gap: 10px; }
.wish {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px;
  background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease-out) both; animation-delay: var(--d, 0s);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.wish .thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 3px var(--coral); display: grid; place-items: center; }
.wish .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wish .thumb svg { width: 30px; height: 30px; }
.wish-top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.wish h3 { font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.wish .price { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.wish .notes { color: var(--muted); font-size: 14px; margin-top: 2px; }
.wish .hearts { color: var(--coral-text); font-size: 12px; font-weight: 700; margin-top: 4px; display: inline-flex; gap: 4px; align-items: center; }
.wish .hearts svg { width: 12px; height: 12px; }
.wish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.wish-actions .shop { font-size: 14px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.wish-actions .shop svg { width: 16px; height: 16px; }
.wish-actions .shop:hover { text-decoration: underline; }
.wish-actions .btn { margin-left: auto; }
.wish .commission { font-size: 12px; color: var(--muted); margin-top: 4px; }
.taken { margin-left: auto; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ground); color: var(--muted); }
.taken--mine { background: var(--pine); color: #fff; text-decoration: none; }
.wish.is-taken .thumb, .wish.is-taken h3, .wish.is-taken .price { opacity: 0.55; }
.lock-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); }
.lock-note svg { width: 18px; height: 18px; flex: none; }

.skeleton { background: linear-gradient(90deg, #e6e9ef 0, #f4f5f8 40%, #e6e9ef 80%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 20px; }
@keyframes shimmer { to { background-position: -150% 0; } }

.state { text-align: center; padding: 64px 0 24px; }
.state h1 { font-size: clamp(32px, 6vw, 44px); margin-top: 24px; }
.state p { color: var(--muted); margin: 14px auto 0; max-width: 40ch; }
.state .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.state-art { width: 160px; height: 120px; margin: 0 auto; }

.invite-hero { text-align: center; padding: 48px 0 8px; }
.invite-hero h1 { font-size: clamp(34px, 7vw, 52px); margin-top: 22px; }
.invite-hero p { color: var(--muted); margin: 14px auto 0; max-width: 38ch; font-size: 18px; }
.invite-hero .luggage-wrap { width: 230px; margin: 40px auto 0; text-align: left; }
.js .invite-hero .luggage-wrap { animation: swing 2.4s ease-in-out both 0.2s; }
.invite-hero .luggage { padding: 40px 18px 18px; }
.faces { display: flex; }
.faces span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--cream); margin-right: -8px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; color: #fff; }

.night-page { background: var(--night); color: var(--cream); }
.night-page .site-header.is-scrolled { background: rgba(15, 22, 54, 0.86); box-shadow: 0 1px 0 var(--night-line); }
.night-page .brand { color: var(--cream); }
.night-page .site-header .btn--ink { background: var(--cream); color: var(--ink); }
.night-page .invite-hero p, .night-page .muted { color: var(--night-muted); }
.night-page .open-card { background: var(--night-surface); box-shadow: inset 0 0 0 1px var(--night-line); }
.night-page .site-footer { background: var(--night-deep); border-color: var(--night-line); }
.night-page .site-footer a, .night-page .site-footer .fine, .night-page .site-footer h2, .night-page .footer-brand p { color: var(--night-muted); }
.night-page .site-footer .fine { border-color: var(--night-line); }
.night-page .brand img { filter: none; }

/* Feuille (réserver) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(24, 32, 46, 0.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.sheet-backdrop.is-open { opacity: 1; }
.sheet { width: 100%; max-width: 560px; background: #fff; border-radius: 28px 28px 0 0; padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.45s var(--ease-out); max-height: 92vh; overflow: auto; }
.sheet-backdrop.is-open .sheet { transform: none; }
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 28px; transform: translateY(40px) scale(0.96); } }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sheet h2 { font-size: 28px; }
.sheet .close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ground); display: grid; place-items: center; cursor: pointer; flex: none; }
.sheet .close svg { width: 18px; height: 18px; }
.sheet p { color: var(--muted); margin-top: 10px; }
.sheet .form { margin-top: 20px; }
.copy-row { display: flex; gap: 8px; margin-top: 14px; }
.copy-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--ground); font: 500 14px var(--body); color: var(--ink); }

/* Statuts d'une réservation */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.steps button { border: 0; background: var(--ground); border-radius: 16px; padding: 14px 6px; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-spring); }
.steps button svg { width: 20px; height: 20px; }
.steps button[aria-pressed="true"] { background: var(--pine); color: #fff; transform: translateY(-2px); }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--coral-text); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform 0.4s var(--ease-spring); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

/* 404 */
.lost { text-align: center; padding: clamp(48px, 10vw, 120px) 0; }
.lost h1 { font-size: clamp(44px, 8vw, 88px); margin-top: 28px; }
.lost p { color: var(--muted); margin: 16px auto 28px; max-width: 40ch; font-size: 18px; }
.lost .parcel { width: 180px; height: 140px; margin: 0 auto; transform: rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .papers-row { animation: none; }
}
