/**
 * Style pour le défilement des marques de moteurs
 * Version compatible avec tous les appareils
 */

.brands-section {
  width: 100%;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
  position: relative;
  overflow: hidden;
}

.brands-section h3 {
  margin-bottom: 0.5rem;
}

.brands-container {
  position: relative;
  overflow: hidden;
  height: 60px;
  margin-bottom: 0.5rem;
}

.brands-slider {
  display: flex;
  position: absolute;
  white-space: nowrap;
  height: 100%;
  align-items: center;
  padding: 0 10px;
  left: 0; /* Position initiale pour le JavaScript */
  transition: none; /* Pas de transition CSS, tout est géré par JS */
}

.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  margin: 0 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-height: 44px;
  line-height: 1.3;
}

.brand-item:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
}

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
  .brands-container {
    height: 50px;
  }
  
  .brand-item {
    padding: 6px 12px;
    margin: 0 5px;
    font-size: 0.8rem;
    min-height: 36px;
  }
}
