/* Resachat : le carnet à souches.
   Copies carbone jaune, rose et blanche ; encre bille bleue ; tampon violet ; numéros imprimés en rouge.
   Le vert WhatsApp reste à l'intérieur du chat. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Reenie Beanie";
  src: url("/assets/fonts/reenie-beanie-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --yellow: #f6df5c;
  --yellow-deep: #ecd03f;
  --pink: #f4c4cd;
  --pink-deep: #eaa9b6;
  --sheet: #ffffff;
  --ink: #161a3d;
  --ink-soft: #3a3f6b;
  --ink-on-pink: #4a2a3a;
  --ballpoint: #2433b5;
  --stamp: #6a2c91;
  --serial: #c8322b;

  --wa-wall: #efeae2;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-head: #008069;
  --wa-meta: #54656f;
  --wa-tick: #53bdeb;
  --wa-text: #111b21;

  --font: "Archivo", "Arial Narrow", sans-serif;
  --hand: "Reenie Beanie", "Segoe Print", cursive;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --pad: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  caret-color: var(--ballpoint);
  text-rendering: optimizeLegibility;
}

/* Le tampon démarre agrandi (scale 1.9) avant d’être posé : sans ça, la page défile en largeur sur mobile.
   Sur main et pas sur body, car body transmet son overflow au viewport. */
main { overflow-x: clip; }

::selection { background: var(--stamp); color: #fff; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--ballpoint); }

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

img, svg { display: block; }

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--yellow);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- En-tête ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.mark {
  font-weight: 850;
  font-stretch: 125%;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.mark-dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--stamp);
  display: inline-block;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-stretch: 85%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

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

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 750;
  font-stretch: 110%;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.btn:hover { background: var(--ballpoint); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.8rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--yellow); }

