/* Carrousel horizontal des marques */
.brands-container {
  background-color: transparent;
  border-radius: 0;
  padding: 20px 0;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-shadow: none;
}

.brands-scroll-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 20px;
  scroll-behavior: smooth;
  width: 100%;
}

/* Scrollbar - masquée par défaut */
.brands-scroll-wrapper::-webkit-scrollbar { 
  height: 8px; 
  opacity: 0;
  transition: opacity 0.3s ease;
}
.brands-scroll-wrapper::-webkit-scrollbar-track { 
  background: transparent; 
  border-radius: 4px; 
}
.brands-scroll-wrapper::-webkit-scrollbar-thumb { 
  background: transparent; 
  border-radius: 4px; 
  transition: background 0.3s ease;
}
.brands-scroll-wrapper::-webkit-scrollbar-thumb:hover { 
  background: #a0a0a0; 
}

/* Afficher la scrollbar au hover/focus */
.brands-scroll-wrapper:hover::-webkit-scrollbar,
.brands-scroll-wrapper:focus-within::-webkit-scrollbar {
  opacity: 1;
}
.brands-scroll-wrapper:hover::-webkit-scrollbar-track,
.brands-scroll-wrapper:focus-within::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.brands-scroll-wrapper:hover::-webkit-scrollbar-thumb,
.brands-scroll-wrapper:focus-within::-webkit-scrollbar-thumb {
  background: #c0c0c0;
}

.brand-item {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px 12px;
  min-width: 150px;
  max-width: 180px;
  flex-shrink: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-item:hover { border-color: transparent; box-shadow: none; }

.brand-image { max-width: 100%; max-height: 50px; object-fit: contain; }

.brand-label { font-size: 0.9rem; color: #333; margin-top: 8px; font-weight: 500; }

/* Masquer l'ancien affichage par catégories */
.marques-liste .marque-categorie { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .brands-container { margin: 15px 0; padding: 16px 0; }
  .brands-scroll-wrapper { gap: 12px; padding: 6px 14px; }
  .brand-item { min-width: 130px; }
  .brand-label { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .brands-container { margin: 12px 0; padding: 12px 0; }
  .brands-scroll-wrapper { gap: 10px; padding: 6px 12px; }
  .brand-item { min-width: 120px; }
  .brand-image { max-height: 44px; }
  .brand-label { font-size: 0.8rem; }
}