/* Dame de compagnie : direction artistique A « Rose Pompadour » (la porcelaine de Sèvres et le salon du XVIIIe siècle, en mise en page contemporaine).
   Tokens imposés par le plan §6. Contrastes AA vérifiés par scripts/contraste.py. Règle : le rose Pompadour et le céladon ne portent JAMAIS de texte en couleur
   (décor, filets, médaillons, frise ; les pastilles céladon portent du texte encre). Une seule animation : la frise des siècles se dessine au premier affichage. */
@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: 'Commissioner'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/commissioner-latin-wght-normal.woff2') format('woff2'); }
:root {
  --porcelaine: #F7F8F6;
  --sevres: #1F3A7A;
  --pompadour: #E3A3AE;
  --celadon: #7FA79B;
  --encre: #1C2233;
  --brume: #E9EDF2;
  --blanc: #FFFFFF;
  --rose-pale: color-mix(in srgb, var(--pompadour) 20%, var(--porcelaine));   /* fond des citations : texte encre */
  --encre-doux: color-mix(in srgb, var(--encre) 80%, var(--porcelaine));      /* dates, légendes */
  --f-tit: 'Bodoni Moda', 'Didot', Georgia, serif;
  --f-corps: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* échelle modulaire 1,25 */
  --t-1: 0.85rem; --t0: 1.0625rem; --t1: 1.328rem; --t2: 1.66rem; --t3: 2.075rem; --t4: 2.594rem; --t5: 3.242rem;
  --mesure: 37rem;
  --large: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--porcelaine); color: var(--encre); font-family: var(--f-corps); font-size: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sevres); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--sevres); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-tit); color: var(--sevres); margin: 0; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 6px; background: var(--sevres); color: var(--blanc); padding: 0.6rem 1rem; z-index: 60; }
.skip:focus { left: 8px; }
.container { width: min(var(--large), 100% - 2rem); margin-inline: auto; }
.container--read { width: min(var(--mesure), 100% - 2rem); }

/* En-tête : marque à gauche, navigation à droite, filet rose en pied */
.site-header { background: var(--porcelaine); border-bottom: 1px solid var(--pompadour); }
.site-header__inner { width: min(var(--large), 100% - 2rem); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 2rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--sevres); }
.brand:hover { color: var(--sevres); }
.brand__mark { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.brand__name { font-family: var(--f-tit); font-weight: 700; font-size: var(--t1); line-height: 1.1; }
.nav-toggle { display: none; background: none; border: 2px solid var(--sevres); color: var(--sevres); font: inherit; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 3px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.site-nav a { display: inline-block; padding: 0.3rem 0; color: var(--sevres); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--sevres); border-bottom-color: var(--pompadour); }
.site-nav a[aria-current] { border-bottom-color: var(--sevres); }
@media (max-width: 62rem) {
  .site-header__inner { gap: 0.4rem 1rem; }
  .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 0.4rem; }
  .site-nav a { padding: 0.6rem 0; font-size: var(--t0); }
}

/* Gabarits d'images (REGLE 14) : wrapper aspect-ratio + overflow hidden ; img remplit le wrapper */
/* Hero 3/2 borné à 60rem (décision Antoine 2026-12-02) : image entière, pas de crop */
.img-hero { width: min(100%, 60rem); margin-inline: auto; aspect-ratio: 3 / 2; overflow: hidden; background: var(--brume); }
.img-card, .img-body { aspect-ratio: 3 / 2; overflow: hidden; background: var(--brume); }
.img-portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--brume); border-radius: 50%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.herofig { margin: 0; width: 100%; max-width: none; }
.herofig__cap { width: min(60rem, 100% - 2rem); margin: 0.5rem auto 0; font-size: 0.875rem; color: var(--encre-doux); }
.fig { margin: 2rem 0; }
.fig figcaption { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.45; color: var(--encre-doux); }

