:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1b1f24;
  --muted: #5f6b7a;
  --accent: #1f6feb;
  --accent-text: #ffffff;
  --code-bg: #eef0f3;
  --radius: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --border: #2a3039;
    --text: #e6e9ee;
    --muted: #97a2b0;
    --accent: #4c8dff;
    --accent-text: #0b0d10;
    --code-bg: #222831;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
/* Couleurs du thème : la CSP interdit les attributs style, le SVG garde ses couleurs par défaut pour le favicon. */
.brand .logo-bg { fill: var(--accent); }
.brand .logo-fg { stroke: var(--accent-text); }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }

.hero { padding: 72px 0 48px; max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.button:hover { text-decoration: none; border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h2 { font-size: 17px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.snippet { margin-top: 48px; }
.snippet h2 { font-size: 20px; margin: 0 0 12px; }
pre {
  margin: 0 0 12px;
  padding: 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
pre code { background: none; padding: 0; }
.muted { color: var(--muted); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

@media (max-width: 560px) {
  .topbar { padding: 12px 16px; }
  .hero { padding: 48px 0 32px; }
}

.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.pricing-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pricing-teaser h2 { font-size: 20px; margin: 0 0 6px; }
.pricing-teaser p { margin: 0; max-width: 640px; }

.price-table { margin-bottom: 24px; overflow-x: auto; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: none; }
.price-table th { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-table .num { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table .suspended { color: var(--muted); font-weight: 600; }

.legal .hero { padding-bottom: 24px; }
.prose { max-width: 760px; padding: 28px; }
.prose h2 { font-size: 18px; margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }

/* ── Retouches de la revue UI ──────────────────────────────────────────── */
.price-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.features.two { grid-template-columns: repeat(2, 1fr); }
pre { font-size: 14px; }

@media (max-width: 640px) {
  /* Marque en haut, menu en dessous, qui défile au lieu de déborder. */
  .topbar { flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
  .topbar .nav { width: 100%; overflow-x: auto; scrollbar-width: none; gap: 18px; padding-bottom: 10px; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .nav a { white-space: nowrap; }
  .actions .button { flex: 1 1 100%; text-align: center; }
  pre { font-size: 12.5px; }
  .features.two { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .footer-links { gap: 10px 16px; }
}
