/* Style général de la section des clients */
.container {
  width: 90%;
  margin: 0 auto;
  padding-top: 50px;
  text-align: center;
}

.clients-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e1c70;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(-20px);
}

/* Grille des clients - Alignement horizontal */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
}

/* Carte client */
.client-card {
  background-color: #fff;
  width: 250px;
  height: 350px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Fait en sorte que le texte soit en bas */
  align-items: center; /* Centre le contenu horizontalement */
  overflow: hidden;
  transform: translateY(20px);
  animation-delay: 0.2s;
}


/* Conteneur d'image pour mieux gérer les tailles */
.client-card img {
  display: block;
  width: 80%; /* Limite la largeur à 80% */
  max-width: 100%; /* Si l'image est plus petite, elle reste à sa taille */
  height: 80%; /* Limite la hauteur à 80% */
  object-fit: contain; /* Garde les proportions sans déformation */
  object-position: center; /* Centre l'image dans son conteneur */
  margin: 0 auto; /* Centre l'image horizontalement */
  transition: transform 0.3s ease;
}

/* Animation hover pour les images */
.client-card img:hover {
  transform: scale(1.1); /* Légère échelle lors du survol */
}

/* Texte dans la carte - En bas de la carte */
.client-card p {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  margin-top: 20px; /* Espacement entre l'image et le texte */
  text-align: center;
  transform: translateY(20px);
  animation-delay: 0.4s;
}


/* Effet de survol sur la carte */
.client-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.client-card:hover img {
  opacity: 0.9;
}

/* Responsivité */
@media (max-width: 768px) {
  .clients-title {
    font-size: 1.5rem;
  }

  .client-card {
    padding: 15px;
    width: calc(50% - 20px); /* Deux cartes par ligne avec un petit espace */
    height: 280px;
    flex-basis: calc(50% - 20px);
  }
}
