:root {
  --speed: 40s; /* Vitesse légèrement plus lente pour les grandes images */
  --size: 300px; /* Taille demandée */
}

.brand-section-light {
  padding: 80px 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

.brand-slider {
  display: flex;
  position: relative;
  /* Fondu sur les bords */
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  gap: 30px;
}

.row-1 { animation: scroll-left var(--speed) linear infinite; }
.row-2 { animation: scroll-right var(--speed) linear infinite; }

.brand-section-light:hover .brand-track {
  animation-play-state: paused;
}

.brand-item {
  width: var(--size);
  height: var(--size);
  background: #ffffff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.5s ease;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Effet au survol du conteneur */
.brand-section-light:hover .brand-item:not(:hover) {
  opacity: 0.5;
  filter: grayscale(1);
}

.brand-item:hover {
  transform: translateY(-15px) scale(1.05);
  border-color: #000; /* Bordure noire au survol pour le style */
  box-shadow: 0 30px 50px rgba(0,0,0,0.1);
  z-index: 10;
}

.brand-item img {
  width: 100%;
  height: 200px; /* Espace pour le logo */
  object-fit: contain; /* Respecte les proportions de vos JPG */
}

.brand-item span {
  margin-top: 20px;
  font-family: 'Helvetica', sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 15px)); }
}

@keyframes scroll-right {
  0% { transform: translateX(calc(-50% - 15px)); }
  100% { transform: translateX(0); }
}