/* FILTRES - MULTI (BeRocket) */

/* Masquage fiable utilisé par le JS */
.bapf_dropdown .bapf_body li.bapf-search-hide,
.bapf_dropdown .bapf_body ul.bapf-search-ul-hide {
  display: none !important;
}

/* === Dropdown compact (le JS ajoute .bapf_dropdown sur chaque filtre) === */
.bapf_dropdown {
  position: relative;
  width: fit-content;
  margin-right: 10px;
}

/* Le header = le bouton */
.bapf_dropdown .bapf_head {
  border: 1px solid var(--main-green);
  background: #fff;
  border-radius: 2px;
  padding: 15px 15px;
  cursor: pointer;
  border-radius: var(--radius);
}

.bapf_dropdown .bapf_head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: "Open Sans", sans-serif;
  padding-right: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 0 !important;
  font-weight: 700;
  color: var(--main-green);
}

.bapf_dropdown .bapf_head i {
  transition: transform 0.2s ease;
}

/* Le panneau déroulant */
.bapf_dropdown .bapf_body {
  position: absolute;
  left: 0;
  top: calc(100% + 0px);
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}
.filtres_formations .bapf_body li {
  padding-right: 15px !important;
}
/* Recherche */
.bapf_dropdown .bapf_term_search {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 6px 0 10px;
  z-index: 10;
}

.bapf_dropdown .bapf_term_search input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 14px;
}

/* Items */
.bapf_dropdown .bapf_body li {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.bapf_dropdown .bapf_body li:last-child {
  border-bottom: 0;
}

.bapf_dropdown .bapf_body label {
  font-size: 14px;
  cursor: pointer;
}

.bapf_dropdown .bapf_body input[type="checkbox"] {
  margin-right: 10px;
  transform: translateY(1px);
}

/* Indentation enfants (structure imbriquée ul > li) */
.bapf_dropdown .bapf_body ul {
  margin: 0;
  padding-left: 18px;
}
.bapf_dropdown .bapf_body > ul {
  padding-left: 0; /* top-level */
}

/* Ouverture */
.bapf_dropdown.bapf_colaps_active .bapf_body,
.bapf_dropdown.bapf_opened .bapf_body,
.bapf_dropdown.opened .bapf_body,
.bapf_dropdown.active .bapf_body,
.bapf_dropdown:focus-within .bapf_body,
.bapf_dropdown:hover .bapf_body {
  display: block;
}

/* Chevron */
.bapf_dropdown.bapf_colaps_active .bapf_head i,
.bapf_dropdown.bapf_opened .bapf_head i,
.bapf_dropdown.opened .bapf_head i,
.bapf_dropdown.active .bapf_head i {
  transform: rotate(180deg);
}

/* Mise en page zone filtre  */

.module_code_group_filtres .et_pb_code_inner {
  /* display: grid; */
  /* grid-template-columns: 1fr 1fr 1fr; */
  /* gap: 35px; */
  display: flex;
  flex-wrap: wrap;
}

/* ajout Chevron dropdown  */
.filter_dropdown {
  position: relative;
}
.filter_dropdown::after {
  content: "";
  position: absolute;
  background: url(/wp-content/uploads/2026/01/chevron-bas.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 12px;
  width: 12px;
  right: 14px;
  top: 16px;
}
.berocket_single_filter_widget {
  display: flex;
  align-items: center;
}
/* wrap filter  */
.filter_wrap .bapf_body ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  padding-bottom: 0 !important;
}
.filter_wrap_formations_b2c .bapf_body ul li:nth-child(1),
.filter_wrap_formations_b2c .bapf_body ul li:nth-child(2) {
  display: none !important;
}
.bapf_sfilter {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* reinitialiser  */
.bapf_sfilter.bapf_button_dark_rounded .bapf_button {
  border-radius: var(--radius) !important;

  font-size: 14px;
  line-height: 1;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* padding-bottom: 0 !important; */
  font-weight: 700;
  height: 45px;
}
/* Search bar  */

#et-boc .aws-container .aws-search-form .aws-form-btn,
#et-boc .aws-container .aws-search-field {
  border: none;
}

.aws-container .aws-search-form {
  height: 45px;
  /* border-radius: 2px !important; */
  border: 1px solid var(--main-green);
  overflow: hidden;
  border-radius: var(--radius) !important;
}
.aws-search-field {
  border-right: 1px solid #111;
}

/* prix  */
.filter_custom_price .bapf_from,
.filter_custom_price .bapf_to {
  margin-top: 30px;
  position: relative;
  border: 1px solid #7c7c7c;
  padding: 10px 4px;
}

.filter_custom_price .bapf_from::after,
.filter_custom_price .bapf_to::after {
  color: white;
  background-color: #111;
  font-size: 10px;
  padding: 0 5px;
  position: absolute;
}
.filter_custom_price .bapf_from::after {
  content: "Prix à partir de";
  left: -1px;
  top: -28px;
}

.filter_custom_price .bapf_to::after {
  content: "Prix jusque";
  right: -1px;
  left: unset;
  top: -28px;
}

/* form checkout  */

.select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0.14em !important;
}
/* Mobile */
@media (max-width: 767px) {
  .bapf_dropdown {
    max-width: 100%;
  }
  .bapf_dropdown .bapf_body {
    width: 100%;
    left: 0;
  }
}

/* .filter_add_search */
