/* ============================================================
   Blog WordPress — styles spécifiques
   Reprend les variables et la DA de site.css (transition invisible
   entre le site statique et le blog).
   ============================================================ */

/* ---------- Grille d'articles (cartes type site) ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.post-card:hover {
  border-color: rgba(46, 108, 246, 0.4);
  background: var(--card-2);
  transform: translateY(-4px);
}
.post-card-media {
  position: relative;
  display: block;
  height: 200px;
  background: linear-gradient(150deg, #14253f, #0b1830);
  overflow: hidden;
}
.post-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.post-card-cat {
  position: absolute;
  left: 16px; top: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46, 108, 246, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 13px;
}
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.post-card-title {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.post-card-title a { color: var(--ink); transition: color 0.2s ease; }
.post-card-title a:hover { color: #9ec0ff; }
.post-card-excerpt { color: var(--muted); font-size: 0.93rem; margin-bottom: 18px; }
.post-card .textlink { margin-top: auto; align-self: flex-start; border: none; color: #9ec0ff; }
.post-card .textlink:hover { color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 50px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover { color: var(--ink); border-color: rgba(255,255,255,0.3); }
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Article seul ---------- */
.article-head { padding-bottom: 40px; }
.article-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.article-breadcrumb a { transition: color 0.2s ease; }
.article-breadcrumb a:hover { color: var(--ink); }
.article-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.article-body { padding: 0 0 clamp(60px, 8vw, 100px); }
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 44px;
  aspect-ratio: 16 / 8;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Typographie du contenu (prose) */
.prose { color: rgba(235, 242, 250, 0.82); font-size: 1.07rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-top: 1.8em;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-top: 1.6em;
  color: var(--ink);
}
.prose a { color: #9ec0ff; border-bottom: 1px solid rgba(158, 192, 255, 0.35); }
.prose a:hover { border-color: #9ec0ff; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 1.6em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(235, 242, 250, 0.9);
}
.prose img, .prose figure { border-radius: var(--radius); overflow: hidden; }
.prose figcaption { color: var(--muted-2); font-size: 0.85rem; text-align: center; margin-top: 8px; }
.prose code {
  background: rgba(255,255,255,0.07);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.prose th { background: rgba(255,255,255,0.04); color: var(--ink); font-weight: 600; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.article-tags .chip { text-decoration: none; }

.article-cta {
  margin-top: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 108, 246, 0.32);
  background: linear-gradient(160deg, rgba(46, 108, 246, 0.13), rgba(255, 255, 255, 0.02) 60%);
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.article-cta-k { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 6px; }
.article-cta p { color: var(--muted); max-width: 52ch; }

/* Liens de pagination internes à un article */
.page-links { margin-top: 30px; color: var(--muted); display: flex; gap: 8px; }
.page-links a, .page-links > span { border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 12px; }

/* Légendes & alignements WordPress */
.wp-caption-text, .gallery-caption { color: var(--muted-2); font-size: 0.85rem; text-align: center; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky .post-card { border-color: rgba(46, 108, 246, 0.4); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
