/* Landing sites.dysteme.com — VARIANCE 5 / MOTION 4 / DENSITY 4. Jetons clairs CreaScale (refonte-ventes).
   Contrastes (texte blanc) : bleu des boutons ≥ 4,5:1 au centre, vert WhatsApp #0E7C42 ≈ 5:1. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --soft: #EEF1F5;
  --ink: #1A1D21;
  --muted: #59616C;
  --line: #D6DAE0;
  --primary: #0064E0;
  --primary-ink: #0052B8;
  --accent: #00AFEF;
  --tint: #EEF5FF;
  --err: #C8213F;
  --wa: #0E7C42;
  --grad: linear-gradient(135deg, #0058D0 0%, #0070E0 55%, #008CE0 100%);
  --r-card: 16px;
  --r-btn: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 28px rgba(16, 24, 40, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 2.2vw + 16px, 38px); line-height: 1.12; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 750; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.sub { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 60ch; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--r-btn);
  background: var(--grad); color: #fff;
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0, 88, 208, .45);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(0, 88, 208, .5); }
.btn:active { transform: translateY(0) scale(.99); }
.btn[disabled] { filter: saturate(.6) brightness(1.05); cursor: progress; }
.btn--big { width: 100%; min-height: 58px; font-size: 18px; }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn--ghost { background: var(--surface); color: var(--primary-ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { box-shadow: 0 6px 16px -8px rgba(16, 24, 40, .25); }
.btn--wa { background: var(--wa); box-shadow: 0 8px 20px -6px rgba(14, 124, 66, .45); }

/* ── En-tête ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.brand__name { font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand__tag { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.top__cta { display: none; }

/* ── Héros ───────────────────────────────────────────────────────────── */
.hero { padding: 26px 0 44px; }
.hero__grid { display: grid; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--primary-ink); background: var(--tint); padding: 6px 11px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-top: 16px; font-size: clamp(32px, 3.4vw + 16px, 54px); line-height: 1.04; font-weight: 820; letter-spacing: -.035em; }
.lead { margin-top: 14px; font-size: 17.5px; color: var(--muted); max-width: 52ch; }

