/* Import depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;600&display=swap');


/* ✅ Mise à jour du style de la Navbar avec icône de téléphone modernisée */

.navbar {
  width: 100%;
  padding: 30px 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: fixed; /* ✅ Fixe la navbar en haut */
  top: 0;
  left: 0;
  z-index: 1000;
  transition: opacity 0.3s ease-in-out; /* ✅ Animation fluide */

  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box; /* ✅ Fait en sorte que le padding soit inclus dans la largeur */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}


/* ✅ Logo aligné à gauche */
.logo-container {
  display: flex;
  align-items: center;
  margin-right: 50px;
}

.logo-container img {
  max-height: 45px;
}

/* ✅ Navigation décalée vers la droite du logo */
.navigation {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  margin-left: 20px;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.navigation ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200; /* ✅ Plus fin que la normale */
  font-size: 15px;
}

.navigation ul li a:hover {
  color: #f0f0f0;
}

/* ✅ Section téléphone modernisée */
.phone-call {
  display: flex;
  align-items: center;
  margin-right: 50px; /* ✅ Pousse à gauche des boutons */
}

.phone-icon-circle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.phone-icon {
  color: white;
  font-size: 20px;
}

.phone-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: white;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
}

.phone-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 200; /* ✅ Plus fin que la normale */
  font-size: 15px;
  text-decoration: none;
  color: #f0f0f0;
}

.phone-number:hover {
  text-decoration: underline;
}

/* ✅ Espacement entre le téléphone et les boutons */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button-devis {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; /* ✅ Plus fin que la normale */
  font-size: 14px;
}

.button-client {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

/* ✅ Réduction de la taille de l'icône "Espace Client" */
.button-client .material-icons {
  font-size: 22px; /* ✅ Taille réduite */
}

.button-devis:hover, .button-client:hover {
  background: white;
  color: black;
}

.hamburger {
  display: none;
}

/* ✅ Masquer le menu mobile en mode desktop */
.mobile-menu {
  display: none;
}


.navbar.hidden {
  pointer-events: none; /* Désactive les interactions */
}




@media screen and (max-width: 1200px) {
  .nav-right {
    right: 20px;
  }
}

@media screen and (max-width: 992px) {
  .nav-right {
    position: relative;
    right: 0;
    margin-left: auto;
  }
}

@media screen and (max-width: 768px) {
  /* ✅ Navbar compacte */
  .navbar {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center; /* ✅ Aligne les éléments horizontalement */
    justify-content: flex-start; /* ✅ Aligne les éléments à gauche */
  }

  /* ✅ Bouton hamburger plus grand */
  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 40px; /* ✅ Icône plus grande */
    cursor: pointer;
    color: white;
  }

  /* ✅ Logo plus espacé du hamburger */
  .logo-container {
    display: flex;
    align-items: center;
    margin-left: 40px; /* ✅ Augmentation de l'espacement */
  }

  .logo-container img {
    max-height: 40px; /* ✅ Taille du logo ajustée */
  }

  /* ✅ Masquer les éléments desktop */
  .navigation,
  .phone-call,
  .nav-right {
    display: none;
  }

  /* ✅ Menu mobile */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: none;
    padding: 0;
    text-align: center;
    z-index: 999;
  }

  /* ✅ Affichage du menu mobile */
  .mobile-menu.active {
    display: block;
  }

  /* ✅ Liste des pages */
  .mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 40px 0;
  }

  .mobile-navigation li {
    padding: 30px 0; /* ✅ Ajustement pour centrer verticalement */
    position: relative;
    text-align: center;
    display: flex;
    align-items: center; /* ✅ Centre le texte verticalement */
    justify-content: center; /* ✅ Centre le texte horizontalement */
    height: 50px; /* ✅ Hauteur uniforme pour chaque élément */
  }

  /* ✅ Bordure centrée sous chaque élément */
  .mobile-navigation li:not(:last-child)::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    bottom: 0; /* ✅ Ajustement parfait */
    left: 50%;
    transform: translateX(-50%); /* ✅ Centre parfaitement la bordure */
  }

  /* ✅ Suppression de la bordure sous le dernier élément */
  .mobile-navigation li:last-child::after {
    display: none;
  }

  .mobile-navigation li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
  }

  /* ✅ Élément téléphone et espace client */
  .mobile-navigation li.mobile-phone,
  .mobile-navigation li.espace-client {
    padding: 30px;
  }

  .mobile-navigation li.espace-client button {
    width: 60%;
    padding: 5px;
    color: #fff;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
  }

  .mobile-navigation li.espace-client button .material-icons {
    vertical-align: middle;
    margin-right: 5px;
  }

  /* ✅ Fond semi-transparent qui prend uniquement la hauteur du menu */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.9);
    z-index: 998;
    transition: opacity 0.3s ease-in-out;
  }

  /* ✅ Affichage du fond uniquement quand le menu est actif */
  .mobile-menu.active + .mobile-menu-overlay {
    display: block;
    opacity: 1;
    width: 100%;
  }
}
