/* RadarParks — site vitrine et pages légales.
   Couleurs reprises de l'icône de l'app : bleu radar + vert signal. */

:root {
  --blue-1: #4fa0ff;
  --blue-2: #1d5fe0;
  --green: #2fc77a;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #0f1729;
  --muted: #5b6781;
  --border: rgba(15, 23, 41, 0.08);
  --shadow: 0 1px 2px rgba(15, 23, 41, 0.04), 0 8px 24px rgba(29, 95, 224, 0.08);
  --radius: 22px;
  --header-bg: rgba(243, 246, 251, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e17;
    --surface: #131a28;
    --surface-2: #1a2334;
    --text: #edf1f8;
    --muted: #97a3bb;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(10, 14, 23, 0.72);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-2); }
@media (prefers-color-scheme: dark) { a { color: var(--blue-1); } }

img { display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ── En-tête ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-header nav { display: flex; gap: 4px; }

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

@media (max-width: 640px) { .site-header nav { display: none; } }

/* ── Accueil ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background:
    radial-gradient(closest-side, rgba(79, 160, 255, 0.35), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(47, 199, 122, 0.22), transparent);
  z-index: -1;
}

.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(29, 95, 224, 0.35);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--blue-1), var(--blue-2) 55%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.95rem;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 199, 122, 0.2);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 56px;
}

@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature .badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-1), var(--blue-2));
}

.feature .badge.green { background: linear-gradient(140deg, #5ee0a0, var(--green)); }
.feature .badge svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.section-title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-bottom: 56px;
}

.legal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.legal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.legal-card small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.legal-card .chev { color: var(--muted); font-size: 1.3rem; }

/* ── Pages légales ── */

.doc-hero { padding: 44px 0 8px; }
.doc-hero .eyebrow { color: var(--blue-2); font-weight: 600; font-size: 0.9rem; margin: 0 0 6px; }
@media (prefers-color-scheme: dark) { .doc-hero .eyebrow { color: var(--blue-1); } }
.doc-hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 8px; }
.doc-hero .updated { color: var(--muted); margin: 0; }

.summary {
  margin: 24px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  box-shadow: 0 16px 36px rgba(29, 95, 224, 0.28);
}

.summary h2 { margin: 0 0 8px; font-size: 1.05rem; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 4px 0; }
.summary a { color: #fff; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}

.toc a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.toc a:hover { background: var(--surface-2); }

.doc { padding-bottom: 48px; }

.doc section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  scroll-margin-top: 76px;
}

.doc h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.doc h2 .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-1), var(--blue-2));
}

.doc p, .doc li { margin: 7px 0; }
.doc ul { padding-left: 22px; }
.doc li::marker { color: var(--blue-2); }

