/* CRPTRAD — charte « Bibliothèque ancienne » : vélin, encre brune, rouge sombre */
:root {
  --velin: #f4ecda;
  --velin-fonce: #e9dcc0;
  --encre: #2b2017;
  --encre-douce: #5a4a3a;
  --rouge: #7d2318;
  --or: #9a7432;
  --filet: #cdb98f;
  --largeur: 46rem;
}
* { box-sizing: border-box; }
html { background: var(--velin); }
body {
  margin: 0; color: var(--encre); background: var(--velin);
  font: 1.15rem/1.65 "EB Garamond", Georgia, serif;
  font-variant-numeric: oldstyle-nums;
}
a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--encre); }
img { max-width: 100%; height: auto; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--encre); color: var(--velin); padding: .5rem 1rem; z-index: 9; }

/* En-tête */
.entete { border-bottom: 3px double var(--filet); background: linear-gradient(var(--velin-fonce), var(--velin)); }
.entete__titre { text-align: center; padding: 1.6rem 1rem .6rem; }
.marque { font: 700 2.6rem/1 "Cormorant Garamond", serif; letter-spacing: .18em; color: var(--encre); text-decoration: none; }
.marque--petite { font-size: 1.5rem; margin: 0 0 .4rem; }
.devise { margin: .4rem 0 0; font-style: italic; color: var(--encre-douce); font-size: 1rem; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.3rem; padding: .5rem 1rem .8rem; font: 600 1.05rem "Cormorant Garamond", serif; }
.menu a { color: var(--encre); text-decoration: none; padding: .15rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--rouge); border-bottom-color: var(--rouge); }

main { padding: 1.5rem 1rem 3rem; }
.ariane { max-width: var(--largeur); margin: 0 auto 1rem; font-size: .95rem; color: var(--encre-douce); }
.ariane a { color: var(--encre-douce); }

/* Texte courant */
.texte { max-width: var(--largeur); margin: 0 auto; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; line-height: 1.15; color: var(--encre); }
h1 { font-size: 2.5rem; margin: .3rem 0 1rem; }
h2 { font-size: 1.75rem; margin: 2rem 0 .6rem; color: var(--rouge); }
h3 { font-size: 1.35rem; margin: 1.5rem 0 .4rem; }
.texte h1::after { content: "❧"; display: block; color: var(--or); font-size: 1.4rem; margin-top: .4rem; }
.surtitre { margin: 0; font: 600 .95rem "Cormorant Garamond", serif; letter-spacing: .12em; text-transform: uppercase; color: var(--or); }
.chapeau { font-size: 1.3rem; font-style: italic; color: var(--encre-douce); }
p { margin: 0 0 1rem; hyphens: auto; }
ul, ol { padding-left: 1.4rem; }
blockquote { margin: 1rem 0; padding: .2rem 1rem; border-left: 3px solid var(--filet); font-style: italic; }
figure { margin: 1.5rem 0; text-align: center; }
figure img { border: 1px solid var(--filet); padding: 4px; background: #fbf6ea; max-height: 32rem; width: auto; }
.bouton a, .bouton-plein {
  display: inline-block; padding: .35rem 1.1rem; border: 1px solid var(--rouge); border-radius: 2px;
  font: 600 1.05rem "Cormorant Garamond", serif; text-decoration: none; letter-spacing: .03em;
}
.bouton a:hover, .bouton-plein { background: var(--rouge); color: var(--velin); }
.bouton-plein:hover { background: var(--encre); border-color: var(--encre); color: var(--velin); }
.encadre { border: 1px solid var(--filet); background: #f8f1e1; padding: .2rem 1.4rem 1rem; margin: 2rem 0; }
.encadre h2 { margin-top: 1rem; }
.note { font-size: .95rem; color: var(--encre-douce); font-style: italic; }
.docs { columns: 2 18rem; column-gap: 2rem; font-size: 1.02rem; }
.docs li { break-inside: avoid; margin-bottom: .25rem; }

/* Sommaires */
.sommaire { max-width: var(--largeur); margin: 1.5rem auto 0; }
.groupe { border-top: 1px solid var(--filet); padding-top: .3rem; }
.chapitres { columns: 2 19rem; column-gap: 2.2rem; padding-left: 1.6rem; }
.chapitres li { break-inside: avoid; margin-bottom: .3rem; }
.suite { max-width: var(--largeur); margin: 2.5rem auto 0; padding-top: 1rem; border-top: 3px double var(--filet); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; font-size: 1rem; }
.suite a:first-child { text-align: left; }
.suite a:last-child { text-align: right; }

/* Accueil */
.accueil { max-width: 64rem; margin: 0 auto; }
.une { text-align: center; max-width: 40rem; margin: 1rem auto 2.5rem; }
.une h1 { font-size: 2.6rem; }
.une h1 span { display: block; font-size: 1.5rem; font-style: italic; font-weight: 500; color: var(--encre-douce); margin-top: .4rem; }
.signature { font-style: italic; text-align: right; color: var(--encre-douce); }
.boutons { display: flex; gap: 1.2rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cartes { display: grid; gap: 1.4rem; margin: 2rem 0; }
.cartes--trois { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.texte .cartes { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.carte { border: 1px solid var(--filet); background: #f8f1e1; padding: .3rem 1.3rem 1rem; }
.carte h2 { margin-top: .8rem; font-size: 1.55rem; }
.carte h2 a { color: var(--rouge); text-decoration: none; }
.auteur { display: flex; gap: 1.6rem; align-items: flex-start; border-top: 3px double var(--filet); border-bottom: 3px double var(--filet); padding: 1rem 0; }
.auteur img { border: 1px solid var(--filet); padding: 4px; flex: none; }
.auteur h2 { margin-top: .2rem; }

/* Pied de page */
.pied { background: var(--encre); color: #e8dcc3; padding: 2rem 1rem 1rem; font-size: 1rem; }
.pied a { color: #f0d9a8; }
.pied .marque { color: #f4ecda; }
.pied__colonnes { max-width: 64rem; margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pied h2 { color: #f0d9a8; font-size: 1.2rem; margin: 0 0 .5rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied__bas { max-width: 64rem; margin: 1.5rem auto 0; padding-top: .8rem; border-top: 1px solid #5a4a3a; font-size: .9rem; text-align: center; }

@media (max-width: 40rem) {
  body { font-size: 1.08rem; }
  .marque { font-size: 2rem; }
  h1, .une h1 { font-size: 2rem; }
  .auteur { flex-direction: column; align-items: center; text-align: left; }
  .suite { grid-template-columns: 1fr; text-align: center; }
  .suite a:first-child, .suite a:last-child { text-align: center; }
}
