/* Page d'un article du blog (ebook/article.php) : mise en page et typographie de lecture. */

.article-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; } .article-aside { position: sticky; top: calc(var(--header-h) + 32px); } }

.article__cover { margin-bottom: 40px; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--paper-2); }

/* Contenu rédigé dans l'administration */
.article__body { max-width: 68ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { margin-top: 2em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.article__body h3 { margin-top: 1.6em; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.article__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.article__body a:hover { color: var(--brand-text); }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: .4em; }
.article__body li::marker { color: var(--brand-text); }
.article__body strong { color: var(--ink); }
.article__body blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-style: italic; color: var(--ink); }
.article__body img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.article__body code { padding: 2px 6px; border-radius: 4px; background: var(--paper-2); font-family: var(--mono); font-size: .88em; }
.article__body pre { padding: 18px 20px; border-radius: 6px; background: var(--night); color: var(--on-dark); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article__body pre code { padding: 0; background: none; color: inherit; }
.article__body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article__body th, .article__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article__body th { font-weight: 700; color: var(--ink); }

.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__tags .mono { margin-right: 6px; color: var(--muted); }
.article__tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.article__tags a:hover { border-color: var(--ink); }

/* Colonne latérale */
.article-facts { display: grid; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-facts dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.article-facts dd { font-weight: 600; }
.article-share { display: grid; gap: 10px; margin: 24px 0; }
.article-share__status { font-size: 14px; color: var(--brand-text); min-height: 1.4em; }

/* Articles liés */
.related { display: grid; gap: 40px 32px; }
@media (min-width: 768px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related__item { display: grid; gap: 10px; align-content: start; }
.related__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.related__title { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.related__item:hover .related__title { color: var(--brand-text); }
.related__excerpt { color: var(--ink-2); font-size: 15px; }

/* Mentions légales */
.legal h2:first-child { margin-top: 0; }
.legal-list { border-top: 1px solid var(--line); }
.legal-list > div { display: grid; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .legal-list > div { grid-template-columns: 160px 1fr; } }
.legal-list dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.legal-list dd { color: var(--ink); font-weight: 500; }
