/* Thèse d'anthropologie : Notre-Dame-du-Bourg (2026-09-22).
   Même habillage que le site de la thèse de médecine — papier chaud,
   polices embarquées (OFL), aucune ressource extérieure — mais un
   vert-de-gris à la place du rouge brique, pour distinguer les deux. */

@font-face { font-family: "Cormorant"; src: url(polices/cormorant.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(polices/sourceserif.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(polices/sourceserif-italique.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --papier: #f7f3ea;
  --papier-2: #efe8da;
  --encre: #2b2420;
  --encre-douce: #6a5d52;
  --filet: #dccfbc;
  --accent: #3f6b63;
  --accent-doux: #598f85;
  --carte: #fffdf8;
  --ombre: 0 1px 2px rgb(60 40 20 / .06), 0 8px 24px rgb(60 40 20 / .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #1d1917;
    --papier-2: #27211e;
    --encre: #ece4d7;
    --encre-douce: #b3a595;
    --filet: #423831;
    --accent: #7fc0b3;
    --accent-doux: #9ad3c7;
    --carte: #25201c;
    --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #1d1917; --papier-2: #27211e; --encre: #ece4d7; --encre-douce: #b3a595;
  --filet: #423831; --accent: #7fc0b3; --accent-doux: #9ad3c7; --carte: #25201c;
  --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.68 "Source Serif", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-doux); }

/* --- bandeau et pied ------------------------------------------------- */
.bandeau {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1rem 1rem .9rem;
  border-bottom: 1px solid var(--filet);
}
.bandeau a { text-decoration: none; }
.marque { font: 600 1.05rem/1.2 "Cormorant", Georgia, serif; color: var(--encre); letter-spacing: .01em; }
.lien-plan { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); white-space: nowrap; }
.accueil .bandeau { border-bottom: 0; }
.accueil .marque { visibility: hidden; }

.pied {
  max-width: 72rem; margin: 4rem auto 0; padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--filet);
  color: var(--encre-douce); font-size: .85rem; text-align: center; hyphens: manual;
}
.pied p { margin: .4rem 0; }
.pied a { color: var(--encre-douce); }

/* --- accueil --------------------------------------------------------- */
.une {
  max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 3rem;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: center;
}
.surtitre {
  margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); hyphens: manual;
}
.une h1 {
  margin: 0; font: 500 clamp(2.6rem, 7vw, 4.6rem)/1.02 "Cormorant", Georgia, serif;
  letter-spacing: -.01em; hyphens: manual;
}
.une h1 span { display: block; color: var(--encre-douce); font-size: .62em; margin-top: .25em; }
.une .auteur { margin: 1.6rem 0 1.4rem; font: 600 1.35rem/1.3 "Cormorant", Georgia, serif; letter-spacing: .04em; }
.une .presentation, .une .prix { max-width: 34rem; margin: .5rem 0; color: var(--encre-douce); hyphens: manual; }
.une .prix { font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.bouton {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--accent); color: var(--papier); text-decoration: none; font-size: .95rem;
}
.bouton:hover { background: var(--accent-doux); color: var(--papier); }
.bouton.discret { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--filet); }
.bouton.discret:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }

.une-portrait {
  margin: 0; background: var(--carte); border-radius: 6px; box-shadow: var(--ombre);
  padding: 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center;
}
.une-portrait img { width: 110px; height: auto; border-radius: 3px; filter: sepia(.25); }
.une-portrait blockquote { margin: 0; hyphens: manual; }
.une-portrait blockquote p { margin: 0 0 .8rem; font: italic 500 1.28rem/1.35 "Cormorant", Georgia, serif; }
.une-portrait footer { font-size: .85rem; color: var(--encre-douce); }

