.profil-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #4da798;
  color: white;
}

.profil-container-title,
.no-profil {
  font-weight: bold;
  font-family: var(--font-secondary);
  font-size: 3rem;
}

.no-profil {
  text-align: center;
  font-family: var(--font-primary);
  line-height: 4rem;
}

.profil-container-main {
  margin-top: 40px;
  font-family: var(--font-primary);
}

.profil-container-main > p {
  font-size: 2.7rem;
  margin-bottom: 10px;
  font-weight: bold;
}
.profils {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 868px;
  gap: 2rem;
  font-size: 2.2rem;
  font-weight: bold;
}

.profil {
  width: 420px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--profil-background-color);
  color: var(--primary);
  text-decoration: none;
  border-radius: 40px;
}

.profil:hover {
  transform: scale(1.03);
}

.profils-triangle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.profil-pair {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.img-etudiant,
.img-professeur {
  width: 110px;
  height: 80px;
}

.img-admin,
.img-directeur {
  width: 70px;
  height: 80px;
}

@media (max-width: 1150px) {
  .profils {
    flex-direction: column;
    align-items: center;
    width: fit-content;
    gap: 1.5rem;
    padding: 0 1rem;
    transition: top 0.5s ease, opacity 0.5s ease;
    position: relative;
    top: 0;
    opacity: 1;
  }

  .profil-container-title {
    font-size: 2.5rem;
    text-align: center;
    padding: 0 1rem;
  }

  .profil-container-main {
    font-size: 2rem;
  }
  
  .profil-container-main > p{
    text-align: center;
  }

  .profil-pair {
    flex-direction: column;
  }

  .profil {
    font-size: 2rem;
  }

  .img-etudiant,
  .img-professeur,
  .img-admin,
  .img-directeur {
    width: 80px;
    height: 70px;
  }
}
