/* Pages de contenu (contenus/<page>/<langue>.md). S'ajoute à styles.css, tiré de index.html : mêmes couleurs,
   mêmes polices, même en-tête et même pied de page que l'accueil. */
.nav { border-bottom-color: var(--line); }

.crumbs { padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 600 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article-head { padding-block: clamp(28px, 5vw, 56px) clamp(28px, 4vw, 44px); display: grid; gap: 24px; justify-items: start; }
.article-head h1.display { font-size: clamp(40px, 6.4vw, 80px); max-width: 16ch; }
.article-head .ctas { justify-content: flex-start; }

.article-img { margin: 0 auto; }
.article-img img { width: 100%; max-height: 560px; object-fit: cover; object-position: top; border-radius: var(--radius-large); background: var(--fog); box-shadow: 0 0 0 1px var(--line); }

.article-body { max-width: 824px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { font: 900 clamp(28px, 3.6vw, 40px)/1.08 var(--display); color: var(--ink); letter-spacing: -0.03em; margin-top: 56px; text-wrap: balance; }
.article-body h3 { margin-top: 36px; }
.article-body h2 + *, .article-body h3 + * { margin-top: 14px; }
.article-body ul, .article-body ol { margin-bottom: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.article-body li::marker { color: var(--yellow-deep); font-weight: 800; }
.article-body strong { color: var(--ink); font-weight: 800; }
.article-body a:not(.btn) { font-weight: 700; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow-deep); }
.article-body code { font: 500 .88em var(--mono); background: var(--fog); padding: 1px 6px; border-radius: 6px; }
.article-body figure { margin: 36px 0; }
.article-body figure img { border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--line); }
/* Images en hauteur (pages de PDF, captures de téléphone), repérées par build.mjs : plus étroites et centrées,
   pour ne pas occuper deux écrans. La largeur fixée garde la place de l'image avant son chargement. */
.article-body figure.portrait img { display: block; width: min(100%, 520px); height: auto; margin-inline: auto; }

/* Calculateur du temps de rédaction (bloc « :::calculateur », rempli par calculateur.js). */
.calc { margin: 36px 0; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius-large); background: var(--fog); display: grid; gap: 24px; }
.calc-fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.calc-field { display: grid; gap: 6px; align-content: end; font-weight: 700; color: var(--ink); }
.calc-field input { font: 600 18px/1.2 var(--body); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.calc-field input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.calc-result { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.calc-result [data-cost] { display: contents; }
.calc-result [data-cost][hidden] { display: none; }
.calc-result p { margin: 0; padding: 16px; border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.calc-result strong { display: block; font: 900 clamp(28px, 4vw, 36px)/1.1 var(--display); color: var(--ink); }
.calc-note { margin: 0; font-size: 14px; color: var(--muted); }
