@charset "utf-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@400;500;700&display=swap');

/* CSS Document */


.toggle,
[id^=drop] {
  display: none;
}

/* Giving a background-color to the nav container. */
nav { 
  
  margin:0;
  padding: 0;
  background-color: rgba(0,0,0,0.5);
  position:absolute;
  top:calc( 45vw - 79px);
  width:100%;

  font-family: 'Spartan', sans-serif;
  line-height:70px;
  text-align:center;
  font-size:1.4vw;

}

#logo {
  display: block;
  padding-top: 5px;
  float: left;
  width:25%;
  height:60px;
  margin:auto;
  
}

#logo img
{
  width:90%;
  max-height:60px;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
  content:"";
  display:table;
  clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
  float: right;
  padding:0;
  margin:0;
  list-style: none;
  position: relative;
  width:75%;
  }
  
/* Positioning the navigation items inline */
nav ul li {
  margin: 0px;
  display:inline-block;
  float: left;
  width:16.6%;
  }

/* Styling the links */
nav a {
  display:block;
  color:#FFF;
  text-decoration:none;
  /*text-align: center;*/
  /*line-height:70px;*/
}


nav ul li ul li:hover { 
  text-decoration: underline;
}

/* Background color change on Hover */
nav a:hover { 
  text-decoration: underline;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
  display: none;
  position: absolute;
  /* has to be the same number as the "line-height" of "nav a" */
  bottom: 70px;
  z-index:100;
  width:16.5%;
  background-color: rgba(0,0,0,0.5);
}
  
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
  display:inherit;
}

/*pas été capable de mettre le after sur seulement la première liste */ 
nav ul li :after{
  width:0px;
  height:30px;
  border-right: 2px solid white;
  float:right;
  margin-top:20px;
}

nav ul li:nth-child(6) a:after 
{
  display:none;
}

nav ul li ul li :after
{
  display:none;
}


/* Fisrt Tier Dropdown */
nav ul ul li {
  width:100%;
  float:none;
  display:list-item;
  position: relative;
}

/* Second, Third and more Tiers 
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
  position: relative;
  top:-60px;
  /* has to be the same number as the "width" of "nav ul ul li" */ 
  /*left:170px;*/ 
}

  
/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ' '; }
li > a:only-child:after { content: ''; }


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

  nav {
    margin: 0;
    position:static;
    width:100%;
    background-color: black;

    line-height:50px;
    font-size:2.8vw;

  }

  #logo {
    display: block;
    padding: 0;
    width: 100%;
    text-align: center;
    float: none;
    background-color: black;
  }

  #logo img
  {
    width:40%;
  }

  nav ul
  {
    width:100%;
    float:none;
  }

  /* Hide the navigation menu by default */
  /* Also hide the  */
  .toggle + a,
  .menu {
    display: none;
  }

  /* Stylinf the toggle lable */
  .toggle {
    display: block;
    background-color: black;
    /*padding:14px 20px;*/
    color:#FFF;
    /*font-size:17px;*/
    text-decoration:none;
    border:none;
    /*text-align:center;*/
  }

  .toggle:hover {
    /*background-color: #000000;*/
    text-decoration: underline;
  }

  /* Display Dropdown when clicked on Parent Lable */
  [id^=drop]:checked + ul {
    display: block;
  }

  /* Change menu item's width to 100% */
  nav ul li {
    display: block;
    width: 100%;
    /*background-color: black;*/
    }

    nav ul li :after{
 display:none;
}

  nav ul ul .toggle,
  nav ul ul a {
    /*padding: 0 40px;*/
  }

  nav ul ul ul a {
    /*padding: 0 80px;*/
  }

  nav a:hover,
  nav ul ul ul a {
    /*background-color: #000000;*/
  }
  
  nav ul li ul li .toggle,
  nav ul ul a,
  nav ul ul ul a{
    /*padding:14px 20px;*/
    color:#FFF;
  }
  
  
  nav ul li ul li .toggle,
  nav ul ul a {
    background-color: black; 
  }

  /* Hide Dropdowns by Default */
  nav ul ul {
    float: none;
    position:static;
    width:100%;
    /*color: #ffffff;*/
    /* has to be the same number as the "line-height" of "nav a" */
  }
    
  /* Hide menus on hover */
  nav ul ul li:hover > ul,
  nav ul li:hover > ul {
    display: none;
  }
    
  /* Fisrt Tier Dropdown */
  nav ul ul li {
    display: block;
    width: 100%;

    height:40px;
    line-height:40px;
    font-size:2vw;
  }

  nav ul ul ul li {
    position: static;
    /* has to be the same number as the "width" of "nav ul ul li" */ 

  }
}

@media screen and (min-width: 1200px) {
  nav {
    font-size: 20px;
  }
