/* Pages encyclopédiques du modèle (triolet.html, triolet-en.html) : même charte que la page du chatbot. */
@font-face { font-family: "Libertinus Serif"; font-weight: 400; font-display: swap; src: url(libertinus-serif.woff2) format("woff2"); }
:root {
  --fond: #ffffff; --surface: #f8f9fa; --texte: #202122; --doux: #54595d; --pale: #72777d; --trait: #a2a9b1;
  --trait-leger: #c8ccd1; --trait-pale: #eaecf0; --lien: #3366cc; --accent: #3366cc; --accent-survol: #447ff5;
  --accent-actif: #2a4b8d; --accent-texte: #ffffff; --vert: #14866d;
  --serif: "Linux Libertine", "Libertinus Serif", "Georgia", "Times", serif;
  --sans: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Lato", "Helvetica", "Arial", sans-serif;
  --mono: "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 14px/1.6 var(--sans); }
a { color: var(--lien); text-decoration: none; } a:hover { text-decoration: underline; }
/* barre du haut */
.barre-haut { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; }
.marque { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.15; color: var(--texte); }
.marque img { width: 52px; height: 44px; }
.marque span { display: flex; flex-direction: column; }
.marque:hover { text-decoration: none; }
.marque b { font: 400 23px/1.1 var(--serif); font-variant: small-caps; letter-spacing: .06em; }
.marque small { font-size: 11px; color: var(--doux); letter-spacing: .03em; }
.barre-haut .etat { margin-left: auto; font-size: 13px; color: var(--doux); display: flex; gap: 14px; align-items: center; }
.page { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 28px; }
nav.sommaire { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding-top: 70px; font-size: 14px; }
nav.sommaire h2 { font: 700 14px var(--sans); margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--trait-pale); }
nav.sommaire ol { list-style: none; margin: 0; padding: 0; }
nav.sommaire li { margin: 0 0 5px; line-height: 1.35; }
article { min-width: 0; }
h1.titre { font: 400 28.8px/1.3 var(--serif); margin: 20px 0 0; padding-bottom: 2px; border-bottom: 1px solid var(--trait); }
.onglets { display: flex; gap: 2px; font-size: 14px; margin: 0 0 4px; border-bottom: 1px solid var(--trait-pale); }
.onglets a, .onglets span { padding: 7px 8px 6px; color: var(--lien); }
.onglets .actif { color: var(--texte); border-bottom: 2px solid var(--texte); margin-bottom: -1px; }
.onglets .droite { margin-left: auto; }
.provenance { font-size: 12.8px; color: var(--doux); margin: 8px 0 14px; }
.texte { font-size: 16px; line-height: 1.65; }
.texte p { margin: .4em 0 .6em; }
.texte h2 { font: 400 24px/1.3 var(--serif); margin: 1.2em 0 .25em; padding-bottom: 2px; border-bottom: 1px solid var(--trait); overflow: hidden; }
.texte ul, .texte ol { margin: .3em 0 .6em; padding-left: 1.6em; }
.texte sup { font-size: 75%; line-height: 0; }
.homonymie { font-style: italic; padding-left: 1.6em; margin: 0 0 .8em; color: var(--texte); }
table.infobox { float: right; clear: right; width: 290px; margin: 4px 0 14px 22px; border: 1px solid var(--trait);
                background: var(--surface); border-collapse: collapse; font-size: 12.6px; line-height: 1.45; }
table.infobox caption { font: 700 15px var(--sans); padding: 8px 6px 4px; }
table.infobox th, table.infobox td { padding: 4px 8px; vertical-align: top; text-align: left; border-top: 1px solid var(--trait-pale); }
table.infobox th { width: 42%; font-weight: 700; }
table.infobox .figure td { text-align: center; padding: 10px 8px; font: 400 26px/1.2 var(--mono); letter-spacing: .12em; color: var(--doux); }
table.infobox .figure small { display: block; font: 400 11.5px var(--sans); letter-spacing: 0; margin-top: 4px; }
figure.vignette { float: right; clear: right; width: min(100%, 420px); margin: 6px 0 12px 22px; padding: 4px; border: 1px solid var(--trait-leger); background: var(--surface); }
figure.vignette img { display: block; width: 100%; height: auto; background: #fff; }
figure.vignette figcaption { font-size: 13px; line-height: 1.45; padding: 6px 2px 2px; color: var(--texte); }
.tableau { overflow-x: auto; clear: left; }
table.wikitable { border-collapse: collapse; margin: .8em 0; font-size: 14px; background: var(--surface); }
table.wikitable caption { font-weight: 700; padding: 4px; }
table.wikitable th, table.wikitable td { border: 1px solid var(--trait); padding: 4px 9px; }
table.wikitable th { background: var(--trait-pale); }
table.wikitable td:not(:first-child) { text-align: right; white-space: nowrap; }
table.wikitable tr.moyenne td { border-top: 2px solid var(--trait); }
.notes-titre { font-weight: 700; margin: .8em 0 .2em; }
ol.refs { font-size: 14px; }
ol.refs li:target { background: var(--trait-pale); }
.citation { position: relative; }
.citation pre { font: 13px/1.45 var(--mono); background: var(--surface); border: 1px solid var(--trait-pale); padding: 12px 14px; overflow-x: auto; margin: .4em 0 .8em; }
.citation button { position: absolute; top: 8px; right: 8px; font: 13px var(--sans); padding: 3px 10px; cursor: pointer; background: var(--fond);
                   color: var(--lien); border: 1px solid var(--trait); border-radius: 2px; }
.barre-haut .etat { gap: 16px; }
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  nav.sommaire { display: none; }
  .barre-haut { padding: 10px 16px; }
  table.infobox, figure.vignette { float: none; width: 100%; margin: 6px 0 14px; }
  h1.titre { font-size: 24px; margin-top: 12px; }
}
