.allmembers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.members {
  width: 300px;
  margin-bottom: 20px;
  margin-right: 20px;
  position: relative;
}

.members article {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  margin: 16px; /* Marge autour de chaque article */
  width: 100%; /* Remplir la largeur du conteneur parent */
}

.members article a::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

.members article h2 {
  margin: 0 0 18px 0;
  font-family: "montserrat", cursive;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: black;
  transition: color 0.3s ease-out;
}

.members figure {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 250px; /* Hauteur ajustée pour mieux afficher les images */
  overflow: hidden;
  position: relative;
}

.members article img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure que l'image couvre entièrement le conteneur */
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.members article:hover img {
  transform: scale(1.05); /* Légère zoom au survol */
}


.members .article-body {
  display: none; /* Cacher la description par défaut */
  transition: display 0.3s ease;
}

.members article.active .article-body {
  display: inline;; /* Afficher la description quand l'article est actif */
}

.members article a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000000;
}

.members article a:focus {
  outline: 1px dotted #000000;
}

.members article a .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

.members article:has(:hover, :focus) {
  --img-scale: 1.1;
  --title-color: #28666e;
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

@media screen and (max-width: 960px) {
  .members article {
    container: card/inline-size;
  }
  .members .article-body p {
    display: none;
  }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.memberstitle {
  position: relative;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vmax;
  height: 11vh;
  font-family: "Bebas Kai";
  font-size: 4em;
  color: black;
  margin-bottom: 10%;
}

.memberstitle:before,
.memberstitle:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #000000;
}

.memberstitle:before {
  bottom: 0;
  left: 0;
}

.memberstitle:after {
  top: 0;
  left: 0;
}

.description {
  color: #000000;
  margin: 5px;
}

.h2.gest {
  margin: 100px;
}

.center-container {
  justify-content: center;
  align-items: center;
  width: auto;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .home_description {
    padding: 10px;
  }

  .allmembers {
    padding: 10px;
  }
}

