/* Main Content Styles */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .main-content {
      flex-direction: row;
  }
}

.filters-sidebar {
  width: 100%;
  display: none;
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.filters-sidebar.visible {
  transform: translateX(0);
  opacity: 1;
  display: block; /* Visible quand la classe 'visible' est ajoutée */
}

/* Ajustez la largeur des résultats quand les filtres sont visibles */
@media (min-width: 1024px) {
  .filters-sidebar.visible {
      width: 25%;
  }
  
  .filters-sidebar.visible + .results-container {
      width: 60%;
  }
}

.filter-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 1rem;
}

.filter-card:last-child {
  margin-bottom: 0;
}

.filter-card h2 {
  font-weight: 500;
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #1f2937;
}

.filter-option input[type="radio"]:focus,
.filter-option input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5);
}

.filter-option label {
  font-size: 0.875rem;
  color: #374151;
  margin-left: 0.5rem;
}

.results-container {
  width: 100%;
}

@media (min-width: 1024px) {
  .results-container {
      width: 75%;
  }
}

.results-header {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-header h2 {
  font-weight: 500;
  font-size: 1.125rem;
  color: #1f2937;
}

.results-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-results {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  padding: 2rem;
  text-align: center;
}

.no-results i {
  color: #d1d5db;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-weight: 500;
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #6b7280;
}

.initial-spacing {
  height: 300px; /* Ajustez selon vos besoins */
  display: block;
}

.initial-spacing.hidden {
  display: none;
}

/* Conteneur des boutons de filtres mobiles */
.mobile-filters-container {
  display: none;
  justify-content: space-around;
  padding: 10px 0;
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (max-width: 768px) {
  .mobile-filters-container {
    display: flex;
  }
}

.mobile-filter-btn {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-filter-btn i {
  font-size: 16px;
}

/* Panneau de filtres mobile */
.mobile-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mobile-filter-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  background: white;
  z-index: 1001;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow-y: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.mobile-filter-content {
  padding: 20px;
}

.close-mobile-filter {
  background: none;
  color: #4b5563;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .filter-option {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #eee;
  }

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  margin-right: 0.8rem;
}
}

.apply-filter-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}