:root {
    --c8:#bb126f;
    --c7:#493657;
    --c6:#D56DA1;
    --c5:#FFC09F;
    --c4:#FFEE93;
    --c3:#FCF5C7;
    --c2:#ADF7B6;
    --c1:#79ADDC;
    --bg:#f0f5f4;
}
:root {
  --bl:#252250;
  --or:#e9402d;
  --wh:#f9f9f9;
  --bo:#873242;
  --be:#f1b7b0;
}
body {
    font-family: Sans-Serif;
    margin: 0;
    max-width:100%;
    max-height:100%;
    overflow-x:hidden;
    background-color: var(--wh);
  }
  
  .menu-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bl);
    color:  var(--wh);
    padding: 20px;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    z-index:3;
  }

  #menu_accueil a:hover {
    color:var(--or);
  }

  #menu_conteurs a:hover  {
    color:var(--or);
  }

  #menu_fbh a:hover  {
    color:var(--or);
  }

  .menu-container a {
    text-decoration: none;
    color: var(--bl);
    transition: color 0.3s ease;
  }
  /*
  .menu-container a:hover {
    color: #00C6A7;
  }*/
  
  .menu-container input {
    display: block;
    width: 35px;
    height: 25px;
    margin: 0;
    position: absolute;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */
    -webkit-touch-callout: none;
  }

  .menu {
    overflow:visible;
  }
  
  /* Burger menu */
  .menu-container span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background:  var(--bl);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
  }
  
  .menu-container span:first-child {
    transform-origin: 0% 0%;
  }
  
  .menu-container span:nth-child(3) {
    transform-origin: 0% 100%;
  }
  
  .menu-container input:checked ~ span {
    overflow:visible;
    opacity: 1;
    transform: rotate(45deg) translate(3px,-1px);
    background: var(--c7);
  }
  
  .menu-container input:checked ~ span:nth-child(4) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }
  
  .menu-container input:checked ~ span:nth-child(3) {
    transform: rotate(-45deg) translate(-5px,11px);
  }
  
  .menu ul {
    list-style: none;
  }
  
  .menu li {
    padding: 10px 0;
    font-size: 22px;
  }
  
  /* mobile styles */
  @media only screen and (max-width: 767px) { 
    .menu-container {
      flex-direction: column;
      align-items: flex-end;
      margin:30px;
      background:var(--wh);
      border:solid 4px var(--bl);
    }
    
    .menu {
      position: absolute;
      box-sizing: border-box;
      width: 300px;
      right: -300px;
      top: 0;
      margin: -40px;
      padding: 70px 10px 20px 60px;
      background:  var(--wh);
      border:solid 4px var(--or);
      border-radius:0 0 0 20px;
      -webkit-font-smoothing: antialiased;
      /* to stop flickering of text in safari */
      transform-origin: 0% 0%;
      transform: translateX(0%);
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    .menu ul {
      padding:0;
    }
  
    .menu-container input:checked ~ .menu {
      transform: translateX(-100%);
    }
  }
  
  /* desktop styles */
  @media only screen and (min-width: 768px) { 
    .menu-container {
      max-width: 100%;
      border-bottom: solid 4px var(--or);
    }
  
    .menu-container a {
      color:  var(--wh);
    }
  
    .menu-container input {
      display: none;
    }
  
    /* Burger menu */
    .menu-container span {
      display: none;
    }
  
    .menu {
      position: relative;
      width: 100%;
      display: flex;
      justify-content: space-between;
    }
  
    .menu ul {
      display: flex;
      padding: 0;
    }
  
    .menu li {
      padding: 0 20px;
    }
  }