:root {
  --h-equipe-section-max-width: 1360px;
  --h-equipe-title-color: #004D33;
  --h-equipe-accent-color: #A1C854;
  --h-equipe-banner-height: 530px;
}

/* Reset et normalisation */
.home_equipe * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Section principale */
.home_equipe {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Conteneur de taille contrôlée */
.home_equipe_sz {
  width: 100%;
}

/* Bannière avec image de fond */
.home_equipe_title_c {
  align-items: flex-start;
  background:
    linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%),
    url('/wp-content/themes/webstudios-rgaa/assets/img/home/equipe/home_equipe.webp') center/cover no-repeat;
  display: flex;
  height: var(--h-equipe-banner-height);
  justify-content: center;
  width: 100%;
}

/* Titre avec trait centré */
.home_equipe_title {
  color: var(--h-equipe-title-color);
  display: block;
  font-family: 'Industry_Black', sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  position: relative;
  padding-top: 20px;
  text-align: center;
  text-decoration: none;
  margin-top: 100px;
}

.home_equipe_title::before {
  background-color: var(--h-equipe-accent-color);
  border-radius: 2px;
  content: '';
  height: 4px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 50px;
}

/* Responsive Tablet */
@media screen and (max-width: 1024px) {
  :root {
    --h-equipe-banner-height: 450px;
  }

  .home_equipe_title {
    font-size: 32px;
    padding-top: 18px;
    margin-top: 70px;
  }

  .home_equipe_title::before {
    width: 45px;
    height: 3px;
  }
}

/* Responsive Mobile */
@media screen and (max-width: 768px) {
  :root {
    --h-equipe-banner-height: 350px;
  }

  .home_equipe_title {
    font-size: 28px;
    padding-top: 15px;
  }

  .home_equipe_title::before {
    width: 40px;
    height: 3px;
  }

  .home_equipe_title_c {
    background:
      linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%),
      url('/wp-content/themes/webstudios-rgaa/assets/img/home/equipe/home_equipe.webp') center/cover no-repeat;
  }
}

/* Optimisation mobile small */
@media screen and (max-width: 480px) {
  :root {
    --h-equipe-banner-height: 180px;
  }

  .home_equipe_title {
    font-size: 24px;
    padding-top: 12px;
    margin: 0 15px;
  }

  .home_equipe_title::before {
    width: 35px;
    height: 2px;
  }

  .home_equipe_title_c {
    background:
      linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%),
      url('/wp-content/themes/webstudios-rgaa/assets/img/home/equipe/home_equipe.webp') center/cover no-repeat;
  }
}

/* Support pour les navigateurs qui ne supportent pas les variables CSS */
@supports not (--h-equipe-banner-height: 530px) {
  .home_equipe_title_c {
    height: 530px;
  }

  @media screen and (max-width: 1024px) {
    .home_equipe_title_c {
      height: 450px;
    }
  }

  @media screen and (max-width: 768px) {
    .home_equipe_title_c {
      height: 350px;
    }
  }

  @media screen and (max-width: 480px) {
    .home_equipe_title_c {
      height: 280px;
    }
  }
}


/* liste */

:root {
  --h-equipe-item-width: 276px;
  --h-equipe-item-height: 429px;
  --h-equipe-item-margin: 10px;
  --h-equipe-item-padding-bottom: 66px;
  --h-equipe-nom-color: #A1C854;
  --h-equipe-text-color: #FFFFFF;
  --h-equipe-list-margin-top: -330px; /* 160px - 429px = -269px */
}


.home_equipe_paragraphe_c {
  display: flex;
  margin-top: var(--h-equipe-list-margin-top);
  justify-content: center;
}

.home_equipe_paragraphe_sz {
  color: var(--h-presentation-text-color);
  display: block;
  width: calc(100% - 40px);
  max-width: 1024px;
  font-family: 'Noto_Regular', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  margin-bottom: 40px;
}

/* Reset et normalisation */
.home_equipe_list,
.home_equipe_list_i,
.home_equipe_list_i_nom,
.home_equipe_list_i_fonction,
.home_equipe_list_i_lieu {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Conteneur principal de la liste */
.home_equipe_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 20px; /* Remplace les marges individuelles */
  padding: 0 20px;
}

/* Élément individuel de l'équipe */
.home_equipe_list_i {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: var(--h-equipe-item-height);
  justify-content: flex-end;
  padding-bottom: var(--h-equipe-item-padding-bottom);
  width: var(--h-equipe-item-width);
  position: relative;
  background-size: 100% 100%;
}

/* Styles de texte communs */
.home_equipe_list_i_nom,
.home_equipe_list_i_fonction,
.home_equipe_list_i_lieu {
  display: block;
  text-align: center;
  width: 80%;
}

/* Nom */
.home_equipe_list_i_nom {
  color: var(--h-equipe-nom-color);
  font-family: 'Noto_Bold', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}

/* Fonction et lieu */
.home_equipe_list_i_fonction,
.home_equipe_list_i_lieu {
  color: var(--h-equipe-text-color);
  font-family: 'Noto_Regular', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

/* Espacement entre fonction et lieu */
.home_equipe_list_i_fonction {
  margin-bottom: 4px;
}

/* Responsive Tablet */
@media screen and (max-width: 1024px) {

  .home_equipe_paragraphe_c {
    margin-top: -220px;
  }

  .home_equipe_list {

    gap: 15px;
    padding: 0 15px;
  }

  .home_equipe_list_i_nom {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .home_equipe_list_i_fonction,
  .home_equipe_list_i_lieu {
    font-size: 16px;
  }
}

/* Responsive Mobile */
@media screen and (max-width: 768px) {

  .home_equipe_paragraphe_c {
    margin-top: -180px;
  }

  .home_equipe_list {
    gap: 12px;
    padding: 0 10px;
  }

  .home_equipe_list_i_nom {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .home_equipe_list_i_fonction,
  .home_equipe_list_i_lieu {
    font-size: 14px;
  }
}

/* Optimisation mobile small */
@media screen and (max-width: 480px) {
  :root {
    --h-equipe-list-margin-top: -120px;
  }
  .home_equipe_paragraphe_c {
    margin-top: var(--h-equipe-list-margin-top);
  }
  .home_equipe_list {
    flex-direction: column;
    align-items: center;

    gap: 15px;
    padding: 0 15px;
  }

  .home_equipe_list_i {
    max-width: 300px;
    width: 100%;
  }

  .home_equipe_list_i_nom {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .home_equipe_list_i_fonction,
  .home_equipe_list_i_lieu {
    font-size: 16px;
  }
}



@media (max-width: 1024px) {
  .home_equipe_paragraphe_sz {
    font-size: 18px;
    line-height: 1.5;
  }
}



@media (max-width: 1024px) {
    #home_equipe {
        margin-top: 70px !important;
    }
}
