/* Styles généraux */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  text-align: center;
  margin: 0;
}

section h2 {
  font-size: 2rem;
  font-weight: bold;
  padding-top: 20px;
}

section .team {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  padding-bottom: 50px;
}

/* Style des cartes */
section .card {
  position: relative;
  width: 40%;
  min-width: 40%;
  min-height: 45%;
  /* Fixe la hauteur des cartes */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Image dans la carte */
section .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Effet sombre sur toute la carte */
section .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Noir semi-transparent */
  z-index: 1;
}

/* Bloc texte (overlay) */
section .overlay {
  width: 100%;
  color: white;
  padding: 20px;
  text-align: left;
  box-sizing: border-box;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Le contenu commence en haut */

  /* L'overlay occupe toute la hauteur de la carte */
  padding-bottom: 30px;
  /* Ajout d'un peu de padding en bas pour ne pas que le texte soit collé */
}

/* Titre */
section .overlay h3 {
  margin: 0;
  font-size: 1.4rem;
  /* Taille uniforme des titres */
  font-weight: bold;
  padding-bottom: 10px;
  /* Espace entre le titre et le texte */
}

/* Paragraphe */
section .overlay p {
  margin: 0;
  padding-top: 10px;
  /* Espace entre le titre et le texte */
  max-width: 90%;
  /* Limite la largeur du texte */
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.8rem;
}

footer {
  text-align: left;
}

footer h3 {
  text-align: center;
}

@media screen and (max-width: 770px) {
  section .card {
    width: 80%;
  }
}
