/* Dossiers : articles de fond (FR /dossiers/, EN /en/files/) et leur sommaire.
   Même univers que site.css (noir, blanc cassé, Jost). Sobre : une colonne de lecture, des titres, des photos,
   un seul bouton (le livre, en fin d'article). Pas de cartes, pas de petites capitales, pas de séparateurs décoratifs. */

.hd-dossier .hd-main { padding-top: clamp(28px, 6vh, 64px); }

/* Fil d'Ariane */
.hd-crumbs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mute);
}
.hd-crumbs li { min-width: 0; }
.hd-crumbs li + li::before { content: '/'; margin: 0 9px; color: rgba(144, 139, 129, 0.55); }
.hd-crumbs a { color: var(--mute); text-decoration: none; }
.hd-crumbs a:hover { color: var(--ink); }
.hd-crumbs [aria-current] { color: var(--soft); }

/* Article */
.hd-art { max-width: 960px; margin: 0 auto; }
.hd-art__head,
.hd-art__body { max-width: 700px; margin: 0 auto; }

.hd-art__title {
    margin: 0;
    font-weight: 300;
    font-size: clamp(34px, 7.2vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.hd-art__lead {
    margin: 22px 0 0;
    font-size: clamp(18px, 2.4vw, 21px);
    line-height: 1.55;
    color: var(--soft);
    text-wrap: pretty;
}

.hd-art__meta { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
.hd-art__meta a { color: var(--soft); }

.hd-art__hero { margin: clamp(32px, 6vh, 52px) 0 0; }
.hd-art__hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
}
.hd-art__hero figcaption,
.hd-prose figcaption {
    max-width: 700px;
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mute);
}
.hd-credit { color: rgba(144, 139, 129, 0.75); }

/* En bref : la réponse en quelques lignes */
.hd-brief { margin: clamp(36px, 6vh, 48px) 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ink); }
.hd-brief__title { margin: 0 0 6px; font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--ink); }
.hd-brief ul { margin: 0; padding-left: 1.05em; }
.hd-brief li { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.hd-brief li::marker { color: var(--mute); }
.hd-brief strong { color: var(--ink); font-weight: 500; }

/* Sommaire (articles longs) */
.hd-toc { margin: 40px 0 0; }
.hd-toc__title { margin: 0; font-weight: 500; font-size: 17px; color: var(--ink); }
.hd-toc ol { margin: 10px 0 0; padding-left: 1.4em; }
.hd-toc li { margin: 6px 0; font-size: 16px; line-height: 1.45; color: var(--mute); }
.hd-toc a { color: var(--soft); text-decoration: none; }
.hd-toc a:hover { color: var(--ink); text-decoration: underline; }

/* Texte */
.hd-prose { margin-top: 40px; font-size: 18px; line-height: 1.75; color: var(--soft); overflow-wrap: break-word; }
.hd-prose p { margin: 0 0 1.1em; }
.hd-prose h2 {
    margin: 2.1em 0 0.65em;
    font-weight: 300;
    font-size: clamp(26px, 4.8vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-wrap: balance;
    scroll-margin-top: 20px;
}
.hd-prose h3 { margin: 1.8em 0 0.5em; font-weight: 500; font-size: 19px; line-height: 1.4; color: var(--ink); }
.hd-prose a { color: var(--ink); text-decoration-color: rgba(236, 232, 223, 0.38); }
.hd-prose a:hover { text-decoration-color: var(--ink); }
.hd-prose strong { color: var(--ink); font-weight: 500; }
.hd-prose ul,
.hd-prose ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.hd-prose li { margin: 0.4em 0; }
.hd-prose li::marker { color: var(--mute); }
.hd-prose blockquote {
    margin: 1.7em 0;
    padding: 2px 0 2px 22px;
    border-left: 2px solid var(--edge);
    font-size: 19.5px;
    line-height: 1.6;
    color: var(--ink);
}
.hd-prose blockquote p { margin: 0; }
.hd-prose blockquote footer { margin-top: 10px; font-size: 14px; color: var(--mute); }
.hd-prose figure { margin: 2.2em 0; }
.hd-prose figure img { display: block; width: 100%; height: auto; }
.hd-prose figure.hd-fig--narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.hd-prose .hd-table { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hd-prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.hd-prose th,
.hd-prose td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hd-prose th { font-weight: 500; color: var(--ink); }
.hd-prose td.num,
.hd-prose th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Graphique en barres (sondages) */
.hd-bars { margin: 2em 0 0.6em; padding: 0; list-style: none; }
.hd-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 6px 12px; align-items: center; margin: 0 0 16px; }
.hd-bars__label { grid-column: 1 / -1; font-size: 15px; line-height: 1.4; color: var(--soft); }
.hd-bars__track { height: 10px; background: rgba(236, 232, 223, 0.08); }
.hd-bars__fill { display: block; height: 100%; background: var(--ink); }
.hd-bars__value { font-size: 16px; font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.hd-bars__note { font-size: 14px; color: var(--mute); }

/* Rappel du livre au fil du texte : une phrase */
.hd-prose .hd-cta { margin: 2em 0; padding-left: 22px; border-left: 2px solid var(--edge); font-size: 16.5px; line-height: 1.6; color: var(--mute); }

/* Questions fréquentes (toujours visibles) */
.hd-faq { margin-top: 64px; }
.hd-faq h2 { margin: 0; font-weight: 300; font-size: clamp(26px, 4.8vw, 34px); line-height: 1.2; scroll-margin-top: 20px; }
.hd-faq__item { margin-top: 26px; }
.hd-faq h3 { margin: 0; font-weight: 500; font-size: 18px; line-height: 1.45; color: var(--ink); }
.hd-faq p { margin: 8px 0 0; font-size: 17px; line-height: 1.65; color: var(--soft); }
.hd-faq a { color: var(--ink); }

/* Le livre : la couverture, une phrase, un bouton */
.hd-book {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    margin: 72px 0 0;
}
.hd-book__cover img { display: block; width: 120px; height: auto; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7); }
.hd-book__title { margin: 0; font-size: 22px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.hd-book__pitch { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.hd-site .hd-book__buy { width: auto; min-height: 52px; margin-top: 20px; padding: 0 28px; }

/* Sources */
.hd-sources { margin-top: 64px; }
.hd-sources h2,
.hd-related h2 { margin: 0; font-weight: 300; font-size: 24px; line-height: 1.25; color: var(--ink); }
.hd-sources ol { margin: 14px 0 0; padding-left: 1.4em; font-size: 14.5px; line-height: 1.55; color: var(--mute); }
.hd-sources li { margin: 6px 0; overflow-wrap: anywhere; }
.hd-sources a { color: var(--soft); }

/* Listes d'articles (à lire aussi, sommaire des dossiers) */
.hd-related { margin-top: 64px; }
.hd-list { margin: 8px 0 0; padding: 0; list-style: none; }
.hd-list li { margin: 22px 0 0; }
.hd-list a { font-size: 19px; line-height: 1.35; color: var(--ink); text-decoration: none; text-wrap: balance; }
.hd-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hd-list p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.hd-related__all { margin: 28px 0 0; font-size: 15px; }
.hd-related__all a { color: var(--soft); }

/* Sommaire des dossiers */
.hd-hub { max-width: 1080px; margin: 0 auto; }
.hd-hub__head { max-width: 760px; }
.hd-hub__pillar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: clamp(40px, 7vh, 64px);
    text-decoration: none;
}
.hd-hub__pillar-img img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.hd-hub__pillar-text { display: block; }
.hd-hub__pillar-title { display: block; font-weight: 300; font-size: clamp(28px, 4.8vw, 40px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.hd-hub__pillar-lead { display: block; margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.hd-hub__go { display: inline-block; margin-top: 16px; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hd-hub__section { max-width: 760px; margin-top: clamp(56px, 9vh, 84px); }
.hd-hub__section h2 { margin: 0; font-weight: 300; font-size: clamp(26px, 4.4vw, 34px); line-height: 1.2; text-wrap: balance; }
.hd-hub__section h2 a { color: var(--ink); text-decoration: none; }
.hd-hub__section h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.hd-hub__section > p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--mute); }

@media (min-width: 860px) {
    .hd-hub__pillar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
    .hd-hub__pillar-img img { max-height: none; aspect-ratio: 1 / 1; }
}

@media (max-width: 640px) {
    .hd-art__hero { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }
    .hd-art__hero figcaption { padding: 0 var(--gut); }
    .hd-prose { font-size: 17.5px; line-height: 1.72; }
    .hd-book { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; }
    .hd-book__cover img { width: 84px; }
    .hd-book__title { font-size: 19px; }
    .hd-book__text { min-width: 0; }
    .hd-site .hd-book__buy { width: 100%; }
}

@media (max-width: 420px) {
    .hd-dossier .hd-top__logo img { height: 20px; }
    .hd-dossier .hd-top__right { gap: 16px; }
    .hd-dossier .hd-top__nav,
    .hd-dossier .hd-top__lang { gap: 14px; }
}

/* sommaire multi-univers */
.hd-hub__univers { margin: 64px 0 22px; font: 300 clamp(28px, 4vw, 40px)/1.1 Jost, system-ui, sans-serif; letter-spacing: .01em; }
.hd-hub__univers:first-of-type { margin-top: 30px; }

/* ======================================================================================================
   Édition du 01/12 : la couverture plein écran, les chapitres, les pièces d'archives, les lectures liées.
   Titres en Newsreader (comme l'accueil d'essai), texte en Jost.
   ====================================================================================================== */
.hd-art { --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; }
.hd-art__title { font-family: var(--serif); font-weight: 300; letter-spacing: -0.012em; }

/* La couverture : la photo de l'article en plein écran, l'en-tête et le titre posés dessus */
.hd-dossier--cover .hd-top { position: absolute; left: 0; right: 0; top: 0; z-index: 4; }
.hd-dossier--cover .hd-main { padding-top: 0; }
.hd-art--cover { max-width: none; }
.hd-art--cover .hd-art__head { max-width: none; }
.hd-cover { position: relative; z-index: 0; width: 100vw; height: min(84vh, 880px); min-height: 440px; margin: 0 0 0 calc(50% - 50vw); overflow: hidden; background: #000; }
.hd-cover img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; max-width: none; max-height: none; object-fit: cover; object-position: 50% 40%; }
.hd-cover::before { content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 24%; background: linear-gradient(rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0)); }
.hd-cover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 82%; background: linear-gradient(rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.72) 36%, rgba(5, 5, 5, 0.95) 74%, var(--space)); }
.hd-art--cover .hd-crumbs, .hd-art--cover .hd-art__lead, .hd-art--cover .hd-art__meta { text-shadow: 0 1px 12px rgba(5, 5, 5, 0.95), 0 0 2px rgba(5, 5, 5, 0.8); }
.hd-art--cover .hd-art__headtext { position: relative; z-index: 2; max-width: 860px; margin: -36vh auto 0; }
.hd-art--cover .hd-art__title { font-size: clamp(38px, 5.2vw, 78px); line-height: 1.04; text-shadow: 0 0 30px rgba(5, 5, 5, 0.75); }
.hd-art--cover .hd-art__lead { max-width: 36em; font-size: clamp(18px, 1.5vw, 22px); }
.hd-art__cap { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: rgba(144, 139, 129, 0.85); }

/* Mise en page : « En bref », le sommaire (collé dans la marge sur grand écran), le texte */
.hd-art__layout { max-width: 700px; margin: 0 auto; }
.hd-brief { margin-top: clamp(40px, 7vh, 64px); padding: 6px 0 6px 24px; }
.hd-brief__title { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.hd-toc { margin: 44px 0 0; }
.hd-toc__title { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.hd-toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.hd-toc li { margin: 0; color: inherit; font-size: 15.5px; }
.hd-toc a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); gap: 4px; padding: 7px 0; line-height: 1.4; color: var(--mute); text-decoration: none; transition: color 0.2s ease; }
.hd-toc a:hover, .hd-toc a.is-on { color: var(--ink); text-decoration: none; }
.hd-toc__n { font-family: var(--serif); font-style: italic; color: rgba(144, 139, 129, 0.8); }
.hd-toc a.is-on .hd-toc__n { color: var(--ink); }
.hd-toc a > .hd-toc__t:first-child { grid-column: 2; }
@media (min-width: 1240px) {
    .hd-art__layout:has(.hd-toc) { max-width: 1060px; display: grid; grid-template-columns: 250px minmax(0, 700px); column-gap: 90px; justify-content: center; align-items: start; }
    .hd-art__layout:has(.hd-toc) > .hd-brief { grid-column: 2; grid-row: 1; }
    .hd-art__layout:has(.hd-toc) > .hd-toc { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 36px; margin-top: clamp(40px, 7vh, 64px); max-height: calc(100vh - 72px); overflow: auto; }
    .hd-art__layout:has(.hd-toc) > .hd-art__body { grid-column: 2; grid-row: 2; margin: 0; }
}

/* Les chapitres : chiffre romain dans la marge (en ligne sur téléphone), titre en Newsreader */
.hd-prose h2 { position: relative; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.008em; margin: 2.3em 0 0.75em; scroll-margin-top: 28px; }
.hd-num { font: italic 300 0.62em/1 var(--serif); color: var(--mute); margin-right: 0.45em; }
@media (min-width: 900px) {
    .hd-num { position: absolute; right: 100%; top: 0.38em; margin-right: 0.9em; font-size: 0.6em; white-space: nowrap; }
}
.hd-prose h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.3; }

/* Les citations : grandes, en Newsreader */
.hd-prose blockquote { margin: 2.2em 0; padding: 0; border: 0; font: 300 clamp(23px, 2.2vw, 30px)/1.32 var(--serif); color: var(--ink); text-wrap: balance; }
.hd-prose blockquote p { margin: 0; }
.hd-prose blockquote footer { margin-top: 14px; font: 400 14px/1.5 var(--f); color: var(--mute); text-wrap: pretty; }

/* Les pièces : documents d'archives, cartes, photos, vidéos */
.hd-prose figure { margin: 2.6em 0; }
.hd-prose figure img, .hd-prose figure video { display: block; width: 100%; height: auto; }
/* une pièce : la légende prend la largeur de l'image (figure en tableau), les documents en hauteur restent lisibles sans envahir l'écran */
.hd-prose figure.hd-piece { display: table; max-width: 100%; margin-left: auto; margin-right: auto; }
.hd-prose figure.hd-piece img { width: auto; max-width: min(100%, 560px); max-height: min(74vh, 680px); margin: 0 auto; box-shadow: 0 24px 46px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.35); }
.hd-prose figure.hd-piece figcaption { display: table-caption; caption-side: bottom; }
.hd-prose figure.hd-plain img { max-width: 100%; max-height: min(70vh, 640px); }
.hd-prose figure.hd-frame img, .hd-prose figure.hd-video video { padding: 6px; background: #f1ede4; box-shadow: 0 24px 46px rgba(0, 0, 0, 0.55); }
.hd-prose figure.hd-video video { aspect-ratio: 4 / 3; object-fit: cover; }
.hd-prose figure.hd-wide { width: min(1040px, 100vw); margin-left: calc((100% - min(1040px, 100vw)) / 2); }
.hd-prose figure.hd-wide figcaption { padding: 0 var(--gut); max-width: 760px; }
@media (min-width: 1380px) {
    .hd-prose figure.hd-side { float: right; clear: right; width: 320px; margin: 0.4em -170px 1.4em 40px; }
}

/* À lire aussi : avec l'image de chaque article */
.hd-related { max-width: 1060px; margin: clamp(80px, 12vh, 120px) auto 0; padding-top: 44px; border-top: 1px solid var(--line); }
.hd-related h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); }
.hd-rel { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 34px; }
.hd-rel li { margin: 0; }
.hd-rel a { display: block; color: var(--ink); text-decoration: none; }
.hd-rel img, .hd-rel__ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.hd-rel__t { display: block; margin-top: 16px; font: 400 21px/1.24 var(--serif); text-wrap: balance; }
.hd-rel a:hover .hd-rel__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hd-rel p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--mute); }

/* Le livre, en fin d'article */
.hd-book { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; margin-top: 88px; }
.hd-book__cover img { width: 150px; }
.hd-book__title { font-family: var(--serif); font-weight: 400; font-size: 26px; }

@media (max-width: 860px) {
    .hd-rel { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hd-rel li { padding: 18px 0; border-bottom: 1px solid var(--line); }
    .hd-rel a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
    .hd-rel img, .hd-rel__ph { aspect-ratio: 4 / 3; }
    .hd-rel__t { margin-top: 0; font-size: 19px; }
    .hd-rel p { display: none; }
}
@media (max-width: 640px) {
    .hd-cover { height: 64svh; min-height: 360px; }
    .hd-art--cover .hd-art__headtext { margin-top: -22svh; }
    .hd-art--cover .hd-art__title { font-size: clamp(34px, 9.6vw, 46px); }
    .hd-prose blockquote { font-size: 23px; }
    .hd-book { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
    .hd-book__cover img { width: 96px; }
    .hd-book__title { font-size: 21px; }
}
