/* ─────────────────────────────────────────────────────────────
   Blog article — typographie magazine sobre & lisible
   Approche : pleine largeur 660-680px, fond blanc uniforme,
   espacement généreux, composants minimalistes.
   ───────────────────────────────────────────────────────────── */

body.article-page {
  background: #FFFFFF;
  color: var(--text-primary);
}
body.article-page .bg-orbs { display: none !important; }

/* ── Hero article — épuré, pas de fond teinté ── */
.article-hero {
  background: #FFFFFF !important;
  padding-bottom: 1.5rem !important;
}
.article-hero .article-hero-inner {
  max-width: 680px;
}

/* ── Container article — pas de shell, juste du flux ── */
.article-shell {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ── Corps article ── */
.article-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #1A1F36;
  letter-spacing: -0.003em;
}

/* Premier paragraphe — légèrement plus grand */
.article-body > p:first-of-type,
.article-body .lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

/* ── Titres ── */
.article-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.018em;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  scroll-margin-top: 5rem;
}
.article-body > h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  scroll-margin-top: 5rem;
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ── Paragraphes & inline ── */
.article-body p {
  margin-bottom: 1.25rem;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(32,32,204,0.3);
  transition: text-decoration-color .15s ease;
}
.article-body a:hover {
  text-decoration-color: var(--primary);
}

/* ── Listes ── */
.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}
.article-body li::marker {
  color: var(--text-muted);
}

/* ── Séparateur ── */
.article-body hr {
  border: none;
  border-top: 1px solid rgba(10, 14, 39, 0.08);
  margin: 2.5rem auto;
  width: 60px;
}

/* ── Citation ── */
.article-body blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--primary);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* ── Code ── */
.article-body code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875em;
  background: #F3F4F8;
  color: #1818A0;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
.article-body pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #0F1119;
  color: #E8EAF0;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}
.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* ── Tableaux ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}
.article-body th {
  background: transparent;
  color: var(--text-muted);
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--text-primary);
}
.article-body td {
  padding: 0.75rem 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(10, 14, 39, 0.06);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* ─── Composants minimalistes ─── */

/* TLDR — bloc discret en début d'article */
.article-body .tldr {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #F7F8FC;
  border-left: 2px solid var(--primary);
  border-radius: 0 4px 4px 0;
}
.article-body .tldr .tldr-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.article-body .tldr ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}
.article-body .tldr li {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.article-body .tldr li:last-child { margin-bottom: 0; }
.article-body .tldr li::marker { color: var(--primary); }

/* Callout — simple bloc avec border-left */
.article-body .callout {
  margin: 1.5rem 0;
  padding: 0.875rem 1.25rem;
  background: #F7F8FC;
  border-left: 2px solid var(--text-muted);
  border-radius: 0 4px 4px 0;
}
.article-body .callout-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.article-body .callout p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body .callout--info       { border-left-color: var(--primary); }
.article-body .callout--info .callout-label { color: var(--primary); }
.article-body .callout--emerald    { border-left-color: var(--accent-emerald); }
.article-body .callout--emerald .callout-label { color: #047857; }
.article-body .callout--amber      { border-left-color: var(--accent-amber); }
.article-body .callout--amber .callout-label { color: #92400e; }
.article-body .callout--rose       { border-left-color: var(--accent-rose); }
.article-body .callout--rose .callout-label { color: #be123c; }

/* CTA inline — simple lien souligné, pas de pillule */
.article-body .cta-inline {
  margin: 1.75rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(10, 14, 39, 0.06);
  border-bottom: 1px solid rgba(10, 14, 39, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.article-body .cta-inline p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.article-body .cta-inline a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.article-body .cta-inline a:hover { text-decoration: underline; }

/* Stat grid — chiffres clés très sobres */
.article-body .stat-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(10, 14, 39, 0.06);
  border-bottom: 1px solid rgba(10, 14, 39, 0.06);
}
@media (min-width: 640px) {
  .article-body .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.article-body .stat-card {
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
}
.article-body .stat-card .stat-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.article-body .stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.article-body .stat-card--brand   .stat-value { color: var(--primary); }
.article-body .stat-card--emerald .stat-value { color: var(--accent-emerald); }
.article-body .stat-card--purple  .stat-value { color: var(--accent-purple); }
.article-body .stat-card--amber   .stat-value { color: #b45309; }

/* CTA fin d'article — bouton ghost discret */
.article-body .cta-end {
  margin: 3rem 0 1.5rem;
  padding: 1.5rem;
  background: #F7F8FC;
  border-radius: 6px;
  text-align: center;
}
.article-body .cta-end p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
}
.article-body .cta-end a {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .15s ease;
}
.article-body .cta-end a:hover { background: var(--primary-dark); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .article-body { font-size: 17px; line-height: 1.7; }
  .article-body > p:first-of-type,
  .article-body .lead { font-size: 1.0625rem; }
  .article-body h2 { font-size: 1.375rem; margin-top: 2.5rem; }
  .article-body h3 { font-size: 1.0625rem; margin-top: 1.75rem; }
  .article-body .tldr { padding: 1rem 1.25rem; }
}
