.section-articles {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}

.bloc-thematique {
  display: flex;
  padding-top: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex-shrink: 0;
}

.bloc-thematique h3 {
  font-size: 30px;
  font-weight: 600;
}

.thematique-list {
  padding-left: 0;
}
.thematique-list li {
  display: flex;
  padding: 10px 15px;
  align-items: center;
  gap: 10px;
}
.thematique-list li a {
  color: black;
}
.thematique-list li a.active {
  color: #39119A;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.thematique-disclosure {
  display: none;
  width: 100%;
  position: relative;
}
.thematique-trigger {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 16px;
  padding: 0 16px 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  background: rgba(100, 69, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.thematique-trigger .thematique-current {
  display: inline-block;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thematique-trigger .chevron {
  transition: transform 0.2s ease;
}
.thematique-disclosure.open .chevron {
  transform: rotate(180deg);
}

.thematique-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(22, 27, 45, 0.18);
  max-height: 50vh;
  overflow: auto;
  padding: 8px;
  list-style: none;
  margin: 0;
  outline: none;
  display: none;
  z-index: 10;
}
.thematique-disclosure.open .thematique-panel {
  display: block;
}

.thematique-panel li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #000;
  text-decoration: none;
}
.thematique-panel li[aria-selected="true"] a {
  background: rgba(100, 69, 255, 0.12);
  font-weight: 600;
}

.bloc-articles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  flex: 1 0 0;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0;
  margin: 0;
}
.blog-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 40px;
}
.zoom-on-hover {
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  display: block;
  transition: transform 0.3s ease-in-out;
}
.blog-item-link:hover .zoom-on-hover {
  transform: scale(1.1);
}
.blog-item {
  display: flex;
  padding: 20px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 40px;
  background: #fff;
}
.blog-item a {
  display: block;
  border-radius: 40px;
}
.blog-item:hover {
  border: 1px solid #EB0042;
}
.blog-item-content {
  display: flex;
  padding: 10px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  align-self: stretch;
}
.blog-date {
  color: #515151;
  font-size: 16px;
}
.blog-title {
  font-size: 25px;
  font-weight: 600;
}
.blog-excerpt p {
  font-size: 16px;
}

.dernier-article {
  display: flex;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 0 0;
  border-radius: 50px;
  background: #DAD4F6;
}
.dernier-article h3 {
  font-size: 25px;
  font-weight: 600;
}
.dernier-article a {
  font-size: 16px;
  font-weight: 700;
  text-decoration-line: underline;
  color: #39119A;

}
.dernier-article .extrait p {
  font-size: 16px;
}
.tag-dernier-article {
  display: flex;
  padding: 3px 15px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: #fff;
}
.tag-dernier-article p {
  font-size: 15px;
  font-weight: 600;
  background: #4D2AA3;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-pagination {
  padding-bottom: 90px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.custom-pagination {
  display: flex;
  list-style-type: none;
  align-items: center;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #000;
}
.blog-pagination span.current {
  display: flex;
  height: 35px;
  padding: 0 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid #112dda;
  background: rgba(31, 114, 235, 0.1);
  color: #112dda;
}

@media (max-width: 768px) {
  .section-articles {
    flex-direction: column;
    gap: 30px;
  }

  .thematique-disclosure {
    display: block;
  }
  .thematique-list {
    display: none;
  }

  .bloc-thematique,
  .bloc-articles {
    width: 100%;
  }
  .bloc-articles {
    gap: 30px;
  }

  .blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-pagination {
    padding-bottom: 45px;
  }

  .bloc-thematique {
    padding-top: 0px;
  }
}
