/* ==========================================================================
   Retouch — feuille de style principale
   Police auto-hébergée (Rajdhani / Manrope / JetBrains Mono) — aucune requête
   externe au chargement : cohérent avec la promesse « zéro collecte ».
   ========================================================================== */

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/rajdhani-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/rajdhani-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrainsmono-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jetbrainsmono-700.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0b0d14;
  --bg-soft: #10131d;
  --panel: rgba(241, 245, 249, 0.045);
  --panel-strong: rgba(241, 245, 249, 0.07);
  --border: rgba(241, 245, 249, 0.09);
  --border-strong: rgba(241, 245, 249, 0.16);

  /* Halos de fond */
  --halo-violet: #4c1d95;
  --halo-cyan: #083344;

  /* Accent principal (UI, CTA) */
  --brand-1: #a855f7;
  --brand-2: #6366f1;
  --brand-3: #22d3ee;

  /* Accent prestige (marque, "Touch") */
  --gold-1: #8a6a1f;
  --gold-2: #d9ab41;
  --gold-3: #f7e6ab;
  --gold-4: #fffaea;

  /* Accent souveraineté / sécurité (repris du vert du logo) */
  --emerald: #34d399;
  --emerald-deep: #059669;

  /* Statut graphique performance (validé colorblind-safe) */
  --chart-good: #059669;
  --chart-warn: #c2410c;

  /* Texte */
  --text: #f1f5f9;
  --text-secondary: #9aa3b5;
  --text-muted: #667089;

  /* Typo */
  --font-display: "Rajdhani", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* Échelle */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-glow: 0 0 60px -12px rgba(168, 85, 247, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

p { color: var(--text-secondary); }
p.lede { font-size: 1.1rem; color: var(--text-secondary); max-width: 62ch; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-3);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--bg-soft); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Fond nébuleuse ---------- */
.nebula-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}
.nebula-field::before,
.nebula-field::after {
  content: "";
  position: absolute;
  filter: blur(110px);
  will-change: transform;
}
.nebula-field::before {
  background:
    radial-gradient(ellipse 60% 55% at 32% 28%,
      rgba(76,29,149,0.95) 0%, rgba(76,29,149,0.82) 10%, rgba(76,29,149,0.66) 22%,
      rgba(76,29,149,0.5) 34%, rgba(76,29,149,0.35) 47%, rgba(76,29,149,0.22) 60%,
      rgba(76,29,149,0.11) 73%, rgba(76,29,149,0.04) 86%, rgba(76,29,149,0) 100%),
    radial-gradient(ellipse 42% 50% at 68% 62%,
      rgba(76,29,149,0.85) 0%, rgba(76,29,149,0.6) 16%, rgba(76,29,149,0.38) 32%,
      rgba(76,29,149,0.2) 50%, rgba(76,29,149,0.08) 68%, rgba(76,29,149,0) 88%);
  width: 82vmax;
  height: 72vmax;
  border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%;
  top: -26%;
  left: -22%;
  animation: driftA 36s ease-in-out infinite alternate;
}
.nebula-field::after {
  background:
    radial-gradient(ellipse 55% 50% at 62% 38%,
      rgba(8,51,68,0.95) 0%, rgba(8,51,68,0.82) 10%, rgba(8,51,68,0.66) 22%,
      rgba(8,51,68,0.5) 34%, rgba(8,51,68,0.35) 47%, rgba(8,51,68,0.22) 60%,
      rgba(8,51,68,0.11) 73%, rgba(8,51,68,0.04) 86%, rgba(8,51,68,0) 100%),
    radial-gradient(ellipse 45% 58% at 28% 68%,
      rgba(8,51,68,0.85) 0%, rgba(8,51,68,0.6) 16%, rgba(8,51,68,0.38) 32%,
      rgba(8,51,68,0.2) 50%, rgba(8,51,68,0.08) 68%, rgba(8,51,68,0) 88%);
  width: 78vmax;
  height: 76vmax;
  border-radius: 55% 45% 38% 62% / 40% 60% 45% 55%;
  bottom: -28%;
  right: -20%;
  animation: driftB 42s ease-in-out infinite alternate;
}
.nebula-grain {
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}
#starfield {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