.plan { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.plan h2 {
  font: 500 2rem/1.1 "Cormorant", Georgia, serif; margin: 0 0 .4rem;
  padding-top: 2rem; border-top: 1px solid var(--filet);
}
.plan .note { color: var(--encre-douce); font-size: .92rem; margin: 0 0 2rem; hyphens: manual; }
.parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.partie {
  background: var(--carte); border-radius: 6px; box-shadow: var(--ombre); padding: 1.3rem 1.4rem 1.1rem;
}
.partie h3 {
  margin: 0 0 .7rem; font: 600 1.35rem/1.2 "Cormorant", Georgia, serif; color: var(--accent);
}
.partie ol { list-style: none; margin: 0; padding: 0; }
.partie li a {
  display: grid; grid-template-columns: 1.4rem 1fr; padding: .32rem 0; line-height: 1.35;
  color: var(--encre); text-decoration: none; border-top: 1px solid var(--papier-2); hyphens: manual;
}
.partie li:first-child a { border-top: 0; }
.partie li a:hover { color: var(--accent); }
.partie .lettre { color: var(--encre-douce); font-size: .85em; padding-top: .08em; }
.annexes { background: transparent; box-shadow: inset 0 0 0 1px var(--filet); }

/* --- chapitres ------------------------------------------------------- */
.texte { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1rem 0; }
.texte.large { max-width: 48rem; }
.texte h1 {
  margin: 0 0 1.8rem; font: 500 clamp(2.1rem, 6vw, 3.1rem)/1.08 "Cormorant", Georgia, serif; hyphens: manual;
}
.texte h1 .lettre { color: var(--accent); }
.texte h2.section {
  margin: 4rem 0 1.5rem; padding-top: 2rem; border-top: 1px solid var(--filet);
  font: 500 clamp(1.8rem, 5vw, 2.5rem)/1.1 "Cormorant", Georgia, serif; hyphens: manual;
}
.texte h3 {
  margin: 2.6rem 0 .9rem; font: 600 1.45rem/1.25 "Cormorant", Georgia, serif; hyphens: manual;
}
.texte h3 strong, .texte h4 strong { font-weight: inherit; }
.texte h4 { margin: 1.8rem 0 .6rem; font-size: 1.02rem; font-weight: 600; font-style: italic; hyphens: manual; }
.texte p { margin: 0 0 1.05rem; }
.texte p.centre { text-align: center; font-style: italic; }
.chapeau { color: var(--encre-douce); }
u { text-decoration-color: var(--filet); text-underline-offset: .2em; }

.mini-sommaire {
  margin: 0 0 2.5rem; padding: 1.1rem 1.3rem; background: var(--papier-2); border-radius: 6px;
}
.mini-sommaire h2 {
  margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; color: var(--encre-douce);
}
.mini-sommaire ol { margin: 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 2rem; }
.mini-sommaire li { break-inside: avoid; padding: .15rem 0; line-height: 1.35; hyphens: manual; }
.mini-sommaire a { text-decoration: none; color: var(--encre); }
.mini-sommaire a:hover { color: var(--accent); }

/* renvois bibliographiques : discrets, la bulle donne l'ouvrage */
a.renvoi { text-decoration: none; font-variant-numeric: lining-nums; }
a.renvoi:hover { text-decoration: underline; }

figure { margin: 2rem 0; }
.texte figure { margin-left: auto; margin-right: auto; text-align: center; }
.loupe {
  display: block; width: 100%; padding: .8rem; margin: 0; border: 0; cursor: zoom-in;
  background: #fff; border-radius: 6px; box-shadow: var(--ombre);
}
.loupe img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
figcaption {
  margin-top: .7rem; font-size: .85rem; line-height: 1.45; color: var(--encre-douce); text-align: left; hyphens: manual;
}

.tableau { margin: 1.8rem 0; overflow-x: auto; background: var(--carte); border-radius: 6px; box-shadow: var(--ombre); }
.tableau table { border-collapse: collapse; font-size: .82rem; line-height: 1.35; min-width: 100%; hyphens: manual; }
.tableau td { padding: .45rem .6rem; border-bottom: 1px solid var(--papier-2); vertical-align: top; }
.tableau tr:first-child td { font-weight: 600; background: var(--papier-2); }
.tableau td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 4rem 0 0; }
.suite a {
  display: block; padding: 1rem 1.1rem; border-radius: 6px; background: var(--carte); box-shadow: var(--ombre);
  text-decoration: none; color: var(--encre); line-height: 1.3; hyphens: manual;
}
.suite a:hover { color: var(--accent); }
.suite small { display: block; margin-bottom: .3rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
.suite .suiv { text-align: right; grid-column: 2; }

/* --- bibliographie --------------------------------------------------- */
.biblio { list-style: none; margin: 2rem 0 0; padding: 0; }
.biblio li {
  display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: .9rem 0;
  border-top: 1px solid var(--filet); font-size: .95rem; line-height: 1.45; hyphens: manual;
}
.biblio li:target { background: var(--papier-2); border-radius: 6px; }
.biblio .num { color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; padding-right: .4rem; }
.biblio span { display: block; }
.biblio .auteur { font-variant: small-caps; letter-spacing: .03em; }
.biblio .cite { margin-top: .35rem; font-size: .8rem; color: var(--encre-douce); }
.biblio .cite a { color: var(--encre-douce); }

/* --- bulle et visionneuse ------------------------------------------- */
.bulle {
  position: absolute; z-index: 10; max-width: min(24rem, calc(100vw - 2rem));
  padding: .9rem 1rem; background: var(--carte); color: var(--encre);
  border-radius: 6px; box-shadow: 0 10px 40px rgb(0 0 0 / .22); border: 1px solid var(--filet);
  font-size: .88rem; line-height: 1.45; hyphens: manual;
}
.bulle .num { color: var(--accent); font-weight: 600; margin-right: .35rem; }
.bulle a.tout { display: block; margin-top: .5rem; font-size: .8rem; }
.visionneuse {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem;
  background: rgb(20 15 12 / .88); cursor: zoom-out;
}
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 4px; }

