/* « Encre de nuit » : papier crème, encre bleu nuit, corail. Bodoni Moda (titres) + Alegreya Sans (texte), servies par le site (aucun appel Google Fonts).
   Contrastes AA vérifiés par scripts/contrast_check.py : le corail vif (#E8505B) ne sert qu'aux grands corps, filets et icônes ; le corail profond porte les liens. */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/bodoni-moda-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('../fonts/bodoni-moda-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/alegreya-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-latin-400-italic.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --papier: #FAF3E8;
  --surface: #F0E6D4;
  --encre: #0F1A33;
  --douce: #4B5675;
  --corail: #E8505B;
  --corail-profond: #B3303F;
  --trait: #7A6F5F;
  --filet: rgba(15, 26, 51, .16);
  --titre: 'Bodoni Moda', 'Didot', Georgia, serif;
  --texte: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --mesure: 40rem;
  --large: 72rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 1.1875rem; line-height: 1.62; font-weight: 400; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--corail-profond); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--encre); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--corail-profond); outline-offset: 1px; border-radius: 2px; }
.bloc-encre :focus-visible, .pied :focus-visible { outline-color: var(--corail); }
.saute { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .6rem 1rem; z-index: 50; }
.saute:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem); margin-top: 2.6em; margin-bottom: .55em; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-top: 2em; margin-bottom: .4em; }
p { margin: 0 0 1.1em; }

.conteneur { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }
.colonne { max-width: var(--mesure); }

/* En-tête */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete__haut { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding-top: .9rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--encre); }
.logo img { width: 2.4rem; height: 2.4rem; border-radius: 9px; }
.logo__nom { white-space: nowrap; font-family: var(--titre); font-style: italic; font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.logo__domaine { display: block; font-family: var(--texte); font-style: normal; font-size: .9rem; color: var(--douce); letter-spacing: .01em; }
.logo:hover { color: var(--encre); }
.menu__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.menu__liste a { display: inline-block; padding: .45rem 0; color: var(--encre); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.menu__liste a:hover, .menu__liste a[aria-current="page"] { border-bottom-color: var(--corail); color: var(--encre); }
.menu { width: 100%; border-top: 1px solid var(--filet); margin-top: .5rem; }

/* Hero bord à bord, sous le menu ; titre et chapô dessous */
.hero-band { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); margin: 0; }
@media (min-width: 900px) { .hero-band { max-height: min(68vh, 44vw); } }
.hero-band img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-card, .img-body { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.img-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.hero-credit { font-size: .9rem; color: var(--douce); margin: .5rem 0 0; }
.tete { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem); }
.tete h1 { max-width: 22ch; }
.tete--large h1 { max-width: 26ch; }
.chapo { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.5; color: var(--encre); max-width: 36rem; margin: 1.1rem 0 0; }
.meta { color: var(--douce); font-size: 1rem; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.meta a { color: var(--corail-profond); }

/* Guillemet d'ouverture : signature de la page. Les deux guillemets se posent au chargement (désactivé sous prefers-reduced-motion). */
.guillemets { display: flex; align-items: flex-start; gap: .08em; font-family: var(--titre); font-weight: 700; font-size: clamp(3.6rem, 3rem + 3vw, 5.6rem); line-height: 1; height: .42em; overflow: visible; color: var(--corail); margin-bottom: .6rem; }
.guillemets span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .guillemets__g { animation: poser-g 900ms cubic-bezier(.2, .7, .2, 1) both; }
  .guillemets__d { animation: poser-d 900ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes poser-g { from { transform: translateX(-1.3em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes poser-d { from { transform: translateX(1.3em); opacity: 0; } to { transform: none; opacity: 1; } }

/* Fil d'Ariane et sommaire */
.fil { font-size: 1rem; color: var(--douce); padding-top: 1rem; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .6rem; margin: 0; padding: 0; }
.fil li + li::before { content: '/'; margin-right: .6rem; color: var(--trait); }
.fil a { color: var(--douce); }
.sommaire, .article-sommaire { border-left: 3px solid var(--corail); background: var(--surface); padding: 1rem 1.3rem; margin: 0 0 2.2rem; max-width: var(--mesure); }
.sommaire summary { cursor: pointer; font-family: var(--titre); font-weight: 600; font-size: 1.25rem; }
.sommaire ol { margin: .7rem 0 0; padding-left: 1.2rem; }
.sommaire li { margin: .25rem 0; }

/* Texte courant */
.prose { max-width: var(--mesure); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--corail-profond); }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--filet); margin: 2.4rem 0; }
.prose blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--corail); font-family: var(--titre); font-style: italic; font-size: 1.3rem; line-height: 1.4; }
.prose blockquote p { margin: 0 0 .5em; }
.fig { margin: 2.2rem 0; max-width: 46rem; }
.fig figcaption { font-size: .95rem; color: var(--douce); margin-top: .5rem; }

/* Citation : le grand guillemet suspendu dans la marge, un filet, jamais une bulle */
.citation { position: relative; margin: 2.2rem 0; padding: .3rem 0 .3rem 3.4rem; border-left: 1px solid var(--filet); max-width: 38rem; }
.citation::before { content: '\201C'; position: absolute; left: .6rem; top: -.2rem; font-family: var(--titre); font-weight: 700; font-size: 4.6rem; line-height: 1; color: var(--corail); }
.citation p { font-family: var(--titre); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); line-height: 1.38; margin: 0; }
.citation cite { display: block; margin-top: .6rem; font-family: var(--texte); font-style: normal; color: var(--douce); font-size: 1rem; }

