@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

.menu2 {
  margin-top: -150px;
  position: absolute; 
  z-index: 100; 
  width:250px;
  box-shadow: 0px 0px 5px #999;
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.menu2 li a {
  text-decoration: none;
  color:#fff;
}

.menu3 {
  box-shadow: 0px 0px 5px #999;
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.menu3 ul {
  padding:0;
}

.menu2 li {
  padding: 5px;
}

.menu2 li:last-of-type {
  padding-bottom: 10px;
}

#menus_accueil {
  color: #fff; 
  margin-top: -30px;
}

@media (max-width: 768px) {

  .menu2 {
    margin-top: 10px;
    position: relative;
    width:100%;
  }

  #menus_accueil {
    min-height: 0px;
  }

}

@media (max-width: 1200px) {

  #menus_accueil {
    min-height: 150px;
  }

}

.ligne {
  width:50%;
  margin: 0 auto;
}

.block-menu2 {
  display: flex;  
  justify-content: right;
}

.block-menu1 {
  display: flex;  
  justify-content: left;
}



#main-menu nav,
#main-menu ul,
#main-menu {
  padding-left: 0;
  /*margin-bottom: 0;*/
  min-height: 10vh;
  list-style-type: none;
}

#main-menu li {
  display: flex;
  justify-content: center;  
  align-items: center;
  color:#000;
  padding:20px;
  cursor: pointer;
}

#main-menu li a {
  color: #000;
  text-decoration: none;
}

.menu-item {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  text-align: center;
}


.menu_stge {
  position: absolute;
  top: 30vh;
  left:0vw;
  z-index: 9999;
  display: flex;
  flex-direction: row;
}

.box {
  /*display: none;*/
  height: 100%;
  position: relative;
  float:left;
}

.box_sub {
  height: 100%;
  background: #DDD;
  display: flex;
  flex-direction: column;
  width: 100%;
  vertical-align: center;
  transition: all 1s ease-in-out;
}

.box_exp {
  /*display: none;*/
  height: 100%;
  position: relative;
  width:15vw;
}  

.box_sub > li:first-of-type {
  max-height:30px;
}

.box_sub_exp, .box_sub_sub_exp {
  left: 100%;
  position: absolute;
  min-width: 150px;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  top:auto;
  z-index: 0;
}

.submenu-item:hover .box_sub_sub_exp {
  display: block;
}

#sub_menu1 .submenu-item {
  border-top: 1px solid #0074bc;
  border-left: 3px solid #0074bc;
}

#sub_menu2 .submenu-item {
  border-top: 1px solid #c94900;
  border-left: 3px solid #c94900;
}

#sub_menu3 .submenu-item {
  border-top: 1px solid #a3000d;
  border-left: 3px solid #a3000d;
}

#sub_menu4 .submenu-item {
  border-top: 1px solid #00409b;
  border-left: 3px solid #00409b;
}

.box_sub_exp > .submenu-item:hover::after, .menu-active::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 30px 20px 30px 0;
  right: 0%;
  position: absolute;
  z-index: 1;
}

#sub_menu1 .submenu-item:hover::after, .bg-info.menu-active::after {
  border-color: transparent #0074bc transparent transparent;
}

#sub_menu1 .submenu-item:hover {
  background-color: #80daed !important; 
}

#sub_menu2 .submenu-item:hover::after, .bg-warning.menu-active::after {
  border-color: transparent #c94900 transparent transparent;
}

#sub_menu2 .submenu-item:hover  {
  background-color: #ffdd7a !important; 
}

#sub_menu3 .submenu-item:hover::after, .bg-danger.menu-active::after {
  border-color: transparent #a3000d transparent transparent;
}

#sub_menu3 .submenu-item:hover  {
  background-color: #ff7f8a !important; 
}

#sub_menu4 .submenu-item:hover::after, .bg-primary.menu-active::after {
  border-color: transparent #00409b transparent transparent;
}

#sub_menu4 .submenu-item:hover  {
  background-color: #63a4ff !important; 
  /* border-right: 3px solid #00409b; */
}

.box_sub_sub_exp {
  display: flex;
  flex-flow: row wrap;
}

.submenu-item {
  width: 100%;
  float: left;
  text-align: center;
  padding-left: 50px !important;
  padding-right: 50px !important;
}

/*

.submenu-item a:after {

    font-family: 'Material Icons';
    content: "navigate_next";
    float: right;
    margin-right: -1px;
    font-size: .5rem;
    opacity: .7;
    transition: margin-right 0.2s;

  }

  */

