/* Page article (mobile first) : en-tête, couverture, corps typographié, sommaire collant */

/* En-tête */
.art__head { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 80px)); }
.art__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: clamp(20px, 3vw, 36px); }
.art__crumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.art__crumb a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.art__crumb a:hover svg { transform: translateX(-3px); }
.art__title { font-size: min(clamp(2rem, 8.4vw, 6.4rem), 9.4cqi); font-weight: 800; letter-spacing: -.032em; line-height: .98; font-variation-settings: "wdth" 100; text-wrap: balance; max-width: 22ch; }
.art__intro { display: grid; gap: 18px; margin-top: clamp(22px, 3.4vw, 44px); }
.art__lead { max-width: 46ch; }
.art__meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.art__meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 12px; vertical-align: middle; }
@media (min-width: 961px) {
  .art__intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .art__meta { justify-content: flex-end; }
}

/* Couverture : pleine largeur dans la gouttière, proportions fixes (aucun décalage) */
.art__cover { position: relative; margin: clamp(32px, 5vw, 72px) var(--gutter) 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-l); }
.art__cover-img { position: absolute; inset: -8% 0; }
.art__cover-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 721px) { .art__cover { aspect-ratio: 16 / 9; } }
@media (min-width: 1081px) { .art__cover { aspect-ratio: 21 / 9; } }

/* Grille : sommaire à gauche, texte à mesure confortable, figures plus larges */
.art__grid { padding-block: clamp(44px, 7vw, 120px) clamp(64px, 9vw, 150px); }
.art__toc { display: none; }
@media (min-width: 1081px) {
  .art__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
  .art__grid > .art__body:only-child, .art__toc[hidden] + .art__body { grid-column: 2; }
  .art__toc:not([hidden]) { display: block; position: sticky; top: calc(var(--nav-h) + 28px); }
  .art__toc-t { font-size: var(--fs-small); font-weight: 700; color: var(--green); margin-bottom: 14px; }
  .art__toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
  .art__toc a { display: block; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .98rem; line-height: 1.3; text-decoration: none; color: var(--muted); position: relative; transition: color .2s var(--ease); text-wrap: pretty; }
  .art__toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform .2s var(--ease); }
  .art__toc a:hover, .art__toc a[aria-current] { color: var(--ink); }
  .art__toc a[aria-current]::before { transform: scale(1); }
}

/* Corps de l'article */
.art__body { font-size: clamp(1.0625rem, 1rem + .42vw, 1.3rem); line-height: 1.65; min-width: 0; overflow-wrap: break-word; }
.art__body > * { max-width: 68ch; }
.art__body > * + * { margin-top: 1.15em; }
.art__body > p:first-child { font-size: 1.14em; line-height: 1.5; font-weight: 500; }
.art__body h2 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; font-variation-settings: "wdth" 100; text-wrap: balance; max-width: 24ch; margin-top: 1.7em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.art__body h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; margin-top: 1.7em; }
.art__body h2 + *, .art__body h3 + * { margin-top: .8em; }
.art__body strong { font-weight: 700; }
.art__body em { font-weight: 600; }
.art__body a { color: var(--green-d); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(56, 114, 75, .4); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
.art__body a:hover { color: var(--green); text-decoration-color: currentColor; }
.art__body ul, .art__body ol { list-style: none; padding: 0; display: grid; gap: .6em; }
.art__body li { position: relative; padding-left: 1.7em; }
.art__body ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--green); }
.art__body ol { counter-reset: art; }
.art__body ol > li { counter-increment: art; padding-left: 2.5em; }
.art__body ol > li::before { content: counter(art, decimal-leading-zero); position: absolute; left: 0; top: .22em; font-size: .78em; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.art__body blockquote { max-width: 30ch; margin-block: 1.6em; padding-left: clamp(18px, 2.4vw, 32px); border-left: 4px solid var(--green); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; font-variation-settings: "wdth" 100; text-wrap: balance; }
.art__body blockquote p { margin: 0; }
.art__body figure { max-width: none; margin-block: clamp(32px, 4.4vw, 64px); overflow: hidden; } /* overflow : l'image agrandie avant sa révélation (data-clip) ne doit pas élargir la page */
.art__body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--sand-l); }
.art__body figcaption { margin-top: 12px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); max-width: 68ch; }
.art__body > :last-child { margin-bottom: 0; }
/* Vidéos dans un article : façade YouTube (cadre .yt posé par js/main.js) ou fichier en lecteur natif */
.art__body figure.video .yt img { border-radius: 0; aspect-ratio: auto; height: 100%; background: none; }
.art__body figure.video.is-portrait figcaption { max-width: 440px; margin-inline: auto; }

/* Appel à l'action : énoncé sur photo, hauteur contenue */
.art-cta { min-height: min(84svh, 760px); }
