/* =====================================================
   Shortcode [actualites] — Grille filtrée + AJAX
===================================================== */

/* ---- Wrapper ---- */
.actus-wrap {
  width: 100%;
}

/* ---- Barre de filtre ---- */
.actus-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.actus-wrap .actus-filter__btn {
  font-family: "Loos_bold", sans-serif;
  font-size: 0.92rem;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--muted7);
  border-radius: 50px;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}

.actus-wrap .actus-filter__btn:hover {
  background: var(--muted7);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.actus-wrap .actus-filter__btn.is-active {
  background: var(--muted7);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.actus-wrap .actus-filter__btn.is-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ---- Grille ---- */
.actus-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

/* ---- Card ---- */
.actu-card-v2 {
  display: flex;
  flex-direction: column;
}

/* Media (image + flèche) */
.actu-card-v2__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  text-decoration: none;
}

.actu-card-v2__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .32s ease;
}

.actu-card-v2__media:hover .actu-card-v2__img {
  transform: scale(1.04);
}

.actu-card-v2__img--placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-muted, #e9e2d8);
}

/* Flèche positionnée en bas-droite de l'image */
.actu-card-v2__arrow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* Corps de la card */
.actu-card-v2__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.actu-card-v2__title {
  font-family: "Loos_bold", sans-serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
}

.actu-card-v2__title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.actu-card-v2__title a:hover {
  color: var(--color-primary, #4678B9);
}

.actu-card-v2__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "poppins_regular", sans-serif;
  font-size: 0.82rem;
  color: #a0a0a0;
}

.actu-card-v2__sep {
  color: #d0d0d0;
}

.actu-card-v2__btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Loos_bold", sans-serif;
  font-size: 0.9rem;
  color: #4678B9; /* bleu primaire fixe — indépendant de la page */
  text-decoration: none;
  transition: opacity .15s ease;
}

.actu-card-v2__btn::after {
  content: '→';
  font-size: 1em;
}

.actu-card-v2__btn:hover {
  opacity: 0.65;
}

/* ---- Charger plus ---- */
.actus-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.actus-wrap .actus-loadmore {
  font-family: "Loos_bold", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 3rem;
  background: transparent;
  color: #1a1a1a;
  border: 2px solid var(--muted7);
  border-radius: 50px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}

.actus-wrap .actus-loadmore:hover {
  background: var(--muted7);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.actus-wrap .actus-loadmore:disabled {
  opacity: 0.4;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ---- État chargement ---- */
.actus-wrap.is-loading .actus-grid-v2 {
  pointer-events: none;
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 900px) {
  .actus-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}

@media (max-width: 560px) {
  .actus-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .actus-filter {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .actus-filter__btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}
