.partners-section {
  padding: 20vh 0 10vh 0;
  width: 100%;
  background-color: #FF660A;
  color: white;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
}

.partners-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  text-align: center;
  margin-bottom: 2.5rem;
}

.partners-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.partners-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.3s ease;
  padding: 0 40px;
}

.partner-item {
  flex: 0 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border-radius: 8px;
  min-width: calc(25% - 20px);
  width: calc(25% - 20px);
  height: 100px;
  margin: 0 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-sizing: border-box;
  opacity: 1;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-logo {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.partner-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.partner-name {
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Style spécifique pour l'affichage des logos comme dans l'image */
/* Tablettes */
@media (min-width: 768px) and (max-width: 991px) {
  .partner-item {
    background-color: transparent;
    min-width: calc(25% - 20px);
    width: calc(25% - 20px);
    flex: 0 0 calc(25% - 20px);
  }
  
  .partner-logo {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
}

/* Grands écrans */
@media (min-width: 992px) {
  .partner-item {
    background-color: transparent;
    min-width: calc(25% - 20px);
    width: calc(25% - 20px);
    flex: 0 0 calc(25% - 20px);
    height: 100px;
    padding: 1rem;
    margin: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
  }
  
  .partner-logo {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
}

/* Navigation arrows */
.partners-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.partners-nav-arrow:hover {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.partners-nav-prev {
  left: 0;
}

.partners-nav-next {
  right: 0;
}

.partners-nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Pour les écrans plus petits */
@media (max-width: 767px) {
  .partners-nav-arrow {
    width: 30px;
    height: 30px;
  }
  
  .partners-nav-arrow svg {
    width: 15px;
    height: 15px;
  }
}

/* Classes de débogage */
.debug-no-partners {
  color: #ff0000;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
}
