@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  font-family: "Poppins";
  text-decoration: none !important;
}

body {
  scroll-behavior: smooth;
  padding-top: 80px;
  /* espace sous la navbar */
}

.navbar-nav .nav-link.active {
  font-weight: bold;
  text-decoration: underline;
}

.div-sections {
  padding-top: 50px;
  padding-bottom: 55px;
}

@media (max-width: 1280px) {
  .div-sections {
    padding-top: 0px;
    padding-bottom: 0px;
  }
}

/*Navbar*/
/* Couleur des liens dans la navbar */
.navbar-nav .nav-link {
  color: #5b21b6 !important;
  /* violet */
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #7c3aed !important;
  text-decoration: underline;
}

/* Décalage automatique des sections pour que la navbar ne les cache pas */
section {
  scroll-margin-top: 70px;
}

/* Taille normale du texte du titre */
.navbar-brand span {
  font-size: 1rem;
}

/* --- Apparence du menu mobile Bootstrap --- */
.navbar-collapse {
  background-color: #EDE9FE !important;
}

/* --- Seulement en mode mobile (petits écrans) --- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 70px;
    /* hauteur de ta navbar */
    left: 0;
    width: 100vw;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    text-align: center;
    width: 100%;
    padding: 12px 0;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .navbar-brand span {
    font-size: 0.8rem;
    white-space: normal;
    /* permet au texte de passer sur plusieurs lignes si besoin */
  }
}

@media (max-width: 409px) {
  .navbar-brand span {
    font-size: 0.7rem;
  }

  .logo_nav {
    height: 30px !important;
  }
}


/* --- Bouton hamburger violet sans contour --- */
.navbar-toggler {
  border: none !important;
  background-color: transparent !important;
  padding: 0.25rem 0.75rem;
}

/* --- Conteneur des 3 barres --- */
.custom-toggler {
  display: inline-block;
  width: 24px;
  height: 20px;
  position: relative;
}

/* --- Les 3 barres --- */
.custom-toggler span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #5b21b6;
  /* violet */
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.custom-toggler span:nth-child(1) {
  top: 0;
}

.custom-toggler span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.custom-toggler span:nth-child(3) {
  bottom: 0;
}

/* --- Animation quand menu ouvert --- */
.navbar-toggler[aria-expanded="true"] .custom-toggler span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler span:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
}

/* Supprime le contour / outline du bouton hamburger */
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}



/*L'équipe*/
#equipe {
  height: auto !important;
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  #equipe {
    padding-bottom: 4rem;
  }
}

.cartes_equipe {
  padding-top: 30px;
}

/* Cartes équipe compactes */
.team-card {
  width: 135px;
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid transparent;
  padding: 10px 6px 6px 6px;
  margin: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.titulaire .team-avatar {
  border-color: #6b0000;
}

.collaboratrice .team-avatar {
  border-color: #3666c2;
}

.remplacante .team-avatar {
  border-color: #3e8e41;
}

.team-avatar img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}

.team-name {
  font-weight: 600;
  color: #4b0082;
  margin-bottom: 4px;
}

.team-info p {
  font-size: 10px;
  color: #555;
  line-height: 1.2;
  margin: 0;
}

.team-legend {
  text-align: center;
  margin-top: 40px;
}

.text-titulaire {
  color: #6b0000;
}

.text-collaboratrice {
  color: #3666c2;
}

.text-remplacante {
  color: #3e8e41;
}

/* Survol des cartes soins */
#soins .shadow-lg:hover {
  box-shadow: 0 4px 20px rgba(107, 33, 168, 0.3);
  /* halo violet */
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Lien Mentions légales et Politique de confidentialité */
.m_legales:hover,
.p_confidentialite:hover {
  color: #9333ea;
  transition: color 0.3s ease;
}

/* Texte légal de fin */
.texte-fin {
  width: 70%;
  margin: 3% auto 2% auto;
  /* un peu plus proche du bas, éloigné de la carte */
  text-align: center;
}

.texte-fin p {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin-top: 80px;
}


@media (max-width: 1024px) {
  .texte-fin p {
    margin-top: 50px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .texte-fin {
    width: 90%;
  }
}



/* Réduire la taille du texte du footer sur petits écrans */
@media (max-width: 767.98px) {

  footer p,
  footer a {
    font-size: 0.8rem;
    /* ou 80% de la taille normale */
  }

  .team-legend+.text-center p {
    font-size: 0.8rem;
    /* ou 80% de la taille normale */
  }
}


h2 {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 0.2em;
}

h2::after {
  content: '';
  display: block;
  width: 30%;
  /* largeur par défaut pour grands écrans */
  max-width: 80px;
  /* ne dépasse pas cette largeur */
  min-width: 40px;
  /* ne devient jamais trop petit sur mobile */
  height: 2px;
  background-color: #5B21B6;
  margin: 0.2em auto 0;
  border-radius: 1px;
}

/* Supprime la ligne pour le premier h2 */
h2.no-underline::after {
  content: none;
}
