/* CSS Actualités */



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

  border-radius: var(--radius-m);

  width: 100%;
  max-width: 300px;



}

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

  border: 10px solid #FFF;
  border-bottom: 0;
}

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

  border-radius: 5px 5px 0 0;
}

/* 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;
  border-radius: 0 var(--radius-m) 0 0;

  position: relative;
}

.actualite-teaser__date-wrapper {
  position: relative;
  width: fit-content;
}
.actualite-teaser__date-wrapper::before,
.actualite-teaser__date-wrapper::after {
  display: block;
  content: '';
  width: 15px;
  height: 15px;
  background-image: url(../../images/icons/radius--white.svg);
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
}

.actualite-teaser__date-wrapper::before {
  left: 10px;
  top: -15px;
}
.actualite-teaser__date-wrapper::after {
  right: -15px;
  bottom: 0px;
}

.actualite-teaser__date::before {
  content: url('../../images/icons/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: #67707C;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  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: -66px;
  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--2);
  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-m);
  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;
}

.actualite-teaser__cta .cta--white {
  padding: 6px 6px 6px 12px;
}


/* Slider desktop */
@media (min-width: 1000px) {

  .actualite-teaser__wrapper {
    max-width: unset;
  }

  .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%;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__image {
    border-radius: var(--radius-xl) var(--radius-m) var(--radius-m) var(--radius-m);
    border: 10px solid #FFF;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__date {
    border: 1px solid #E7F0F3;
    border-radius: unset;
  }

  .actualite-slider .swiper-slide:first-child .actualite-teaser__date-wrapper::before,
  .actualite-slider .swiper-slide:first-child .actualite-teaser__date-wrapper::after {
    display: none;
  }

  /* 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;
    padding: 8px;
  }



  .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;
  }
}

@media all and (min-width:1250px) {
  .actualite-teaser__date-wrapper::after {
    right: -14px;
    bottom: 5px;
  }
}


.actualite--teaser-block-homepage .more-link {
  z-index: 2;
  position: relative;
  display: flex;
  justify-content: center;
}

.actualite--teaser-block-homepage .more-link a {
  display: flex;
  padding: 12px 12px 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border-radius: var(--radius-m);
  background: var(--color-secondary--4);

  width: fit-content;
  color: var(--color-neutral);

  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 25.2px */
}


.actualite--teaser-block-homepage .more-link a::after {
  display: block;
  content: '';
  width: 40px;
  height: 40px;
  padding: 4px 5px;
  background-color: var(--color-white);
  border-radius: var(--radius-m);

  background-image: url(../../images/icons/arrow-right.svg);
  background-position: center;
  background-repeat: no-repeat;
}



.actualite--teaser-block-homepage .more-link a:hover {
  background-color: var(--color-white);
  border-radius: var(--radius-m);
  border: 1px solid #DBE1E6;
}

.actualite--teaser-block-homepage .more-link a:hover::after {
  background-color: var(--color-secondary--4);
}
