.menu {
  background: #111;
  top: 0;
  left: -250px;
  height: 100%;
  position: fixed;
  width: 250px;
  transition: left .5s;
}
.menu.ouvert {
  background: #111;
  top: 0;
  left: 0;
  height: 100%;
  position: fixed;
  width: 250px;
  transition: left .5s;
}
.menu ul {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 0;  
}
.menu ul:nth-of-type(2) {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 5em 0 0 0;  
}
.menu li {
  display: block;
}

.menu a {
  background: #111;
  border-bottom: 1px solid #000;
  border-top: 1px solid #222;
  box-shadow:
    inset -5px 0 0 hsla(0, 0%, 0%, .2),
    inset 0 20px 0 #161616
  ;
  color: #bbb;
  display: block;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  padding: 0 45px;
  text-align: right;
  text-decoration: none;
  text-shadow: 0 -1px 1px hsla(0, 0%, 0%, .5);
  transition: all 300ms;
}

.menu a:hover,
.menu a:focus,
.menu li.current a {
  background: #222;
  border-top-color: #3a3a3a;
  box-shadow: inset -5px 0 0 #3a3a3a, inset 0 20px 0 #282828;
  color: #ddd;
  outline: 0  ;
  padding: 0 30px;
  transition: all 300ms;
}

.menu ul:nth-of-type(2) li a:hover {
  background: #222;
  border-top-color: #222;
  box-shadow: inset -5px 0 0 #3a3a3a, inset 0 20px 0 #282828;
  color: #bbb;
  display: block;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  padding: 0 30px;
  text-align: right;
  text-decoration: none;
  text-shadow: 0 -1px 1px hsla(0, 0%, 0%, .5);
  transition: all 300ms;
}
.menu ul:nth-of-type(2) li a:focus,
.menu ul:nth-of-type(2) li.current a {
  background: #222;
  border-top-color: #3a3a3a;
  box-shadow: inset -5px 0 0 #3a3a3a, inset 0 20px 0 #282828;
  color: #ddd;
  outline: 0  ;
  padding: 0 30px;
  transition: all 300ms;
}

.menu li.current a {
  box-shadow:
    inset -5px 0 0 #27888b,
    inset 0 20px 0 #282828
  ;
  padding: 0 45px;
}

.menu a:active {
  background: #333;
  border-top-color: #666;
  box-shadow: 
    inset -5px 0 0 #666,
    inset 0 20px 0 #444
  ;
  color: #fff;
  transition: all 50ms;
}

.menu li:first-child a {
   border-top: none; 
}
.menu ul:nth-of-type(2) li:first-child a {
   border-top: 1px solid #222;
}
#main.ouvert {
    margin-left: 250px;
    transition: margin-left .5s;
}

.shin {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.shin:after {
  animation: shine 5s ease-in-out infinite;
  animation-fill-mode: forwards;
  content: "";
  position: absolute;
  top: -110%;
  left: -210%;
  width: 100%;
  height: 500%;
  opacity: 0;
  transform: rotate(-30deg);
  background: rgba(255, 255, 255, 0.13);
  background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 77%, rgba(255, 255, 255, 0.35) 92%, rgba(255, 255, 255, 0.0) 100% );
}


/* Active state */

.shin:active:after {
  opacity: 0;
}

@keyframes shine{
  0% {
    opacity: 1;
    top: -100%;
    left: -100%;
    transition-property: left, top, opacity;
    transition-duration: 0.7s, 0.7s, 0.15s;
    transition-timing-function: ease;
  }
  30%, 100% {
    opacity: 0;
    top: 0%;
    left: 60%;
    transition-property: left, top, opacity;
  }
}


/*** social bar ***/

.social {
  width: 200px;
  height: 220px;
  position: fixed;
  /*margin-top: 30px;*/
  perspective: 1000px;
  right: 0;
  z-index: 1;
}
.social li {
  display: flex;
  justify-content: flex-end;
}
.social li:last-of-type a {
  border-bottom: none;
}
.social li a {
  display: block;
  height: 2.5em;
  width: 3em;
  background: #222;
  border-bottom: 1px solid #333;
  font: normal normal normal
  16px/20px 
  'FontAwesome', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
  text-decoration: none;
  text-align: center;
  transition: background .5s ease .300ms
}

.social li:first-child a:hover { background: #3b5998 }
/*.social li:nth-child(2) a:hover { background: #00acee }*/
.social li:nth-child(2) a:hover { background: #0077b5 }
.social li:nth-child(3) a:hover { background: #00acee }
.social li:nth-child(4) a:hover { background: #27888b }

.social li:first-child a { border-radius: 5px 0 0 0 }
.social li:last-child a { border-radius: 0 0 0 5px }
    
.social li a span {
  width: 100px;
  float: right;
  text-align: center;
  background: #222;
  color: #fff;
  margin: -1.5em 4em;
  padding: 8px;
  transform-origin: 0;
  visibility: hidden;
  opacity: 0;
  transform: rotateY(45deg);
  border-radius: 5px;
  transition: all .5s ease .300ms
}

.social li span:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  right: -20px;
  top: 7px;
  border-left: 10px solid #222;
  border-right: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
}

.social li a:hover span {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0)
}
