/* =========================================================================
   NaviStudy · Landing de validation
   Thème maritime · auto-suffisant (aucune ressource externe)
   ========================================================================= */

:root {
  /* Palette */
  --navy-900: #071620;
  --navy-800: #0a1e2e;
  --navy-700: #0d2a3f;
  --navy-600: #113650;
  --teal-500: #16b3c6;
  --teal-400: #2dd4bf;
  --teal-300: #6ee7d8;
  --buoy:     #ff6b4a;   /* accent chaud "bouée" */
  --amber:    #f6b23a;

  --ink:      #0d2233;
  --ink-soft: #4a6072;
  --line:     #e2eaf0;
  --paper:    #f6f9fb;
  --white:    #ffffff;

  --radius:   18px;
  --radius-lg: 28px;
  --shadow:   0 18px 50px -22px rgba(9, 32, 48, .45);
  --shadow-soft: 0 8px 30px -18px rgba(9, 32, 48, .35);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.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;
}

/* ---------- Boutons ---------- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: var(--pad);
  font-weight: 650; font-size: 1rem; line-height: 1;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --pad: 10px 16px; font-size: .9rem; }
.btn--lg { --pad: 17px 30px; font-size: 1.06rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: #04222a;
  box-shadow: 0 12px 26px -12px rgba(22, 179, 198, .8);
}
.btn--primary:hover { box-shadow: 0 18px 34px -12px rgba(22, 179, 198, .9); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #eaf6f8; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 30, 46, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #eaf6f8; font-size: 1.22rem; letter-spacing: -.01em; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  font-size: 1rem; color: #04222a;
}
img.brand__mark { display: block; background: none; border-radius: 9px; object-fit: cover; }
.brand__name { font-weight: 600; }
.brand__name strong { font-weight: 800; color: var(--teal-300); }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: #b9cdd8; font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 14px; margin-left: 8px; }

.lang { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px; }
.lang__btn {
  border: 0; background: transparent; color: #9db4c1; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.lang__btn.is-active { background: var(--teal-400); color: #04222a; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--navy-800); color: #eaf6f8; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(22,179,198,.28), transparent 60%),
    radial-gradient(900px 500px at 8% 12%, rgba(45,212,191,.14), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 74px 22px 120px;
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--teal-300); background: rgba(45,212,191,.1);
  border: 1px solid rgba(45,212,191,.22); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.025em;
  font-weight: 800;
}
.hero__title { background: linear-gradient(180deg, #ffffff, #cfeff3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 22px; font-size: 1.12rem; color: #b9d3dd; max-width: 30em; }
.hero__certs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px;
}
.hero__certs li {
  font-size: .84rem; font-weight: 650; color: #d3ecf1;
  background: rgba(255,255,255,.06); border: 1px solid rgba(45,212,191,.22);
  padding: 7px 13px; border-radius: 999px;
}
.hero__certs li span { color: #8fb0bd; font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { margin-top: 20px; font-size: .88rem; color: #8fb0bd; }

.hero__device { position: relative; display: grid; place-items: center; }
.hero__glow {
  position: absolute; inset: 8% 12%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,179,198,.5), transparent 65%);
  filter: blur(38px);
}

/* Vague en bas du hero */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg { width: 100%; height: 88px; }
.wave path { fill: var(--paper); }

/* ---------- PHONE MOCKUP ---------- */
.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: 268px; aspect-ratio: 9 / 19.5;
  background: #05121a; border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,.05) inset;
}
.phone::before { /* encoche */
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #05121a; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #0d2233;
}
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { max-width: 300px; transform: rotate(1.5deg); }