.doc .table-wrap { overflow-x: auto; margin: 8px -4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
.doc th, .doc td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.doc tr:last-child td { border-bottom: none; }

.callout {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.95rem;
}

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 4px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* ── Pied de page ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Accueil v3 : hero illustré, étapes, en voiture, FAQ ── */

.hero-split { text-align: left; padding: 56px 0 40px; }
.hero-split .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-split .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero-split .pill { margin-bottom: 18px; }
.hero-split p.lead { margin: 0 0 24px; }
@media (max-width: 859px) { .hero-split { text-align: center; } .hero-split p.lead { margin: 0 auto 24px; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 859px) { .cta-row { justify-content: center; } }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 14px;
  background: #0b0d12; color: #fff; line-height: 1.1; font-weight: 600; font-size: 1.15rem;
  opacity: 0.92;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.8; }
@media (prefers-color-scheme: dark) { .store-badge { background: #fff; color: #0b0d12; } }

.ghost-btn {
  padding: 13px 20px; border-radius: 14px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
}
.ghost-btn:hover { background: var(--surface-2); }

.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 0.92rem; }
.hero-facts li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
@media (max-width: 859px) { .hero-facts { justify-content: center; } }

/* Téléphone illustré */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: 270px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #2a2f3a, #0d1017);
  box-shadow: 0 30px 70px rgba(29, 95, 224, 0.28), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.phone .island { position: absolute; z-index: 3; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; }
.phone .screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #e9eef3; }
.map { position: absolute; inset: 0; background: #edf0ea; }
.road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #dfe3dc; }
.r1 { left: -10%; right: -10%; top: 38%; height: 14px; transform: rotate(-18deg); }
.r2 { left: -10%; right: -10%; top: 66%; height: 10px; transform: rotate(12deg); }
.r3 { top: -10%; bottom: -10%; left: 30%; width: 10px; transform: rotate(8deg); }
.r4 { top: -10%; bottom: -10%; left: 72%; width: 12px; transform: rotate(-6deg); }
.park-area { position: absolute; left: 6%; top: 70%; width: 30%; height: 14%; border-radius: 14px; background: #cfe9c7; }
.me { position: absolute; left: 47%; top: 52%; width: 16px; height: 16px; border-radius: 50%; background: #1d7bff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); transform: translate(-50%, -50%); }
.radar { position: absolute; left: 47%; top: 52%; transform: translate(-50%, -50%); }
.radar i { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border-radius: 50%; border: 2px solid rgba(29, 123, 255, 0.35); animation: ping 2.6s ease-out infinite; }
.radar i + i { animation-delay: 1.3s; }
@keyframes ping { from { transform: scale(0.15); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.spot {
  position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 800 15px/1 -apple-system, sans-serif; color: #fff; background: var(--green);
  border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.s1 { left: 18%; top: 30%; } .s2 { left: 74%; top: 44%; background: var(--blue-2); }
.s3 { left: 58%; top: 64%; }
.spot.fresh { animation: pop 2.6s ease-in-out infinite; }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .radar i, .spot.fresh { animation: none; } .radar i { opacity: 0.4; } }

.notif {
  position: absolute; z-index: 2; top: 54px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 18px;
  background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14); color: #0f1729; font-size: 11px; line-height: 1.3;
}
.notif img { width: 30px; height: 30px; border-radius: 8px; }
.notif div { flex: 1; min-width: 0; }
.notif b { display: block; font-size: 12px; }
.notif span { color: #5b6781; }
.notif em { font-style: normal; font-weight: 700; font-size: 11px; color: #fff; background: var(--blue-2); padding: 6px 9px; border-radius: 999px; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 12px 14px; border-radius: 26px; background: rgba(255,255,255,0.9); box-shadow: 0 -4px 18px rgba(0,0,0,0.08); }
.sheet .grabber { width: 34px; height: 4px; border-radius: 2px; background: #c9ced8; margin: 0 auto 8px; }
.sheet .search { padding: 9px 12px; border-radius: 12px; background: #eef1f6; color: #7b8598; font-size: 12px; }

/* Blocs de section */
.block { padding: 56px 0; }
.wrap.narrow { max-width: 760px; }
.eyebrow { color: var(--blue-2); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--blue-1); } }
.block-title { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 28px; max-width: 640px; }
.block .features { padding-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--blue-1), var(--blue-2)); }

.block-dark { background: #0b1120; color: #edf1f8; }
.block-dark .eyebrow { color: #7fb8ff; }
.car-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
.car-card { background: #131b2e; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px; }
.car-card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.car-card p { margin: 0; color: #a4afc6; font-size: 0.97rem; }
.car-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #5ee0a0, var(--green)); }
.car-icon svg { width: 24px; height: 24px; }
.mini-island { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: #000; color: #fff; font-size: 0.85rem; font-weight: 600; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
.mi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,199,122,0.25); }
.mi-count { padding: 2px 8px; border-radius: 999px; background: var(--blue-2); }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; margin: 10px 0; padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.notif b, .notif span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif b { font-size: 11.5px; }
.notif em { padding: 5px 8px; font-size: 10.5px; }
.notif { text-align: left; }
