/*SET UP PAGE*/
*{
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}


 /*HEADER DESTOP*/
#nav-bar{
  background-color:  #09080D;
  height: 80px;
  width: 100%;
   transition: top 0.2s;
  transition-delay: 0.3s;
  top: 0;
  position: fixed;
  z-index: 2222;
}

#nav-bar.hidden {
  top: -80px;
}

/*LOGO NAV*/
.logo{
  color: white;
  font-size: 28px;
  line-height: 80px;
  font-weight: bold;
  margin-left: 8px;
  text-transform: uppercase;
}
.logo a{
 color: white; 
 text-decoration: none;
}


label.logo:hover{
  font-size: 30px;
  cursor: pointer;
  transition: .6s;
}


/*NAVIGATION*/

#nav-bar .navi{
  float: right;
  margin-right: 8px;
}

#nav-bar .navi li{
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
  
}


#nav-bar .navi li a {
  color: white;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 5px;
  text-transform: uppercase;
}

.menu:hover{
  background: #2C3E50;
  opacity: 0.8;
  transition: .5s;
  text-decoration: none;
  color: white;
}


/*BOUTON MENU*/
.checkbtn{
  font-size: 30px;
  color: white;
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}

#check{
  display: none; /*bouton caché en écran destop*/
}

/* Body commun à toutes les pages (ne doit apparaitre qu'à un seul endroit dans tous le site)*/

body{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: white;
  margin: 0;
  width: 100%;
}

/*ECRAN MOBILE*/

@media (max-width: 996px){
    .checkbtn{
      display: block; 
    }

    /*Le menu se fixe à la fenetre, il scroll de gauche a droite et sa taille prend 100% en hauteur + transition*/
    #nav-bar{
      overflow: hidden;
      top: 0;
      width: 100%;
      z-index: 10;
      position: fixed;
    }

    .navi{
      position: fixed;
      width: 100%;
      height: 100vh;
      background: #2c3e50;
      top: 80px;
      left: 100%;
      text-align: center;
      transition: all .5s;
    }

    #nav-bar .navi li{
      display: block;
      margin: 60px 0;
      line-height: 30px;
    }

    #nav-bar .navi li a{
      font-size: 20px;
    }

    .logo{
      margin-left: 30px; 
    }


    a:hover{
      background: none;
    }

      /* Parmi tous les éléments <input>, cibler tous
    éléments <ul> qui les suivent, donc il cible le bouton pour affiché le menu */
    #check:checked ~ .navi{
      left: 0;
    }
  }


