/* ==========================================================================
   Ressources : liste d'articles et page d'article.
   ========================================================================== */

.res-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line-strong); }
.res-list__item { border-bottom: 1px solid var(--line-strong); }
.res-list__link { display: grid; gap: var(--s-2); padding-block: var(--s-5); text-decoration: none; }
.res-list__title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.02; letter-spacing: var(--ls-title); max-width: 26ch; text-wrap: balance; }
.res-list__desc { max-width: 60ch; font-size: var(--fs-lead); color: var(--fg-muted); line-height: 1.4; }
.res-list__meta { color: var(--fg-muted); font-weight: 700; }
.res-list__link:hover .res-list__title, .res-list__link:focus-visible .res-list__title { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 0.12em; text-underline-offset: 0.08em; }

.res-article__head { margin-top: var(--s-5); max-width: 62rem; }
.res-article__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.75rem); max-width: 22ch; }
.res-article__lead { margin-top: var(--s-4); max-width: 52ch; }
.res-article__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: var(--s-4); color: var(--fg-muted); font-weight: 600; }
.res-article__grid { margin-top: var(--s-6); row-gap: var(--s-5); }

.res-toc { font-size: var(--fs-small); }
.res-toc__title { font-weight: 800; color: var(--fg-muted); margin-bottom: var(--s-2); }
.res-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-top: 1px solid var(--line-strong); }
.res-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.res-toc a { display: flex; gap: 0.6rem; padding: 0.6rem 0; min-height: var(--hit-area); font-weight: 700; text-decoration: none; line-height: 1.3; }
.res-toc a::before { content: counter(toc); font-family: var(--font-display); color: var(--accent-text); min-width: 1.2rem; }
.res-toc a:hover { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; }
@media (min-width: 64rem) { .res-toc { position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; } }

.res-body { font-size: var(--fs-lead); line-height: 1.6; max-width: 40em; }
.res-body h2 { font-size: var(--fs-h2); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.res-body h2:first-child { margin-top: 0; }
.res-body h3 { font-size: var(--fs-h3); margin-top: 1.6em; }
.res-body ul, .res-body ol { padding-left: 1.3em; }
.res-body li::marker { color: var(--accent-text); font-weight: 800; }
.res-body blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.1em; border-left: 6px solid var(--tape); font-weight: 600; }
.res-body strong { font-weight: 800; }
.res-cta__side { align-self: end; }

/* Pages légales : texte plus compact, valeurs à confirmer surlignées. */
.legal__warning { margin-top: var(--s-4); }
.legal__body { font-size: var(--fs-body); }
.legal__body h2 { font-size: var(--fs-h3); font-family: var(--font-text); font-weight: 800; text-transform: none; letter-spacing: -0.01em; }
.legal__body h3 { font-size: var(--fs-body); }
.to-confirm { background: #FFD84D; color: #0E0F11; padding: 0 0.2em; font-weight: 700; }
