/* ZenDoc — site statique. Couleurs et police de l'app (design/theme), clair et sombre selon le système. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #eceef2;
  --text: #0d0f14;
  --muted: #5b6170;
  --line: rgba(13, 15, 20, 0.08);
  --accent: #5b4fe9;
  --accent-2: #8a80ff;
  --accent-soft: #eceafe;
  --shadow: 0 1px 2px rgba(13, 15, 20, 0.04), 0 12px 32px -12px rgba(91, 79, 233, 0.22);
  --radius: 22px;
  --max: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --surface: #15171d;
    --surface-alt: #1d2028;
    --text: #f2f4f8;
    --muted: #a3a9b8;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #8a80ff;
    --accent-2: #b3acff;
    --accent-soft: #24214a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* En-tête en verre dépoli, comme les barres de l'app */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(13, 15, 20, 0.08); }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); text-decoration: none; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(135deg, #5b4fe9, #8a80ff);
  color: #fff; font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(91, 79, 233, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(91, 79, 233, 0.8); }
.cta.small { padding: 9px 18px; font-size: 0.92rem; }

.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 12px; }
.intro { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.grad { background: linear-gradient(120deg, #5b4fe9 10%, #8a80ff 60%, #c77dff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Héros */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.hero h1 { margin-top: 22px; }
.sub { color: var(--muted); font-size: 1.2rem; max-width: 560px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stores.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 11px 20px;
  border-radius: 16px; background: #0d0f14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease;
}
.store:hover { text-decoration: none; transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.1rem; }
.store small { font-weight: 500; font-size: 0.72rem; opacity: 0.8; }
.store.soon { opacity: 0.55; cursor: default; }
.store.soon:hover { transform: none; }
@media (prefers-color-scheme: dark) { .store { background: #000; } }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.halo { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: linear-gradient(135deg, #5b4fe9, #c77dff); filter: blur(80px); opacity: 0.35; }
.phone {
  position: relative; width: 300px; aspect-ratio: 390 / 844; padding: 10px; border-radius: 48px;
  background: #0d0f14; box-shadow: 0 40px 80px -30px rgba(13, 15, 20, 0.55), inset 0 0 0 2px #2a2d36;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 0.92rem;
  animation: bob 6s ease-in-out infinite;
}
.float svg, .card .ico svg, .core svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f1 { top: 12%; left: -4%; }
.f2 { top: 46%; right: -6%; animation-delay: -2s; }
.f3 { bottom: 10%; left: 2%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Chiffres */
.strip { padding: 12px 0 40px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center;
}
.stats strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.stats strong { background: linear-gradient(135deg, #5b4fe9, #8a80ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* Blocs */
.block { padding: 88px 0; }
.block.alt { background: var(--surface-alt); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.card {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.card .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #5b4fe9, #8a80ff);
}
.link { font-weight: 700; }

.shield { position: relative; display: grid; place-items: center; height: 380px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.r1 { width: 150px; height: 150px; background: var(--accent-soft); }
.r2 { width: 250px; height: 250px; }
.r3 { width: 350px; height: 350px; opacity: 0.6; }
.core { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 26px; background: linear-gradient(135deg, #5b4fe9, #8a80ff); box-shadow: 0 20px 40px -14px rgba(91, 79, 233, 0.8); }
.core svg { width: 40px; height: 40px; stroke: #fff; }
.tag { position: absolute; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 0.88rem; }
.t1 { top: 14%; left: 8%; } .t2 { top: 30%; right: 2%; } .t3 { bottom: 12%; left: 22%; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.steps p { color: var(--muted); margin: 0; }

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

.final {
  text-align: center; padding: 64px 32px; border-radius: 32px; color: #fff;
  background: radial-gradient(circle at 20% 0%, #8a80ff, transparent 55%), linear-gradient(135deg, #3b2fd0, #5b4fe9 55%, #7b5cf0);
  box-shadow: 0 30px 60px -30px rgba(91, 79, 233, 0.8);
}
.final img { margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4); }
.final h2 { max-width: 760px; margin-inline: auto; }
.final p { opacity: 0.88; font-size: 1.1rem; }
.final .store { background: #0d0f14; }

/* Pages légales */
.doc-body { width: min(820px, 100% - 40px); padding: 64px 0 80px; }
.doc-body h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.updated { color: var(--muted); font-size: 0.92rem; }
.lead { padding: 20px 24px; border-radius: 18px; background: var(--accent-soft); margin: 26px 0 36px; }
.lead p { margin: 0; }
.doc-body section { padding: 6px 0 14px; border-top: 1px solid var(--line); }
.doc-body h2 { font-size: 1.35rem; margin-top: 26px; }
.doc-body p, .doc-body li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.doc-body ul { padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.notfound { padding: 120px 0; text-align: center; }
.notfound .intro { margin: 0 auto 28px; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--surface); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-top p { color: var(--muted); margin-top: 12px; }
.legal { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.legal a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.fine { color: var(--muted); font-size: 0.82rem; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* Tablettes et téléphones */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 540px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shield { height: 320px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .cta.small { margin-left: auto; }
  .grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 250px; }
  .float { font-size: 0.8rem; padding: 9px 12px; }
  .f1 { left: 0; } .f2 { right: 0; }
  .block { padding: 64px 0; }
  .legal { grid-template-columns: 1fr; }
  .store { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
