/* Linéa CleanGap™ : landing de pré-lancement (v2)
   Tokens repris du handoff Claude Design v2 */
:root {
  --ink: #141412;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --card: #EFECE6;
  --soft: #F4F2EE;
  --stone: #E9E3D8;
  --line: #DDD7CC;
  --muted: #5E5A52;
  --body: #3A3832;
  --on-dark: #F7F5F0;
  --on-dark-muted: #B8B2A6;
  --on-dark-faint: #8C877D;
  --on-dark-line: #33322E;
  --accent: #8A4E33;
  --accent-hover: #713F29;

  --font: 'Geist', system-ui, sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --radius-tag: 4px;
  --shadow-float: 0 24px 60px -24px rgba(20, 20, 18, .22);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
input, select, button { font: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; }

.container { max-width: var(--container); width: 100%; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 80px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr)); gap: var(--gap, 40px); }
.stack { display: flex; flex-direction: column; }
.center { align-items: center; text-align: center; }

.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:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 50; background: var(--white); padding: 8px 12px; border-radius: 8px; }

/* Typo */
.h1 { font-weight: 400; font-size: clamp(40px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.h2-lg { font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.tbc { color: var(--accent); }
.mono-note { font-size: 11px; color: var(--accent); font-family: ui-monospace, monospace; }

/* Tag */
.tag {
  align-self: flex-start;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--white);
  padding: 4px 8px; border-radius: var(--radius-tag); color: var(--body);
}
.center .tag, .section-center > .tag { align-self: center; }

/* Bouton pilule avec pastille flèche */
.pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--accent); color: var(--white);
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: var(--radius-pill); font-weight: 500;
  font-size: 15px; padding: 6px 6px 6px 18px; min-height: 52px;
}
.pill:hover { background: var(--accent-hover); color: var(--white); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pill__arrow {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex; align-items: center; justify-content: center;
}
.pill--sm { font-size: 13px; padding: 6px 6px 6px 14px; min-height: 40px; }
.pill--sm .pill__arrow { width: 28px; height: 28px; }

/* Images */
.media { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r, 14px); background: var(--card); }
.frame { position: relative; width: 100%; }

