/* =========================================================
   Arc de Vie — Actualités (partie publique)
   Complément à assets/style.css : cartes d'articles,
   article complet, pagination. Charte et accessibilité
   identiques au site (grande typo, contrastes soignés).
   ========================================================= */

.blog-head { padding-bottom: 1.5rem; }

/* ------- Grille & cartes d'articles ------- */
.blog-grid { align-items: stretch; }

.post-card { padding: 0; overflow: hidden; display: flex; }
.post-card-link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; width: 100%;
}
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--vert-pale); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.04); }

.post-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.post-meta {
  font-family: var(--sans); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.78rem; color: var(--or);
}
.post-card-title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.25; color: var(--vert-fonce); }
.post-card-excerpt { color: var(--gris); font-size: 1rem; flex: 1; }
.post-card-more { color: var(--vert); font-weight: 700; margin-top: 0.2rem; }
.post-card-link:hover .post-card-more { text-decoration: underline; }

/* Premier article en vedette (pleine largeur, en 2 colonnes) */
@media (min-width: 760px) {
  .post-card-feature { grid-column: 1 / -1; }
  .post-card-feature .post-card-link { flex-direction: row; }
  .post-card-feature .post-card-media { flex: 0 0 45%; aspect-ratio: auto; }
  .post-card-feature .post-card-body { justify-content: center; padding: 2rem 2.2rem; }
  .post-card-feature .post-card-title { font-size: 1.9rem; }
  .post-card-feature .post-card-excerpt { font-size: 1.12rem; }
}

/* ------- Pagination ------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pager-info { color: var(--gris); font-weight: 600; }

/* ------- Article complet ------- */
.post-single-head { text-align: center; margin-bottom: 1.6rem; }
.post-single-head h1 { margin: 0.4rem 0 0.6rem; }
.post-byline { color: var(--gris); font-weight: 600; }

.post-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; max-height: 460px; object-fit: cover; }

/* Typographie de lecture confortable (public senior/malvoyant) */
.post-content { font-size: 1.18rem; line-height: 1.85; color: var(--encre); }
.post-content > * + * { margin-top: 1.15rem; }
.post-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2rem; }
.post-content h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-top: 1.8rem; }
.post-content a { color: var(--vert); font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.4rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-inline: auto; }
.post-content figure { margin: 1.6rem 0; }
.post-content figcaption { text-align: center; color: var(--gris); font-size: 0.95rem; margin-top: 0.5rem; }
.post-content blockquote {
  border-left: 5px solid var(--vert-clair); background: var(--vert-pale);
  margin: 1.6rem 0; padding: 1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--vert-fonce); font-style: italic;
}
.post-content pre {
  background: #23302a; color: #eaf3ee; padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.95rem;
}
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Navigation entre articles */
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 1.5rem; flex-wrap: wrap; }
.post-nav-link {
  display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem; max-width: 48%; transition: var(--transition); color: inherit;
}
.post-nav-link.next { text-align: right; margin-left: auto; }
.post-nav-link:hover { box-shadow: var(--shadow-sm); border-color: var(--vert-clair); }
.post-nav-dir { color: var(--or); font-weight: 700; font-size: 0.85rem; }
.post-nav-title { color: var(--vert-fonce); font-weight: 600; }
.post-back { text-align: center; margin-top: 1rem; }
@media (max-width: 620px) {
  .post-nav-link { max-width: 100%; }
}
