
.price-slider-simple {
  padding: 12px 0;
  position: relative;
}

/* Affichage du prix */
.price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.price-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.price-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  background: linear-gradient(to right, #fef3c7, #fbbf24);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  min-width: 80px;
  text-align: center;
}

/* Conteneur du slider */
.slider-container {
  position: relative;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  margin: 24px 0 12px;
}

/* Piste colorée du slider */
.slider-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  border-radius: 2px;
  width: 100%;
}


.simple-slider {
  position: absolute;
  top: -8px;
  width: 100%;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  margin: 0;
  z-index: 2;
}


.simple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f59e0b;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.simple-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f59e0b;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

/* Effets au survol et au focus */
.simple-slider::-webkit-slider-thumb:hover {
  background: #fbbf24;
  transform: scale(1.1);
}

.simple-slider::-moz-range-thumb:hover {
  background: #fbbf24;
  transform: scale(1.1);
}

.simple-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
  background: #fbbf24;
}

.simple-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
  background: #fbbf24;
}

/* Étiquettes de prix min/max */
.price-range {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Animation pour le changement de valeur */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.price-value.updating {
  animation: pulse 0.3s ease-in-out;
}

/* Responsive design */
@media (max-width: 640px) {
  .price-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .price-value {
    align-self: flex-end;
  }
}

/* Amélioration de l'apparence générale */
.filter-group {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 16px;
  color: #374151;
}

.filter-title i {
  margin-right: 8px;
  color: #fbbf24;
  font-size: 1.1rem;
}

/* Effet de glissement pour le curseur */
.simple-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  background: #f59e0b;
  transform: scale(1.2);
}

.simple-slider:active::-moz-range-thumb {
  cursor: grabbing;
  background: #f59e0b;
  transform: scale(1.2);
}

/* Effet de transition pour la piste */
.slider-track {
  transition: width 0.2s ease;
}

/* Effet de transition pour la valeur */
.price-value {
  transition: all 0.3s ease;
}

/* Effet de survol sur la valeur */
.price-value:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Effet de pulsation lors de la mise à jour */
@keyframes track-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.slider-track.updating {
  animation: track-pulse 0.3s ease-in-out;
}

/* Styles améliorés pour les filtres */
.filter-checkbox {
  display: flex;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-bottom: 2px;
  position: relative;
}

.filter-checkbox:hover {
  background-color: #f9fafb;
  padding-left: 8px;
}

.filter-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #d1d5db;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.filter-checkbox input[type="checkbox"]:checked {
  background-color: #fbbf24;
  border-color: #f59e0b;
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox.active {
  background-color: #fef3c7;
  padding-left: 8px;
  font-weight: 500;
}

/* Compteur de résultats */
.results-counter {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.results-counter.highlight {
  background-color: #fbbf24;
  transform: scale(1.1);
}

/* Boutons de filtres */
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 16px;
}

.filter-header i {
  margin-right: 8px;
  color: #fbbf24;
}

.reset-btn {
  font-size: 0.75rem;
  color: #6b7280;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background-color: #f3f4f6;
  color: #4b5563;
}

.reset-btn i {
  margin-right: 4px;
  color: #6b7280;
}

.apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  color: #7c2d12;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.apply-btn:hover {
  background: linear-gradient(to right, #f59e0b, #d97706);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.apply-btn i {
  margin-right: 8px;
}

/* Animation pour le bouton d'application */
@keyframes pulse-effect {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.pulse-effect {
  animation: pulse-effect 0.3s ease-in-out;
}

/* Animation pour le bouton de réinitialisation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.5s linear;
}

/* Style pour le sidebar mobile */
@media (max-width: 1023px) {
  .filter-section-modern {
    padding: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  .filter-header {
    padding-top: 0;
  }
}