/* ==========================================================================
   TM design — Blog (thème WordPress uniquement)
   Page « Le blog » (bloc Grille des articles), catégories / recherche, page article.
   ========================================================================== */

/* ---------- Grille des articles ---------- */
.bposts { padding: 0 0 var(--section); }
.bposts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(56px, 6vw, 88px) clamp(24px, 2.5vw, 40px); }
.bposts__empty { font-size: 20px; }

.bpost { display: flex; flex-direction: column; }
.bpost__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.bpost__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bpost__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bpost__meta span:first-child { color: var(--blue); }
.bpost__title { margin-top: 12px; font-size: clamp(1.375rem, 1.9vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--black); transition: color .3s var(--ease); }
.bpost__excerpt { margin-top: 14px; font-size: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bpost__more { display: inline-flex; gap: 10px; margin-top: 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--black); }
.bpost__more span { color: var(--blue); transition: transform .4s var(--ease); }
.bpost:hover .bpost__media img { transform: scale(1.05); }
.bpost:hover .bpost__title { color: var(--blue); }
.bpost:hover .bpost__more span { transform: translateX(8px); }

/* Pagination */
.bposts__pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(64px, 8vw, 112px); padding-top: 32px; border-top: 1px solid var(--line); }
.bposts__pager .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; font-size: 16px; font-weight: 700; color: var(--black); transition: color .3s var(--ease), background-color .3s var(--ease); }
.bposts__pager a.page-numbers:hover { color: var(--blue); }
.bposts__pager .current { background: var(--blue); color: var(--white); }
.bposts__pager .dots { min-width: 24px; }

/* ---------- Accueil : bouton « Tous les articles » à droite du titre ---------- */
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* ---------- Page article : image large sous le titre ---------- */
.p-hero--article .p-hero__head { grid-template-columns: 1fr; align-items: start; gap: 0; }
.p-hero--article .p-hero__title { max-width: 1100px; font-size: clamp(2.25rem, 4.8vw, 4.75rem); line-height: 1.05; }
.p-hero__read { margin-top: 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.p-hero--article .p-hero__thumb { order: 0; width: 100%; aspect-ratio: 16 / 9; margin-top: clamp(40px, 5vw, 72px); outline: 0; background: #f2f2f2; }
.p-hero--article .p-hero__index { text-align: right; }
.p-next__title--article { font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }

@media (max-width: 1100px) {
  .bposts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bposts__grid { grid-template-columns: 1fr; }
  .p-hero--article .p-hero__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .p-hero--article .p-hero__index { text-align: left; }
}