/* Échange : deux ou trois messages en citations, « avant » / « après » */
.echange { margin: 2.4rem 0; max-width: 40rem; background: var(--surface); padding: 1.3rem 1.4rem 1.1rem; }
.echange__titre { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; margin: 0 0 .9rem; }
.echange--avant { border-top: 3px solid var(--trait); }
.echange--apres { border-top: 3px solid var(--corail); }
.echange__msg { margin: 0 0 .9rem; padding-left: 1.6rem; position: relative; font-family: var(--titre); font-weight: 500; font-size: 1.12rem; line-height: 1.4; }
.echange__msg::before { content: '\00AB'; position: absolute; left: 0; top: -.15rem; font-size: 1.7rem; color: var(--corail-profond); font-weight: 700; }
.echange__msg[data-de="lui"] { margin-left: 15%; }
.echange__msg[data-de="lui"]::before { content: '\00BB'; }
.echange__note { margin: .3rem 0 0; font-size: 1rem; color: var(--douce); }

/* Encadrés */
.encadre { margin: 2rem 0; padding: 1.1rem 1.3rem; max-width: 40rem; background: var(--surface); border-left: 4px solid var(--trait); }
.encadre__titre { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; margin: 0 0 .4rem; }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }
.encadre--a-savoir { border-left-color: var(--corail); }
.encadre--attention { background: var(--papier); border: 2px solid var(--encre); border-left-width: 6px; }
.encadre--aide-pro { background: var(--encre); color: var(--papier); border-left-color: var(--corail); }
.encadre--aide-pro a { color: var(--papier); text-decoration-thickness: 2px; }
.encadre--aide-pro a:hover { color: var(--corail); }
.retenir { margin: 0 0 2.4rem; padding: 1.2rem 1.4rem; background: var(--surface); max-width: var(--mesure); border-top: 3px solid var(--corail); }
.retenir h2 { margin: 0 0 .6rem; font-size: 1.45rem; }
.retenir ul { margin: 0; padding-left: 1.2rem; }
.retenir li::marker { color: var(--corail-profond); }

/* Interview : question en gras, réponse en texte */
.interview-note { font-style: italic; color: var(--douce); max-width: var(--mesure); border-left: 3px solid var(--trait); padding-left: 1rem; margin: 0 0 2rem; }
.prose p.q { font-weight: 700; margin: 2rem 0 .4rem; }
.prose p.q::before { content: '\00AB\00A0'; color: var(--corail-profond); }
.prose p.q::after { content: '\00A0\00BB'; color: var(--corail-profond); }

/* FAQ */
.faq { margin: 2.6rem 0; max-width: var(--mesure); }
.faq__item { border-bottom: 1px solid var(--filet); }
.faq__item:first-of-type { border-top: 1px solid var(--filet); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; font-family: var(--titre); font-weight: 600; font-size: 1.2rem; line-height: 1.3; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: .3rem; top: .8rem; font-size: 1.6rem; font-family: var(--texte); color: var(--corail-profond); }
.faq__item[open] summary::after { content: '\2212'; }
.faq__reponse { padding: 0 0 1rem; }
.faq__reponse p:last-child { margin-bottom: 0; }