.box_sub_exp, .box_sub_sub_exp {
  display: none;
}

#main-menu {
  transition: all 1s ease-in-out;
}

#main-menu:hover .titre_menu {
  width: 250px;
  height: 20px;
}

/* MOBILE */ 


[type="checkbox"]:checked,
[type="checkbox"]:not(:checked){
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.light-back{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: #fff;
  overflow: hidden;
  background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat-back.svg');
  background-position: center;
  background-repeat: repeat;
  background-size: 4%;
  height: 100%;
  width: 100%;
  transition: all 200ms linear;
  opacity: 0;
}

.dropdown:checked + label,
.dropdown:not(:checked) + label{
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  height: 50px;
  transition: all 200ms linear;
  width: 100%;
  letter-spacing: 1px;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  -ms-flex-pack: center;
  text-align: center;
  border: none;
  background-color: #a4ba00;
  cursor: pointer;
  color: #fff;
  border-bottom: 3px solid #c6d53c;
}

.dropdown:checked + label:before,
.dropdown:not(:checked) + label:before{
  position: fixed;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: auto;
  pointer-events: none;
}
.dropdown:checked + label:before{
  pointer-events: auto;
}
.dropdown:not(:checked) + label .uil {
  font-size: 24px;
  margin-left: 10px;
  transition: transform 200ms linear;
}
.dropdown:checked + label .uil {
  transform: rotate(180deg);
  font-size: 24px;
  margin-left: 10px;
  transition: transform 200ms linear;
}
.section-dropdown {
  position: absolute;
  padding: 5px;
  background-color: #111;
  margin-top: 0px;
  left: 0;
  width: 100%;
  display: block;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 200ms linear;
}
.dropdown:checked ~ .section-dropdown{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.section-dropdown:before {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  content: '';
  display: block;
  z-index: 1;
}
.section-dropdown:after {
  position: absolute;
  top: -7px;
  left: 30px;
  width: 0; 
  height: 0; 
  border-left: 8px solid transparent;
  border-right: 8px solid transparent; 
  border-bottom: 8px solid #111;
  content: '';
  display: block;
  z-index: 2;
  transition: all 200ms linear;
}

.section-dropdown-sub a {
  position: relative;
  color: #fff;
  transition: all 200ms linear;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-radius: 2px;
  padding: 5px 0;
  padding-left: 20px;
  padding-right: 15px;
  margin: 2px 0;
  text-align: left;
  text-decoration: none;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: space-between;
    -ms-flex-pack: distribute;
}

.section-dropdown-sub a:hover {
  color: #fff;
  background-color: #a4ba00;
}

.section-dropdown-sub a .uil {
  font-size: 22px;
}
.dropdown-sub:checked + label,
.dropdown-sub:not(:checked) + label{
  position: relative;
  color: #fff;
  transition: all 200ms linear;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-radius: 2px;
  padding: 5px 0;
  padding-left: 20px;
  padding-right: 15px;
  text-align: left;
  text-decoration: none;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: space-between;
    -ms-flex-pack: distribute;
    cursor: pointer;
}
.dropdown-sub:checked + label .uil,
.dropdown-sub:not(:checked) + label .uil{
  font-size: 22px;
}
.dropdown-sub:not(:checked) + label .uil {
  transition: transform 200ms linear;
}
.dropdown-sub:checked + label .uil {
  transform: rotate(135deg);
  transition: transform 200ms linear;
}
.dropdown-sub:checked + label:hover,
.dropdown-sub:not(:checked) + label:hover{
  color: #fff;
  background-color: #a4ba00;
}

.section-dropdown-sub {
  position: relative;
  display: block;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  max-height: 0;
  padding-left: 10px;
  padding-right: 3px;
  overflow: hidden;
  transition: all 200ms linear;
}
.dropdown-sub:checked ~ .section-dropdown-sub{
  pointer-events: auto;
  opacity: 1;
  max-height: 999px;
}
.section-dropdown-sub a {
  font-size: 14px;
}
.section-dropdown-sub a .uil {
  font-size: 20px;
}

@media screen and (max-width: 992px) {

  .block-menu2 {
    display: flex;  
    justify-content: left;
  }

  .block-menu1 {
    display: flex;  
    justify-content: right;
  }

}

@media screen and (max-width: 1200px) {

  .block-menu2 {
    display: flex;  
    justify-content: center;
  }

  .block-menu1 {
    display: flex;  
    justify-content: center;
  }

}