/* ============================================================
   ARTICLE — mise en page des pages SEO (contenu long)
   S'appuie sur les tokens et composants de landing.css.
   ============================================================ */

.article-hero {
  padding: calc(var(--nav-h) + 64px) 0 32px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--text); border-bottom-color: var(--line); }
.breadcrumb span[aria-current] { color: var(--muted-2); }
.breadcrumb .sep { opacity: 0.5; }

.article-hero h1 {
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin: 0 0 18px;
  max-width: 20ch;
}
.article-lead {
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 66ch;
  margin: 0 0 26px;
}
.article-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.article-meta {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding: 12px 0 40px;
}

.article-body { max-width: 74ch; }
.article-body > section { margin: 0 0 44px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.article-body h2 {
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.7px;
  margin: 0 0 16px;
}
.article-body h3 {
  font-family: Sora, Inter, sans-serif;
  font-size: 18.5px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 28px 0 10px;
}
.article-body p {
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a:not(.btn):not(.seo-link) {
  color: var(--blue);
  border-bottom: 1px solid rgba(94, 164, 255, 0.35);
}
.article-body a:not(.btn):not(.seo-link):hover { color: #8dc0ff; }
.article-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.article-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.article-body ol { margin: 0 0 18px; padding-left: 20px; }
.article-body ol li { color: var(--muted-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 10px; }

.callout {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(94, 164, 255, 0.28);
  background: linear-gradient(135deg, rgba(94, 164, 255, 0.1), rgba(46, 230, 168, 0.05));
  margin: 0 0 22px;
}
.callout p { margin: 0; color: var(--muted-2); font-size: 15.5px; }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--text); }

.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.article-toc h2 {
  font-family: Sora, Inter, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 0 0 14px;
}
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: 10px; }
.article-toc a {
  display: block;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted-2);
  padding-left: 24px;
  position: relative;
}
.article-toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.75;
}
.article-toc a:hover { color: var(--text); }

.article-table {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.article-table table { width: 100%; border-collapse: collapse; min-width: 520px; }
.article-table th,
.article-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-table th {
  font-family: Sora, Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}
.article-table td { color: var(--muted-2); }
.article-table tr:last-child td { border-bottom: none; }
.article-table td.yes { color: var(--teal); }

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}
.related-card {
  display: block;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.related-card:hover {
  background: var(--card-hover);
  border-color: rgba(94, 164, 255, 0.28);
  transform: translateY(-2px);
}
.related-card strong {
  display: block;
  font-family: Sora, Inter, sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
}
.related-card span { color: var(--muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-toc { position: static; }
}
@media (max-width: 600px) {
  .article-hero { padding: calc(var(--nav-h) + 40px) 0 24px; }
  .article-hero h1 { max-width: none; }
}
