/* ================================================================ */
/* BLOC ACCORDÉON AVEC IMAGE                                         */
/* ================================================================ */

.bloc-accordeon {
  padding: 80px 0;
  background-color: #293E2B;
}

.page-id-5429 .bloc-accordeon {
  padding: 180px 0;
}

.bloc-accordeon__titre {
  font-family: "aquavit", sans-serif;
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 1.15;
  color: #FFFCF5;
  margin: 0 0 48px;
}

/* ---------------------------------------------------------- */
/* Layout                                                      */
/* ---------------------------------------------------------- */

.bloc-accordeon__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}


/* ---------------------------------------------------------- */
/* Filtres par catégorie                                      */
/* ---------------------------------------------------------- */

.bloc-accordeon__filters-wrap {
  margin: 0 0 32px;
}

.bloc-accordeon__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bloc-accordeon__filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 252, 245, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 252, 245, 0.78);
  font-family: "Jost", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.bloc-accordeon__filter:hover,
.bloc-accordeon__filter:focus-visible {
  color: #FFFCF5;
  border-color: rgba(237, 186, 141, 0.75);
}

.bloc-accordeon__filter:focus-visible {
  outline: 2px solid #EDBA8D;
  outline-offset: 3px;
}

.bloc-accordeon__filter.is-active {
  color: #293E2B;
  background-color: #EDBA8D;
  border-color: #EDBA8D;
}

.bloc-accordeon__filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.10);
  font-size: 1.1rem;
  line-height: 1;
}

.bloc-accordeon__filter.is-active .bloc-accordeon__filter-count {
  background: rgba(41, 62, 43, 0.12);
}

.bloc-accordeon__filter-mobile {
  display: none;
}

.bloc-accordeon__filter-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 252, 245, 0.72);
  font-family: "Jost", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bloc-accordeon__select-wrap {
  position: relative;
}

.bloc-accordeon__select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-56%);
  color: #EDBA8D;
  font-size: 1.8rem;
  pointer-events: none;
}

.bloc-accordeon__select {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 11px 44px 11px 14px;
  border: 1px solid rgba(255, 252, 245, 0.22);
  border-radius: 4px;
  background-color: rgba(255, 252, 245, 0.05);
  color: #FFFCF5;
  font-family: "Jost", sans-serif;
  font-size: 1.45rem;
  cursor: pointer;
}

.bloc-accordeon__select:focus {
  outline: 2px solid #EDBA8D;
  outline-offset: 2px;
}

.bloc-accordeon__item.is-filtered-out {
  display: none;
}


/* ---------------------------------------------------------- */
/* Tag de catégorie sur chaque question                       */
/* ---------------------------------------------------------- */

.bloc-accordeon__trigger-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.bloc-accordeon__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(237, 186, 141, 0.45);
  border-radius: 999px;
  background-color: rgba(237, 186, 141, 0.06);
  color: #EDBA8D;
  font-family: "Jost", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------- */
/* Colonne gauche : accordéon                                  */
/* ---------------------------------------------------------- */

.bloc-accordeon__list {
  width: 100%;
}

.bloc-accordeon__list .bloc-accordeon__lien {
  padding-top: 48px;
}

.bloc-accordeon__item {
  border-top: 1px solid rgba(255, 252, 245, 0.18);
}

.bloc-accordeon__item:last-child {
  border-bottom: 1px solid rgba(255, 252, 245, 0.18);
}

.bloc-accordeon__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 32px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.bloc-accordeon__trigger-title {
  font-family: "aquavit", sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.2;
  color: #FFFCF5;
  transition: color 0.25s ease;
}

.bloc-accordeon__item.is-open .bloc-accordeon__trigger-title,
.bloc-accordeon__trigger:hover .bloc-accordeon__trigger-title {
  color: #EDBA8D;
}


/* Icône +/− */

.bloc-accordeon__trigger-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: #EDBA8D;
  position: relative;
}

.icon-plus,
.icon-minus {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.icon-plus {
  opacity: 1;
  transform: scale(1);
}

.icon-minus {
  opacity: 0;
  transform: scale(0.6);
}

.bloc-accordeon__item.is-open .icon-plus {
  opacity: 0;
  transform: scale(0.6);
}

.bloc-accordeon__item.is-open .icon-minus {
  opacity: 1;
  transform: scale(1);
}


/* Corps */

.bloc-accordeon__body {
  overflow: hidden;
  padding-bottom: 32px;
}

.bloc-accordeon__body[hidden] {
  display: none;
}

.bloc-accordeon__texte {
  font-family: "Jost", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 252, 245, 0.75);
  margin: 0 0 20px;
}


/* Lien */

.bloc-accordeon__lien {
  position: relative;
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFCF5;
  padding-bottom: 5px;
  margin: 0;
}

.bloc-accordeon__lien::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #EDBA8D;
}

.bloc-accordeon__lien::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #FFFCF5;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.bloc-accordeon__lien:hover::after {
  transform: scaleX(1);
}


/* ---------------------------------------------------------- */
/* Colonne droite : image                                     */
/* ---------------------------------------------------------- */

.bloc-accordeon__right {
  position: sticky;
  top: 120px;
}

.bloc-accordeon__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(255, 252, 245, 0.05);
}

.bloc-accordeon__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.bloc-accordeon__img.is-active {
  opacity: 1;
}


/* ---------------------------------------------------------- */
/* Responsive                                                  */
/* ---------------------------------------------------------- */

@media (max-width: 991.98px) {

  .bloc-accordeon__right {
    position: relative;
    top: 0;
    margin-bottom: 48px;
    order: -1;
  }

  .bloc-accordeon__titre {
    font-size: 3.6rem;
  }

}


@media (max-width: 767px) {

  .bloc-accordeon__filters {
    display: none;
  }

  .bloc-accordeon__filter-mobile {
    display: block;
  }

  .bloc-accordeon__filters-wrap {
    margin-bottom: 24px;
  }

  .bloc-accordeon {
    padding: 56px 0;
  }

  .bloc-accordeon__titre {
    font-size: 3rem;
  }

  .bloc-accordeon__trigger-title {
    font-size: 1.9rem;
  }

}