/* Bande de titre sous le hero : fond brume, titre en bleu de Sèvres, filet rose en pied */
.titre-bande { background: var(--brume); border-bottom: 1px solid var(--pompadour); padding-block: 1.8rem 1.9rem; color: var(--encre); }
.titre-bande h1 { font-weight: 700; font-size: clamp(var(--t3), 1.5rem + 2.6vw, var(--t5)); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.titre-bande .chapeau { margin: 0.9rem 0 0; font-size: var(--t1); line-height: 1.5; max-width: 38rem; }
.actions { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.page__meta { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.2rem; font-size: 0.9375rem; line-height: 1.4; color: var(--encre); }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; font-size: 0.9rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--encre-doux); }
.crumbs a { color: var(--sevres); }
.btn { display: inline-block; background: var(--sevres); color: var(--blanc); font: inherit; font-weight: 600; padding: 0.65rem 1.4rem; border: 2px solid var(--sevres); border-radius: 3px; text-decoration: none; cursor: pointer; }
.btn, .btn:visited { color: var(--blanc); }
.btn:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.btn--sec { background: transparent; color: var(--sevres); }
.btn--sec:visited { color: var(--sevres); }
.btn--sec:hover { background: var(--sevres); border-color: var(--sevres); color: var(--blanc); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.pastille { display: inline-block; background: var(--celadon); color: var(--encre); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; padding: 0.15rem 0.7rem; border-radius: 999px; }

/* Pages et texte courant */
.page { padding-block: 2.4rem 4rem; }
.bloc { margin-block: 3.2rem; }
.bloc > h2, .frise__titre { font-size: var(--t2); line-height: 1.2; margin-bottom: 1.3rem; }
.prose { max-width: var(--mesure); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: var(--t2); line-height: 1.2; margin: 2.4em 0 0.6em; text-wrap: balance; }
.prose h3 { font-size: var(--t1); line-height: 1.3; margin: 1.9em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.35em 0; }
.prose strong { font-weight: 700; }
.article-body { overflow-wrap: break-word; }
.container:not(.container--read) > .prose { max-width: none; }
.table-scroll { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--sevres); }
.table-scroll:focus-visible { outline: 3px solid var(--sevres); }
.prose table { border-collapse: collapse; min-width: 32rem; width: 100%; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--pompadour); vertical-align: top; }
.prose th { font-family: var(--f-tit); font-weight: 700; color: var(--sevres); border-bottom: 2px solid var(--sevres); }
.prose tbody tr:nth-child(even) { background: var(--brume); }

/* Citation d'époque : cartouche rose pâle à double filet, guillemets français dans le texte */
.citation, .prose blockquote { position: relative; margin: 2rem 0; padding: 1.5rem 1.7rem; background: var(--rose-pale); color: var(--encre); outline: 1px solid var(--pompadour); outline-offset: -8px; max-width: var(--mesure); }
.prose blockquote { border: 0; }
.citation blockquote { margin: 0; padding: 0; border: 0; }
.citation p, .prose blockquote p { margin: 0 0 0.6em; font-family: var(--f-tit); font-style: italic; font-size: var(--t1); line-height: 1.45; color: var(--encre); }
.citation > :last-child, .prose blockquote > :last-child { margin-bottom: 0; }
.citation figcaption { margin-top: 0.7rem; text-align: right; font-size: 0.9rem; color: var(--sevres); }

/* Médaillon : portrait ovale encadré d'un filet rose Pompadour, crédit dessous */
.medaillon { margin: 2rem auto; width: min(13rem, 70%); }
.medaillon .img-portrait { box-shadow: 0 0 0 5px var(--porcelaine), 0 0 0 7px var(--pompadour); }
.medaillon figcaption { margin-top: 1.1rem; text-align: center; font-size: 0.85rem; line-height: 1.4; color: var(--encre-doux); }
@media (min-width: 48rem) {
  .medaillon--flotte, .prose .medaillon { float: right; margin: 0.6rem 0.6rem 1rem 2rem; width: 13rem; shape-outside: ellipse(50% 40% at 50% 38%); }
}

