/* Lucide : tokens. Couleurs tirées du sujet : une chambre de nuit, puis la lumière du jour. */
:root {
  --bg: #111210;
  --surface: #1c1d1a;
  --surface-2: #2a2b27;
  --ink: #efefec;
  --muted: #b3b1a7;
  --accent: #d7e36f;
  --accent-ink: #14150f;
  --field-1: #1c1d1a;  --field-1-ink: #efefec;
  --field-2: #363832;  --field-2-ink: #efefec;
  --field-3: #aab09e;  --field-3-ink: #14150f;
  --field-4: #d7e36f;  --field-4-ink: #14150f;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(20px, 2.8vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --r: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h2 {
  font-size: var(--step-head);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.btn {
  display: inline-block;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s var(--ease), background-color .15s linear;
}
.btn:hover { background: #e6f081; }
.btn:active { transform: scale(.97); }

.link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .15s linear;
}
.link:hover { color: var(--accent); }

/* Entrées au scroll : le contenu reste visible sans JavaScript. */
.js [data-in] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-in].on { opacity: 1; transform: none; }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: var(--m);
}
.brand {
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; }
.js .line > span { animation: rise .9s var(--ease) both; }
.js .line:nth-child(2) > span { animation-delay: .11s; }
.js .after-h1 { animation: fade .7s linear .55s both; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; } }
.hero-copy { margin: 20px 0 28px; max-width: 44ch; }
.hero-proof { margin-top: 14px; color: var(--muted); font-size: var(--step-small); }
html:not([data-v="b"]) .v-b, html:not([data-v="l"]) .v-l, html[data-v="b"] .v-a, html[data-v="l"] .v-a { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px var(--m) var(--m);
  background: var(--surface);
}
.hero-top {
  position: absolute;
  top: var(--m);
  right: var(--m);
}
.hero-stage .hero-phone { display: none; }
.hero-peek {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  width: min(450px, 100%);
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
}
.hero-peek span { color: var(--muted); }
.hero-peek b { font-weight: 500; }
.hero-peek .meter { grid-column: 1 / -1; margin-top: 6px; }
@media (min-width: 1200px) {
  .hero-stage { grid-template-columns: auto auto; justify-content: center; gap: 24px; }
  .hero-stage .guide { width: clamp(340px, 27vw, 430px); }
  .hero-stage .hero-phone { display: block; width: clamp(180px, 15vw, 230px); }
  .hero-peek { display: none; }
}

/* Explication du bouton d'urgence */
.guide {
  width: min(450px, 100%);
  padding: 28px;
  background: var(--bg);
  border-radius: 20px;
}
.guide-tag { color: var(--muted); font-size: var(--step-small); }
.guide h2 { margin-top: 12px; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; }
.guide-lead { margin-top: 14px; }
.guide-list { display: grid; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }
.guide-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.guide-list b { font-weight: 500; color: var(--accent); }
.guide-list span { color: var(--muted); font-size: var(--step-small); }
.urge-stop { background: none; border: 0; padding: 4px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.quiz-row input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 16px;
}
.quiz-row input::placeholder { color: var(--muted); }

