/* Mobile first */
.profile__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 1rem;
  min-height: 60vh;
  align-items: center;
}

.profile_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 100px;
  transition: transform 0.2s ease-in-out;
}

.profile_card:hover {
  transform: scale(1.1);
}

.profile_card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s ease-in-out;
}

.profile_card:hover img {
  border-color: var(--color-fg, #ffffff);
}

.profile_card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-dark, #808080);
  text-transform: capitalize;
  transition: color 0.2s ease-in-out;
}

.profile_card:hover p {
  color: var(--color-fg, #ffffff);
}

/* Tablette */
@media (min-width: 600px) {
  .profile_card {
    width: 120px;
  }

  .profile_card img {
    width: 100px;
    height: 100px;
  }

  .profile_card p {
    font-size: 1rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .profile__list {
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .profile_card {
    width: 150px;
  }

  .profile_card img {
    width: 120px;
    height: 120px;
  }

  .profile_card p {
    font-size: 1.2rem;
  }
}