/* --- téléphone ------------------------------------------------------- */
@media (max-width: 760px) {
  .une { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; }
  .une-portrait { padding: 1.2rem; }
  .une-portrait img { width: 84px; }
  .suite { grid-template-columns: 1fr; }
  .suite .suiv { grid-column: 1; }
  .marque { font-size: 1.05rem; }
  body { font-size: 1.02rem; }
}

/* --- ajouts propres à la thèse d'anthropologie ----------------------- */
.une { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.une h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; }
.une .chapo { margin: 1.2rem 0 0; max-width: 36rem; font-size: 1.08rem; color: var(--encre-douce); hyphens: manual; }
.une .jury, .une .hal { color: var(--encre-douce); font-size: .92rem; hyphens: manual; }
.une .hal { margin-top: 1.5rem; }
.encart { background: var(--carte); border-radius: 6px; box-shadow: var(--ombre); padding: 1.4rem 1.5rem; }
.encart h2 { margin: 0 0 .6rem; font: 600 1.2rem/1.2 "Cormorant", Georgia, serif; color: var(--accent); }
.encart p { margin: 0 0 .8rem; font-size: .95rem; hyphens: manual; }
.encart .mots { color: var(--encre-douce); font-size: .85rem; margin: 0; }

/* formules : le document d'origine les portait en objets incrustés,
   elles sont ici en MathML, lisibles et sélectionnables */
.formule { margin: 1.4rem 0; overflow-x: auto; text-align: center; }
.formule math { font-size: 1.05rem; }
.tableau .formule { margin: .2rem 0; }

/* photographies d'ossements : fond sombre, elles y gagnent */
figure.photo .loupe { background: #15120f; }
figure.photo figcaption { text-align: center; }
.chapitre .texte figure.photo { max-width: 34rem; }

.legende { font-size: .85rem; color: var(--encre-douce); text-align: center; }
.tableau table { font-size: .76rem; }
.texte h2 { margin: 3rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--filet);
  font: 500 clamp(1.6rem, 4.5vw, 2.1rem)/1.15 "Cormorant", Georgia, serif; hyphens: manual; }
.partie ol { counter-reset: none; }
.partie li a { grid-template-columns: 1fr; }