/* QUIZ */
.quiz {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: var(--m);
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.quiz-bar { display: flex; justify-content: space-between; align-items: center; }
.quiz-panel { width: min(680px, 100%); margin: clamp(32px, 9vh, 96px) auto 0; }
.quiz-panel[hidden] { display: none; }
.quiz-count { color: var(--muted); font-size: var(--step-small); }
.quiz .meter { margin-top: 12px; }
.quiz .meter i { transition: width .3s var(--ease); }
.quiz h2 { margin-top: 28px; outline: 0; }
.quiz-options { display: grid; gap: 8px; margin-top: 32px; }
.quiz-options button {
  min-height: 64px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--step-lead);
  font-weight: 300;
  letter-spacing: -0.015em;
  text-align: left;
  transition: background-color .15s linear, color .15s linear;
}
.quiz-options button:hover { background: var(--accent); color: var(--accent-ink); }
.quiz-back { margin-top: 20px; }
.quiz-intro { margin-top: 16px; max-width: 48ch; }
.quiz .answer { margin-top: 28px; font-size: 16px; }
.quiz-form { margin-top: 32px; }
.quiz-form label { display: block; font-weight: 500; }
.quiz-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.quiz-offer { margin-top: 28px; padding: 24px; border-radius: var(--r); background: var(--surface); }
.quiz-offer-tag { color: var(--muted); font-size: var(--step-small); }
.quiz-offer-price { margin-top: 8px; }
.quiz-offer-price b { font-size: var(--step-head); font-weight: 400; letter-spacing: -0.03em; margin-right: 8px; }
.quiz-offer .btn { display: block; margin-top: 16px; text-align: center; }
.quiz-offer .privacy-note { margin-top: 12px; }
.quiz-form label { color: var(--muted); font-weight: 400; }
.quiz-form .btn { background: var(--surface); color: var(--ink); }
.quiz-form .btn:hover { background: var(--accent); color: var(--accent-ink); }

/* DÉCLENCHEURS */
.trigger { padding: var(--gap) var(--m) 0; min-height: 88svh; }
.trigger label { display: block; }
.trigger-input-wrap { margin-top: 28px; }
.trigger-input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  caret-color: var(--accent);
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.trigger-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.answer { display: grid; gap: 3px; margin-top: 48px; max-width: 620px; font-size: 14px; }
.answer li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 20px; background: var(--surface); border-radius: var(--r); }
.answer span { color: var(--muted); }
.examples { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.examples button {
  padding: 4px 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .15s linear;
}
.examples button:hover { color: var(--accent); }
.privacy-note { margin-top: 20px; color: var(--muted); font-size: var(--step-small); }

/* FONCTIONS */
.features { padding: var(--gap) var(--m) 0; display: grid; gap: clamp(72px, 9vw, 130px); }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature p { margin-top: 20px; max-width: 40ch; }
.stage { display: grid; place-items: center; padding: clamp(32px, 5vw, 72px); background: var(--surface); }
.stage-2 { background: var(--field-2); }
.shot { display: block; width: min(100%, var(--w)); aspect-ratio: var(--ar); overflow: hidden; border-radius: 16px; background: var(--bg); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y); transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.02); }

