/* Styles propres à la page news_grid.php (déplacés depuis le fichier PHP, sans modification). */
    /* ===== NEWS GRID ===== */



.news-hero {
  position: relative;
  overflow: hidden;
  height: 450px;            /* <-- tu forces directement la hauteur */
  display: flex;            /* pour centrer proprement */
  align-items: center;
  justify-content: center;
  margin-top: 0;            /* au cas où */
}

.news-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 400px at 10% -10%, rgba(255,64,129,.25), transparent 60%),
    linear-gradient(135deg, #ff4081 0%, #2b0a1c 35%, #121212 65%, #000 100%);
  filter: saturate(105%);
  opacity: .95;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.news-hero__icon {
  font-size: 28px;    /* réduit pour ne pas casser la hauteur */
  margin-bottom: 2px;
}

.news-hero h1 {
  font-size:clamp(22px, 3vw, 32px); /* mini mais pro */
}

.news-hero__tagline {
  font-size: .8rem;
  margin-top: 2px;
  opacity: 0.75;
}

/* ======== GRILLE D’ACTUALITÉS – STYLE MAGAZINE ======== */

.news-content {
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 36px;
  justify-content: center;
}
/* === NEWS CARD — Figaro-like dark box === */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #151515;            /* dark editorial */
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  transition: transform .28s ease, box-shadow .28s ease;
  min-height: 320px;
}

/* full-card link that covers the card (keeps semantics separate) */
.news-card__link {
  position: absolute;
  inset: 0;
  z-index: 4;
  text-decoration: none;
  /* keep it visible for keyboard users with focus */
}
.news-card__link:focus-visible {
  outline: 3px solid rgba(255,64,129,0.14);
  outline-offset: 6px;
  border-radius: 12px;
}

/* IMAGE */
.news-card__img {
  position: relative;
  height: 210px;               /* editorial proportion */
  overflow: hidden;
  background: #111;
  flex: 0 0 auto;
}
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(.2,.9,.2,1), filter 0.5s ease;
  filter: saturate(1.02) contrast(1.03);
}
.news-card:hover .news-card__img img {
  transform: scale(1.04);
}

/* subtle gradient overlay on the image (discrete) */
.news-card__img-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.32), rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}

/* BODY (content) */
.news-card__body {
  position: relative;
  z-index: 3;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

/* TITLE */
.news-card__body h2 {
  font-family: 'Oswald', 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
  color: #ffffff;
  letter-spacing: .2px;
}

/* EXCERPT */
.news-card__excerpt {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: .95rem;
  line-height: 1.4;
  max-height: 4.2em;          /* ~3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* FOOTER: meta + chevron */
.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.news-card__meta {
  font-size: .85rem;
  color: rgba(255,255,255,0.55);
}

/* chevron style — discreet */
.news-card__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.9);
  transition: transform .22s ease, background .22s ease, color .22s ease;
  pointer-events: none; /* decorative because link covers card */
}
.news-card:hover .news-card__chev {
  transform: translateX(6px);
  background: rgba(255,255,255,0.04);
}

/* hover card lift */
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

/* responsive adjustments */
@media (max-width: 950px) {
  .news-card__img { height: 200px; }
  .news-card { min-height: unset; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-card__img { height: 180px; }
  .news-card__body { padding: 14px; }
  .news-card__chev { width: 30px; height: 30px; }
}

/* ======= LOAD MORE ======= */
.news-loadmore {
  text-align: center;
  margin-top: 3.5rem;
}

.loadmore-btn {
  background: linear-gradient(135deg,#ff4081,#7c1f3e);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.loadmore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,64,129,.35);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 950px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
  }
  .news-card__img {
    height: 220px;
  }
}
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .news-card__img {
    height: 200px;
  }
}