/* Nav pilule */
.nav-wrap { position: sticky; top: 12px; z-index: 20; padding: 0 16px; display: flex; justify-content: center; }
.nav {
  width: 100%; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px -18px rgba(20, 20, 18, .25);
}
.nav__logo { text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.nav__links { display: flex; gap: 22px; font-size: 13px; }
.nav__links a { text-decoration: none; color: var(--body); }
.nav__links a:hover { color: var(--accent); }
@media (max-width: 719px) { .nav__links { display: none; } }

/* Hero */
.hero { position: relative; padding-top: 48px; padding-bottom: 80px; }
.hero__watermark {
  position: absolute; left: 0; right: 0; top: 42%;
  text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-size: clamp(110px, 21vw, 300px); font-weight: 500; letter-spacing: -0.06em; line-height: 1;
  color: var(--card);
}
.hero__grid { position: relative; --min: 300px; --gap: 32px; align-items: end; }
.hero__copy { gap: 16px; max-width: 380px; align-self: start; padding-top: 24px; }
.hero__sub { font-size: 12px; color: var(--muted); }
.hero__lead { font-size: 15px; line-height: 1.55; color: var(--body); }
.thumbs { display: flex; gap: 10px; margin-top: 8px; }
.thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.hero__media { aspect-ratio: 16 / 10; --r: 24px; }

.offer-card {
  grid-column: 1 / -1; justify-self: end; margin-top: -120px;
  width: 100%; max-width: 340px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-float);
}
.offer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-radius: 12px; padding: 12px 14px; font-size: 13px;
}
.offer-row--soft { background: var(--soft); }
.offer-row--soft span:first-child { color: var(--muted); }
.offer-row--soft span:last-child { font-weight: 500; }
.offer-row--line { background: var(--white); border: 1px solid var(--line); }
.offer-row--line span:first-child { display: flex; align-items: center; gap: 8px; }
.offer-row--line span:last-child { font-weight: 600; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.offer-card .pill { font-size: 14px; min-height: 48px; padding-left: 16px; }
.offer-card .pill__arrow { width: 34px; height: 34px; }
.offer-card__note { text-align: center; font-size: 11px; color: var(--muted); }
@media (max-width: 719px) { .offer-card { margin-top: 0; justify-self: stretch; max-width: none; } }

/* Accordéon numéroté (problème + FAQ) */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__h { font: inherit; }
.acc__btn {
  width: 100%; background: none; border: 0; cursor: pointer; color: var(--ink);
  padding: 20px 4px; min-height: 60px;
  display: grid; grid-template-columns: 48px 1fr 32px; gap: 16px; align-items: center; text-align: left;
}
.acc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.acc__num { font-size: 13px; color: var(--muted); }
.acc__title { font-size: 17px; font-weight: 400; }
.acc--lg .acc__btn { padding: 22px 4px; min-height: 64px; }
.acc--lg .acc__title { font-size: 19px; letter-spacing: -0.01em; }
.acc__sign {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.acc__panel { padding: 0 48px 20px 68px; display: flex; flex-direction: column; gap: 6px; }
.acc--lg .acc__panel { padding-bottom: 22px; }
.acc__panel[hidden] { display: none; }
.acc__panel p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.acc__panel .tbc-label { font-size: 12px; font-weight: 600; color: var(--accent); font-family: ui-monospace, monospace; }
@media (max-width: 480px) { .acc__panel { padding-left: 4px; padding-right: 4px; } }

/* Problème */
.problem__head { --gap: 32px; align-items: end; margin-bottom: 48px; }
.problem__head .stack { gap: 18px; max-width: 620px; }
.problem__aside { max-width: 240px; justify-self: end; }
@media (max-width: 719px) { .problem__aside { justify-self: start; } }
.problem__body { --min: 340px; align-items: end; }
.problem__media { display: grid; gap: 14px; align-items: end; }
.problem__media .frame { aspect-ratio: 16 / 9; }
.problem__media .frame:last-child { width: 88%; justify-self: end; }

/* Section centrée (solution, bénéfices, offre) */
.section-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-center .h2-lg { text-align: center; }
.solution__lead { text-align: center; max-width: 420px; margin-bottom: 28px; }
.solution__media { max-width: 880px; aspect-ratio: 16 / 10; margin-bottom: 14px; --r: 20px; }
.steps { width: 100%; max-width: 880px; --min: 220px; --gap: 14px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--card); border-radius: var(--radius-card); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

/* Bénéfices */
.benefits { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.benefits__col { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 56px; }
.benefits__media { flex: 1 1 340px; max-width: 460px; aspect-ratio: 4 / 5; --r: 24px; }
.benefit {
  background: rgba(239, 236, 230, 0.92); border-radius: var(--radius-card); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 24px 60px -30px rgba(20, 20, 18, .25);
}
.benefit__num {
  width: 30px; height: 30px; border-radius: 8px; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--accent);
}
.benefit h3 { margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.benefit--ml { margin-left: 40px; }
.benefit--mr { margin-right: 40px; }
.benefit--mt { margin-top: 24px; }
@media (max-width: 719px) {
  .benefits__col { gap: 16px; max-width: none; }
  .benefit--ml, .benefit--mr, .benefit--mt { margin: 0; }
}

/* Avant / après */
.compare__head { gap: 18px; max-width: 620px; margin-bottom: 40px; }
.compare { --min: 300px; --gap: 14px; }
.compare figure { position: relative; aspect-ratio: 4 / 3; }
.compare .media { --r: 18px; }
.compare figcaption {
  position: absolute; left: 14px; top: 14px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--white); color: var(--ink); padding: 4px 8px; border-radius: var(--radius-tag);
}
.compare figure:last-child figcaption { background: var(--ink); color: var(--white); }

/* Compatibilité */
.compat { align-items: start; }
.compat__copy { gap: 18px; max-width: 420px; }
.compat-table { border-top: 1px solid var(--line); }
.compat-table > div {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.compat-table span:first-child { font-size: 13px; color: var(--muted); }
.compat-table dt { font-size: 14px; color: var(--muted); }
.compat-table dd { font-size: 16px; }
@media (max-width: 480px) { .compat-table > div { grid-template-columns: 32px 1fr; } .compat-table dd { grid-column: 2; } }

/* FAQ */
.faq { align-items: start; }
.faq__head { gap: 18px; max-width: 420px; }

/* Offre + liste d'attente */
.waitlist { padding-top: 80px; display: flex; flex-direction: column; align-items: center; scroll-margin-top: 80px; }
.waitlist__intro { max-width: 620px; padding: 0 20px; gap: 14px; }
.waitlist__stage { position: relative; width: 100%; margin-top: 40px; }
.waitlist__banner { position: absolute; inset: 160px 0 0 0; }
.waitlist__banner .media { border-radius: 0; }
.waitlist__card-wrap { position: relative; max-width: 520px; margin: 0 auto; padding: 0 20px 120px; }
.waitlist__card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 30px 80px -30px rgba(20, 20, 18, .35);
}
.gauge { display: flex; flex-direction: column; gap: 8px; }
.gauge__labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.gauge__labels > span:first-child { font-weight: 500; }
.gauge__labels > span:last-child { color: var(--muted); }
.gauge__track { height: 6px; background: var(--card); border-radius: var(--radius-pill); overflow: hidden; }
.gauge__bar { height: 100%; width: 0; background: var(--ink); border-radius: var(--radius-pill); transition: width .6s ease; }

.form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select {
  height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
  font-size: 16px; background: var(--paper); color: var(--ink); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 78, 51, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.consent label { font-size: 13px; line-height: 1.5; color: var(--body); }
.form__error { font-size: 13px; color: var(--accent); font-weight: 500; }
.form__error:empty { display: none; }
.success { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; outline: none; }
.success[hidden] { display: none; }
.success h3 { font-weight: 400; font-size: 26px; letter-spacing: -0.02em; }
.success p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.success p:last-child { font-size: 13px; }
.success strong { color: var(--ink); font-weight: 500; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); }
.footer__inner { padding-top: 56px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 40px; }
.footer__cols { --min: 200px; --gap: 32px; }
.footer__tagline { font-size: 15px; line-height: 1.5; color: var(--on-dark); max-width: 280px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer__nav span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-faint); }
.footer__nav a { color: var(--on-dark-muted); text-decoration: none; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__word { font-size: clamp(96px, 24vw, 320px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.85; color: var(--on-dark); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-faint);
  border-top: 1px solid var(--on-dark-line); padding-top: 20px;
}

/* CTA sticky mobile */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transition: transform 0.25s ease;
}
.sticky-cta .pill { width: 100%; min-height: 56px; padding-left: 20px; box-shadow: 0 16px 40px -12px rgba(20, 20, 18, .45); }
.sticky-cta .pill__arrow { width: 44px; height: 44px; }
.sticky-cta.is-hidden { transform: translateY(120%); }
@media (min-width: 768px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gauge__bar, .sticky-cta { transition: none; }
}
