/* cacher car pas de categories pour l'instant */
.filter-articles {
  display: none !important;
}

/* ***************************************** */



.filter-articles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 12px auto 24px auto;
  width: 70%;
  flex-wrap: wrap;
}

.derniers_articles-surtitre {
  font-size: 0.8rem;
  font-weight: 400;
  padding-bottom: 16px;
  color: black;
  margin: 0;
  position: relative;
  width: fit-content;
  padding: 0 24px 16px 24px;
}

.derniers_articles-surtitre::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  bottom: 0;
  left: calc(50% - 25px);
  height: 2px;
  background-color: var(--main-red);
}

.filter-articles a {
  padding: 8px 16px;
  background-color: #2BA6F0;
  border-radius: 4px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.filter-articles a.active {
  background-color: black;
  color: white;
  cursor: not-allowed;
  pointer-events: none;
}

.filter-articles a.active:hover {
  cursor: not-allowed;
  pointer-events: none;
}


.filter-articles a:hover {
  background-color: #1E8BC3;
}

.post-header-with-featured-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.post-featured-image-as-background {
  width: 100%;
  height: 100%;
}

.post-featured-image-as-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-titre-article>h1 {
  font-weight: 700;
  font-size: 62px;
  text-align: left !important;
  line-height: 1.4;
}

.post-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 2rem;
}

.post-title-overlay h1 {
  color: white;
  text-align: center;
  margin: 0;
}



.derniers_articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24%;
  margin-bottom: 3%;
  align-items: center;
  justify-content: center;
}

.image-annotation-text-cta-articles {
  margin: 36px auto 0 auto;
}

.titre_derniers_articles-title {
  font-weight: 700;
  font-size: 42px;
}

/*.derniers_articles .swiper {
  border: blue solid;
  max-width: 100%;
}*/

/*.swiper-horizontal {
  touch-action: pan-y;
}*/

.derniers_articles_item {
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  min-height: 405px;
  background-color: #fff;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  margin: 0 10px;
  height: 100%;
  /*  max-width: 373.33px;*/
  /* width: calc((100% - 40px)/3); */
}

@media (max-width: 1600px) {

  .derniers_articles h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 1200px) {
  .filter-articles {
    width: 92%;
  }
}

.derniers_articles_item_img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.item_imga img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

/*.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}*/

.itemderniers_articles {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
  margin: 0;
}

/*
.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}*/

.derniers_articles_item_texts_container {
  padding: 30px;
  display: flex;
  flex-direction: column;
  margin-top: 3%;
  gap: 20px;
}



.derniers_articles_item_texts_container .category {
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.derniers_articles_item_texts_container .category>a,
.derniers_articles_item_texts_container .category>span {
  border: 1px solid #8c8c8c;
  color: #8c8c8c;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.derniers_articles_item_texts_container .category>a:hover,
.derniers_articles_item_texts_container .category>span:hover {
  color: #fff;
  background-color: #000;
}

.derniers_articles_item_title a {
  font-weight: 400;
  font-size: 1.3rem;
  color: #000;
  text-decoration: none;
  transition: color .3s ease;
  line-height: 1.2;
}

.derniers_articles_down {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 18px;
}

.derniers_articles_item_date {
  padding: 14px;
  border: 1px solid black;
  font-size: 16px;
  border-radius: 12px;
  width: fit-content;
  border-radius: 120px;
  margin-bottom: 12px;
}

/*.swiper-button-next_article img {
  background-color: black !important;
  padding: 20px 12px;
  border-radius: 30px;
  cursor: pointer;
}

.swiper-button-prev_article img {
  padding: 20px 12px;
  border-radius: 30px;
  cursor: pointer;
  border: 1px solid black;
}*/

#swiper-nav-container-articles {
  width: 45%;
}

.derniersArticlesList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 95%;
  margin: auto;
  gap: 16px;
}

.derniersArticlesSwiper {
  position: relative;
  width: 85%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  gap: 20px;
  flex-direction: column;
  padding-bottom: 6%;
}

.container_button_article {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  margin-top: 35px;
}

.derniers_articles .pretitleLastArticles {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 300;
}

.derniers_articles h2 {
  margin-top: 0;
  font-size: 2.2rem;
}

.articleArrowLeft {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_left.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.articleArrowLeft:hover {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_right_blk.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.articleArrowRight {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_left.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.articleArrowRight:hover {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_right_blk.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(0deg);

}

.derniers_articles .articleArrowLeft {
  top: 96% !important;
  left: 40rem !important;
}

.derniers_articles .articleArrowRight {
  top: 96% !important;
  left: 43rem !important;
}


@media (max-width:767px) {
  .category {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .derniers_articles h2 {
    margin-top: 0;
    font-size: 2rem;
    text-align: center;
  }

  .derniers_articles_item_texts_container {
    padding: 12px;
  }
}

@media (max-width: 1600px) {
  .derniers_articles_item_title a {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .derniers_articles {
    margin-top: 7%;
  }

  .derniersArticlesSwiper {
    width: 70%;
  }

  #swiper-nav-container-articles {
    width: 20%;
  }

  .derniersArticlesList {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 70%;
    margin: auto;
    gap: 48px 24px;
  }
}

@media screen and (min-width: 1200px) {
  #swiper-nav-container-articles {
    width: 13%;
  }

  .category-item-article-tag {
    font-size: 12px !important;
  }
}






/* Pagination */

.paginationBlog {
  margin-top: 25px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.current {
  color: var(--main-red);
  border-bottom: var(--main-red) solid 5px;
  text-align: center;
}

.page-numbers {
  color: rgb(70, 70, 70);
  width: 40px;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
}