/* Sources */
.sources { margin: 2.6rem 0 0; max-width: var(--mesure); border-top: 1px solid var(--filet); padding-top: 1.2rem; font-size: 1rem; }
.sources h2 { margin: 0 0 .6rem; font-size: 1.4rem; }
.sources ol { padding-left: 1.3rem; margin: 0 0 .8rem; }
.sources__verif { color: var(--douce); margin: 0; }

/* Cards d'articles : listes à filet, pas de cartes ombrées */
.grille { display: grid; gap: 2.4rem 2rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.grille--blog { gap: 2.8rem 2.2rem; }
.card { border-top: 2px solid var(--encre); padding-top: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.card[hidden] { display: none; }
.card__image { display: block; }
.card__cat { font-weight: 700; font-size: 1rem; color: var(--corail-profond); margin: .3rem 0 0; }
.card__titre { font-family: var(--titre); font-weight: 600; font-size: 1.4rem; line-height: 1.2; margin: 0; }
.card__titre a { color: var(--encre); text-decoration: none; }
.card__titre a:hover { text-decoration: underline; text-decoration-color: var(--corail); text-decoration-thickness: 2px; }
.card__meta { color: var(--douce); font-size: 1rem; margin: 0; }
.card__resume { margin: 0; color: var(--encre); font-size: 1.05rem; line-height: 1.5; }

/* Filtre du blog : sans JS, tous les articles restent visibles et le filtre est masqué */
.filtre { display: none; margin: 0 0 2rem; }
.filtre.actif { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre button { font: inherit; font-weight: 500; color: var(--encre); background: transparent; border: 1.5px solid var(--trait); padding: .4rem .95rem; cursor: pointer; border-radius: 999px; }
.filtre button:hover { border-color: var(--encre); }
.filtre button[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.filtre__n { color: var(--douce); margin-left: .35em; font-size: .95em; }
.filtre button[aria-pressed="true"] .filtre__n { color: var(--papier); }

/* Sections */
.section { padding-block: clamp(2.4rem, 6vw, 4.4rem); }
.section--surface { background: var(--surface); }
.section__titre { margin: 0 0 1.6rem; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.piliers { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); border-top: 1px solid var(--filet); }
.piliers a { display: block; padding: 1.2rem 1.3rem 1.3rem 0; border-bottom: 1px solid var(--filet); text-decoration: none; color: var(--encre); }
.piliers a:hover { color: var(--encre); background: var(--surface); }
.piliers strong { display: block; font-family: var(--titre); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.piliers span { color: var(--douce); font-size: 1.02rem; }

/* Bouton et formulaire */
.bouton { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; background: var(--corail-profond); color: var(--papier); border: 0; padding: .8rem 1.6rem; cursor: pointer; }
.bouton:hover { background: var(--encre); color: var(--papier); }
.bouton--corail { background: var(--corail); color: var(--encre); }
.formulaire { max-width: 36rem; display: grid; gap: 1.1rem; }
.formulaire label { font-weight: 700; display: block; margin-bottom: .3rem; }
.formulaire input, .formulaire textarea, .formulaire select { width: 100%; font: inherit; color: var(--encre); background: var(--papier); border: 1.5px solid var(--trait); padding: .65rem .8rem; border-radius: 0; }
.formulaire textarea { min-height: 9rem; resize: vertical; }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__etat { min-height: 1.5rem; margin: 0; font-weight: 700; }

/* Pied de page : le bloc sombre (10 %) */
.pied { margin-top: clamp(3rem, 7vw, 5rem); background: var(--encre); color: var(--papier); padding-block: 2.6rem 2rem; }
.pied a { color: var(--papier); }
.pied a:hover { color: var(--corail); }
.pied__grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pied__nom { font-family: var(--titre); font-style: italic; font-size: 1.5rem; margin: 0 0 .5rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: .3rem 0; }
.pied__bas { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(250, 243, 232, .25); font-size: .95rem; color: var(--papier); }

/* 404 */
.page-404 { padding-block: 4rem; }
@media print { .entete, .pied, .filtre { display: none; } }
.prose blockquote.citation { padding: .3rem 0 .3rem 3.4rem; border-left: 1px solid var(--filet); margin: 2.2rem 0; font-family: var(--texte); font-style: normal; font-size: inherit; line-height: inherit; }
.prose blockquote.citation p { margin: 0; }

/* Tableaux dans le corps des pages */
.prose table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: 1rem; line-height: 1.4; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--filet); }
.prose th { font-family: var(--titre); font-weight: 600; border-bottom: 2px solid var(--encre); background: var(--surface); }
@media (max-width: 40rem) { .prose table { display: block; overflow-x: auto; } }
