/* Lento — landing page */

:root {
  --teal: #0F5C5A;
  --teal-deep: #0C3F3D;
  --teal-ink: #0A2F2E;
  --mint: #8FD9C4;
  --mint-soft: #DDEFE8;
  --sand: #EDE5DA;
  --sand-soft: #F6F2EC;
  --bg: #F7F6F1;
  --surface: #FFFFFF;
  --ink: #10201F;
  --muted: #55625F;
  --line: #E3E1D9;
  --watch: #F3E3B0;
  --alert: #C8455A;
  --alert-soft: #F8E1E5;

  --radius: 20px;
  --shadow-phone: 0 40px 80px -30px rgba(10, 47, 46, .45), 0 18px 36px -18px rgba(10, 47, 46, .3);
  --shadow-card: 0 1px 2px rgba(16, 32, 31, .04), 0 8px 24px -12px rgba(16, 32, 31, .12);
  --font-title: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.center { text-align: center; }

.eyebrow {
  font: 600 .82rem/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--mint); }
.accent { color: var(--teal); position: relative; white-space: nowrap; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin-top: 22px; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin-top: 18px; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 24px; }
.fine--light { color: rgba(255, 255, 255, .65); }
.fine--light a { color: var(--mint); }

section { padding: clamp(72px, 10vw, 128px) 0; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 54px; padding: 0 26px;
  border: 0; border-radius: 14px;
  background: var(--teal); color: #fff;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn--small { height: 42px; padding: 0 18px; font-size: .92rem; border-radius: 12px; }
.btn--mint { background: var(--mint); color: var(--teal-ink); }
.btn--mint:hover { background: #A9E4D3; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(247, 246, 241, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__logo img { width: 92px; height: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding-top: 140px;
  padding-bottom: clamp(64px, 8vw, 110px);
  background:
    radial-gradient(60% 70% at 85% 30%, var(--mint-soft) 0%, transparent 70%),
    radial-gradient(40% 50% at 100% 100%, var(--sand) 0%, transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

.hero__visual { position: relative; height: 640px; }
.hero__visual .phone { position: absolute; width: 270px; }
.phone--front { right: 18%; top: 20px; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone--back { right: -2%; top: 90px; transform: rotate(6deg) scale(.88); opacity: .95; filter: saturate(.9); }

.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 999px;
  font: 600 .88rem/1.2 var(--font-body);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.chip--align { left: 4%; top: 48px; animation: float 6s ease-in-out -2s infinite; }
.chip--trend { left: 4%; bottom: 40px; animation: float 8s ease-in-out -4s infinite; }
.chip__arrow { color: var(--alert); background: var(--alert-soft); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--ok { background: var(--mint); box-shadow: 0 0 0 4px rgba(143, 217, 196, .35); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* Téléphone */
.phone {
  padding: 9px;
  background: var(--ink);
  border-radius: 48px;
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; border-radius: 40px; aspect-ratio: 390 / 874; object-fit: cover; }

/* Liste d'attente */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; max-width: 520px; }
.waitlist input {
  flex: 1 1 220px;
  height: 54px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface);
  font: 400 1rem var(--font-body); color: var(--ink);
  transition: border-color .2s;
}
.waitlist input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(15, 92, 90, .12); }
.waitlist input[aria-invalid="true"] { border-color: var(--alert); }
.waitlist .btn { flex: 0 0 auto; }
.waitlist__msg { flex-basis: 100%; min-height: 1.4em; font-size: .92rem; font-weight: 500; }
.waitlist__msg.is-ok { color: var(--teal); }
.waitlist__msg.is-error { color: var(--alert); }
.waitlist.is-done input, .waitlist.is-done .btn { display: none; }
.waitlist.is-done .waitlist__msg {
  padding: 16px 18px; border-radius: 14px;
  background: var(--mint-soft);
}
.waitlist--dark { margin-inline: auto; justify-content: center; }
.waitlist--dark input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.waitlist--dark input::placeholder { color: rgba(255, 255, 255, .5); }
.waitlist--dark input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(143, 217, 196, .2); }
.waitlist--dark .waitlist__msg.is-ok { color: var(--mint); }
.waitlist--dark .waitlist__msg.is-error { color: #FFB3BF; }
.waitlist--dark.is-done .waitlist__msg { background: rgba(143, 217, 196, .14); }

/* Problème */
.problem { background: var(--surface); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  padding: 32px 28px;
  background: var(--sand-soft);
  border-radius: var(--radius);
}
.card__num {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 22px;
  border-radius: 50%;
  background: var(--teal); color: #fff;
  font: 700 1rem var(--font-title);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Comment ça marche */
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-top: 96px;
}
.step--reverse .step__text { order: 2; }
.step__tag {
  display: inline-block; margin-bottom: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--mint-soft); color: var(--teal);
  font-size: .85rem; font-weight: 600;
}
.step__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.step__text > p { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.step__visual { display: flex; justify-content: center; }
.step__visual .phone { width: min(300px, 78vw); }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230F5C5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.ghost-demo {
  margin-top: 28px; padding: 16px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 420px;
}
.ghost-demo__img { width: 100%; height: auto; display: block; }
.ghost-demo__old { transition: opacity .1s; }
.ghost-demo__ctrl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; font-size: .88rem; font-weight: 500; }
.ghost-demo__ctrl output { color: var(--teal); font-weight: 600; min-width: 3.2em; text-align: right; }
input[type="range"] { accent-color: var(--teal); width: 100%; }

/* Preuve */
.proof { background: var(--teal-ink); color: #fff; overflow: hidden; }
.proof__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.proof__visual { display: flex; justify-content: center; position: relative; }
.proof__visual::before {
  content: ""; position: absolute; inset: 10% -10%;
  background: radial-gradient(closest-side, rgba(143, 217, 196, .25), transparent);
}
.proof__visual .phone { width: min(300px, 78vw); position: relative; background: #000; }
.proof__text > p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; margin-top: 20px; max-width: 32em; }
.proof__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.proof__list li { padding-left: 20px; border-left: 2px solid var(--mint); color: rgba(255, 255, 255, .78); }
.proof__list strong { color: #fff; }
.proof .fine { color: rgba(255, 255, 255, .55); }

/* Contexte */
.context { background: var(--sand-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.stat { padding: 32px 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.stat__n { font: 800 clamp(2.8rem, 5vw, 3.8rem)/1 var(--font-title); color: var(--teal); letter-spacing: -0.03em; }
.stat__u { font: 700 1.2rem var(--font-title); color: var(--teal); margin-left: 6px; }
.stat p { color: var(--muted); margin-top: 12px; }

/* Usages */
.uses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.use { padding: 28px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.use p { color: var(--muted); font-size: .95rem; flex: 1; }
.use--soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.use__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--mint-soft); display: grid; place-items: center; margin-bottom: 8px; }
.use--soon .use__icon { background: var(--sand); }
.use__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--teal); font-size: .78rem; font-weight: 600; }
.badge--soon { background: var(--sand); color: #7A6A55; }

/* Tarifs */
.pricing { background: var(--surface); text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin-top: 56px; text-align: left; }
.plan { position: relative; padding: 36px 32px; border-radius: 24px; background: var(--sand-soft); }
.plan--featured { background: var(--teal-ink); color: #fff; box-shadow: var(--shadow-phone); }
.plan__flag { position: absolute; top: 20px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--teal-ink); font-size: .78rem; font-weight: 700; }
.plan__price { font: 800 2.6rem/1 var(--font-title); margin-top: 18px; letter-spacing: -0.02em; }
.plan__price small { font-size: 1rem; font-weight: 600; opacity: .7; }
.plan__sub { margin-top: 8px; font-size: .9rem; opacity: .7; }
.plan--featured .ticks li::before { background-color: rgba(143, 217, 196, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%238FD9C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* FAQ */
.faq h2 { margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  font: 700 1.1rem/1.35 var(--font-title);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint-soft); color: var(--teal);
  font: 500 1.3rem/1 var(--font-body);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* CTA final */
.cta {
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(143, 217, 196, .18), transparent 70%),
    var(--teal-ink);
  color: #fff; text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__symbol { width: 72px; margin-bottom: 28px; }
.cta h2 { max-width: 14em; }
.cta__inner > p { color: rgba(255, 255, 255, .75); margin-top: 16px; font-size: 1.1rem; }

/* Pied de page */
.footer { padding: 32px 0; background: var(--teal-ink); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: rgba(255, 255, 255, .55); font-size: .88rem; }
.footer img { filter: brightness(0) invert(1); opacity: .8; }
.footer a { color: rgba(255, 255, 255, .8); }

/* Apparition au défilement */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 560px; max-width: 480px; width: 100%; margin-inline: auto; }
  .phone--front { right: auto; left: 50%; margin-left: -135px; }
  .phone--back { right: -6%; }
  .chip--align { left: 0; top: 40px; }
  .chip--trend { left: 0; bottom: 30px; }
  .step, .proof__grid { grid-template-columns: 1fr; gap: 48px; }
  .step--reverse .step__text { order: 0; }
  .step { margin-top: 80px; }
  .uses__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards3, .stats, .uses__grid, .plans { grid-template-columns: 1fr; }
  .hero__visual { height: 500px; }
  .hero__visual .phone { width: 230px; }
  .phone--front { margin-left: -115px; }
  .phone--back { display: none; }
  .chip { font-size: .8rem; padding: 8px 12px; }
  .chip--align { top: 8px; }
  .chip--trend { bottom: 24px; right: 0; left: auto; white-space: normal; max-width: 220px; }
  .waitlist .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