/* ---------- STATS ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-block: 40px; text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 2rem; font-weight: 800; color: var(--teal-500); letter-spacing: -.02em; }
.stat__lbl { font-size: .86rem; color: var(--ink-soft); }

/* ---------- SECTION HEADS ---------- */
.section-head { text-align: center; max-width: 640px; margin-inline: auto; padding-top: 84px; }
.overline { font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--teal-500); margin-bottom: 12px; }
.overline--light { color: var(--teal-300); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.12; }
.section-sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- SHOWCASE ---------- */
.showcase__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  padding-block: 46px 90px;
}
.vcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.vcard .phone { max-width: 240px; }
.vcard figcaption h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.vcard figcaption p { margin-top: 8px; color: var(--ink-soft); font-size: .96rem; max-width: 30ch; margin-inline: auto; }

/* ---------- FEATURES ---------- */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-block: 46px 92px;
}
.feat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat__ico {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 14px; background: linear-gradient(135deg, rgba(22,179,198,.14), rgba(45,212,191,.1));
  margin-bottom: 16px;
}
.feat h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.feat p { margin-top: 8px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- HOW ---------- */
.how { background: var(--white); border-block: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding-block: 46px 90px;
}
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, #f2f9fb, #ffffff); border: 1px solid var(--line);
}
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-800); color: var(--teal-300); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.14rem; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }

/* ---------- WAITLIST ---------- */
.waitlist { padding-block: 92px; }
.waitlist__card {
  position: relative; overflow: hidden;
  background: var(--navy-800); color: #eaf6f8;
  border-radius: var(--radius-lg); padding: 54px clamp(24px, 5vw, 64px);
  box-shadow: var(--shadow);
}
.waitlist__card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 90% -20%, rgba(22,179,198,.32), transparent 60%),
    radial-gradient(500px 300px at -10% 120%, rgba(255,107,74,.16), transparent 60%);
}
.waitlist__copy, .wl-form, .wl-success { position: relative; z-index: 1; }
.waitlist__copy { max-width: 34em; }
.waitlist__copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; margin-top: 6px; }
.waitlist__copy p { margin-top: 12px; color: #b9d3dd; font-size: 1.06rem; }

.wl-form { margin-top: 30px; }
.wl-form__row { display: flex; gap: 12px; flex-wrap: wrap; }
.wl-form__row input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  padding: 16px 20px; font: inherit; font-size: 1.02rem;
  border-radius: 999px; border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff;
}
.wl-form__row input::placeholder { color: #8fb0bd; }
.wl-form__row input:focus { outline: none; border-color: var(--teal-400); background: rgba(255,255,255,.1); }
.wl-form__row .btn { flex: 0 0 auto; }

.wl-form__choice { border: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.wl-form__choice legend { font-size: .9rem; color: #8fb0bd; margin-bottom: 8px; width: 100%; }
.wl-form__choice label { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: #cfe3ea; cursor: pointer; }
.wl-form__choice input { accent-color: var(--teal-400); }

.wl-form__note { margin-top: 20px; font-size: .85rem; color: #8fb0bd; }

.wl-success { text-align: center; padding: 20px 0; }
.wl-success__ico { font-size: 3rem; }
.wl-success h3 { font-size: 1.6rem; margin-top: 8px; }
.wl-success p { margin-top: 8px; color: #b9d3dd; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 90px; }
.faq__list { max-width: 780px; margin-inline: auto; padding-top: 40px; display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px 22px; box-shadow: var(--shadow-soft);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 650; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-500); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- FOOTER ---------- */
.foot { background: var(--navy-900); color: #9db4c1; padding-block: 46px; }
.foot__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brand--foot { color: #eaf6f8; }
.foot__tag { font-size: .98rem; }
.foot__legal { font-size: .86rem; color: #6f8a97; }
.foot__legal a { color: var(--teal-300); }

/* ---------- REVEAL (anim au scroll) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 96px; }
  .hero__copy { order: 1; }
  .hero__device { order: 2; }
  .hero__sub, .eyebrow { margin-inline: auto; }
  .hero__actions, .hero__certs { justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .showcase__grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .nav__right .btn { display: none; }
  .waitlist__card { padding: 40px 22px; }
  .wl-form__row .btn { width: 100%; }
}

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