/* =========================
   Carrousel style hero avec type
========================= */
.view-news {
  max-width: 100%;
  margin: 0 auto;
}

.view-news .splide__slide {
  position: relative;
  overflow: hidden;
}

.view-news .slide__media img {
  width: 100%;
  height: 500px; /* hauteur fixe comme ton exemple */
  object-fit: cover;
  display: block;
}

/* --- Texte sur l'image --- */
.view-news .slide__caption {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: var(--space-lg);
  max-width: 500px;
  color: var(--color-light);
  background: rgba(0, 0, 0, 0.4);
}

.view-news .views-field-type {
  font-size: var(--text-lg);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.view-news .views-field-title {
  font-size: var(--text-xxl);
  font-weight: bold;
  margin-bottom: var(--space-sm);
}

.view-news .views-field-title a {
  color: var(--color-light);
}

.view-news .slide__caption p {
  font-size: var(--text-md);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* --- Bouton "En savoir plus" --- */
.view-news .views-field-view-node a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  color: var(--color-light);
  text-decoration: none;
  font-size: var(--text-xl);
  font-weight: 500;
  transition: background-color var(--transition-base);
}

.view-news .views-field-view-node a::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f138";
  margin-left: var(--space-sm);
  color: var(--color-secondary);
}

.view-news .views-field-view-node a:hover {
  color: var(--color-dark-secondary);
  font-weight: bold;
}

.view-news .views-field-view-node a:hover::after {
  color: var(--color-dark-secondary);
  transform: scale(1.5);
  font-weight: bold;
}

/* --- Pagination à droite --- */
.view-news .splide__pagination {
  right: var(--space-md);
  left: auto;
}

.view-news .splide__pagination__page {
  background: var(--color-light);
  opacity: 0.7;
}

.view-news .splide__pagination__page.is-active {
  background: var(--color-secondary);
  opacity: 1;
}

/* --- Cacher le bouton lecture/pause --- */
.view-news .splide__toggle {
  display: none !important;
}
