/* Logo Carousel - Bandeau défilant des logos clients */

/* Section conteneur */
.references-section {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  padding: 1.5rem 0 1rem;
  margin: 0;
  overflow: hidden;
  max-width: 100vw;
}

/* Collé au footer - annule le margin-top du footer */
.references-section + .footer,
.references-section + footer {
  margin-top: 0 !important;
}

/* Version fixe en bas de page (pour index.html) */
.references-section.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}

/* Titre de la section */
.references-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin: 0 0 1.5rem 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Conteneur du carrousel */
.logo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

/* Track du carrousel avec animation infinie */
.logo-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: scroll-logos 40s linear infinite;
  will-change: transform;
}

/* Pause au survol */
.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

/* Items du carrousel */
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  height: 60px;
  min-width: 150px;
}

.logo-item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(127, 111, 75, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(127, 111, 75, 0.2);
}

.logo-item img {
  max-width: 130px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Animation de défilement */
@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .references-section {
    padding: 1.5rem 0 1rem;
  }

  .references-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .logo-track {
    gap: 2rem;
    animation: scroll-logos 25s linear infinite;
  }

  .logo-item {
    min-width: 110px;
    height: 50px;
    padding: 0.5rem 1rem;
  }

  .logo-item img {
    max-width: 90px;
    max-height: 35px;
  }
}
