*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}




nav { /*gère la nav en entier*/
  top: 5px;
  width: 98%;
  position: fixed;  /* permet de rester à l'acran mmme qudn on scroll */
  display: flex;
  align-items: center;
  justify-content:space-between; /* pour espacer les élléments */
  background: #09d52f;
  border-radius: 15px;
  box-shadow: inset 0px -1px 0px #c5c5c6;
}

.nav-icon { /*gère l'icone et le texte*/
  display: flex;
  width: 500px;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;
}

.nav-icon span { /*gère MMAuges*/
  font-family: Torus+Notched, sans-serif;
  font-size: 4em;
  margin-left: 55px; /*ecarte le texte du logo*/
  color:aliceblue;
}

.nav-icon img {  /* gère l'icone*/
  width: 75px;
  /* transform: rotate(-17deg) translateX(5px); */
}

.hamburger {
  display: none;
}

.navlinks-container{
   margin-left:auto;
   margin-right: 1.3em;
   
}

.navlinks-container a { /*gère les fonts navigation*/
  margin-left: 25px;
  
  font-size: 1.5em;
  text-decoration: none;
  color:aliceblue;
  position: relative;
}

.navlinks-container a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -3px;
  width: 100%;
  height: 1px;
  transform: scale(0);
  transform-origin: left;
  background:aliceblue;
  transition: transform 0.3s ease-out;
}
.navlinks-container a:hover::after {
  transform: scaleX(1);
}




@media (min-width:901px) and (max-width: 1400px) {


.navlinks-container  { /*gère les fonts navigation*/
    margin-left:auto;
    font-size: 12px;
}
.nav-icon{
  width: 400px;
}

.nav-icon span {
    font-size:2.2em;
    margin-right: 15px; 
}
}


@media (max-width: 900px) {
  nav {
    padding: 15px 20px;
    position: relative;
  }

  /* nav */

  .navlinks-container a { /*gère les fonts navigation*/
    margin-left: 215px;
    font-size: 1.5em;
    text-decoration: none;
    /* color:rgb(21, 22, 22); */
    color: aliceblue;
    
  }
  .nav-icon {
    order: 2;
    margin: 0 auto;
  }

  .nav-icon span {
    font-size: 22px;
  }
   .nav-icon img{
    order: 3;
    margin-left:auto;
  } 

  .main-navlinks {
    order: 1;
    width: auto;
  }

  /* hamburger */
  .hamburger {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: none;
    display: flex;
    background: #09d52f;
    align-items: center;
    position: relative;
    
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: aliceblue;
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s 0.15s ease-out;
  }
  .hamburger span:nth-child(1),
  .hamburger span:nth-child(3) {
    transition: transform 0.3s ease-out;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(7px);
  }
  .hamburger span:nth-child(3) {
    transform: translateY(-7px);
  }

  .hamburger.open span:nth-child(1) {
    transform: translate(0) rotate(135deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transition: opacity 0s ease-out;
  }
  .hamburger.open span:nth-child(3) {
    transform: translate(0) rotate(-135deg);
  }


  .navlinks-container { /* barre à gauche*/
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    background: #fafafa80;
    top: 100%;
    left: 0;
    transform: translate(-100%);
    height: auto;
    padding: 15px 50px 15px 20px;
    /* border-right: 1px solid #c5c5c6; */
  }
  .open {
    transform: translate(0%);
  }

  .navlinks-container a {
    font-size: 18px;
    margin: 10px 0px;
    color: black;
  }

}

@media (max-width: 500px) {
  .nav-icon img {
    width: 30px;
  }
  .nav-icon span {
    font-size: 20px;
  }
}
