:root {
  --color-primary: rgb(51, 73, 96);
  --color-primary-light: rgb(79, 134, 194);
}

*,
::before,
::after {
  box-sizing: inherit;
  margin: 0px;
  padding: 0px;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  color: black;
  font-weight: 300;
  line-height: 1.1;
  font-family: "Roboto", sans-serif;
}

.section_membres {
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container_membres {
  width: 1280px;
  min-height: 100%;
}

.category {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 50px;
}

.box_title_category {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}


.line_category img {
  width: 350px;
  height: 100%;
  object-fit: cover;
}

.membres-liste {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  gap: 64px;
}

.membre {
  position: relative;
  width: 590px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box_photo_membre {
  width: 200px;
  height: 100%;
}

.photo_membre {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.box_info_membre {
  width: 400px;
  height: 100%;
  padding: 16px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}


/* .box_info_membre {
  padding: 16px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box_nom_roles{
  position: relative;
  left: 50%;
  top: 5%;
  transform: translate(-50%,-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

} */
.name_membre {
  font-size: 24px;
  font-weight: 600;
}

.list_roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.badge_role {
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon_badge_role {
  width: 100%;
  height: 100%;
}

.role_membre {
  font-size: 16px;
  font-weight: 400;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 360px;
  background-color: #cccccc;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.description_membre {
  font-size: 16px;
  font-weight: 700;
  margin-top: 16px;
}

.date_ajout_membre {
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
}

.anecdote {
  font-size: 16px;
  font-weight: 400;
  margin-top: auto;
  font-style: italic;
  gap: 5px;
}

.anecdote::before {
  content: "Anecdote: ";
  font-size: 16px;
  font-weight: 600;
}

@media only screen and (max-width: 1280px) {
  .box_title_category {
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
  }

  .line_category img {
    width: 25vw;
  }

  .membres-liste {
    grid-template-columns: repeat(1, 1fr);
  }

  .membre:nth-child(1){
    margin-top: 60px;
  }

  .box_info_membre {
    
    padding: 16px;
    padding-top: 20px;
    padding-bottom: 30px;
    width: 300px;
    height: 325px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .box_nom_roles{
    position: absolute;
    left: 50%;
    top: -10%;
    transform: translate(-50%,-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

  }

}

@media only screen and (max-width: 720px) {
  .membres-liste {
    gap: 1rem;
    height: max-content;
  }

  .category {
    margin-top: 5rem;
    margin-bottom: 50px;
  }

  .box_title_category {
    justify-content: center;
    gap: 1rem;
  }

  .membre {
    width: 80%;
    height: 275px;
  }

  .box_photo_membre {
    width: 125px;
  }

  .box_info_membre {
    width: 275px;
  }

  .membre:nth-child(1){
    margin-top: 40px;
  }

  .box_info_membre {
    
    padding: 16px;
    padding-top: 20px;
    padding-bottom: 30px;
    width: 300px;
    height: 325px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .box_nom_roles{
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%,-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

  }

  
.list_roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

  .badge_role {
    width: 12px;
    height: 12px;
  }

  .role_membre {
    font-size: 12px;
  }

  .description_membre {
    font-size: 12px;
  }

  .date_ajout_membre {
    font-size: 12px;
  }

  .anecdote {
    margin-top: 2rem;
    font-size: 12px;
  }

  .anecdote::before {
    font-size: 12px;
  }
}


@media only screen and (max-width: 500px) {

  .box_title_category {
    gap: .5rem;
  }

  .box_photo_membre {
    width: 110px;
    padding: 10px;
  }

  .box_info_membre {
    padding: 10px;
  }
}