/* Frise des siècles : fil céladon qui se dessine une fois (seule animation du site) ; points bleu de Sèvres, siècle mis en avant en rose */
.frise { margin-block: 0 3.2rem; }
.frise__liste { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.frise__liste::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: var(--celadon); clip-path: inset(0 0 0 0); animation: frise-trace 1.6s ease-out 0.15s both; }
.frise__pas { position: relative; padding-top: 1.7rem; text-align: center; margin: 0; }
.frise__point { position: absolute; left: 50%; top: 0; width: 21px; height: 21px; margin-left: -10.5px; border-radius: 50%; background: var(--sevres); border: 4px solid var(--porcelaine); }
.frise__pas[data-actif='1'] .frise__point { background: var(--pompadour); border-color: var(--sevres); }
.frise__siecle { font-family: var(--f-tit); font-weight: 600; font-size: var(--t0); color: var(--sevres); }
.frise__mot { display: none; }
@keyframes frise-trace { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 40rem) {
  .frise__liste { grid-template-columns: 1fr; gap: 0.2rem; padding-left: 0.2rem; }
  .frise__liste::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; animation-name: frise-trace-v; }
  .frise__pas { padding: 0 0 0 2.2rem; text-align: left; min-height: 1.9rem; }
  .frise__point { left: 0; top: 0.2rem; margin-left: 0; }
  .frise__mot { display: inline; font-family: var(--f-corps); font-weight: 400; font-size: 0.95rem; color: var(--encre); }
}
@keyframes frise-trace-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .frise__liste::before { animation: none; } }

/* Sommaire, résumé, FAQ, sources, méthode, à lire ensuite */
.toc, .toc-box, .article-toc { max-width: var(--mesure); margin: 0 0 2rem; padding: 1.1rem 1.3rem; background: var(--brume); border: 1px solid var(--pompadour); }
.toc__titre { margin: 0 0 0.4rem; font-family: var(--f-tit); font-weight: 700; font-size: var(--t1); color: var(--sevres); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.3rem 0; }
.summary-box { max-width: var(--mesure); margin: 0 0 1.6rem; padding: 0.95rem 1.2rem; background: var(--brume); border-left: 4px solid var(--celadon); }
.summary-box p { margin: 0; font-style: italic; line-height: 1.55; }
.faq { max-width: var(--mesure); margin-top: 3rem; }
.faq h2, .sources h2, .methode h2 { font-size: var(--t2); margin-bottom: 0.8rem; }
.faq__item { border-top: 1px solid var(--pompadour); padding: 0.2rem 0; }
.faq__item:last-of-type { border-bottom: 1px solid var(--pompadour); }
.faq__item summary { cursor: pointer; font-family: var(--f-tit); font-weight: 600; font-size: var(--t1); color: var(--sevres); padding: 0.7rem 2rem 0.7rem 0; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0.5rem; font-family: var(--f-corps); font-size: 1.5rem; line-height: 1; color: var(--sevres); }
.faq__item[open] summary::after { content: '\2212'; }
.faq__item p { margin: 0 0 0.9rem; }
.sources { max-width: var(--mesure); margin-top: 3rem; font-size: 0.97rem; }
.sources ul { padding-left: 1.2rem; }
.sources__verif { color: var(--encre-doux); font-size: 0.9rem; }
.methode { max-width: var(--mesure); border-top: 1px solid var(--pompadour); padding-top: 1.4rem; margin-block: 3rem 0; }
.article-nav-related, .lire-ensuite { max-width: var(--mesure); margin: 2.4rem 0 0; padding: 1.1rem 1.3rem; border: 1px solid var(--sevres); }
.lire-ensuite h3 { margin: 0 0 0.5rem; font-size: var(--t1); }
.lire-ensuite ul { margin: 0; padding-left: 1.2rem; }
.lire-ensuite li { margin: 0.3rem 0; }

