/* Wrapper principal */
.techprog_wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  /*background-color: #1a1a1a;*/
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  border-radius: 10px;
}

/* Rows */
.techprog_row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.techprog_col {
  flex: 1;
}

.techprog_dates_row {
  .techprog_col:last-child {
    justify-content: flex-end;
    flex-grow: 0;
    display: flex;
  }
}
/* Groupe de boutons dates */
.techprog_btn_group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.techprog_btn {
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px 10px;
  color: #616865;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.techprog_btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.techprog_btn.active {
  border-color: #0F1214;
  /*background-color: rgba(147, 51, 234, 0.1);*/
  color: #0F1214;
}

/* Groupe input recherche */
.techprog_input_group {
  position: relative;
  display: flex;
  align-items: center;
  width: 320px;
  justify-content: flex-end;
  border: 1px solid #0F1214;
  border-radius: 8px;
}

.techprog_input {
  --form_bg_color: transparent;
  padding: 12px 15px 12px 45px !important;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #0F1214;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 14px;
  transition: all 0.3s ease;
}

.techprog_input::placeholder {
  color: #616865;
}

.techprog_input:focus {
  outline: none;
  border-color: #9333ea;
  background-color: rgba(255, 255, 255, 0.15);
  color: #0F1214 !important;
}

.techprog_input_group .fa-search {
  position: absolute;
  left: 15px;
  color: #0F1214;
  pointer-events: none;
  font-size: 16px;
}

/* Panneaux collapse (filtres) */
.techprog_collapse {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 20px;
}

.techprog_collapse_btn {
  display: flex;
  flex-direction: row;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: none;
  color: #000000;
  font-size: 16px;
  /* font-weight: 600; */
  cursor: pointer;
  padding: 10px 15px;
  text-align: left;
  transition: opacity 0.3s ease;
}

.techprog_collapse_btn:hover,
.techprog_collapse_btn.has-choices {
  opacity: 0.8;
}

.techprog_collapse_btn img {
  width: 24px;
  height: 24px;
  /* filter: brightness(0) invert(1); */
}

.techprog_collapse_content {
  display: none;
  flex-direction: column;
  margin-top: 10px;
  overflow: hidden;
}

.techprog_collapse_content.is-open,
.techprog_collapse.is-open .techprog_collapse_content {
  display: flex;
}

/* Checkboxes */
.techprog_checkbox {
  display: flex;
  /*border: 2px solid #0F1214;*/
  background-color: transparent;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 12px;
  background-color: #0F121433;
}

.techprog_checkbox:last-child {
  margin-bottom: 0;
}

.techprog_checkbox:hover:not(.is_checked) {
  background-color: rgba(0, 0, 0, 0.2);
}

.techprog_checkbox.is_checked:hover {
  background-color: #0F121433;
}

.techprog_checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #9333ea;
  flex-shrink: 0;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  border: 1px solid #000;
  border-radius: 4px;
  position: relative;
}

.techprog_checkbox.is_checked {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: #0F121433;
}

.techprog_checkbox input[type="checkbox"]:checked {
  background-color: white;
  background-image: url("../../../assets/check-stroke.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.techprog_checkbox span {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  flex: 1;
}

/* Styles spécifiques pour les checkboxes colorées (Filter by block) */
.techprog_checkbox.colorB1 {
  background-color: #00AEFF;
}

.techprog_checkbox.colorB2 {
  background-color: #00AEFF;
}

.techprog_checkbox.colorB3 {
  background-color: #00AEFF;
}

.techprog_checkbox.colorB4 {
  background-color: #00AEFF;
}

.techprog_checkbox.colorB5 {
  background-color: #00AEFF;
}

/* Bordure bleue pointillée pour les checkboxes sélectionnées */
/* .techprog_checkbox.colorB1 input[type="checkbox"]:checked,
.techprog_checkbox.colorB2 input[type="checkbox"]:checked,
.techprog_checkbox.colorB3 input[type="checkbox"]:checked,
.techprog_checkbox.colorB4 input[type="checkbox"]:checked,
.techprog_checkbox.colorB5 input[type="checkbox"]:checked {
  outline: 2px dashed #3b82f6;
  outline-offset: 2px;
} */

/* Responsive */
@media (max-width: 992px) {
  .techprog_row {
    flex-direction: column;
  }

  .techprog_btn_group {
    justify-content: flex-start;
  }

  .techprog_btn {
    padding: 8px;
    font-size: 13px;
  }

  .techprog_col {
    width: 100%;
  }
  .techprog_dates_row {
    .techprog_col:last-child {
      justify-content: flex-start;
      flex-grow: 1;
      display: flex;
    }
  }
}

/* Encart "Aucun résultat" */
.techprog_no_results {
  display: none;
  padding: 60px 20px;
  background-color: #1a1a1a;
  border-radius: 10px;
  text-align: center;
  margin-top: 30px;
}

.techprog_no_results.show {
  display: block;
}

.techprog_no_results_content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.techprog_no_results_icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  animation: techprog_pulse 2s ease-in-out infinite;
}

@keyframes techprog_pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.techprog_no_results_icon svg {
  width: 100%;
  height: 100%;
}

.techprog_no_results_message {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 !important;
  line-height: 1.4;
}

.techprog_no_results_hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0 !important;
  line-height: 1.5;
}