/* ---------- Premier écran ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 400px) minmax(250px, 320px);
  grid-template-areas:
    "head phone bon"
    "body phone bon";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 3.2vw, 52px);
  align-items: start;
  padding-block: clamp(8px, 2vh, 24px) clamp(56px, 8vh, 96px);
}
.hero-head { grid-area: head; padding-top: clamp(8px, 4vh, 48px); }
.hero-body { grid-area: body; }
.phone-col { grid-area: phone; }
.bon-col { grid-area: bon; }

.hero h1 {
  margin: 0;
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(2.6rem, 4.3vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 .clock {
  display: block;
  font-family: var(--hand);
  font-weight: 400;
  font-stretch: 100%;
  color: var(--ballpoint);
  font-size: 1.15em;
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 0.08em;
}
.hero-lede {
  margin: 1.4rem 0 0;
  max-width: 34ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.hero-price {
  font-stretch: 85%;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-price strong { color: var(--ink); }

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

.phone-col { position: relative; }

.phone-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 10px;
  font-stretch: 80%;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: clamp(540px, calc(100svh - 150px), 720px);
  border-radius: 34px;
  border: 9px solid #15171c;
  background: var(--wa-wall);
  overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(22, 26, 61, 0.45), 0 6px 14px -6px rgba(22, 26, 61, 0.3);
  font-family: var(--ui);
  color: var(--wa-text);
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--wa-head);
  color: #fff;
  flex: none;
}
.wa-back { width: 20px; height: 20px; opacity: 0.9; }
.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4c4cd;
  color: #4a2a3a;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}
.wa-who { min-width: 0; line-height: 1.2; }
.wa-name { font-weight: 600; font-size: 1rem; }
.wa-status { font-size: 0.78rem; min-height: 1.2em; }
.wa-icons { margin-left: auto; display: flex; gap: 18px; opacity: 0.95; }
.wa-icons svg { width: 20px; height: 20px; }

.wa-thread {
  list-style: none;
  margin: 0;
  padding: 10px 12px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 27, 33, 0.25) transparent;
  overscroll-behavior: contain;
}
.wa-day {
  align-self: center;
  background: #ffffff;
  color: var(--wa-meta);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  margin: 4px 0 8px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.wa-note {
  align-self: center;
  max-width: 88%;
  text-align: center;
  background: #ffeecd;
  color: #54656f;
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.msg {
  position: relative;
  max-width: 86%;
  padding: 6px 9px 8px;
  border-radius: 9px;
  font-size: 0.9rem;
  line-height: 1.38;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.msg p { margin: 0; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 4px; }
.msg ul { margin: 2px 0 0; padding-left: 1.1em; }
.msg.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 0; }
.msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 0; }

.msg-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--wa-meta);
  font-variant-numeric: tabular-nums;
}
.msg-meta .bot {
  margin-right: auto;
  padding-right: 10px;
  font-weight: 600;
  color: #1f7a5a;
}
.ticks { width: 16px; height: 11px; color: var(--wa-tick); }

.quote {
  margin: 6px 0 2px;
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.quote td { padding: 1px 0; }
.quote td:last-child { text-align: right; padding-left: 12px; white-space: nowrap; }
.quote tr.total td { border-top: 1px solid rgba(17, 27, 33, 0.18); padding-top: 4px; font-weight: 700; }

.paycard {
  margin: 6px 0 2px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(17, 27, 33, 0.08);
}
.paycard-top {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 8px;
}
.paycard-lock {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.paycard-lock svg { width: 18px; height: 18px; }
.paycard-label { font-size: 0.75rem; color: var(--wa-meta); display: block; }
.paycard-amount { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.paycard-note {
  margin: 0;
  padding: 0 10px 8px;
  font-size: 0.75rem;
  color: #3b4a54;
}
.paycard-btn {
  display: block;
  text-align: center;
  padding: 9px;
  border-top: 1px solid rgba(17, 27, 33, 0.1);
  color: #027eb5;
  font-weight: 600;
  font-size: 0.86rem;
}

.typing {
  align-self: flex-end;
  background: var(--wa-out);
  border-radius: 9px;
  border-top-right-radius: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #1f7a5a;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f7a5a;
  opacity: 0.35;
  animation: dot 1.1s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-2px); } }

.wa-compose {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 12px;
  background: transparent;
}
.wa-input {
  flex: 1;
  background: #fff;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--wa-meta);
}
.wa-mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wa-head);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.wa-mic svg { width: 20px; height: 20px; }

.replay {
  margin: 14px auto 0;
  display: flex;
}
.replay[hidden] { display: none; }

/* Animation du chat : uniquement quand le JS a pris la main. */
.js .wa-thread .msg:not(.is-shown) { display: none; }
.js .wa-thread .msg.is-shown { animation: msg-in 0.42s var(--ease-out) both; }
.js .wa-thread .msg.in.is-shown { transform-origin: top left; }
.js .wa-thread .msg.out.is-shown { transform-origin: top right; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
}

/* ---------- Le bon de réservation ---------- */

.bon-col { padding-top: clamp(40px, 9vh, 96px); }

.bon {
  position: relative;
  background: var(--sheet);
  color: var(--ink);
  padding: 18px 18px 16px 30px;
  transform: rotate(1.6deg);
  box-shadow: 0 18px 34px -16px rgba(22, 26, 61, 0.45), 0 2px 4px rgba(22, 26, 61, 0.12);
  /* Souche perforée à gauche. */
  background-image:
    radial-gradient(circle at 9px 50%, var(--yellow) 3.2px, transparent 3.8px);
  background-size: 18px 14px;
  background-repeat: repeat-y;
  background-position: 0 4px;
}
.bon::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed rgba(22, 26, 61, 0.35);
}
.bon-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.bon-hotel { font-weight: 800; font-stretch: 105%; font-size: 1rem; line-height: 1.15; }
.bon-city { display: block; font-weight: 500; font-stretch: 85%; font-size: 0.78rem; color: var(--ink-soft); }
.bon-serial {
  font-stretch: 75%;
  font-weight: 700;
  color: var(--serial);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bon-title {
  margin: 10px 0 6px;
  font-stretch: 70%;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bon-rows { margin: 0; }
.bon-row {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  align-items: baseline;
  gap: 6px;
  padding-top: 8px;
  border-bottom: 1px dotted rgba(22, 26, 61, 0.45);
}
.bon-row dt {
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 5px;
}
.bon-row dd {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.05;
  color: var(--ballpoint);
  padding-bottom: 3px;
}
.bon-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-height: 64px;
}
.bon-foot {
  margin: 0;
  max-width: 9em;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--ballpoint);
  line-height: 1.1;
}

