:root {
  --radius: 20px;
  --row-member-height: 60px;
  --main-blue: #212b55;
  --light-blue: #80a8fa;
  --orange: #ff4000;
  --accent: #dcc592;
  --dark-grey: #545454;
  --light-grey: #f2f1ef;
  --transition: all 0.35s;
  --gold: #b59454;
}

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

/* Conteneur global pour les catégories et les posts */
.team-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.category-list {
  width: 35vw;
  /* border-right: 2px solid var(--light-blue); */
  padding-right: 20px;
}

/* Conteneur des posts à droite */
.posts-container {
  width: calc(100% - 240px);
  padding-left: 20px;
}

.category-posts {
  display: none;
  /* border-top: 2px solid var(--main-blue); */
}

.category-posts.active {
  display: block;
}

.container-sub-category-team {
  height: 2px;
  background: var(--orange);
  position: relative;
}
.category-item {
  margin: 20px 0;
  /* padding: 10px; */
  /* background: var(--light-blue); */
  /* border-radius: 5px; */
  cursor: pointer;
  font-weight: bold;
  font-size: 24px;
  color: var(--main-blue);
}

.category-item.active {
  text-decoration: underline;
  font-weight: 600;
  font-size: 30px;
  color: #80a8fa;
}

.team-member-container {
  padding: 18px 0;
  border-bottom: 2px solid var(--main-blue);
}

.team-member-container:last-child,
.before-sub-cat-container {
  border-bottom: none;
}
/* Styles pour les membres de l'équipe */
.team-member {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  /* padding: 20px 0; */
  /* border-bottom: 1px solid rgb(79 78 103); */
  min-height: var(--row-member-height);
  transition: var(--transition) ease !important;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
}

/* .team-member:last-child {
      border-bottom: none;
    } */

.team-member p,
.team-member .team-member-name {
  /* color: var(--beige); */
  color: var(--main-blue);
}

.team-member .team-member-name {
  text-transform: uppercase;
  font-size: 20px;
  font-weight: lighter;
}

.team-member-col-1,
.team-member-col-3 {
  display: block;
  white-space: nowrap;
}
.team-member-opened .team-member-col-3{
  white-space: wrap;
}

.team-member-col-2 {
  width: 100%;
  /* max-width: 120px; */
  margin: 0 10%;
  transition: var(--transition) ease;
}
.team-member-opened {
  background-image: url(/wp-content/uploads/2025/04/ERA-stars-10.png);
  background-position: bottom right;
  background-size: auto 120%;
  background-repeat: no-repeat;
}
.team-member-opened .team-member-col-2 {
  max-width: 250px;
  margin: 0;
}

.team-member-fonction {
  text-align: right;
  color: var(--main-blue);
  font-weight: 400;
}

.team-member-opened .team-member-fonction {
  font-size: 26px;
  font-weight: 500;
  color: white;
}
/* Container d'images pour chaque membre */
.container-img-member {
  display: flex;
  justify-content: center;
  background: #a8c5f0;
  border-radius: var(--radius);
  height: var(--row-member-height);
  transition: var(--transition) ease !important;
  position: relative;
  padding-top: 2%;
}
.container-img-member::after {
  position: absolute;
  width: 0px;
  height: 0px;
  content: "";
  background: #a8c5f0;
  z-index: -1;
  top: -250%;
  left: -400%;
  max-width: 100%;
  max-height: 100%;
}
.team-member-opened .container-img-member::after {
  width: 8000px !important;
  height: 2000px !important;
  max-width: unset;
  max-height: unset;
}

.container-img-member img {
  object-fit: cover;
  max-width: unset !important;
}

/* Style des sous-catégories */
.sub-category-team-name {
  font-size: 12px;
  padding: 4px 5px;
  background: var(--orange);
  color: white;
  border-bottom-left-radius: 2.5px;
  border-bottom-right-radius: 2.5px;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1 !important;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* Description des membres */
.team-member-description {
  transform: scaleY(0);
  height: 0;
  transform-origin: top;
}

.team-member-description,
.team-member-description p {
  color: var(--orange) !important;
  line-height: 1.2em !important;
  font-size: 14px;
  font-weight: 300;
}

.team-member-opened .team-member-description {
  height: auto;
  transform: scaleY(1);
  transition: var(--transition) ease !important;
}

.team-member-opened {
  --row-member-height: 200px;
  align-items: flex-start !important;
  transition: var(--transition) ease !important;
}
.team-member-opened .team-member-name-closed,
.team-member-name-opened {
  display: none;
}
.team-member-opened .team-member-name-opened {
  display: block;
}

.team-member-opened .team-member-col-1,
.team-member-opened .team-member-col-3 {
  padding: 25px;
}

.team-member .team-member-name-opened {
  font-size: 26px;
  line-height: 1.4em;
}



/* Responsive */
@media screen and (max-width: 980px) {
    .category-list {
        width: 100%;
        padding-right: 0;
      }
  .team-container {
    flex-direction: column;
  }
  .posts-container {
    padding-left: 0;
    width: 100%;
  }
  .team-member .team-member-name {
    font-size: 16px;
    line-height: 1.2 !important;
  }

  .team-member-fonction {
    line-height: 1.2 !important;
    font-size: 14px;
  }

  .team-member-description,
  .team-member-description p {
    font-size: 10px;
  }

  .team-member-opened {
    --row-member-height: 100px;
  }

  .team-member {
    padding: 4px 0;
  }

  .team-member-col-2 {
    margin: 0 2%;
  }
  .team-member-opened .team-member-col-2 {
    margin: 0;
  }

  .team-member-name strong {
    white-space: nowrap;
    z-index: 999999999;
    position: relative;
  }

  .sub-category-team-name {
    font-size: 8px;
  }

  .accordion h3 {
    font-size: 25px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 550px) {
  .team-member-col-2 {
    width: 40%;
    margin: 0 10px;
  }

  .team-member-name strong {
    white-space: nowrap;
    z-index: 999999999;
    position: relative;
  }

   .team-member .team-member-name {
    font-size: 10px;
    line-height: 1 !important;
  }
  
  .team-member{
    padding: 0;
  }
  .team-member-fonction{
    font-size: 10px;
    white-space: wrap;
  }
  .team-member-opened .team-member-fonction{
    font-size: 10px;
  }
  .category-item{
    font-size: 16px ;
  }
  .category-item.active{
    font-size: 20px; 
  }
}