@keyframes driftA {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(7vw, 9vh) rotate(14deg) scale(1.12); }
}
@keyframes driftB {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-6vw, -7vh) rotate(-11deg) scale(1.08); }
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, var(--panel), rgba(241, 245, 249, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 14px;
  background: rgba(11, 13, 20, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand img { width: 32px; height: 32px; }
.brand .gold-text { font-size: 1.15rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.icon-link:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel-strong); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-s);
  width: 40px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #0b0d14;
  background: linear-gradient(120deg, var(--brand-3), var(--brand-2) 55%, var(--brand-1));
  background-size: 180% 180%;
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.55);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.7); transform: translateY(-1px); }

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--panel-strong); border-color: rgba(241,245,249,0.3); transform: translateY(-1px); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Texte doré animé ---------- */
.gold-text {
  background: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 25%, var(--gold-3) 45%, var(--gold-4) 55%, var(--gold-3) 65%, var(--gold-2) 85%, var(--gold-1) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldSweep 4s linear infinite;
}
@keyframes goldSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: -260% 50%; }
}

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 76px 40px;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-title {
  font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 16px;
}
.hero-tagline { font-size: 1.15rem; color: var(--text-secondary); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.platform-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.platform-chip {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 0.88rem;
}
.platform-chip svg { width: 18px; height: 18px; }
.platform-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Mockup app (illustration) ---------- */
.mockup-wrap { position: relative; }
.mockup-tag {
  position: absolute; top: -14px; left: 20px;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 2;
}
.app-mockup {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), var(--shadow-glow);
  border: 1px solid var(--border-strong);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.app-mockup:hover { transform: translateY(-4px); box-shadow: 0 48px 100px -28px rgba(0,0,0,0.75), var(--shadow-glow); }
.app-mockup img { display: block; width: 100%; height: auto; image-rendering: -webkit-optimize-contrast; }
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg);
}
.mockup-titlebar img { width: 26px; height: 26px; }
.mockup-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); white-space: nowrap; }
.mockup-titlebar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mockup-settings { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-muted); }
.mockup-window-controls { display: flex; align-items: center; gap: 14px; }
.mockup-window-controls svg { width: 11px; height: 11px; color: var(--text-muted); }

/* ---------- Trust strip ---------- */
.trust-strip { padding-block: 30px; }
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.trust-item {
  background: var(--bg-soft);
  padding: 22px 18px;
  text-align: center;
}
.trust-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  background: linear-gradient(120deg, var(--brand-3), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

/* ---------- Sections communes ---------- */
section { padding-block: 96px; position: relative; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(160deg, var(--panel-strong), rgba(241, 245, 249, 0.02));
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(34,211,238,0.14));
  border: 1px solid var(--border-strong);
  color: var(--brand-3);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 0.95rem; }

/* ---------- Performance ---------- */
.perf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.perf-text p { margin-bottom: 16px; }
.perf-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.perf-list li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--text-secondary); }
.perf-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--emerald); }

