/* Lecture avant tout : une colonne, une police à empattements (grec polytonique compris), rien d'autre. */
:root {
  --fond: #fdfcf9; --texte: #1d1c1a; --doux: #6b6862; --filet: #e4e1da; --lien: #7a2e1d;
  --mesure: 36rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #1a1918; --texte: #e6e3dc; --doux: #a29e95; --filet: #34322f; --lien: #e3a38d; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  line-height: 1.62; font-kerning: normal; font-variant-ligatures: common-ligatures;
  overflow-wrap: break-word;
}
a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.entete, main, .pied { max-width: var(--mesure); margin: 0 auto; padding: 0 1.2rem; }
.entete { padding-top: 2.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--filet); }
.nom { margin: 0 0 0.6rem; font-size: 1.15rem; }
.nom a { color: var(--texte); text-decoration: none; font-variant: small-caps; letter-spacing: 0.04em; }
.devise { color: var(--doux); font-style: italic; font-size: 0.9rem; margin-left: 0.4rem; }
.menu { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.92rem; position: relative; }
.menu a { color: var(--doux); text-decoration: none; }
.menu a:hover, .menu a[aria-current] { color: var(--texte); }
.menu a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; }

/* menu Billets : un sommaire dépliant, sans JavaScript */
.billets summary { cursor: pointer; color: var(--doux); list-style: none; }
.billets summary::-webkit-details-marker { display: none; }
.billets summary::after { content: " ▾"; font-size: 0.8em; }
.billets[open] summary { color: var(--texte); }
.panneau {
  position: absolute; left: 0; right: 0; z-index: 10; margin-top: 0.6rem; padding: 1rem 1.2rem;
  background: var(--fond); border: 1px solid var(--filet); box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}
.panneau .colonnes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; }
@media (max-width: 34rem) { .panneau .colonnes { grid-template-columns: 1fr; } }
.panneau ul { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.panneau li { margin: 0.15rem 0; }
.panneau a { color: var(--lien); }
.rubrique { margin: 0 0 0.3rem; font-variant: small-caps; letter-spacing: 0.05em; color: var(--doux); }
.cherche input {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 0.4rem 0.6rem; margin-bottom: 0.8rem;
  border: 1px solid var(--filet); background: transparent; color: var(--texte); border-radius: 2px;
}

/* téléphone : le menu se range derrière trois traits. Une case à cocher cachée sert d'interrupteur :
   ni JavaScript ni style dans la page, rien que le serveur ou un ancien téléphone puisse bloquer. */
.case-menu, .trois-traits { display: none; }
.trois-traits svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.trois-traits .croix, .case-menu:checked + .trois-traits .traits { display: none; }
.case-menu:checked + .trois-traits .croix { display: inline; }
@media screen and (max-width: 40rem) {
  .entete { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 0.8rem;
    padding-top: 1.1rem; padding-bottom: 0.7rem; }
  .nom { margin: 0; line-height: 1.3; }
  .devise { display: block; margin-left: 0; }
  .case-menu { display: block; position: absolute; top: 1.1rem; right: 1.2rem; width: 44px; height: 44px;
    margin: 0; opacity: 0; pointer-events: none; }
  .trois-traits { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    margin-right: -10px; color: var(--texte); cursor: pointer; }
  .case-menu:focus-visible + .trois-traits { outline: 2px solid var(--lien); }
  .menu { display: none; grid-column: 1 / -1; flex-direction: column; gap: 0; margin-top: 0.6rem; font-size: 1rem; }
  .case-menu:checked ~ .menu { display: flex; }
  .menu > a, .billets summary { display: block; padding: 0.6rem 0; border-top: 1px solid var(--filet); }
  .panneau { position: static; margin: 0; padding: 0.2rem 0 0.8rem; border: 0; box-shadow: none; }
  .panneau li { margin: 0.4rem 0; }
}

main { padding-top: 2rem; padding-bottom: 3rem; }
.texte h1 { font-size: 1.7rem; line-height: 1.25; font-weight: normal; margin: 0 0 0.4rem; }
.texte h2 { font-size: 1.25rem; font-weight: normal; margin: 2.2rem 0 0.6rem; }
.texte h3, .texte h4, .texte h5 { font-size: 1.05rem; font-style: italic; font-weight: normal; margin: 1.8rem 0 0.4rem; }
.texte p { margin: 0 0 1em; }
.meta, .sur-titre { color: var(--doux); font-size: 0.88rem; margin: 0 0 2rem; }
.sur-titre { margin: 0 0 0.3rem; font-variant: small-caps; letter-spacing: 0.05em; }
.sur-titre a { color: var(--doux); }
.meta a { color: var(--doux); }
.maj { font-style: italic; }
.texte blockquote { margin: 1.4em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--filet); }
.texte hr { border: 0; margin: 1.25rem 0; text-align: center; }
.texte hr::after { content: "*"; color: var(--doux); }
.centre { text-align: center; }
.droite { text-align: right; }
.petit { font-size: 0.85rem; color: var(--doux); }
.texte img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.texte figure { margin: 2rem 0; }
.texte figcaption { font-size: 0.85rem; color: var(--doux); text-align: center; margin-top: 0.5rem; font-style: italic; }
.galerie figure { margin: 0 0 2.4rem; }
sup, sub { line-height: 0; }
.footnote { margin-top: 3rem; font-size: 0.86rem; color: var(--doux); }
.footnote hr { margin: 1rem 0; }
.footnote hr::after { content: none; }
.footnote hr { border-top: 1px solid var(--filet); width: 30%; margin-left: 0; }
.footnote ol { padding-left: 1.4rem; }
.footnote-backref { text-decoration: none; }
.etiquettes { margin-top: 2.5rem; font-size: 0.85rem; color: var(--doux); }
.etiquettes a { color: var(--doux); }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { margin: 0 0 1.5rem; }
.liste li > a { font-size: 1.08rem; }
.liste time { color: var(--doux); font-size: 0.85rem; margin-left: 0.4rem; white-space: nowrap; }
.liste .genre { color: var(--doux); font-size: 0.85rem; font-variant: small-caps; letter-spacing: 0.05em; margin-left: 0.3rem; }
.liste .genre::before { content: "· "; }
.liste p { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--doux); }
.voir-tout { font-size: 0.92rem; }
.nuage { line-height: 1.5; text-align: center; margin-top: 1.5rem; }
.nuage a { display: inline-block; margin: 0.15rem 0.55rem; text-decoration: none; white-space: nowrap; }
.nuage a:hover { text-decoration: underline; }
.nuage .t0 { font-size: 0.95rem; } .nuage .t1 { font-size: 1.19rem; } .nuage .t2 { font-size: 1.43rem; }
.nuage .t3 { font-size: 1.68rem; } .nuage .t4 { font-size: 1.92rem; } .nuage .t5 { font-size: 2.16rem; }
.nuage .t6 { font-size: 2.4rem; }
.nuage small { color: var(--doux); font-size: 0.7rem; margin-left: 0.15rem; vertical-align: super; }

