/* Effet Mère — styles propres au blog (complète style.css, même palette) */

.nav-links a[aria-current="page"] { color: var(--rose); }
.mobile-menu a[aria-current="page"] { color: var(--rose); }

/* ---------- Liste ---------- */
.blog-intro { padding-bottom: 8px; }
.blog-intro .lede { max-width: 60ch; margin-bottom: 0; }
.blog-list { padding-top: 24px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(125, 33, 64, .45); }
.post-card-media { aspect-ratio: 16 / 10; background: var(--bg-soft); position: relative; overflow: hidden; }
.post-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--bg-soft), var(--rose-soft));
}
.post-card-placeholder span { font-family: var(--script); color: #fff; font-size: 2.4rem; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body time { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.post-card-body h2 { font-size: 1.22rem; margin: 6px 0 10px; }
.post-card-body h2 a { color: var(--rose-deep); }
.post-card-body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 14px; }
.post-card-more { margin-top: auto; font-size: .9rem; font-weight: 500; color: var(--rose); }
.post-card .stretched-link::after { content: ""; position: absolute; inset: 0; }

.blog-empty { text-align: center; max-width: 560px; margin: 20px auto 0; }
.blog-empty p { margin-left: auto; margin-right: auto; }

.blog-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.blog-pager-info { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Article ---------- */
.post-wrap { max-width: 760px; }
.post-head { padding-bottom: 18px; }
.post-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.post-meta { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.post-meta a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.post-cover { margin: 0 0 8px; }
.post-cover img { width: 100%; height: auto; max-height: 520px; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }

.post-content { padding-top: 22px; padding-bottom: 8px; font-size: 1.06rem; line-height: 1.75; }
.post-content p, .post-content li { max-width: none; }
.post-content h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin: 1.6em 0 .55em; }
.post-content h3 { font-size: 1.22rem; margin: 1.4em 0 .5em; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; color: var(--rose-deep); }
.post-content ul, .post-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.post-content li { margin-bottom: .35em; }
.post-content ul li::marker { color: var(--rose); }
.post-content blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--rose-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--rose-deep);
}
.post-content img { width: 100%; height: auto; border-radius: 16px; margin: 1.4em 0; }

.post-author {
  margin: 28px 0 8px;
  padding: 20px 24px;
  background: var(--sage-soft);
  border-radius: 16px;
  font-size: .95rem;
}
.post-author p { margin: 0; max-width: none; }
.post-author p + p { margin-top: 10px; font-size: 0.92em; }
.post-author a { text-decoration: underline; text-underline-offset: 2px; }

.blog-related h2 { margin-bottom: 26px; }
.blog-related .post-card-body p { display: none; }

.preview-banner {
  background: var(--sage);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 500;
}

@media (max-width: 780px) {
  .post-content { font-size: 1.02rem; }
  .blog-pager { justify-content: center; }
}
