/* ============================================================
   DSN Expert Paie — Stylesheet partagé (v3)
   Charte : bleu nuit #0b1b3a, accent #3b82f6
   Police : Inter (Google Fonts)
============================================================ */

:root {
  --navy: #0b1b3a;
  --navy-2: #112447;
  --navy-3: #16315e;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-dark: #1d4ed8;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --ink-on-dark: #e2e8f0;
  --ink-on-dark-muted: #94a3b8;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --ok: #059669;
  --ok-soft: #ecfdf5;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(11, 27, 58, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

ul, ol { color: var(--text-muted); }
li { margin-bottom: 0.4em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Bandeau d'urgence (au-dessus du header)
============================================================ */
.urgency-banner {
  background: var(--navy);
  color: #e2e8f0;
  font-size: 0.86rem;
  padding: 9px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 60;
}
.urgency-banner .container { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.urgency-banner strong { color: #fff; }
.urgency-banner a { color: #fff; text-decoration: underline; }
.urgency-banner .warn-ico { color: #fbbf24; }

/* ============================================================
   Header / Navigation
============================================================ */
.site-header {
  position: sticky; top: 38px; z-index: 50;
  background: rgba(11, 27, 58, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700; font-size: 1.05rem; color: #fff;
  letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 14px rgba(59,130,246,0.45);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: #cbd5e1; font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { margin-left: 8px; }
.menu-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; color: #fff; padding: 7px 11px; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
  }
  .nav-links.open .nav-cta { margin-left: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ============================================================
   Boutons
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-light:hover { background: var(--surface-3); color: var(--navy); }
.btn-outline {
  background: transparent; color: var(--accent-dark);
  border-color: var(--accent);
}
.btn-outline:hover { background: rgba(59,130,246,0.08); color: var(--accent-dark); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,0.18), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(96,165,250,0.10), transparent 55%),
              linear-gradient(180deg, var(--navy) 0%, #0a1a36 100%);
  color: #fff;
  padding: 84px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lede { color: #cbd5e1; font-size: 1.1rem; max-width: 62ch; margin: 22px 0 30px; }
.hero .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 0;
  color: var(--ink-on-dark-muted); font-size: 0.84rem;
  margin-top: 8px;
  align-items: center;
}
.trust-bar span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px;
  border-right: 1px solid rgba(148,163,184,0.25);
  line-height: 1.3;
}
.trust-bar span:first-child { padding-left: 0; }
.trust-bar span:last-child { border-right: none; padding-right: 0; }

@media (max-width: 720px) {
  .trust-bar span { border-right: none; padding: 4px 0; flex: 0 0 100%; }
}

.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(96,165,250,0.35);
  color: #93c5fd; font-size: 0.8rem; font-weight: 500;
  margin-bottom: 22px;
}
.tag-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #60a5fa; box-shadow: 0 0 8px #60a5fa;
}

/* ============================================================
   Sections
============================================================ */
section.block { padding: 80px 0; }
section.block.alt { background: var(--surface-2); }
section.block.dark { background: var(--navy); color: #fff; }
section.block.dark h2, section.block.dark h3 { color: #fff; }
section.block.dark p { color: #cbd5e1; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
section.block.dark .eyebrow { color: var(--accent-2); }

.section-head { max-width: 820px; margin-bottom: 44px; }
.section-head p { font-size: 1.05rem; }

/* ============================================================
   Bandeau preuves chiffrées
============================================================ */
.proofs {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.proofs-label { font-size: 0.82rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 22px; font-weight: 600; }
.proofs .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.proof-card .num {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.proof-card .lbl { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 8px; }
.proof-card .src { font-size: 0.78rem; color: var(--text-soft); }
.proof-card .src a { color: var(--text-soft); text-decoration: underline; }

@media (max-width: 760px) { .proofs .grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   Cartes (3 réalités)
============================================================ */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card .quote {
  font-weight: 600; color: var(--text); font-size: 1rem;
  margin: 0 0 16px;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  line-height: 1.5;
}
.card .body { color: var(--text-muted); font-size: 0.94rem; }
.card .body code { font-family: var(--font-mono); background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: var(--accent-dark); }
.card .quote-officiel {
  margin-top: 14px; padding: 12px 14px;
  background: var(--surface-2); border-left: 3px solid var(--text-soft);
  border-radius: 0 6px 6px 0; font-size: 0.9rem; color: var(--text);
}
.card .quote-officiel strong { color: var(--navy); }
.card .src { margin-top: 12px; font-size: 0.78rem; color: var(--text-soft); }
.card .src a { color: var(--text-soft); text-decoration: underline; }

/* ============================================================
   Avant / Après
============================================================ */
.before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 32px 0;
}
@media (max-width: 860px) { .before-after { grid-template-columns: 1fr; } }
.ba-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
}
.ba-card.before { border-top: 4px solid var(--danger); }
.ba-card.after  { border-top: 4px solid var(--ok); }
.ba-card .label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; margin-bottom: 12px;
}
.ba-card.before .label { color: var(--danger); }
.ba-card.after  .label { color: var(--ok); }
.ba-card .code-line {
  font-family: var(--font-mono); font-size: 0.88rem;
  background: var(--surface-3); padding: 10px 14px;
  border-radius: 6px; color: var(--accent-dark);
  margin: 8px 0 14px; word-break: break-all;
}
.ba-card p { font-size: 0.94rem; }
.ba-card .conclusion { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--text); }

/* ============================================================
   Fonctions
============================================================ */
.fn-list { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.fn-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.fn-card h3 { margin-bottom: 14px; }
.fn-card ul { margin: 12px 0; padding-left: 20px; color: var(--text-muted); }
.fn-card ul li { margin-bottom: 6px; font-size: 0.95rem; }
.fn-card .example {
  margin-top: 16px; padding: 16px 18px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem; color: var(--text);
}
.fn-card .example .q, .fn-card .example .a { display: block; margin-bottom: 8px; }
.fn-card .example .q strong { color: var(--accent-dark); }
.fn-card .example .a:last-child { margin-bottom: 0; }
.fn-card code {
  font-family: var(--font-mono); background: var(--surface-3);
  padding: 2px 6px; border-radius: 4px; font-size: 0.85em;
  color: var(--accent-dark);
}
.fn-card .src { margin-top: 14px; font-size: 0.78rem; color: var(--text-soft); }
.fn-card .src a { color: var(--text-soft); text-decoration: underline; }

/* ============================================================
   Différenciants (6 points)
============================================================ */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
}
.diff-card .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(59,130,246,0.1); color: var(--accent-dark);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  margin-bottom: 14px;
}
.diff-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.diff-card p { font-size: 0.94rem; margin: 0; }
.diff-card em { color: var(--text); font-style: italic; }

.diff-source {
  margin-top: 36px;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.diff-source strong { color: var(--text); }

/* ============================================================
   Section 5 BIS — Sécurité & Souveraineté
============================================================ */
.secu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
@media (max-width: 1020px) { .secu-grid { grid-template-columns: 1fr; } }
.secu-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.secu-card .secu-num {
  display: inline-block;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--accent-dark); margin-bottom: 10px;
}
.secu-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.secu-card p { font-size: 0.94rem; color: var(--text-muted); }
.secu-card .secu-table {
  width: 100%; border-collapse: collapse; margin: 14px 0 4px;
  font-size: 0.88rem;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.secu-card .secu-table th, .secu-card .secu-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.secu-card .secu-table th {
  background: var(--surface-2); font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft);
}
.secu-card .secu-table tr:last-child td { border-bottom: none; }
.secu-card .secu-table td strong { color: var(--text); }
.secu-card .secu-table td .mode-name { font-weight: 600; color: var(--navy); }
.secu-card .secu-foot {
  margin-top: 14px; font-size: 0.85rem; color: var(--text-soft);
}
.secu-card .secu-ctas {
  display: flex; flex-direction: column; gap: 10px; margin-top: 18px;
}
.secu-card .secu-ctas a {
  font-weight: 600; font-size: 0.94rem;
}
.secu-card.highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgba(59,130,246,0.4);
}

/* ============================================================
   Logiciels supportés
============================================================ */
.editors-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 720px) { .editors-grid { grid-template-columns: 1fr; } }
.editor-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 24px;
  display: flex; gap: 18px; align-items: flex-start;
}
.editor-logo {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  color: var(--navy); letter-spacing: -0.02em;
}
.editor-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.editor-card p { font-size: 0.92rem; margin: 0; }
.editors-note {
  margin-top: 24px; padding: 18px 22px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.94rem; color: var(--text);
}
.editors-note a { color: var(--accent-dark); font-weight: 600; }

/* ============================================================
   Pricing
============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(59,130,246,0.15);
  transform: translateY(-4px);
}
@media (max-width: 980px) { .price-card.featured { transform: none; } }
.price-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 14px; border-radius: 999px; font-weight: 700;
  white-space: nowrap;
}
.price-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.price-card .pitch { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 18px; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price-card .price .amount { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.price-card .price .unit { color: var(--text-soft); font-size: 0.95rem; }
.price-card .ht { color: var(--text-soft); font-size: 0.78rem; margin-bottom: 22px; }
.price-card ul.feats { list-style: none; padding: 0; margin: 0 0 28px; }
.price-card ul.feats li {
  padding: 9px 0; padding-left: 28px; position: relative;
  font-size: 0.92rem; color: var(--text);
  border-bottom: 1px solid var(--surface-3);
}
.price-card ul.feats li:last-child { border-bottom: none; }
.price-card ul.feats li::before {
  content: "✓"; position: absolute; left: 4px; top: 9px;
  color: var(--accent); font-weight: 700;
}
.price-card .audience {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: 12px 14px; border-radius: 0 6px 6px 0;
  font-size: 0.88rem; color: var(--text-muted); font-style: italic;
  margin-bottom: 20px;
}
.price-card .btn { width: 100%; margin-top: auto; }

.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.88rem; color: var(--text-soft);
}

/* ============================================================
   FAQ
============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details.faq-item summary {
  font-weight: 600; color: var(--text); font-size: 1.02rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; color: var(--accent-dark); font-weight: 400; font-size: 1.5rem; line-height: 1;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .answer { margin-top: 14px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.7; }
details.faq-item .answer p { margin-bottom: 0.8em; }
details.faq-item .answer code {
  font-family: var(--font-mono); background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: 0.85em;
}

/* ============================================================
   Appel final (CTA section)
============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1a36 100%);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.final-cta h2 { color: #fff; max-width: 24ch; margin: 0 auto 12px; }
.final-cta .lede { color: #cbd5e1; font-size: 1.1rem; max-width: 60ch; margin: 0 auto 24px; }
.final-cta .body {
  color: #cbd5e1; max-width: 70ch; margin: 0 auto 24px; font-size: 1rem;
}
.final-cta blockquote {
  max-width: 64ch; margin: 0 auto 24px;
  padding: 16px 22px;
  background: rgba(255,255,255,0.04);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: #e2e8f0; font-style: normal; text-align: left;
}
.final-cta blockquote p { color: #e2e8f0; margin-bottom: 8px; }
.final-cta blockquote .src { color: #94a3b8; font-size: 0.85rem; }
.final-cta blockquote .src a { color: #cbd5e1; }
.final-cta .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.final-cta .reglem {
  font-size: 0.82rem; color: #94a3b8; max-width: 70ch; margin: 24px auto 0; line-height: 1.6;
}
.final-cta .reglem a { color: #cbd5e1; }
.final-cta .support {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.final-cta .support strong { color: #fff; }

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: #050d1f; color: #94a3b8;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #e2e8f0; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
  font-weight: 600;
}
.site-footer .footer-sub {
  color: #cbd5e1; font-size: 0.85rem; font-weight: 600;
  margin: 16px 0 8px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: 0.9rem; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-block .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-block p { color: #94a3b8; font-size: 0.88rem; max-width: 32ch; margin-bottom: 6px; }

.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.78rem; color: #64748b; line-height: 1.6;
}
.site-footer-bottom a { color: #94a3b8; }

/* ============================================================
   Animations
============================================================ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Pages secondaires (longform)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1a36 100%);
  color: #fff; padding: 70px 0 50px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cbd5e1; font-size: 1rem; max-width: 60ch; margin: 0; }
.page-hero .meta-date { color: #94a3b8; font-style: italic; font-size: 0.92rem; margin-top: 8px; }

.longform { padding: 56px 0 96px; }
.longform .container-narrow { max-width: 820px; }
.longform h2 { margin-top: 44px; font-size: 1.5rem; color: var(--text); }
.longform h2:first-child { margin-top: 0; }
.longform h3 { margin-top: 28px; font-size: 1.15rem; color: var(--text); }
.longform p, .longform li { font-size: 1rem; color: var(--text); line-height: 1.7; }
.longform ul, .longform ol { color: var(--text); padding-left: 22px; }
.longform strong { color: var(--text); }
.longform blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}
.longform blockquote p { color: var(--text); }
.longform blockquote p:last-child { margin-bottom: 0; }
.longform table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 0.94rem;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.longform th, .longform td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.longform th { background: var(--surface-2); font-weight: 600; color: var(--text); }
.longform tr:last-child td { border-bottom: none; }
.longform code { background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; font-family: var(--font-mono); color: var(--accent-dark); }
.longform pre {
  background: var(--navy); color: #e2e8f0;
  border-radius: 8px; padding: 18px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.6;
  margin: 18px 0;
}
.longform a { color: var(--accent-dark); }
.longform hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

.summary-box {
  margin: 28px 0 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(96,165,250,0.04));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius);
}
.summary-box p:first-child { margin-top: 0; }
.summary-box p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .longform table, .longform thead, .longform tbody, .longform tr, .longform th, .longform td {
    display: block;
  }
  .longform thead { display: none; }
  .longform tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
  .longform td { border-bottom: 1px solid var(--surface-3); padding: 6px 10px; }
  .longform tr:last-child td:last-child { border-bottom: none; }
}

/* ============================================================
   Utilitaires
============================================================ */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--text-soft); }
.small { font-size: 0.85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