.chart-card { padding: 30px 30px 22px; }
.chart-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 26px; }
.chart-row { margin-bottom: 22px; }
.chart-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart-row-name { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--text); font-weight: 600; }
.chart-row-name .swatch { width: 10px; height: 10px; border-radius: 3px; }
.chart-row-value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; }
.chart-track { height: 14px; border-radius: 999px; background: rgba(241,245,249,0.06); border: 1px solid var(--border); overflow: hidden; }
.chart-fill { height: 100%; border-radius: 999px; width: 0%; transition: width 1.1s var(--ease); }
.chart-fill.good { background: linear-gradient(90deg, var(--chart-good), var(--emerald)); }
.chart-fill.warn { background: linear-gradient(90deg, var(--chart-warn), #f59e0b); }
.chart-footnote { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; line-height: 1.55; }

/* ---------- Sécurité ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.security-card { padding: 26px; display: flex; gap: 16px; }
.security-card .feature-icon { margin-bottom: 0; flex-shrink: 0; background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(5,150,105,0.12)); color: var(--emerald); }
.security-card h3 { margin-bottom: 6px; }
.security-card p { font-size: 0.94rem; }
.sovereignty-banner {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(52,211,153,0.35);
  background: linear-gradient(120deg, rgba(52,211,153,0.09), rgba(34,211,238,0.05));
}
.sovereignty-banner svg { width: 30px; height: 30px; color: var(--emerald); flex-shrink: 0; }
.sovereignty-banner strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.sovereignty-banner span { font-size: 0.88rem; color: var(--text-secondary); }

/* ---------- Comment ça marche ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-card { padding: 26px 22px; position: relative; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-3);
  border: 1px solid var(--border-strong);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step-card p { font-size: 0.9rem; }

.built-with { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.built-with span.label { font-size: 0.85rem; color: var(--text-muted); margin-right: 4px; }
.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.disclaimer-box {
  margin-top: 44px;
  padding: 22px 26px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(217, 171, 65, 0.35);
  background: linear-gradient(120deg, rgba(217,171,65,0.08), transparent);
  display: flex;
  gap: 16px;
}
.disclaimer-box svg { width: 24px; height: 24px; color: var(--gold-2); flex-shrink: 0; margin-top: 2px; }
.disclaimer-box p { font-size: 0.9rem; color: var(--text-secondary); }
.disclaimer-box strong { color: var(--text); }

/* ---------- Téléchargement ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.download-card {
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 16px;
  text-align: left;
}
.download-card.featured { border-color: rgba(99,102,241,0.5); box-shadow: var(--shadow-glow); }
.download-card-head { display: flex; align-items: center; gap: 12px; }
.download-card-head svg { width: 30px; height: 30px; }
.download-card-head h3 { margin: 0; }
.download-badge {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(52,211,153,0.15); color: var(--emerald);
  width: fit-content;
}
.download-card p { font-size: 0.88rem; flex-grow: 1; }
.download-counter {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 1.2em;
}
.download-counter:empty { display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { padding: 4px 26px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 18px; height: 18px; color: var(--text-secondary); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding-bottom: 20px; font-size: 0.95rem; color: var(--text-secondary); max-width: 68ch; }

/* ---------- CTA final ---------- */
.cta-final { padding-block: 30px 110px; }
.cta-card {
  padding: 56px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: radial-gradient(120% 140% at 50% -10%, rgba(168,85,247,0.18), transparent 60%), var(--panel);
}
.cta-card h2 { max-width: 26ch; }
.cta-card .btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text); }

.legal-notice {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-notice strong { color: var(--text-secondary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page légale ---------- */
.legal-page { padding-block: 60px 100px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem); margin-bottom: 10px; }
.legal-page .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 42px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a:not(.btn) { color: var(--brand-3); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--text); }

/* ---------- Blog ---------- */
.blog-hero { padding-block: 60px 20px; }
.blog-hero .eyebrow { margin-bottom: 18px; }
.blog-hero h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); max-width: 20ch; }
.blog-list { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin-top: 20px; }
.blog-card {
  display: block;
  padding: 26px 28px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.blog-card .blog-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.blog-card h2 { margin: 8px 0 10px; font-size: 1.35rem; color: var(--text); }
.blog-card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

.article-page { padding-block: 50px 100px; }
.article-page .container { max-width: 780px; }
.article-page .article-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; }
.article-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 20px; max-width: 22ch; }
.article-page .article-lede { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 34px; }
.article-page h2 { font-size: 1.5rem; margin-top: 46px; margin-bottom: 14px; }
.article-page h3 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.article-page p, .article-page li { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 14px; }
.article-page ul, .article-page ol { padding-left: 22px; margin-bottom: 16px; }
.article-page ul { list-style: disc; }
.article-page ol { list-style: decimal; }
.article-page a:not(.btn) { color: var(--brand-3); text-decoration: underline; text-underline-offset: 3px; }
.article-page strong { color: var(--text); }

.article-callout {
  padding: 22px 26px;
  margin-block: 30px;
  display: flex;
  gap: 14px;
}
.article-callout svg { width: 24px; height: 24px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.article-callout p { margin: 0; font-size: 0.95rem; }

.compare-table-wrap { overflow-x: auto; margin-block: 24px; border-radius: var(--radius-m); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: var(--font-display); font-weight: 700; color: var(--text); background: var(--panel-strong); }
.compare-table td { color: var(--text-secondary); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.good { color: var(--emerald); }
.compare-table td.warn { color: var(--gold-2); }

.article-cta {
  padding: 34px 32px;
  text-align: center;
  margin-block: 40px;
  background: radial-gradient(120% 140% at 50% -10%, rgba(168,85,247,0.16), transparent 60%), var(--panel);
}
.article-cta h3 { margin-top: 0; }
.article-cta p { max-width: 46ch; margin-inline: auto; }
.article-cta .btn { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .mockup-wrap { order: -1; max-width: 480px; margin-inline: auto; width: 100%; }
  .perf-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-sm.btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 20px 24px 26px;
    background: rgba(11,13,20,0.97);
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  section { padding-block: 66px; }
  .hero { padding-block: 52px 20px; }
}
