@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --creme:   #FAF8F4;
  --beige:   #E8E0D0;
  --sage:    #8A9E85;
  --sage-dk: #6B7E67;
  --encre:   #2C2A27;
  --gris:    #7A7469;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background-color: var(--creme);
  color: var(--encre);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Mise en page centrale ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── En-tête ── */
.site-header {
  border-bottom: 1px solid var(--beige);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.site-header a {
  text-decoration: none;
  color: inherit;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--encre);
}

.site-subtitle {
  margin-top: 0.5rem;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gris);
  letter-spacing: 0.02em;
}

/* ── Navigation minimale ── */
.site-nav {
  margin-top: 1.5rem;
}

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dk);
  text-decoration: none;
  padding: 0 0.75rem;
  border-right: 1px solid var(--beige);
}

.site-nav a:last-child { border-right: none; }
.site-nav a:hover { color: var(--encre); }

/* ── Corps de page ── */
main {
  padding: 4rem 0 6rem;
}

/* ── Liste d'articles ── */
.posts-list { list-style: none; }

.post-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--beige);
}

.post-item:first-child { padding-top: 0; }

.post-item time {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.post-item h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.post-item h2 a {
  color: var(--encre);
  text-decoration: none;
}

.post-item h2 a:hover { color: var(--sage-dk); }

.post-item p {
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dk);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.read-more:hover { color: var(--encre); border-color: var(--encre); }

/* ── Article single ── */
.article-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.article-header time {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  max-width: 560px;
  margin: 0 auto 1.2rem;
}

.article-description {
  font-style: italic;
  color: var(--gris);
  font-size: 1rem;
}

/* Photo héro */
.hero-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0 3rem;
  border-radius: 2px;
}

/* ── Contenu Markdown ── */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
}

.article-body p        { margin-bottom: 1.5rem; }
.article-body h2       { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 400; margin: 2.5rem 0 1rem; }
.article-body h3       { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-style: italic; font-weight: 400; margin: 2rem 0 0.8rem; color: var(--gris); }
.article-body blockquote {
  border-left: 2px solid var(--sage);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--gris);
  font-style: italic;
}
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
  border-radius: 2px;
}
.article-body a { color: var(--sage-dk); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--encre); }
.article-body hr { border: none; border-top: 1px solid var(--beige); margin: 3rem 0; }

/* ── Retour liste ── */
.back-link {
  display: inline-block;
  margin-top: 3.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dk);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.back-link:hover { color: var(--encre); border-color: var(--encre); }

/* ── Pied de page ── */
.site-footer {
  border-top: 1px solid var(--beige);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gris);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  html { font-size: 16px; }
  .site-title { font-size: 1.9rem; }
  .article-title { font-size: 1.7rem; }
}
