/* CarSure — site vitrine et pages légales.
   Mêmes jetons que l'app (apps/client/src/theme) : Ink / Canvas / Surface / accent lime. */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(fonts/manrope-400.woff) format("woff"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/manrope-600.woff) format("woff"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(fonts/manrope-700.woff) format("woff"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(fonts/manrope-800.woff) format("woff"); }

:root {
  --ink: #111315;
  --canvas: #f3f4f1;
  --surface: #ffffff;
  --muted: #6e7277;
  --border: #dfe1dc;
  --accent: #c9ef52;
  --accent-soft: #eef9cf;
  --accent-ink: #1a2202;
  --warning-bg: #f6eedc;
  --warning: #8a5f12;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --page: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--page); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--page); top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ── En-tête ─────────────────────────────────────────────── */
.site-header { background: var(--canvas); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 168px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { text-decoration: underline; }

/* ── Héros ───────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; max-width: 14ch; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-soft { background: var(--accent-soft); color: var(--accent-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ── Sections ────────────────────────────────────────────── */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 24px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }

.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price { font-size: 22px; font-weight: 800; white-space: nowrap; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 12px !important; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

.dark-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px 32px; }
.dark-band h2 { color: #fff; }
.dark-band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.dark-band li { display: flex; gap: 12px; align-items: flex-start; }
.dark-band li .dot { margin-top: 9px; flex: none; }

/* ── Pages légales ───────────────────────────────────────── */
.doc { padding: 48px 0 64px; }
.doc .container { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.015em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #26282a; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: #ecede9; font-weight: 700; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 2px 0; break-inside: avoid; }

/* Champs à compléter par l'éditeur avant mise en ligne (voir site/README.md). */
.todo { background: var(--warning-bg); color: var(--warning); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────── */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* ── Pied de page ────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .nav { justify-content: flex-start; gap: 14px; }
  .hero { padding: 44px 0 32px; }
  .dark-band { padding: 28px 20px; }
  .toc ol { columns: 1; }
}
