/* Dégradé + zoom sur les cards des actualités */
.card-overlay-and-zoom {
  position: relative;
  overflow: hidden;
}

.card-overlay-and-zoom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}

.card-overlay-and-zoom:hover::before {
  transform: scale(1.1);
}

.card-overlay-and-zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-primary), transparent);
  pointer-events: none;
  z-index: 1;
}

.card-overlay-and-zoom>* {
  position: relative;
  z-index: 2;
}

/* Pagination sur la page Actualités */
.bricks-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bricks-pagination ul.page-numbers li:has(.current),
.bricks-pagination ul.page-numbers li:not(:first-child):not(:last-child) {
  display: none;
}

.bricks-pagination ul.page-numbers li:has(.next) {
  margin-left: auto;
}

.bricks-pagination ul.page-numbers .prev,
.bricks-pagination ul.page-numbers .next {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0;
  color: transparent;
}

.bricks-pagination ul.page-numbers .prev::before {
  content: '←';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 35px;
  border: 5px solid #1B2A4A;
  font-size: 26px;
  font-weight: 700;
  color: #1B2A4A;
  flex-shrink: 0;
}

.bricks-pagination ul.page-numbers .prev::after {
  content: 'PAGE PRÉCÉDENTE';
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: #1B2A4A;
  font-family: "Tiltwarp", sans-serif;
}

.bricks-pagination ul.page-numbers .next::before {
  content: 'PAGE SUIVANTE';
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: #1B2A4A;
  font-family: "Tiltwarp", sans-serif;
}

.bricks-pagination ul.page-numbers .next::after {
  content: '→';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 35px;
  border: 5px solid #1B2A4A;
  font-size: 26px;
  font-weight: 700;
  color: #1B2A4A;
  flex-shrink: 0;
  padding-left: 25px;
  padding-right: 25px;
}

.bricks-pagination ul.page-numbers .prev:hover::before {
  background: #E54528;
  border-color: #E54528;
  color: #fff;
  box-shadow: inset 0 0 0 52px #E54528;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bricks-pagination ul.page-numbers .next:hover::after {
  background: #E54528;
  border-color: #E54528;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bricks-pagination ul.page-numbers .prev::before,
.bricks-pagination ul.page-numbers .next::after {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Css pour les boutons 'Retourner aux actualités' et 'Voir l'actualité suivante' */
#brxe-qfnzvz .next-post {
  display: flex;
  align-items: center;
  padding: 0px 20px;
  border: 5px solid var(--color-primary);
  border-radius: 35px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#brxe-qfnzvz .next-post::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-secondary);
  z-index: -1;
  transition: width 0.3s ease;
}

#brxe-qfnzvz .next-post:hover::before {
  width: 100%;
}

#brxe-qfnzvz .next-post:hover {
  border-color: var(--color-secondary);
  color: white;
}

#brxe-qfnzvz .next-post:hover .title,
#brxe-qfnzvz .next-post:hover .label {
  color: white;
}

#brxe-qfnzvz .prev-post {
  display: none !important;
}

#brxe-qfnzvz {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

@media (max-width: 991px) {
  .brxe-post-navigation .next-post {
    justify-content: center;
  }
}

#brxe-qfnzvz .bricks-swiper-button-next i {
  display: none;
}

/* Si le bouton dans la page détail des actus est vide, on ne l'affiche pas */
#brxe-rbsjck:empty {
  display: none;
}

#brxe-fypfss .bricks-search-form {
  position: relative;
}

#brxe-fypfss .bricks-search-form button[type="submit"] {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}

#brxe-fypfss input[type="search"] {
  padding-left: 40px;
}

.tri-dropdown {
  position: relative;
  user-select: none;
}

.tri-dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 0px;
  border: 5px solid var(--color-primary);
  border-radius: 999px;
  font-family: "Tilt Warp", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  background: white;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease, border-color 0.2s ease;
  transform: translateZ(0);
}

.tri-dropdown-selected::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-primary);
  z-index: -1;
  transition: width 0.3s ease;
  will-change: width;
}

.tri-dropdown-selected:hover::before {
  width: 100%;
}

.tri-dropdown-selected:hover {
  color: white;
  border-color: var(--color-primary);
}

.tri-dropdown-selected:hover svg {
  stroke: white;
}

.tri-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  background: white;
  border: 5px solid var(--color-primary);
  border-radius: 16px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tri-dropdown-menu.open {
  display: block;
}

.tri-dropdown-menu li {
  padding: 12px 20px;
  font-family: "Tilt Warp", sans-serif;
  font-size: 15px;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.tri-dropdown-menu li:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.tri-dropdown-menu li.active {
  font-weight: 700;
  color: var(--color-primary);
}

#brxe-eycryr .card-overlay-and-zoom {
  cursor: pointer;
}

@media (max-width: 991px) {

  #brxe-uirron,
  .tri-dropdown {
    width: 100%;
  }

  .tri-dropdown-selected {
    width: 100%;
    justify-content: center;
  }

  .tri-dropdown-menu {
    width: 100%;
  }
}

#brxe-eycryr {
  overflow: hidden;
}

@media (max-width: 1200px) {
  #brxe-eycryr {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.card-overlay-and-zoom .bricks-button {
  white-space: nowrap;
}