.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 14px; }
.switch__opt {
  position: relative; display: grid; gap: 1px; text-align: left; cursor: pointer;
  padding: 13px 14px 13px; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 14px; font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.switch__opt:hover { border-color: #AFC4E6; }
.switch__opt[aria-checked="true"] { border: 2px solid var(--primary); padding: 12.5px 13.5px; background: #FBFDFF; box-shadow: 0 0 0 4px rgba(0, 100, 224, .1); }
.switch__opt[aria-checked="true"]::after {
  content: ""; position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.switch__price { font-size: 22px; font-weight: 820; letter-spacing: -.03em; }
.switch__name { font-size: 15px; font-weight: 700; }
.switch__hint { font-size: 13px; color: var(--muted); }
.micro { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Téléphone : la vraie boutique du pack choisi défile (transform seul, pause au survol / hors écran). */
.phone { margin: 0; display: grid; justify-items: center; gap: 12px; }
.phone__body {
  position: relative; width: min(268px, 72vw); aspect-ratio: 9 / 18.6; padding: 10px;
  background: #0D0F12; border-radius: 44px;
  box-shadow: 0 40px 70px -30px rgba(16, 24, 40, .45), inset 0 0 0 2px #2A2E35;
}
.phone__body::before { content: ""; position: absolute; z-index: 2; top: 17px; left: 50%; width: 78px; height: 20px; transform: translateX(-50%); background: #0D0F12; border-radius: 12px; }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 34px; background: #fff; outline-offset: 4px; }
.strip { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity .35s ease; }
.strip.on { opacity: 1; animation: strip var(--dur, 26s) ease-in-out 1.4s infinite alternate; }
@keyframes strip { to { transform: translate3d(0, var(--shift, 0px), 0); } }
.phone__screen:hover .strip, .phone__screen:focus .strip, .phone.is-paused .strip { animation-play-state: paused; }
.phone__cap { display: grid; gap: 2px; text-align: center; font-size: 14px; color: var(--muted); }
.phone__cap a { font-weight: 650; }

/* ── Packs ───────────────────────────────────────────────────────────── */
.packs { padding: 52px 0; background: var(--surface); border-block: 1px solid var(--line); }
.packs__grid { display: grid; gap: 18px; margin-top: 26px; }
.pack { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); }
.pack--pro { background: #FBFDFF; border: 2px solid var(--primary); box-shadow: var(--shadow); }
.pack__tag { font-size: 13px; font-weight: 700; color: var(--primary-ink); text-transform: uppercase; letter-spacing: .06em; }
.pack__head h3 { margin-top: 6px; }
.pack__price { margin-top: 6px; font-size: 44px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.pack__price span { font-size: 20px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.pack__sum { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li {
  padding-left: 28px; min-height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23E3EEFF'/%3E%3Cpath d='M5.6 10.3l3 3L14.6 7.3' fill='none' stroke='%230064E0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 2px/20px no-repeat;
}
.out { border-top: 1px dashed var(--line); padding-top: 10px; }
.out summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 15px; list-style-position: inside; }
.out ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 5px; font-size: 15px; }
.pack .btn { margin-top: auto; }

/* ── Preuve ──────────────────────────────────────────────────────────── */
.proof { padding: 52px 0; }
.proof__grid { display: grid; gap: 28px; align-items: center; }
.sites { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.sites a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.sites a:hover { border-color: var(--primary); transform: translateY(-1px); }
.sites__dom { font-weight: 750; font-size: 18px; }
.sites__what { grid-column: 1; color: var(--muted); font-size: 15px; }
.sites__go { grid-row: 1 / span 2; grid-column: 2; font-size: 22px; color: var(--primary); }
.video { margin: 0; justify-self: center; width: min(320px, 100%); }
.video video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-card); background: #0D0F12; box-shadow: var(--shadow); }
.video figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }

/* ── Étapes ──────────────────────────────────────────────────────────── */
.steps { padding: 52px 0; background: var(--surface); border-block: 1px solid var(--line); }
.steps__list { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.steps__list li { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; gap: 4px; }
.steps__list li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px;
}
.steps__list strong { font-size: 17px; }
.steps__list span { color: var(--muted); font-size: 15.5px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { padding: 52px 0; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0;
  font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--primary); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ── Appel final, pied ───────────────────────────────────────────────── */
.final { padding: 12px 0 64px; }
.final__in { text-align: center; padding: 36px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.final__in p { color: var(--muted); margin-top: 10px; }
.final__btns { display: grid; gap: 10px; margin-top: 22px; }
.foot { padding: 24px 0 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ── Barre collante (mobile) ─────────────────────────────────────────── */
.bar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
  animation: barin .25s ease-out;
}
.bar[hidden] { display: none; }
.bar__txt { font-size: 15px; color: var(--muted); }
.bar__txt strong { color: var(--ink); }
@keyframes barin { from { transform: translateY(100%); } }

/* ── Formulaire (feuille) ────────────────────────────────────────────── */
.sheet {
  width: 100%; max-width: 520px; max-height: 100dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(16, 24, 40, .25); overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(13, 15, 18, .55); }
.sheet[open] { animation: sheetin .22s ease-out; }
@keyframes sheetin { from { transform: translateY(28px); opacity: 0; } }
.form { display: grid; gap: 14px; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
.form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form__head h2 { font-size: 22px; }
.x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: 15px; padding: 0; margin-bottom: 7px; }
.field > label { margin-bottom: 0; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 100, 224, .15); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.tel { display: flex; }
.tel__cc { display: grid; place-items: center; padding: 0 12px; background: var(--soft); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--r-btn) 0 0 var(--r-btn); font-weight: 650; color: var(--muted); }
.tel input[type="tel"] { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.choice { display: grid; gap: 8px; }
.choice--row { grid-template-columns: 1fr 1fr; }
.choice label {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-btn); cursor: pointer; font-weight: 550;
}
.choice label:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.err { color: var(--err); font-size: 14px; font-weight: 550; }
.err[hidden] { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { min-height: 1.2em; font-weight: 650; text-align: center; }
.form__status:empty { display: none; }
.form__fallback[hidden] { display: none; }

/* ── Grands écrans ───────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sheet { margin: auto; border-radius: 22px; }
  .final__btns { grid-template-columns: auto auto; justify-content: center; }
}
@media (min-width: 900px) {
  .top__cta { display: inline-flex; }
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1.22fr .78fr; gap: 56px; }
  .hero .btn--big { width: auto; padding: 0 30px; }
  .micro { text-align: left; }
  .phone__body { width: 300px; }
  .packs, .proof, .steps, .faq { padding: 80px 0; }
  .packs__grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
  .pack { padding: 28px 26px; }
  .proof__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .steps__list { grid-template-columns: repeat(4, 1fr); }
  .steps__list li { padding: 64px 18px 20px; }
  .steps__list li::before { top: 18px; }
  .bar { display: none !important; }
  .foot { padding-bottom: 28px; }
}

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

/* ── Page Confidentialité ────────────────────────────────────────────── */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(30px, 3vw + 16px, 44px); font-weight: 820; }
.doc h2 { font-size: 21px; margin-top: 30px; }
.doc p, .doc li { color: #3A4048; margin-top: 10px; }
.doc ul { padding-left: 20px; }
