/* ==========================================================================
   RedAction — Style classique & ancien (Livre / Carnet de poésie)
   ========================================================================== */

:root {
  --papier: #f8f5ee;
  --papier-note: #f2ece0;
  --encre: #24201c;
  --encre-douce: #655b50;
  --rouge-garance: #8e2329;
  --filet: #ded5c4;
  --filet-sombre: #b5a995;
  --police-livre: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --police-sans: "Work Sans", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--papier);
  color: var(--encre);
  font-family: var(--police-livre);
  font-size: 1.25rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Conteneur principal style page de livre */
.page-livre {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  flex: 1;
}

/* En-tête sobre et littéraire */
.entete-livre {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--filet);
}

.titre-site {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.titre-site .rouge {
  color: var(--rouge-garance);
}

.intro-site {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--encre);
  margin: 0 0 0.85rem;
}

.lien-externe {
  font-family: var(--police-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rouge-garance);
  border-bottom: 1px dotted var(--rouge-garance);
  padding-bottom: 2px;
}

.lien-externe:hover {
  border-bottom-style: solid;
}

/* Liste des écrits style table des matières de recueil */
.sommaire-titre {
  font-family: var(--police-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.liste-ecrits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-ecrit {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--filet);
}

.item-ecrit:first-child {
  border-top: 1px solid var(--filet);
}

.lien-ecrit {
  display: block;
}

.titre-ecrit-sommaire {
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--encre);
  transition: color 0.15s ease;
}

.lien-ecrit:hover .titre-ecrit-sommaire {
  color: var(--rouge-garance);
}

.extrait-ecrit {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--encre-douce);
  line-height: 1.5;
}

.marqueur-note {
  display: inline-block;
  font-family: var(--police-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--rouge-garance);
  margin-top: 0.5rem;
}

.aucun-ecrit {
  text-align: center;
  font-style: italic;
  color: var(--encre-douce);
  padding: 3rem 0;
}

/* Page de lecture d'un écrit */
.navigation-retour {
  margin-bottom: 2.5rem;
}

.lien-retour {
  font-family: var(--police-sans);
  font-size: 0.85rem;
  color: var(--encre-douce);
  letter-spacing: 0.04em;
}

.lien-retour:hover {
  color: var(--rouge-garance);
}

.ecrit {
  margin-bottom: 4rem;
}

.ecrit-titre {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
  text-align: left;
}

.filet-livre {
  width: 3.5rem;
  height: 2px;
  background-color: var(--rouge-garance);
  margin-bottom: 2.5rem;
}

.ecrit-corps {
  font-size: 1.35rem;
  line-height: 1.8;
}

.strophe {
  border-left: 2px solid var(--rouge-garance);
  padding-left: 1.75rem;
  margin: 0 0 2rem;
  white-space: pre-line;
}

.vide {
  font-style: italic;
  color: var(--encre-douce);
}

/* Sous-rédactions & Commentaires */
.sous-redactions {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--filet-sombre);
}

.ornement-separateur {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--encre-douce);
  margin-bottom: 1.5rem;
}

.sous-redactions-titre {
  font-family: var(--police-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--rouge-garance);
  margin: 0 0 1.5rem;
}

.sous-redaction-item {
  background-color: var(--papier-note);
  border-left: 2px solid var(--filet-sombre);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sous-redaction-nom {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--encre);
}

.sous-redaction-texte {
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  white-space: pre-line;
}

.sous-redaction-texte:last-child {
  margin-bottom: 0;
}

/* Pied de page */
.pied-livre {
  text-align: center;
  font-family: var(--police-sans);
  font-size: 0.8rem;
  color: var(--encre-douce);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--filet);
}

.pied-liens {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.pied-liens a:hover {
  color: var(--rouge-garance);
}

@media (max-width: 600px) {
  body { font-size: 1.15rem; }
  .page-livre { padding: 2rem 1rem 3rem; }
  .titre-site { font-size: 2.2rem; }
  .strophe { padding-left: 1.2rem; font-size: 1.2rem; }
}