.stamp {
  flex: none;
  padding: 6px 10px 5px;
  border: 3px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  font-stretch: 75%;
  font-weight: 850;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
  /* Encre irrégulière du tampon. */
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.75) 75%, #000 100%);
  mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.75) 75%, #000 100%);
}
.stamp small {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.js .bon-row dd { clip-path: inset(0 100% 0 0); }
.js .bon-row.is-filled dd { clip-path: inset(0 0 0 0); transition: clip-path 0.9s cubic-bezier(0.45, 0.05, 0.35, 1); }
.js .bon-foot:not(.is-filled) { visibility: hidden; }
.js .stamp:not(.is-filled) { opacity: 0; transform: rotate(-9deg) scale(1.9); }
.js .stamp.is-filled { animation: stamp 0.5s var(--ease-out) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.9); }
  60% { opacity: 0.95; transform: rotate(-8deg) scale(0.96); }
  100% { opacity: 0.88; transform: rotate(-9deg) scale(1); }
}

.bon-legend {
  margin: 18px 6px 0;
  font-stretch: 85%;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

/* ---------- Perforations entre les copies ---------- */

.perf {
  height: 16px;
  background-color: var(--from);
  background-image: radial-gradient(circle at 8px 16px, var(--to) 4.5px, transparent 5px);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}
.perf-yellow-pink { --from: var(--yellow); --to: var(--pink); }
.perf-pink-yellow { --from: var(--pink); --to: var(--yellow); }
.perf-yellow-white { --from: var(--yellow); --to: var(--sheet); }

/* ---------- La nuit, heure par heure ---------- */

.night { background: var(--pink); color: var(--ink); padding-block: clamp(64px, 10vw, 128px); }
.night h2, .trial h2, .join h2 {
  margin: 0;
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 18ch;
}
.night-list {
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.night-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 2fr;
  gap: 8px clamp(20px, 4vw, 64px);
  padding: clamp(20px, 3vw, 34px) 0;
  border-bottom: 1px dotted rgba(22, 26, 61, 0.5);
}
.night-time {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.night-time small {
  font-size: max(0.32em, 0.8rem);
  font-stretch: 90%;
  letter-spacing: 0.04em;
  margin-left: 0.25em;
  text-transform: uppercase;
}
.night-list li:last-child .night-time { color: var(--stamp); }
.night-list h3 {
  margin: 0 0 6px;
  font-weight: 750;
  font-stretch: 105%;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.15;
}
.night-list p { margin: 0; max-width: 58ch; color: var(--ink-on-pink); }

/* ---------- L'essai ---------- */

.trial { padding-block: clamp(64px, 10vw, 128px); }
.trial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px dotted rgba(22, 26, 61, 0.5);
}
.steps li::before {
  content: counter(step);
  font-family: var(--hand);
  font-size: 2.4rem;
  line-height: 0.8;
  color: var(--ballpoint);
}
.steps strong { display: block; font-weight: 750; font-stretch: 105%; font-size: 1.15rem; }
.steps p { margin: 2px 0 0; color: var(--ink-soft); max-width: 52ch; }

.price {
  position: relative;
  background: var(--sheet);
  padding: 26px 24px 22px;
  transform: rotate(-1.2deg);
  box-shadow: 0 18px 34px -16px rgba(22, 26, 61, 0.45), 0 2px 4px rgba(22, 26, 61, 0.12);
  margin-top: clamp(0px, 4vw, 48px);
}
.price-title {
  margin: 0;
  font-stretch: 70%;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0 12px;
  border-bottom: 1px dotted rgba(22, 26, 61, 0.45);
}
.price-row span { font-stretch: 85%; font-weight: 600; color: var(--ink-soft); }
.price-row b {
  font-weight: 850;
  font-stretch: 112%;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.price-row b small { display: block; font-size: 0.48em; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin-top: 4px; }
.price-note {
  margin: 14px 0 0;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ballpoint);
}

/* ---------- Inscription (la copie blanche) ---------- */

.join { background: var(--sheet); padding-block: clamp(64px, 10vw, 128px); }
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.join-intro p { color: var(--ink-soft); max-width: 40ch; margin: 1.2rem 0 0; font-size: 1.1rem; }

.form { display: grid; gap: 22px; }
.form[hidden], .qualify[hidden], .done[hidden] { display: none; }
.field { display: grid; gap: 4px; }
.field label, .legend {
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input {
  font-family: var(--hand);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ballpoint);
  background: transparent;
  border: 0;
  border-bottom: 2px dotted rgba(22, 26, 61, 0.55);
  padding: 4px 2px 2px;
  border-radius: 0;
  width: 100%;
}
.field input::placeholder { color: rgba(36, 51, 181, 0.6); }
.field input:focus { outline: none; border-bottom: 2px solid var(--ballpoint); background: rgba(246, 223, 92, 0.25); }
.field input:user-invalid { border-bottom-color: var(--serial); }
.hint { font-size: 0.85rem; color: var(--ink-soft); }

.check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--yellow);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%232433b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform 0.18s var(--ease-out);
}
.check input:checked::after { transform: scale(1); }
.check strong { display: block; font-weight: 750; }
.check span { font-size: 0.92rem; color: var(--ink-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.privacy { margin: 0; font-size: 0.85rem; color: var(--ink-soft); max-width: 46ch; }

.alert {
  margin: 0;
  padding: 10px 14px;
  background: #fde8e6;
  color: #8a1f18;
  font-size: 0.95rem;
}
.alert:empty { display: none; }

.qualify h3, .done h3 {
  margin: 0;
  font-weight: 850;
  font-stretch: 110%;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.qualify > p, .done p { margin: 8px 0 0; color: var(--ink-soft); }
.qualify form { display: grid; gap: 22px; margin-top: 22px; }
.qualify fieldset { border: 0; margin: 0; padding: 0; }
.qualify .legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s, color 0.15s;
}
.chip input:hover + span { background: rgba(246, 223, 92, 0.5); }
.chip input:checked + span { background: var(--ink); color: var(--yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--ballpoint); outline-offset: 2px; }
.qualify-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkish {
  background: none;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.done { padding: 24px; background: var(--yellow); }

/* ---------- Pied de page ---------- */

.foot { background: var(--ink); color: var(--yellow); padding-block: 40px; font-size: 0.92rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .mark { color: var(--yellow); }
.foot .mark-dot { background: var(--pink); }
.foot small { color: #c9c48f; }

/* ---------- Pages simples (merci, confidentialité, 404) ---------- */

.page { padding-block: clamp(40px, 8vw, 96px); }
.sheet {
  background: var(--sheet);
  padding: clamp(24px, 5vw, 56px);
  max-width: 760px;
  box-shadow: 0 18px 34px -16px rgba(22, 26, 61, 0.45);
}
.sheet h1 {
  margin: 0 0 0.6em;
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.sheet h2 { font-weight: 750; font-stretch: 105%; font-size: 1.25rem; margin: 1.8em 0 0.4em; }
.sheet p, .sheet li { max-width: 68ch; }

/* ---------- Adaptation ---------- */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas:
      "head phone"
      "body phone"
      "bon phone";
    grid-template-rows: auto auto 1fr;
  }
  .bon-col { padding-top: 40px; max-width: 340px; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .top-nav .top-cta { display: none; }
  .hero {
    grid-template-columns: 1fr;
    /* Titre, phrase courte et bouton d'abord, puis le chat dont le haut reste dans le premier écran. */
    grid-template-areas: "head" "body" "phone" "bon";
    grid-template-rows: auto;
    row-gap: 20px;
    padding-bottom: 56px;
  }
  .hero-head { padding-top: 0; }
  .hero-lede { margin-top: 0; }
  .hero-lede .lede-more { display: none; }
  .hero-actions { margin-top: 1rem; }
  .phone { height: min(640px, 78svh); border-width: 7px; border-radius: 28px; }
  .bon-col { padding-top: 8px; }
  .bon { transform: rotate(0.8deg); }
  .night-list li { grid-template-columns: 1fr; }
  .trial-grid, .join-grid { grid-template-columns: 1fr; }
  .price { transform: none; }
}

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