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

:root {
  --creme:   #FAF8F4;
  --beige:   #E8E0D0;
  --sage:    #8A9E85;
  --sage-dk: #6B7E67;
  --encre:   #1E2230;
  --gris:    #6A6E7E;
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
}

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

body {
  background-color: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.insta-wrapper {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 100;
}

.insta-label {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--encre);
  transform: rotate(-4deg);
  display: inline-block;
  line-height: 1;
}

.insta-arrow {
  font-size: 1.8rem;
  display: inline-block;
  transform: rotate(-10deg) translateY(2px);
}

.insta-link {
  opacity: 1;
  transition: opacity 0.2s;
}

.insta-link:hover { opacity: 0.75; }

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

.site-logo {
  display: block;
  width: 250px;
  height: 250px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.site-subtitle {
  margin-top: 0.6rem;
  font-family: 'Kalam', cursive;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--encre);
  line-height: 1.2;
}

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

.site-nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dk);
  text-decoration: none;
  padding: 0 1rem;
  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: 1.5rem 0 6rem;
}

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

.post-bandeau {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.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.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.post-item h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.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.92rem;
  color: var(--gris);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.read-more {
  font-size: 0.75rem;
  font-weight: 500;
  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: 0 0 2rem;
  text-align: center;
}

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

.article-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
  max-width: 560px;
  margin: 0 auto 1.2rem;
}

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

/* 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.65;
}

.article-body p        { margin-bottom: 1.3rem; }
.article-body h2       { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 2.5rem 0 0.8rem; line-height: 1.2; }
.article-body h3       { font-family: var(--serif); font-size: 1.15rem; font-style: italic; font-weight: 400; margin: 2rem 0 0.6rem; color: var(--gris); }
.article-body blockquote {
  border-left: 2px solid var(--sage);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 1.8rem 0;
  color: var(--gris);
  font-style: italic;
  line-height: 1.55;
}
.article-body ul, .article-body ol { margin: 0.8rem 0 1.3rem 1.5rem; }
.article-body li { margin-bottom: 0.3rem; }
.article-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.8rem 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: 2.5rem 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.article-body th,
.article-body td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--beige);
  text-align: left;
  vertical-align: top;
}
.article-body th {
  font-weight: 500;
  font-family: var(--sans);
  color: var(--gris);
}
.article-body tr:nth-child(even) td { background: rgba(232,224,208,0.25); }

/* ── Commentaires ── */
.comments-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--beige);
}

#cusdis_thread iframe {
  width: 100%;
  overflow: hidden;
}

/* ── Retour liste ── */
.back-link {
  display: inline-block;
  margin-top: 3.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  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.75rem;
  letter-spacing: 0.06em;
  color: var(--gris);
}

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