/* 90 JOURS */
.days { margin-top: var(--gap); display: grid; grid-template-columns: repeat(4, 1fr); }
.day {
  position: relative;
  min-height: 84svh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.day:nth-child(1) { background: var(--field-1); color: var(--field-1-ink); }
.day:nth-child(2) { background: var(--field-2); color: var(--field-2-ink); }
.day:nth-child(3) { background: var(--field-3); color: var(--field-3-ink); }
.day:nth-child(4) { background: var(--field-4); color: var(--field-4-ink); }
.day h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.day-head { min-height: 2.2em; }
.card {
  align-self: center;
  width: min(260px, 100%);
  padding: 18px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  transition: transform .15s var(--ease);
}
.day:hover .card { transform: translateY(-6px); }
.card b { display: block; font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.card small { font-size: 14px; color: var(--muted); }
.card dl { margin: 14px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-variant-numeric: tabular-nums; }
.meter { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.day-clause { font-size: clamp(22px, 2vw, 30px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }

/* PRIX */
.price { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 4fr 1fr 7fr; min-height: 80svh; align-items: center; }
.price-intro { grid-column: 1; align-self: start; }
.price-intro p { margin-top: 20px; }
.price-box { grid-column: 3; position: relative; }
.figure {
  display: flex;
  align-items: flex-start;
  font-size: clamp(120px, 16vw, 240px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: .85;
}
.figure sup { font-size: .5em; line-height: 1; margin-left: .06em; }
.figure-note { align-self: flex-end; margin-left: 16px; font-size: var(--step-body); letter-spacing: 0; line-height: 1.3; }
.badge {
  position: absolute;
  top: -8%;
  right: 0;
  width: min(220px, 34%);
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.35;
}
.badge b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.incl { margin: 36px 0 28px; display: grid; gap: 6px; }

/* FAQ */
.faq { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
.tiles { display: grid; gap: 8px; }
details { border-radius: var(--r); background: var(--surface); transition: background-color .2s linear; }
details[open] { background: var(--accent); color: var(--accent-ink); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .2s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
details p { padding: 0 24px 24px; max-width: 52ch; }

/* APPEL FINAL */
.cta { padding: var(--gap) var(--m) 0; }
.cta form { font-size: clamp(2.5rem, 6vw, 6rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.2; }
.cta h2 { display: inline; font-size: inherit; line-height: inherit; }
.cta input {
  width: 8.2em;
  height: 1.2em;
  padding: 0 .25em;
  border: 0;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 1em;
  letter-spacing: -0.03em;
  vertical-align: baseline;
}
.cta input::placeholder { color: var(--muted); }
.cta .send {
  height: 1.2em;
  padding: 0 .28em;
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1em;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform .15s var(--ease);
}
.cta .send:active { transform: scale(.97); }
.form-note { margin-top: 24px; color: var(--muted); font-size: 14px; max-width: 60ch; }
.form-msg { margin-top: 16px; }
.form-msg:empty { display: none; }

/* PIED */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin-top: 30svh;
  padding: 0 var(--m) 30px;
  font-size: 14px;
  color: var(--muted);
}
.foot nav { display: flex; gap: 24px; color: var(--ink); }
.foot span:last-child { text-align: right; }

/* TÉLÉPHONE ET TABLETTE */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { position: static; padding: 24px 20px; }
  .guide, .hero-peek { width: 100%; }
  .guide { padding: 22px; }
  .quiz-row { grid-template-columns: 1fr; }
  .quiz-row .btn { text-align: center; }
  .hero-text { justify-content: flex-start; padding: 76px 20px 36px; gap: 0; }
  .hero h1 { font-size: 8.4vw; }
  .hero-copy { margin: 12px 0 20px; }
  .brand-wrap { position: absolute; top: 20px; left: 20px; z-index: 1; }
  .hero { position: relative; }
  .hero-top { top: 22px; right: 20px; font-size: 15px; }

  .trigger-input { font-size: 11vw; }
  .answer { margin-top: 28px; }
  .answer li { grid-template-columns: 1fr; gap: 2px; }
  .examples { gap: 8px; margin-top: 24px; }
  .examples button { min-height: 44px; padding: 8px 14px; border-radius: var(--r); background: var(--surface); text-decoration: none; }

  .feature { grid-template-columns: 1fr; }
  .feature > .stage { order: 2; padding: 24px; }

  .days { grid-template-columns: 1fr 1fr; }
  .day { min-height: 56svh; padding: 28px 20px; }
  .day-clause { font-size: 24px; }

  .price { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .price-intro, .price-box { grid-column: 1; }
  .figure { font-size: 34vw; }
  .figure-note { margin-left: 10px; }
  .badge { position: static; width: auto; margin-top: 24px; }
  .price-box .btn { display: block; text-align: center; }

  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .tiles { gap: 6px; }
  summary { min-height: 64px; padding: 14px 20px; font-size: 18px; }
  details p { padding: 0 20px 20px; }

  .cta form { font-size: 10vw; }
  .cta input { display: block; width: 100%; margin: 8px 0; }

  .foot { grid-template-columns: 1fr; gap: 8px; margin-top: 20svh; padding: 0 20px 24px; font-size: 14px; }
  .foot nav { flex-wrap: wrap; gap: 8px 20px; }
  .foot span:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .days { grid-template-columns: 1fr; }
  .day-head:empty { display: none; }
  .card { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-in] { opacity: 1; transform: none; }
}
