/* ═══════════════════════════════════════════════════════════════════════
   article.css — Styles pour le contenu article SEO uniquement.
   Scope : .article-wrapper
   À ajouter dans le CSS existant ou en <link> séparé.
   ═══════════════════════════════════════════════════════════════════════ */

.article-wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Meta ── */
.article-wrapper .article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 32px;
  font-size: 0.8rem;
  color: var(--nk-fg-faint);
}

.article-wrapper .article-tag {
  padding: 3px 10px;
  background: var(--nk-accent-soft);
  color: var(--nk-accent-text);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Headings ── */
/* Ces titres héritent de la serif via la règle globale h1,h2,h3. Or Instrument
   Serif n'a que le 400 : les poids 900/800/700 d'origine produisaient un faux
   gras. On repasse en 400 au-dessus de 22 px, et en Manrope en dessous. */
.article-wrapper article h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 400;
  color: var(--nk-fg);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.article-wrapper article h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--nk-fg);
  line-height: 1.25;
  margin: 48px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--nk-bd);
}

.article-wrapper article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* 17 px : sous le plancher de la serif. */
.article-wrapper article h3 {
  font-family: var(--nk-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--nk-fg);
  margin: 28px 0 8px;
}

/* ── Text ── */
.article-wrapper article p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--nk-fg-muted);
  margin: 0 0 16px;
}

.article-wrapper article strong {
  color: var(--nk-fg);
  font-weight: 700;
}

.article-wrapper article em {
  color: var(--nk-fg-muted);
}

.article-wrapper article a {
  color: var(--nk-accent-text);
  text-decoration: none;
  font-weight: 600;
}

.article-wrapper article a:hover {
  text-decoration: underline;
}

/* ── Lists ── */
.article-wrapper article ul,
.article-wrapper article ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.article-wrapper article li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--nk-fg-muted);
}

.article-wrapper article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nk-accent);
}

.article-wrapper article ol { counter-reset: ol-count; }

.article-wrapper article ol li::before {
  counter-increment: ol-count;
  content: counter(ol-count) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--nk-accent);
}

/* ── Blockquote ── */
.article-wrapper article blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--nk-accent);
  background: var(--nk-accent-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--nk-fg-muted);
  line-height: 1.7;
}

/* ── CTA block ── */
.article-wrapper article .article-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--nk-accent-soft);
  border: 1px solid var(--nk-accent-line);
  border-radius: 12px;
  text-align: center;
}

.article-wrapper article .article-cta a {
  font-weight: 800;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .article-wrapper { padding: 24px 16px 60px; }
  /* On ne descend pas la serif sous 22 px, même en petit écran. */
  .article-wrapper article h1 { font-size: 26px; }
  .article-wrapper article h2 { font-size: 22px; margin-top: 36px; padding-top: 20px; }
  .article-wrapper article h3 { font-size: 16px; margin-top: 22px; }
  .article-wrapper article p { font-size: 0.95rem; line-height: 1.72; }
  .article-wrapper .article-meta { font-size: 0.75rem; gap: 8px; }
  .article-wrapper .article-breadcrumb { font-size: 0.78rem; gap: 6px; }
  .article-wrapper article .article-cta { padding: 18px 16px; }
}

/* ── Push footer down ── */
body.nt-public main:has(.article-wrapper) {
  min-height: calc(100vh - 72px);
}

/* ── Breadcrumb (optional) ── */
.article-wrapper .article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--nk-fg-faint);
}

.article-wrapper .article-breadcrumb a {
  color: var(--nk-accent);
  font-weight: 700;
}

.article-wrapper .article-breadcrumb span[aria-current="page"] {
  color: var(--nk-fg-muted);
  font-weight: 700;
}
