.partners-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eaeaea;
  padding: 2% 0;
}

.partners-container {
  width: 85%;
  max-width: 1200px;
}

.partners-title {
  color: #6c6f72;
  font-size: 1.5rem;
  margin-bottom: 3%;
  font-weight: 500;
  text-align: center;
}

.partners-title span {
  color: #e65F0d;
  font-size: 2.2rem;
  font-weight: bolder;
}

.partners-grid {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Alignement vertical centré */
  gap: 30px; /* Espace entre les blocs partenaires */
}

.partner-item {
  flex: 0 1 200px; /* largeur de base à 200px, responsive */
  max-width: 200px;
  height: 200px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}


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

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}


@media (max-width: 1024px) {
  .partners-section {
    padding-bottom: 10%;
  }
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .partner-item {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .partners-container {
    width: 90%;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .partner-item {
    width: 150px;
    height: 150px;
    padding: 15px;
  }

  .partners-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .partners-title span {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .partner-item {
    width: 120px;
    height: 120px;
    padding: 10px;
  }

  .partners-title {
    font-size: 1rem;
  }

  .partners-title span {
    font-size: 1.5rem;
  }
}