/* Grille de cards chronologiques : image, catégorie visible, date, titre ; filet rose sous l'image, aucune ombre */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.2rem 1.8rem; }
.card[hidden] { display: none; }
.card__lien { display: block; color: var(--encre); text-decoration: none; height: 100%; }
.card__lien:hover { color: var(--encre); }
.card .img-card { border-bottom: 3px solid var(--pompadour); }
.card__corps { padding: 0.9rem 0 0; }
.card__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; font-size: 0.875rem; color: var(--encre-doux); }
.card__titre { margin: 0.5rem 0 0.4rem; font-weight: 600; font-size: var(--t1); line-height: 1.22; }
.card__lien:hover .card__titre { text-decoration: underline; text-decoration-color: var(--pompadour); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.card__extrait { margin: 0.4rem 0 0; font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }
.card__lire { display: inline-block; margin-top: 0.5rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--pompadour); text-underline-offset: 3px; }

/* Filtre du blog */
.filtre { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; }
.filtre__btn { display: inline-block; padding: 0.4rem 0.95rem; border: 1.5px solid var(--sevres); border-radius: 999px; color: var(--sevres); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.filtre__btn:hover { background: var(--brume); color: var(--sevres); }
.filtre__btn[aria-current='page'] { background: var(--sevres); color: var(--blanc); }
.filtre__etat { min-height: 1.4em; margin: 0 0 1rem; font-size: 0.9rem; color: var(--encre-doux); }

/* Formulaire de contact */
.contact { max-width: var(--mesure); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--encre); background: var(--blanc); border: 1.5px solid var(--sevres); border-radius: 3px; padding: 0.6rem 0.75rem; }
.field--piege { position: absolute; left: -9999px; }
.contact__etat { min-height: 1.5em; margin-top: 0.8rem; font-weight: 600; color: var(--encre); }
.contact__etat[data-ok='0'] { color: var(--sevres); text-decoration: underline; text-decoration-color: var(--pompadour); text-decoration-thickness: 2px; }

/* Pied de page */
.site-footer { background: var(--sevres); color: var(--porcelaine); border-top: 6px solid var(--pompadour); padding-block: 2.6rem 1.4rem; margin-top: 3rem; }
.site-footer a { color: var(--porcelaine); }
.site-footer a:hover { color: var(--blanc); }
.site-footer__grid { display: grid; gap: 2rem 3rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 48rem) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__marque { font-family: var(--f-tit); font-weight: 700; font-size: var(--t2); margin: 0 0 0.4rem; }
.site-footer__titre { font-family: var(--f-tit); font-weight: 700; font-size: var(--t1); margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer p { margin: 0 0 0.6rem; }
.site-footer__bas { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--pompadour); font-size: 0.9rem; }
.site-footer :focus-visible { outline-color: var(--porcelaine); }

/* Page de démonstration interne (noindex, hors sitemap) */
.demo__sec { margin-block: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--pompadour); }
.demo__sec > h2 { font-size: var(--t2); margin-bottom: 1rem; }
.demo__nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.demo__nuancier li { padding: 0.8rem; min-height: 5.5rem; font-size: 0.875rem; border: 1px solid var(--encre-doux); }

/* Interviews (format Q/R) : la question de la rédaction en gras sur sa ligne, filet rose à gauche ; réponse en prose ordinaire dessous. */
.prose p.qr-question { margin: 2rem 0 0.5rem; padding: 0.15rem 0 0.15rem 1rem; border-left: 4px solid var(--pompadour); font-family: var(--f-tit); font-size: 1.1rem; line-height: 1.35; color: var(--sevres); }
.prose p.qr-question strong { font-weight: 600; }
.prose p.qr-question + p { margin-top: 0; }
/* Interviews (CODEX V6 §2.4) : question de la rédaction et réponses, taille plafonnée, jamais d'italique */
.prose p.journalist-question, blockquote.journalist-question { font-size: 1.1rem !important; font-style: normal !important; }
.prose p.expert-answer, blockquote.expert-answer { font-size: 1rem !important; font-style: normal !important; line-height: 1.7 !important; }
/* Siècles en exposant (XVIII<sup>e</sup>) sans écarter les interlignes */
sup { font-size: 0.65em; line-height: 0; vertical-align: super; font-variant-numeric: lining-nums; }