.suite { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; margin-top: 3rem;
  padding-top: 1rem; border-top: 1px solid var(--filet); }
.suite .suiv { text-align: right; margin-left: auto; }
.pied { padding-top: 1rem; padding-bottom: 2.5rem; border-top: 1px solid var(--filet); font-size: 0.85rem; color: var(--doux); }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--texte); }
mark { background: color-mix(in srgb, var(--lien) 18%, transparent); color: inherit; }

/* boutons flottants : accueil et haut de page (en bas à droite) */
.flottant { position: fixed; right: 15px; bottom: 15px; display: flex; gap: 8px; z-index: 10; }
.flottant a { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center;
  background: rgba(51, 51, 51, 0.6); color: #fff; border-radius: 4px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3); transition: background-color 0.3s, transform 0.3s; }
.flottant a:hover, .flottant a:focus-visible { background: rgba(51, 51, 51, 1); transform: translateY(-2px); }
.flottant a.m { font-size: 1.05rem; line-height: 1; padding-top: 1px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flottant a { transition: none; } }
.pied { padding-bottom: 4rem; }  /* le pied de page n'est pas caché par les boutons */

@media print {
  .flottant { display: none; }
  .entete .menu, .suite, .pied, .etiquettes { display: none; }
  body { background: #fff; color: #000; }
  a { color: inherit; text-decoration: none; }
}

.sans-js { font-style: italic; color: var(--doux); }

/* image réduite à la moitié de la colonne (ex. portrait de la page Parcours) : <figure class="demi"> */
.texte figure.demi { width: 50%; margin-left: 0; margin-right: auto; }
.texte figure.demi figcaption { text-align: left; }
.bandeau-brouillon { background: #fff3c4; border: 1px solid #e0c060; padding: .4rem .8rem; font-size: .9rem; }

/* page 404 : le fragment 18 sous un grand 404 */
.introuvable { text-align: center; padding-top: 1rem; }
.introuvable h1 { font-size: clamp(6rem, 30vw, 8.5rem); line-height: 1; font-weight: normal; letter-spacing: 0.04em;
  font-variant-numeric: lining-nums; margin: 0 0 2rem;
  -webkit-text-stroke: 1.5px var(--fond); }  /* un contour couleur du fond affine les chiffres */
.introuvable p { text-wrap: balance; }
.introuvable .grec { font-size: 1.15rem; line-height: 1.5; }
.introuvable .petit { margin-bottom: 2.4rem; }
.introuvable .issues { font-size: 0.95rem; color: var(--doux); }
.introuvable .issue { white-space: nowrap; }
@media (max-width: 34rem) {
  .introuvable .issue { display: block; }
  .introuvable .point { display: none; }
}
