/* =============================================================================
   /blog/ (Elementor page #280) + COMPOSANT « carte d'article » (.post-cards / .post-card)
   La carte est partagée par /blog/, /category/<slug>/ et le bloc « Autres articles » des
   articles (pageCss: [blog, …]). Source : Elementor Pro widget-posts.min.css, skin
   « cards », réglages post-280 / post-150 / post-113 (ratio 0.66, mobile 0.5,
   rayon 20px, ombre, dégradé au survol).
   ========================================================================== */

/* --- Grille (elementor-grid-N : 3 / tablette 2 / mobile 1) ------------------ */
.post-cards {
  --card-ratio: .66;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 35px;
  align-items: stretch;
}
.post-cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .post-cards, .post-cards--2 { grid-template-columns: repeat(1, 1fr); --card-ratio: .5; }
}

/* --- Carte ------------------------------------------------------------------ */
.post-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; }
.post-card__inner {
  position: relative; display: flex; flex-direction: column; width: 100%; min-height: 100%;
  overflow: hidden; background-color: #fff; border-radius: var(--radius-card);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15); transition: all .25s;
}
.post-card__inner:hover { box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15); }

/* Vignette : boîte au ratio fixe, image centrée qui couvre la boîte.
   Elementor choisit en JS « hauteur 100 % » (image plus large que la boîte) ou
   « largeur 100 % + 1px » ; max() donne le même résultat sans JS.
   --ar = largeur/hauteur du fichier de la vignette (posé en style inline). */
.post-card__thumb-link { position: relative; display: block; width: 100%; margin-bottom: 20px; transition: none; }
.post-card__thumb-link::after {
  content: ""; position: absolute; bottom: 0; display: block; width: 100%; height: 100%;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 75%); background-repeat: no-repeat;
  opacity: 1; transition: all .3s ease-out;
}
.post-card__inner:hover .post-card__thumb-link::after { opacity: .5; }
.post-card__thumb { position: relative; overflow: hidden; padding-bottom: calc(var(--card-ratio) * 100%); transform-style: preserve-3d; }
.post-card__img {
  position: absolute; left: calc(50% + 1px); top: calc(50% + 1px);
  display: block; max-width: none; max-height: none; height: auto;
  width: max(calc(100% + 1px), calc(100% * var(--card-ratio) * var(--ar, 1.7778)));
  transform: scale(1.01) translate(-50%, -50%); transition: filter .3s;
}

/* Texte */
.post-card__text { display: block; flex-grow: 1; width: 100%; margin: 20px 0 0; padding: 0 30px; }
.post-card__title { font-size: 21px; margin: 0 0 25px; }
.post-card__excerpt { line-height: 1.7; margin-bottom: 25px; }
.post-card__excerpt p { color: #777; font-size: 14px; line-height: 1.5em; margin: 0; }
.post-card__more {
  display: inline-block; margin-bottom: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.post-card__meta {
  margin-top: auto; padding: 15px 30px; border-top: 1px solid #eaeaea;
  color: #adadad; font-size: 12px; line-height: 1.3em;
}

/* --- Page /blog/ (section 53e6cd0 : padding 4em 0 6em ; titre : padding-bas 2em) --- */
.p-blog { padding: 4em 0 6em; }
.p-blog__title { text-align: center; padding-bottom: 2em; }

/* Pagination (numéros, centrée) : n'apparaît que s'il y a plus d'une page */
.post-pagination { text-align: center; }
.post-pagination .page-numbers:not(:first-child) { margin-left: 5px; }
.post-pagination .page-numbers:not(:last-child) { margin-right: 5px; }
