/* ————— Site d'écrivain — style sobre et classique ————— */

:root {
  --ivoire: #faf8f3;
  --papier: #f3efe6;
  --encre: #1f1c19;
  --encre-douce: #55504a;
  --bordeaux: #7d2a35;
  --or: #b3945f;
  --filet: #e0d9cb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 17px; }

body {
  font-family: "EB Garamond", "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  background: var(--ivoire);
  color: var(--encre);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.conteneur {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ————— En-tête ————— */
header.site {
  text-align: center;
  padding: 3.4rem 1rem 1.6rem;
}

header.site .nom {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

header.site .nom a { color: var(--encre); text-decoration: none; }

header.site .sous-titre {
  color: var(--encre-douce);
  font-style: italic;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

header.site .ornement {
  color: var(--or);
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
}

/* ————— Navigation ————— */
nav.principale {
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
  margin-bottom: 3rem;
}

nav.principale ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.2rem;
  list-style: none;
  padding: 0.8rem 0;
}

nav.principale a {
  color: var(--encre-douce);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav.principale a:hover,
nav.principale a.actif { color: var(--bordeaux); }

/* ————— Contenu ————— */
main { min-height: 55vh; padding-bottom: 4rem; }

h1.page-titre {
  font-size: 1.9rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.4rem;
}

.page-sous-titre {
  text-align: center;
  color: var(--encre-douce);
  font-style: italic;
  margin-bottom: 2.6rem;
}

.separateur {
  text-align: center;
  color: var(--or);
  letter-spacing: 0.6em;
  margin: 2.4rem 0;
  font-size: 0.85rem;
}

.prose p { margin-bottom: 1.1rem; }
.prose a { color: var(--bordeaux); }
.prose blockquote {
  border-left: 2px solid var(--or);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--encre-douce);
  margin: 1.4rem 0;
}

/* ————— Accueil ————— */
.accroche {
  text-align: center;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--encre-douce);
  max-width: 34em;
  margin: 0 auto 3rem;
}

section.bloc { margin-bottom: 3.4rem; }

section.bloc > h2 {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 1.05rem;
  text-align: center;
  color: var(--bordeaux);
  margin-bottom: 1.8rem;
}

.tout-voir {
  display: block;
  text-align: center;
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

/* ————— Œuvres ————— */
.grille-oeuvres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.2rem;
}

.carte-oeuvre { text-align: center; }

.carte-oeuvre a { text-decoration: none; color: var(--encre); }

.carte-oeuvre .couv {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--filet);
  box-shadow: 3px 4px 14px rgba(31, 28, 25, 0.12);
  background: var(--papier);
  transition: transform 0.25s, box-shadow 0.25s;
}

.carte-oeuvre a:hover .couv {
  transform: translateY(-4px);
  box-shadow: 4px 8px 20px rgba(31, 28, 25, 0.18);
}

.couv-vide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-style: italic;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.carte-oeuvre h3 { font-weight: 500; font-size: 1.1rem; margin-top: 0.9rem; }
.carte-oeuvre .meta { color: var(--encre-douce); font-size: 0.9rem; font-style: italic; }

/* Fiche œuvre */
.fiche-oeuvre { display: flex; gap: 2.4rem; align-items: flex-start; flex-wrap: wrap; }
.fiche-oeuvre .colonne-couv { flex: 0 0 230px; margin: 0 auto; }
.fiche-oeuvre .colonne-couv img {
  width: 100%;
  border: 1px solid var(--filet);
  box-shadow: 3px 4px 14px rgba(31, 28, 25, 0.14);
}
.fiche-oeuvre .colonne-texte { flex: 1 1 320px; }
.fiche-oeuvre .meta-ligne { color: var(--encre-douce); font-style: italic; margin-bottom: 1.4rem; }

.liens-achat { margin-top: 1.8rem; }
.liens-achat a {
  display: inline-block;
  border: 1px solid var(--or);
  color: var(--bordeaux);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  margin: 0 0.6rem 0.6rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.liens-achat a:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--ivoire); }

/* ————— Textes ————— */
.liste-textes { list-style: none; }
.liste-textes li {
  border-bottom: 1px solid var(--filet);
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.liste-textes li:first-child { border-top: 1px solid var(--filet); }
.liste-textes a { color: var(--encre); text-decoration: none; font-size: 1.15rem; }
.liste-textes a:hover { color: var(--bordeaux); }
.liste-textes .genre {
  color: var(--encre-douce);
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

.corps-texte {
  max-width: 34em;
  margin: 0 auto;
  font-size: 1.12rem;
}

/* ————— Journal ————— */
article.billet { margin-bottom: 2.8rem; }
article.billet h2, article.billet h1 { font-weight: 500; font-size: 1.35rem; }
article.billet h2 a { color: var(--encre); text-decoration: none; }
article.billet h2 a:hover { color: var(--bordeaux); }
.date {
  color: var(--or);
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* ————— À propos ————— */
.portrait {
  display: block;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 1px solid var(--filet);
  box-shadow: 0 4px 14px rgba(31, 28, 25, 0.12);
}

.contact { text-align: center; margin-top: 2.6rem; }
.contact a { color: var(--bordeaux); }
.contact .reseaux { margin-top: 0.6rem; }
.contact .reseaux a { margin: 0 0.6rem; font-style: italic; }

/* ————— Pied de page ————— */
footer.site {
  border-top: 1px solid var(--filet);
  text-align: center;
  padding: 1.8rem 1rem 2.4rem;
  color: var(--encre-douce);
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  header.site .nom { font-size: 1.9rem; }
  nav.principale ul { gap: 0 1.3rem; }
}
