/* Aperception — feuille de style commune
   Reprend les couleurs et les polices de la couverture d'Anamnèsis. */

:root {
  --creme: #EFE9DC;
  --creme-clair: #F6F2EA;
  --encre: #16263D;
  --encre-doux: #43546B;
  --filet: #C9BFAC;
  --accent: #2F5E8C;
  --titre: 'Cinzel', Georgia, serif;
  --texte: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

/* Palette fixe, accordée à la couverture imprimée.
   On neutralise le thème sombre du navigateur, qui dénaturerait le crème. */
html { -webkit-text-size-adjust: 100%; color-scheme: light only; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 19px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* ---------- structure ---------- */

.enveloppe {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.large { max-width: 980px; }

section { padding: 10px 0 34px; }

hr.filet {
  border: 0;
  border-top: 1px solid var(--filet);
  margin: 46px 0;
}

/* ---------- navigation ---------- */

.barre {
  border-bottom: 1px solid var(--filet);
  background: var(--creme);
}

.barre .enveloppe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.marque {
  font-family: var(--titre);
  font-size: 19px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
}

.barre nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.barre nav a {
  color: var(--encre-doux);
  text-decoration: none;
  font-size: 17px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.barre nav a:hover { color: var(--encre); border-bottom-color: var(--filet); }
.barre nav a.ici { color: var(--encre); border-bottom-color: var(--encre); }

/* ---------- titres ---------- */

h1 {
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(30px, 7vw, 46px);
  letter-spacing: 0.05em;
  line-height: 1.18;
  margin: 46px 0 10px;
}

h2 {
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(21px, 4.4vw, 26px);
  letter-spacing: 0.04em;
  margin: 44px 0 14px;
}

h3 {
  font-family: var(--texte);
  font-weight: 600;
  font-size: 21px;
  margin: 32px 0 4px;
}

.chapeau {
  font-style: italic;
  font-size: clamp(19px, 3.4vw, 22px);
  color: var(--encre-doux);
  margin: 0 0 30px;
}

p { margin: 0 0 18px; }

a { color: var(--accent); }

em.citation {
  display: block;
  font-style: italic;
  border-left: 2px solid var(--filet);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--encre-doux);
}

.mention {
  font-size: 16px;
  color: var(--encre-doux);
}

/* ---------- livre ---------- */

.livre {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  margin: 34px 0 10px;
}

.livre img {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--filet);
  box-shadow: 0 2px 5px rgba(22, 38, 61, 0.14), 0 14px 34px rgba(22, 38, 61, 0.16);
}

.livre .texte { flex: 1 1 300px; }

.etiquette {
  display: inline-block;
  font-family: var(--titre);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--filet);
  border-radius: 2px;
  padding: 5px 12px;
  color: var(--encre-doux);
  margin-bottom: 18px;
}

.bouton {
  display: inline-block;
  background: var(--encre);
  color: var(--creme);
  text-decoration: none;
  font-family: var(--titre);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  margin: 10px 0;
}

.bouton:hover { background: var(--accent); }

dl.fiche {
  margin: 26px 0 0;
  font-size: 17px;
  color: var(--encre-doux);
}

dl.fiche div {
  display: flex;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--filet);
}

dl.fiche dt { flex: 0 0 150px; font-weight: 600; color: var(--encre); }
dl.fiche dd { margin: 0; }

/* ---------- images ---------- */

figure { margin: 34px 0; }

figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--filet);
}

figcaption {
  font-size: 16px;
  font-style: italic;
  color: var(--encre-doux);
  margin-top: 8px;
}

/* ---------- listes de titres et de lectures ---------- */

.entree {
  padding: 22px 0;
  border-top: 1px solid var(--filet);
}

.entree:first-of-type { border-top: 0; }
.entree h3 { margin-top: 0; }
.entree p { margin-bottom: 0; }

.sous { font-style: italic; color: var(--encre-doux); display: block; margin-bottom: 8px; }

/* ---------- encadré ---------- */

.cadre {
  background: var(--creme-clair);
  border: 1px solid var(--filet);
  border-radius: 2px;
  padding: 24px 24px 8px;
  margin: 32px 0;
}

.cadre h3 { margin-top: 0; }

/* ---------- pied ---------- */

footer {
  border-top: 1px solid var(--filet);
  margin-top: 60px;
  padding: 28px 0 46px;
  font-size: 16px;
  color: var(--encre-doux);
}

footer a { color: var(--encre-doux); }

/* ---------- note à l'intention du webmestre ---------- */

.note-interne {
  background: #FBF3E2;
  border: 1px dashed #B99A4E;
  color: #6B5420;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 16px;
  border-radius: 2px;
}

.note-interne p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .livre { gap: 26px; }
  .livre img { margin: 0 auto; }
  dl.fiche div { flex-direction: column; gap: 2px; }
  dl.fiche dt { flex: none; }
}

/* ---------- marque dans la barre et logo en pied ---------- */

.marque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.2vw, 20px);
}

.marque img { width: 30px; height: auto; display: block; opacity: 0.85; }

.pied {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.logo-pied { width: 104px; height: auto; opacity: 0.8; flex: none; }

/* ---------- témoignages ---------- */

.temoignage {
  border-top: 1px solid var(--filet);
  padding: 24px 0 6px;
}

.temoignage p { font-style: italic; color: var(--encre-doux); }

.temoignage .signature {
  font-style: normal;
  font-family: var(--titre);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}

@media (max-width: 560px) {
  .marque img { width: 24px; }
  .pied { gap: 16px; }
  .logo-pied { width: 92px; }
}

/* ---------- portrait de l'auteur ---------- */

.portrait {
  float: right;
  width: 270px;
  max-width: 44%;
  margin: 6px 0 14px 32px;
}

.portrait img { width: 100%; height: auto; display: block; border: 1px solid var(--filet); }

@media (max-width: 560px) {
  .portrait { float: none; width: 230px; max-width: 70%; margin: 0 auto 18px; }
}

/* ---------- page d'accueil ---------- */

body.accueil {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 56px;
}

body.accueil main {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.enseigne {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 30px);
}

.enseigne .aile { width: clamp(34px, 9vw, 52px); height: auto; opacity: 0.85; }

.enseigne h1 {
  font-size: clamp(26px, 7.4vw, 44px);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.lamelle {
  margin: clamp(36px, 7vw, 52px) auto 0;
  border: 0;
  padding: 0;
  font-style: italic;
  font-size: clamp(18px, 3.8vw, 21px);
  line-height: 1.6;
  color: var(--encre-doux);
  max-width: 30em;
}

.lamelle cite {
  display: block;
  font-style: normal;
  font-family: var(--titre);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--encre-doux);
  opacity: 0.62;
  margin-top: 24px;
}

.couv {
  width: clamp(195px, 48vw, 290px);
  margin: clamp(44px, 9vw, 66px) auto 0;
  padding: 5px;
  border: 1px solid var(--encre);
}

.couv img { width: 100%; height: auto; display: block; }

.portes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(16px, 4vw, 30px);
  margin-top: clamp(44px, 9vw, 64px);
}

.portes a {
  font-family: var(--titre);
  font-size: clamp(12px, 2.9vw, 14px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
  padding-bottom: 5px;
}

.portes a:hover { border-bottom-color: var(--encre); }
