/* O'Radar : mêmes couleurs et police que l'appli (thème clair). */
@font-face { font-family: Geist; src: url(assets/Geist_500Medium.ttf) format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Geist; src: url(assets/Geist_700Bold.ttf) format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Geist; src: url(assets/Geist_800ExtraBold.ttf) format('truetype'); font-weight: 800 900; font-display: swap; }

:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-muted: #eaeaee;
  --tint: #e4f4ec;
  --ink: #0e0f11;
  --muted: #5c5f66;
  --line: rgba(14, 15, 17, 0.1);
  --emerald: #0e9f6e;
  --accent: #07855a;
  --emerald-light: #34d399;
  --red: #d1343a;
  --blue: #3e63dd;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1rem/1.55 Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* En-tête translucide */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 244, 246, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-left: 20px; }

/* Boutons : retour immédiat à l'appui */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.05rem; border: 0;
  box-shadow: 0 10px 28px rgba(7, 133, 90, 0.3);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(7, 133, 90, 0.3); }
.btn svg { width: 22px; height: 22px; }
.btn.light { background: #fff; color: var(--accent); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2); }
.small { color: var(--muted); font-size: 0.9rem; }

/* Accroche */
.hero { padding: 28px 0 8px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; margin: 16px 0 14px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.visual { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px rgba(14, 15, 17, 0.18); }
.visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 45%); }
.banner {
  position: absolute; left: 16px; right: 16px; top: 16px; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px;
  background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(209, 52, 58, 0.4);
}
.banner .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.banner .dot svg { width: 22px; height: 22px; }
.banner b { display: block; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.banner span { font-size: 0.8rem; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 52ch; }

.steps { display: grid; gap: 14px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--emerald); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.95rem; }

.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border-radius: 28px; padding: 28px; border: 1px solid var(--line); position: relative; }
.plan.premium { background: linear-gradient(155deg, var(--emerald), var(--accent)); color: #fff; border: 0; box-shadow: 0 24px 60px rgba(14, 159, 110, 0.35); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.plan h3 { margin: 0; font-size: 1.4rem; letter-spacing: -0.01em; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 6px 0 14px; }
.price small { font-size: 1rem; font-weight: 500; opacity: 0.75; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2307855A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5l10 -10"/></svg>') center / 13px no-repeat; }
.plan.premium li::before { background-color: rgba(255, 255, 255, 0.22); background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5l10 -10"/></svg>'); }
.trial { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; }
.pill i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Guide d'installation */
.install { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: i; }
.install li { background: var(--surface); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; border: 1px solid var(--line); }
.install li::before { counter-increment: i; content: counter(i); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.install li > b { display: block; margin-bottom: 2px; }
.install span b { color: var(--ink); }
.install span { color: var(--muted); }
.note { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--tint); color: #0b4f37; }

details { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--muted); font-weight: 500; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; }

.final { background: linear-gradient(155deg, var(--emerald), var(--accent)); color: #fff; border-radius: 32px; padding: 40px 24px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.88); margin: 0 0 22px; }

footer { padding: 32px 0 120px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Bouton fixe en bas sur téléphone */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 244, 246, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  display: flex; justify-content: center;
}
.dock .btn { width: 100%; max-width: 480px; }
@media (min-width: 860px) { .dock { display: none; } footer { padding-bottom: 40px; } }

/* Pages de texte */
.doc { padding: 32px 0 60px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 32px 0 8px; }
.doc p, .doc li { color: #2c2e33; }
.doc .updated { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .dock { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
