/* Container flex  */
.dFlex {
  display: flex;
}

/* Nav global      */
#navBar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 70px;
  z-index: 1000;
  background-color: #a79d84;
  border: solid 4px #635531;
  border-radius: 48px;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* transition: bottom 0.2s ease, position 0.2s ease; */
}

/* Conteneur principal dans nav */
.nav-container {
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

/* Header (logo + burger) */
.nav-header {
  display: none;
}

.nav-header.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 100%;
  background-color: #2b0f0f;
  border-radius: 0;
  padding: 20px 0;
  z-index: 999;
}

.nav-header.active a {
  color: #a79d84;
  font-size: 32px;
  text-decoration: none;
}

/* Logo principal dans header */
.nav-logo img {
  height: 48px;
  width: auto;
}

/* Bouton menu burger */
.nav-toggle {
  background: transparent;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
}

.nav-toggle img {
  width: 40px;
  height: auto;
  background-color: #a79d84;
  z-index: 1;
}


/* Menu mobile déroulant (initialement caché) */
.nav-menu {
  position: absolute;
  bottom: 85px;
  left: 0;
  width: 100%;
  background-color: #2b0f0f;
  border:2px solid #a79d84;
  border-radius: 5%;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  box-sizing: border-box;
  z-index: 999;
}

/* Liens menu mobile */
.nav-menu .nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}

.nav-menu .nav-links li {
  margin: 15px 0;
}

.nav-menu .nav-links a {
  font-family: "Italianno", cursive;
  font-size: 32px;
  color: #a79d84;
  text-decoration: none;
}

.nav-menu .nav-links a:hover,
.nav-menu .nav-links a:active {
  text-decoration: underline;
}

/* =============== */
/* Menu desktop (horizontal) */
/* =============== */
.nav-desktop {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 éléments égaux */
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
}
.nav-desktop li {
  list-style: none;
}
/* Liens menu desktop */
.nav-desktop li a {
  font-family: "Italianno", cursive;
  text-decoration: none;
  font-size: 32px;
  color: #2b0f0f;
}

.nav-desktop li a:hover,
.nav-desktop li a:active {
  text-decoration: underline;
}

/* Logo centré desktop */
.nav-logo-center img {
  width: 130px;
  height: 130px;
  background-color: #a79d84;
  border-radius: 70%;
  display: inline-block;
  margin:0 5px;
}


/* RESPONSIVE */

@media screen and (max-width: 1000px) {
  #navBar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background-color: #a79d84;
    border: solid 4px #635531;
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0px;
  }

  .nav-toggle {
    width: 60px;
    height: 60px;
  }

  .nav-toggle img {
    width: 35px;
  }

  .nav-logo img {
    height: 65px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-menu.hidden {
    display: none;
  }
.nav-menu.active {
  display: flex;
  flex-direction: column; 
}
  .nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 20px;
  position:relative;
  z-index: 1001;
}

.telephone_accueil,
.maison_accueil {
  width: 40px;
  cursor: pointer;
}

.telephone_accueil img,
.maison_accueil img {
  width: 40px;
  height: auto;
}
}

@media screen and (max-width: 412px) {
  #navBar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background-color: #a79d84;
    border: solid 4px #635531;
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0px;
  }

  .nav-toggle {
    width: 60px;
    height: 60px;
  }

  .nav-toggle img {
    width: 35px;
  }

  .nav-logo img {
    height: 65px;
  }
}