/* Styles de la sidebar */

.bloc-sidebar{
  display: block;
}
.filter-sidebar {
  width: 100%;
  min-width: 300px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group.certification , .filter-group.categorie {
  max-height: 150px;     /* ou 300px, selon ton besoin */
  overflow-y: auto;      /* scroll vertical uniquement */
  overflow-x: hidden;    /* empêche le scroll horizontal */
  padding-right: 10px;   /* évite que la scrollbar cache le texte */
}


.filter-sidebar h2 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
  color: #111827;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #374151;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #1f2937;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  margin-right: 8px;
  accent-color: #2563eb;
  width: 15px;
}

.filter-button , .trie-button {
  width: 100%;
  padding: 10px;
  background-color: #2563eb;
  color: white !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.filter-button:hover {
  background-color: #1d4ed8;
}


@media (max-width: 450px) {
  .bloc-sidebar{
    display: none;
  }
  .filter-sidebar{
      width: 100% !important;
      max-width: 100% !important;
  }
  .filter-sidebar{
    display: none;
  }
}