/* =========================================================
   PAGE NEWS — slider vidéo + fil d'articles
   ========================================================= */

/* Slider plus bas que le hero d'accueil */
.hero--news {
  min-height: max(36vh, 360px);
}

/* La slide active est en flux : la bannière grandit avec son contenu
   et ne passe jamais sous le header */
.hero--news .hero-slide {
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 60px;
}

.hero--news .hero-slide.active {
  position: relative;
  min-height: inherit;
}

.hero--news .hero-content {
  max-width: 720px;
}

.hero--news .hero-dots {
  bottom: 24px;
}

.news-kicker {
  margin-bottom: 14px;
}

.hero--news h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 14px;
}

.hero--news .hero-text {
  max-width: 560px;
  font-size: 16px;
  margin-bottom: 20px;
}

/* ---------- Fil ---------- */
.news-feed {
  padding: var(--space-section) 0;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-tabs button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  color: var(--grey);
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.news-tabs button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.news-tabs button.active {
  color: #0a0a0a;
  background: var(--green);
  border-color: var(--green);
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card.entering {
  animation: cardIn 0.45s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Article mis en avant : plus large sur 2 colonnes */
.news-card.featured {
  grid-column: span 2;
}

.news-card.featured .news-media {
  aspect-ratio: 16 / 7;
}

.news-card.featured .news-body h3 {
  font-size: 22px;
}

.news-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey);
  margin: -6px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-cat {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--green);
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.news-more .btn-ghost {
  height: 44px;
  padding: 0 32px;
}

.news-more[hidden] {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero--news {
    min-height: max(40vh, 340px);
  }

  .hero--news .hero-slide {
    padding-bottom: 64px;
  }

  .news-feed {
    padding: 64px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* la grille remplace le défilement horizontal de l'accueil */
  .news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .news-grid .news-card {
    flex: none;
  }

  .news-card.featured {
    grid-column: auto;
  }

  .news-card.featured .news-media {
    aspect-ratio: 16 / 10;
  }

  .news-card.featured .news-body h3 {
    font-size: 18px;
  }
}
