/* Styles propres au Journal. Tout le reste (variables, typo, en-tête, pied de page,
   page-hero, boutons, cta-band) vient de /assets/css/style.css du site principal. */

/* --- Liste des numéros --------------------------------------------------- */
.post-list { display: grid; gap: clamp(24px, 3vw, 36px); }
.post-card {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.post-card:not(:has(.post-card-cover)) { grid-template-columns: minmax(0, 1fr); }
.post-card-cover img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.post-card-body { padding: clamp(24px, 4vw, 44px); }
.post-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .35em; }
.post-card h2 a { text-decoration: none; transition: color .3s var(--ease); }
.post-card h2 a:hover { color: var(--gold-deep); }
.post-card p { color: var(--muted); }

/* --- Métadonnées et tags ------------------------------------------------- */
.post-meta {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.page-hero .post-meta { color: var(--gold-soft); }
.post-draft { background: var(--gold); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.post-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--charcoal);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.post-tags a:hover { border-color: var(--gold); color: var(--gold-deep); }

/* --- Article ------------------------------------------------------------- */
.post { max-width: 720px; margin-inline: auto; }
.post-prose { font-size: 1.125rem; }
.post-prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 1.8em; }
.post-prose h2:first-child { margin-top: 0; }
.post-prose h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-top: 2.2em; }
.post-prose a { color: var(--gold-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-prose a:hover { color: var(--ink); }
.post-prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--gold);
  font-family: var(--font-display); font-size: 1.6rem; font-style: italic; line-height: 1.35; color: var(--charcoal);
}
.post-prose blockquote p:last-child { margin: 0; }
.post-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.8em 0; }
.post-prose img { border-radius: var(--radius); margin: 1.6em 0; }
.post-prose ul, .post-prose ol { padding-left: 1.2em; }
.post-prose li { margin-bottom: .4em; }
.post-prose li::marker { color: var(--gold); }

/* --- Numéro précédent / suivant ------------------------------------------ */
.post-pager {
  max-width: 720px; margin: clamp(56px, 8vw, 88px) auto 0; padding-top: 32px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.post-pager a { text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; }
.post-pager a:hover { color: var(--gold-deep); }
.post-pager span { display: block; font: 700 .75rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.post-pager-next { text-align: right; }

@media (max-width: 760px) {
  .post-card { grid-template-columns: minmax(0, 1fr); }
  .post-card-cover img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-pager { grid-template-columns: 1fr; }
  .post-pager-next { text-align: left; }
}

/* --- En-tête d'article épuré --------------------------------------------- */
.post-hero { padding-block: clamp(120px, 15vw, 170px) clamp(48px, 6vw, 72px); }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 20ch; text-wrap: balance; }
.post-hero .lead { max-width: 56ch; }
.post-back {
  display: inline-block; margin-bottom: 22px; text-decoration: none;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft);
}
.post-back:hover { color: var(--gold); }
.post-hero-date { margin: 22px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* --- Pied d'article ------------------------------------------------------ */
.post-footer {
  margin-top: clamp(40px, 6vw, 56px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.post-footer p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --- Photos dans l'article ----------------------------------------------- */
.post-figure { margin: 2em 0; }
.post-prose .post-figure img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); margin: 0; }
.post-figure figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.post-credits p + p { margin-top: 4px; font-size: .85rem; }

/* --- Filtres par thème --------------------------------------------------- */
.post-filters { margin-bottom: clamp(28px, 4vw, 40px); }
.post-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.post-filters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--charcoal);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.post-filters a:hover { border-color: var(--gold); color: var(--gold-deep); }
.post-filters a span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.post-filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.post-filters a[aria-current] span { color: var(--gold-soft); }

/* --- Pagination ---------------------------------------------------------- */
.post-pagination {
  margin-top: clamp(40px, 6vw, 56px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.post-pagination ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.post-pagination ol a, .post-pagination ol span {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--charcoal);
}
.post-pagination ol a:hover { background: var(--white); color: var(--gold-deep); }
.post-pagination ol span[aria-current] { background: var(--ink); color: var(--ivory); }
.post-pagination-newer, .post-pagination-older { font-weight: 600; text-decoration: none; color: var(--gold-deep); }
.post-pagination-older { justify-self: end; }
.post-pagination-newer:hover, .post-pagination-older:hover { color: var(--ink); }

@media (max-width: 560px) {
  .post-pagination { grid-template-columns: 1fr 1fr; }
  .post-pagination ol { grid-column: 1 / -1; grid-row: 1; }
}
.post-filters details { margin-top: 12px; }
.post-filters details ul { margin-top: 12px; }
.post-filters summary { cursor: pointer; width: fit-content; font-size: .88rem; font-weight: 600; color: var(--gold-deep); }
.post-filters summary:hover { color: var(--ink); }
