/* CSS Actualités */

/* Container principal */
.actualite-teaser__wrapper {
  /* padding: 1rem; */
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Image */
.actualite-teaser__image {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
}

.actualite-teaser__image img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Container du contenu */
.actualite-teaser__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Date */
.actualite-teaser__date {
  font-size: var(--content-size--s);
  color: var(--color-tertiary--dark);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.actualite-teaser__date::before {
  content: url('../../images/actualite/icon-agenda.svg');
  display: inline-block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.actualite-teaser__date time {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: lowercase;
}

.actualite-teaser__date time:nth-of-type(2)::before {
  content: url('../../images/actualite/icon-arrow.svg');
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.3em;
  vertical-align: middle;
}

.actualite-slider .swiper-slide:not(:first-child) .actualite-teaser__wrapper {
  display: flex;
  flex-direction: column;
  padding-bottom: 2.5rem;
}


.actualite-teaser__date {
  background-color: var(--color-white);
  color: var(--color-tertiary--dark);
  padding: 1rem;
  font-size: var(--content-size--s);
  display: flex;
  align-items: center;
  gap: 0.3em;
  border: 1px solid var(--color-tertiary--xclear);
  margin-top: -73px;
  transform: translateY(0);
  width: fit-content;
}



/* Catégorie - Style par défaut (vert foncé) */
.actualite-teaser__category {
  font-size: var(--content-size--s);
  font-weight: 600;
  color: var(--color-secondary-dark);
  margin-top: 12px;
}

/* Titre */
.actualite-teaser__title {
  margin: 0.5rem 0;
  font-weight: 700;
  margin: 0;
  color: var(--color-dark);
  font-size: var(--content-size--l);
  line-height: 1.3;
  font-weight: 700;
}


/* Bouton */
.actualite-teaser__cta {
  font-size: var(--content-size--s);
  color: var(--color-tertiary--dark);
}

.actualite-teaser__category,
.actualite-teaser__title,
.actualite-teaser__cta {
  padding: 0 1rem;
  margin: 0.5rem 0;
}


/* Slider desktop */
@media (min-width: 1000px) {
  .actualite-slider .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }

  /* Premier slide - 100% de largeur */
  .actualite-slider .swiper-slide:first-child {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Slides suivants - 3 colonnes */
  .actualite-slider .swiper-slide:nth-child(n+2) {
    flex: 1 1 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
  }

  /* Masquer les boutons de navigation */
  .actualite-slider .swiper-button-next,
  .actualite-slider .swiper-button-prev {
    display: none;
  }

  /* Premier élément - layout horizontal */
  .actualite-slider .swiper-slide:first-child .actualite-teaser__wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch;
    background-color: unset;
    box-shadow: unset;
    margin-bottom: 2rem;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__image-wrapper {
    flex: 1;
    min-height: auto;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 400px;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__date {
    background: #fff;
    font-weight: 400;
    gap: 0.5em;
    margin-top: 0;
    transform: none;
  }

  .actualite-slider .swiper-slide:nth-child(2) .actualite-teaser__wrapper,
   .actualite-slider .swiper-slide:nth-child(2) .actualite-teaser__wrapper img {
    border-top-left-radius : 64px
  }
  .actualite-slider .swiper-slide:last-child .actualite-teaser__wrapper {
    border-bottom-right-radius : 64px
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__cta a {
    background-color: var(--color-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-size: var(--content-size);
  }
  .actualite-slider .swiper-slide:first-child .actualite-teaser__cta a:hover {
    background-color: #003B34;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__category {
    color: var(--color-tertiary--dark);
  }
  .actualite-slider .swiper-slide:first-child .actualite-teaser__title {
    font-size: var(--heading-size--s);
    margin-bottom: 0.5rem;
  }

  .actualite-teaser__category,
  .actualite-teaser__title,
  .actualite-teaser__cta {
    padding: 0 2rem;
  }
  .actualite-slider .swiper-slide:first-child .actualite-teaser__category,
  .actualite-slider .swiper-slide:first-child .actualite-teaser__title,
  .actualite-slider .swiper-slide:first-child .actualite-teaser__cta {
    padding: unset;
  }
}


.actualite--teaser-block-homepage .more-link {
  z-index: 2;
  position: relative;
  text-align: center;
}

.actualite--teaser-block-homepage .more-link a {
  background-color: var(--color-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.actualite--teaser-block-homepage .more-link a:hover {
  background-color: #003B34;
}
