/* ValtLoop · Raccord : feuille de style unique (mobile d'abord) */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Couleurs de la charte (clair par défaut, sombre si le téléphone est en mode sombre) */
:root {
  --ink: #031212;
  --accent: #008678;
  --bg: #F2F7F9;
  --surface: #FFFFFF;
  --muted: #4A5C5C;
  --line: #D5E2E4;
  --accent-soft: #E0F0EE;
  --on-accent: #FFFFFF;
  --error: #B42318;
  --radius: 16px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF4F2;
    --accent: #2FC2AE;
    --bg: #061B1B;
    --surface: #0C2726;
    --muted: #A6BDBA;
    --line: #1F3E3C;
    --accent-soft: #0E3330;
    --on-accent: #031212;
    --error: #FF8A80;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-weight: 600; margin: 0; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 17px/1 var(--font);
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--large { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.topbar__logo img { width: 118px; height: auto; }

/* Haut de page */
.hero { display: grid; gap: 48px; padding-top: 44px; padding-bottom: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
h1 { font-size: clamp(46px, 13vw, 88px); line-height: .98; letter-spacing: -0.04em; }
.accent { color: var(--accent); }
.lead { margin: 22px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 30em; }
.hero__cta { margin-top: 30px; }

/* Sections : beaucoup d'air entre elles, une petite étiquette verte au-dessus du titre */
.section { padding-top: 72px; }
.label {
  margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.section__title { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 18em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 6px;
}
.card-item__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card-item__text { color: var(--muted); }

/* Démo vidéo 9:16, dans un cadre de téléphone */
.demo { margin: 0 auto; width: min(86%, 330px); }
.phone {
  padding: 10px; border-radius: 48px; background: #031212;
  box-shadow: 0 0 0 1.5px #1F3E3C inset, 0 40px 80px -30px rgba(3, 18, 18, .55), 0 12px 24px -12px rgba(3, 18, 18, .35);
}
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 38px; overflow: hidden; background: #061B1B; }
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 24px; border-radius: 999px; background: #031212;
}
.demo__video { width: 100%; height: 100%; object-fit: cover; }
.demo__sound {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; border: 0;
  background: rgba(3, 18, 18, .7); color: #fff; font: 600 13px var(--font); cursor: pointer;
}
.demo__caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }

/* Chiffres */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.stat__value { white-space: nowrap; color: var(--accent); font-size: clamp(34px, 10vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 15px; }
.proof__note { margin: 14px 2px 0; font-size: 14px; color: var(--muted); }
.proof__note a { color: var(--ink); font-weight: 600; }

/* Formulaire */
.signup { padding-bottom: 88px; scroll-margin-top: 48px; }
.signup:focus { outline: none; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 26px 20px; max-width: 560px; margin: 0 auto;
}
.card h2 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 22px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 17px var(--font); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--error); }
.field--choices { gap: 8px; }
.field--choices legend { margin-bottom: 8px; }
.choice, .consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.choice {
  align-items: center; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 16px;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 20px; height: 20px; margin: 0; flex: none; }
.consent { font-size: 15px; line-height: 1.45; }
.consent input { margin-top: 2px; }
.form__error { margin: 0; color: var(--error); font-size: 15px; font-weight: 600; }
.form__small { margin: -4px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* Confirmation */
.done { text-align: center; padding: 10px 0; }
.done:focus { outline: none; }
.done__icon { margin: 0 auto 16px; width: 64px; height: auto; }
.done__title { font-size: 26px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.done p { margin-top: 0; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; gap: 14px; }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer__social a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer__social a:hover { color: var(--accent); }
.footer__legal { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--muted); }

/* Pages légales */
.legal { max-width: 720px; padding-top: 32px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(32px, 8vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 0; }
.legal a { color: var(--accent); }
.todo { background: #FFE8A3; color: #031212; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Ordinateur : texte à gauche, démo à droite */
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 32px; }
  .demo { width: 340px; }
  .section { padding-top: 112px; }
  .cards, .stats { grid-template-columns: 1fr 1fr; }
  .signup { padding-bottom: 120px; }
  .card { padding: 36px 36px 30px; }
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer__legal { justify-content: flex-end; }
  .topbar__logo img { width: 130px; }
}

/* Page « bienvenue » (après le clic dans l'email de confirmation) */
.welcome { padding-top: 64px; min-height: 60vh; }
.welcome .done__icon { margin: 0 0 24px; }
