/* Xtension — xtension.jodevelop.com */

:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #161a23;
  --surface-2: #1c212c;
  --border: #262c39;
  --border-strong: #333b4d;
  --text: #e8ecf3;
  --text-dim: #a3adbf;
  --text-faint: #6f7a8d;
  --accent: #7c8cff;
  --accent-strong: #6274ff;
  --accent-soft: rgba(124, 140, 255, 0.12);
  --ok: #4ade80;
  --no: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f2f4f9;
    --border: #e3e7ef;
    --border-strong: #cdd4e2;
    --text: #131722;
    --text-dim: #4d5768;
    --text-faint: #78829a;
    --accent: #4d5eea;
    --accent-strong: #3a4bd8;
    --accent-soft: rgba(77, 94, 234, 0.09);
    --ok: #17913f;
    --no: #d13b3b;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 720px;
}

.center {
  text-align: center;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  word-break: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
}

.nav a {
  color: var(--text-dim);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-toggle {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 92px 0 76px;
  background:
    radial-gradient(900px 420px at 50% -140px, var(--accent-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 5px 14px 5px 11px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 17ch;
}

.lead {
  margin: 0;
  font-size: clamp(1.02rem, 1.9vw, 1.16rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 580;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1.02rem;
}

.btn-sub {
  font-size: 0.78rem;
  font-weight: 450;
  opacity: 0.8;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.badges li {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}

.badges li::before {
  content: "✓";
  color: var(--ok);
  margin-right: 7px;
  font-weight: 700;
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border);
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 680;
}

.section-lead {
  margin: 0 0 40px;
  color: var(--text-dim);
  max-width: 66ch;
  font-size: 1.02rem;
}

.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.group-title {
  margin: 46px 0 20px;
  font-size: 0.82rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.group-title:first-of-type {
  margin-top: 8px;
}

/* ── Cartes ─────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h4 {
  margin: 0 0 9px;
  font-size: 1.01rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

.note {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ── Étapes ─────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 620;
}

.steps p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 0;
  padding: 26px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-node {
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.4;
}

.flow-arrow {
  color: var(--text-faint);
  font-size: 1.1rem;
}

/* ── Vie privée ─────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.two-col h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 640;
}

.check,
.cross {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.check li,
.cross li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--ok);
  font-weight: 700;
}

.cross li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--no);
  font-weight: 700;
}

.security-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.security-facts h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 640;
}

.security-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.security-facts li {
  color: var(--text-dim);
  font-size: 0.94rem;
  padding-left: 20px;
  position: relative;
}

.security-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.security-facts strong {
  color: var(--text);
}

/* ── Téléchargements ────────────────────────────────────── */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dl-card {
  display: grid;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.1s;
}

.dl-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.dl-name {
  font-size: 1.1rem;
  font-weight: 640;
}

.dl-meta {
  font-size: 0.83rem;
  color: var(--text-faint);
}

.dl-action {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 560;
}

.howto {
  margin: 18px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.howto summary {
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 560;
  color: var(--text-dim);
}

.howto summary:hover {
  color: var(--text);
}

.howto-body {
  padding-top: 8px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.howto-body p {
  margin: 14px 0 6px;
  color: var(--text);
}

.howto-body ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 5px;
}

.checksums {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.checksums h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 640;
}

.checksums > p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.checksums table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  display: block;
  overflow-x: auto;
}

.checksums th,
.checksums td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.checksums th {
  color: var(--text-faint);
  font-weight: 560;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checksums td:first-child {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.checksums code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.fineprint {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ── Pied de page ───────────────────────────────────────── */

.site-footer {
  padding: 44px 0;
  color: var(--text-faint);
  font-size: 0.89rem;
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-dim);
}

.disclaimer {
  max-width: 70ch;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ── Réactif ────────────────────────────────────────────── */

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

  .lang-toggle {
    margin-left: auto;
  }

  .hero {
    padding: 62px 0 54px;
  }

  .section {
    padding: 56px 0;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .dl-card:hover {
    transform: none;
  }
}
