/* ==========================================================================
   article.css — Utilise les variables de theme.css
   ========================================================================== */

.article-container { max-width: 820px; margin: 0 auto; }

.article-container h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--text-primary);
  margin-top: 3rem; margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.article-container h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--accent-orange);
  margin-top: 2rem; margin-bottom: 0.5rem;
}
.article-container p { margin-bottom: 1rem; line-height: 1.75; }
.article-container ul, .article-container ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-container li { margin-bottom: 0.5rem; }
.article-container strong { color: var(--text-primary); }
.article-container a { color: var(--accent-orange); text-decoration: none; }
.article-container a:hover { text-decoration: underline; }

.article-intro {
  font-size: 1.15rem; color: var(--text-muted);
  border-left: 3px solid var(--accent-red); padding-left: 1.25rem; margin-bottom: 3rem;
}

.toc {
  background: var(--callout-bg); border: 1px solid var(--callout-border);
  border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.toc-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; font-size: 15px; }
.toc ol { margin: 0 0 0 1.25rem; }
.toc li { margin-bottom: 0.25rem; font-size: 15px; }
.toc a { color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--accent-orange); }

.callout {
  background: var(--callout-bg); border: 1px solid var(--callout-border);
  border-left: 4px solid var(--accent-orange); border-radius: 6px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.callout.warning { border-left-color: var(--accent-red); }
.callout.tip     { border-left-color: var(--accent-green); }
.callout-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

.article-container code {
  background: var(--code-bg); color: var(--accent-orange);
  padding: 2px 6px; border-radius: 3px; font-size: 0.9em;
  font-family: 'Consolas', 'Fira Code', monospace;
}
.article-container pre {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 6px; padding: 1.25rem; overflow-x: auto;
  margin: 1rem 0 1.5rem; font-size: 14px; line-height: 1.6;
}
.article-container pre code { background: none; padding: 0; color: var(--text-secondary); }

.article-container table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 15px; }
.article-container th {
  background: var(--table-header-bg); color: var(--text-primary);
  text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid var(--accent-red); font-weight: 600;
}
.article-container td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border-subtle); }
.article-container tr:hover td { background: var(--table-row-hover); }

.article-author {
  border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; margin-top: 2.5rem;
}
.article-author a { color: var(--accent-orange); text-decoration: none; }
.article-author a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .article-container h2 { font-size: 1.3rem; }
  .article-intro { font-size: 1.05rem; }
}
