<div id="toggle">
  <div class="hamburger-menu">
    <div class="bar"></div>
  </div>
</div>

<nav role="navigation" class="onoff">
  <ul>
    <li><a href="#">Accueil <i class="fa fa-home"></i></a></li>
    <li>Musique <i class="fa fa-music"></i>
      <ul>
        <li><a href="#">Classique</a></li>
        <li><a href="#">Techno</a></li>
        <li><a href="#">Hip-Hop</a></li>
      </ul>
    </li>
    <li>Sport <i class="fa fa-heartbeat"></i>
      <ul>
        <li><a href="#">Handball</a></li>
        <li><a href="#">Danse</a></li>
        <li><a href="#">Ski</a></li>
      </ul>
    </li>
    <li><a href="#">Contact <i class="fa fa-envelope"></i></a></li>
  </ul>
</nav>
*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-weight: 600;
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1;
  -webkit-box-shadow: 0 2px 10px 0 #999;
  box-shadow: 0px 2px 10px 0px #999;
}

nav>ul a,
nav>ul a:active,
nav>ul a:focus,
nav>ul a:hover {
  text-decoration: none;
  color: rgba(0, 0, 0, .5);
  display: block;
}

nav>ul {
  list-style: none;
  height: 60px;
  line-height: 60px;
  margin: 0 auto;
  padding-left: 0;
}

nav>ul ul {
  position: relative;
  z-index: -1;
  top: -190px;
  list-style: none;
  padding-left: 0;
  height: 180px;
  transition: top .2s ease-in-out;
  -webkit-box-shadow: 0 2px 10px 0 #999;
  box-shadow: 0px 2px 10px 0px #999;
}

nav>ul>li:hover ul {
  top: 0px;
}

nav>ul>li:nth-of-type(2)>ul>li {
  background: #FFA339;
  transition: background .1s ease-in-out;
}

nav>ul>li:nth-of-type(2)>ul>li:hover {
  background: #FFAF52;
}

nav>ul>li:nth-of-type(3)>ul>li {
  background: #3290BE;
  transition: background .1s ease-in-out;
}

nav>ul>li:nth-of-type(3)>ul>li:hover {
  background: #4596BE;
}

nav>ul>li {
  float: left;
  width: 25%;
  height: 60px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .7);
  margin: 0;
  text-align: center;
  font-size: 1.3em;
  border-bottom: 6px solid rgba(0, 0, 0, .3);
  transition: border-bottom .1s ease-in-out;
}

nav>ul>li:nth-of-type(1) {
  background: #2ECC73;
}

nav>ul>li:nth-of-type(2) {
  background: #FFA339;
}

nav>ul>li:nth-of-type(3) {
  background: #3290BE;
}

nav>ul>li:nth-of-type(4) {
  background: #FF6239;
}

nav>ul>li:hover {
  border-bottom: 10px solid rgba(0, 0, 0, .5);
}
/* Hamburger + RWD */

[id="toggle"] {
  display: block;
  text-align: center;
  line-height: 15vh;
  color: #fff;
}

.hamburger-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 60px;
  height: 15vh;
  cursor: pointer;
}

.bar,
.bar:after,
.bar:before {
  border-radius: 5px;
  width: 60px;
  height: 5px;
}

.bar {
  position: relative;
  transform: translateY(6.8vh);
  background: white;
  transition: all 0ms 300ms;
}

.bar:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 15px;
  background: white;
  transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bar:after {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  background: white;
  transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bar.animate {
  background: rgba(255, 255, 255, 0);
}

.bar.animate:after {
  top: 0;
  transform: rotate(45deg);
  transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bar.animate:before {
  bottom: 0;
  transform: rotate(-45deg);
  transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media only screen and (max-width: 520px) {
  [id="toggle"] {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #444;
    z-index: 2;
  }
  nav {
    top: 60px;
    -webkit-transition: .5s;
    transition: .5s;
  }
  nav>ul>li {
    display: block;
    width: 100%;
  }
  nav>ul>li:hover ul {
    z-index: 2;
    transition: none;
  }
  .onoff {
    top: -180px;
  }
}
// Hamburger menu from :
// https://codepen.io/husnimun/pen/pJvEeL

$(document).ready(function() {
  $("#toggle").click(function() {
    $("nav").toggleClass("onoff");
    $('.bar').toggleClass('animate');
  });

  $("nav").click(function() {
    $("nav").toggleClass("onoff");
    $('.bar').toggleClass('animate');
  });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js