/* CSS ELEMENT NAVBAR */

:root {
  --nav-font-size: 16px;
  --nav-height: 50px;
  --nav-font-socials-size: 20px;
  --nav-font-logo-size: 25px;
}


nav {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  height: 100%;
  height: var(--nav-height);
  z-index: 99;
  display: flex;
  justify-content: center;
}
nav .navbar{
  height: 100%;
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #19191985;
  padding: 0 50px;
  margin: 0 5px;
  border: red solid 2px;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid #ffffff21;
  filter: brightness(1.2);
  font-family: "CaustenRound Medium";
}
.navbar .logo a {
  font-size: var(--nav-font-logo-size);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  top: 3px;
  position: relative;
}
nav .navbar .nav-links, 
nav .navbar-account .nav-account-links {
  line-height: var(--nav-height);
  height: 100%;
}
nav .navbar .links,
nav .navbar-account .links {
  display: flex;
}
nav .navbar .links li, 
nav .navbar-account .links li{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0 14px;
}
nav .navbar .links li a, .link-socials a, .bouftypediadrop, .accountdrop {
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  font-size: var(--nav-font-size);
  font-weight: 500;
  padding-right: 5px;
}
.social-icon a {
   margin-top: 20px;
   font-size: var(--nav-font-socials-size);  
}

.links li:hover .bouftypedia-arrow,
.links li:hover .js-arrow{
  transform: rotate(180deg);
  }

nav .navbar .links li .arrow {
  height: 100%;
  width: 12px;
  line-height: var(--nav-height);
  text-align: center;
  display: inline-block;
  color: #fff;
  transition: all 0.3s ease;
}
nav .navbar .links li .sub-menu,
nav .navbar-account .links li .sub-menu {
  position: absolute;
  top: 55px;
  left: 0;
  line-height: 40px;
  border-radius: 0 0 4px 4px;
  display: none;
  padding: 5px;
  z-index: 2;
  background-color: #191919;
  border-radius: 20px;
  border: 1.5px solid #ffffff21;

}

.navbar .nav-links.show1 .links .bouftypedia-sub-menu,
.navbar-account .nav-account-links.show1 .links .accountdrop-sub-menu {
  display: block;
}
.navbar .nav-links.show1 .links .bouftypedia-arrow {
  transform: rotate(180deg);
}
.navbar .links li .sub-menu li,
.navbar-account .links li .sub-menu li {
  padding: 0 22px;
}
.navbar .links li .sub-menu a,
.navbar-account .links li .sub-menu a {
  color: #fff;
  font-size: var(--nav-font-size);
  font-weight: 500;
}
.navbar .links li .sub-menu .more-arrow {
  line-height: 40px;
}
.navbar .links li .sub-menu .more-sub-menu,
.navbar-account .links li .sub-menu .more-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  border-radius: 0 4px 4px 4px;
  z-index: 1;
  display: none;
}
.navbar .nav-links .sidebar-logo, .sidebar-social {
  display: none;
}

.account-hamburger {
  display: none;
}

.social {
  display: flex;
}
.social .social-icon {
  padding: .2rem .5rem 0;
}

.logo img, .logo i, .logo-name {
  width: var(--nav-font-logo-size);;
}


nav .navbar-account {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #19191985;
  padding: 0 25px;
  margin: 0 5px;
  border: red solid 2px;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid #ffffff21;
  filter: brightness(1.2);
  font-family: "CaustenRound Medium";
}



@media (max-width:1040px) {
  nav .navbar{
    max-width: 90%;
    padding: 0 25px;
  }
}

@media (max-width:940px){

  .social {
     display: none;
  }
  .account-hamburger {
    display: block;
  }
  nav .navbar-account {
    display: none;
  }
  nav .navbar{
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  nav .navbar .nav-links,
  nav .navbar-account .nav-account-links {
    position: fixed;
    top: 0;
    left: -100%;
    display: block;
    max-width: 270px;
    width: 100%;
    background:  #191919;
    line-height: 40px;
    padding: 20px;
    transition: all 0.5s ease;
    z-index: 1000;
    backdrop-filter: none;
    border-right: 1.5px solid #ffffff21;
  }
  .link-socials a {
    font-size: 25px;
  }

  nav .navbar .links li .sub-menu,
  nav .navbar-account .links li .sub-menu {
    background-color: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0px;
    border: none;
    border-left: 3px solid #ffffff21;
  }

  .navbar .nav-links .sidebar-logo, .sidebar-social{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .navbar .nav-links .sidebar-social{
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .sidebar-logo .logo-name{
    font-size: 25px;
    color: #fff;
  }
  .sidebar-logo .fa-xmark,
  .navbar .fa-bars{
    font-size: 25px;
    color: #fff;
  }
  nav .navbar .links{
    display: block;
    margin-top: 20px;
  }
  nav .navbar .links li .arrow{
    line-height: 40px;
  }
  nav .navbar .links li{
    display: block;
  }
  nav .navbar .links li .sub-menu{
    position: relative;
    top: 0;
    box-shadow: none;
    display: none;
  }
  nav .navbar .links li .sub-menu li{
    border-bottom: none;

  }
  .navbar .links li .sub-menu .more-sub-menu{
    display: none;
    position: relative;
    left: 0;
  }
  .navbar .links li .sub-menu .more-sub-menu li{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .links li:hover .bouftypedia-arrow,
  .links li:hover .js-arrow{
    transform: rotate(0deg);
  }
  .navbar .links li .sub-menu .more-sub-menu{
    display: none;
  }
  .navbar .links li .sub-menu .more span{
    display: flex;
    align-items: center;
  }

  .navbar .nav-links.show1 .links .bouftypedia-sub-menu,
  .navbar .nav-links.show3 .links .js-sub-menu,
  .navbar .nav-links.show2 .links .more .more-sub-menu{
      display: block;
    }
    .navbar .nav-links.show1 .links .bouftypedia-arrow,
    .navbar .nav-links.show3 .links .js-arrow{
        transform: rotate(180deg);
  }
    .navbar .nav-links.show2 .links .more-arrow{
      transform: rotate(90deg);
    }
}
@media (max-width:370px){
  nav .navbar .nav-links{
  max-width: 100%;
} 
}



/* MENU MOBILE */
#menu {
  background: #1a1a1a;
  height: 100%;
  left: 0;
  opacity: 0;
  overflow: hidden;
  position: fixed;
  text-align: center;
  top: 0;
  transition: all 0.7s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 1100;
}
#menu.open {
  opacity: 1;
  visibility: visible;
}
#menu.open li:nth-child(1) {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
}
#menu.open li:nth-child(2) {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
#menu.open li:nth-child(3) {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}
#menu.open li:nth-child(4) {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}
#menu.open li:nth-child(5) {
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
}
#menu.open li:nth-child(6) {
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s;
}
#menu.open li:nth-child(7) {
  -webkit-animation-delay: 0.7s;
          animation-delay: 0.7s;
}
#menu.open li:nth-child(8) {
  -webkit-animation-delay: 0.8s;
          animation-delay: 0.8s;
}
#menu.open li:nth-child(9) {
  -webkit-animation-delay: 0.9s;
          animation-delay: 0.9s;
}
#menu.open li:nth-child(10) {
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}
#menu.open li {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  -webkit-animation-name: fadeInUp;
          animation-name: fadeInUp;
}
#menu ul a {
  -webkit-transform: translateZ(0);
}
#menu ul a:hover {
  opacity: 1;
}
#menu .main-nav {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  font-family: "CaustenRound Black";
}
#menu .main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#menu .main-nav a {
  color: #ffffff;
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  padding: .5rem .5rem;
  text-decoration: none;
  text-transform: uppercase;
}
#menu .main-nav a:first {
  padding-top: 0;
}
#menu .menu-footer {
  padding: 2rem;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
}
#menu .menu-footer ul {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}
#menu .menu-footer ul li {
  display: inline;
  margin: 0 1rem;
}
#menu .menu-footer a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

#menu .menu-footer .footer-nav a {
  font-family: "CaustenRound Regular";
}


.toggle-menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  right: 8%;
  top: 50px;
  height: 50px;
  outline: none;
  padding: 0;
  pointer-events: initial;
  position: fixed;
  vertical-align: middle;
  width: 50px;
  z-index: 1110;
}
.xdsbtn-user-icon-mobile {
  border: none;
  cursor: pointer;
  right: 15%;
  top: 50px;
  height: 50px;
  outline: none;
  padding: 0;
  pointer-events: initial;
  position: fixed;
  vertical-align: middle;
  width: 50px;
  z-index: 1110;
}

.xdsbtn-sing-out-icon-mobile {
  border: none;
  cursor: pointer;
  right: 15%;
  top: 50px;
  height: 50px;
  outline: none;
  padding: 0;
  pointer-events: initial;
  position: fixed;
  vertical-align: middle;
  width: 50px;
  z-index: 1110;
}
.xdsbtn-user-profile-icon-mobile {
  border: none;
  cursor: pointer;
  right: 20%;
  top: 50px;
  height: 50px;
  outline: none;
  padding: 0;
  pointer-events: initial;
  position: fixed;
  vertical-align: middle;
  width: 50px;
  z-index: 1110;
}

.toggle-menu span {
  background-color: #fff;
  content: "";
  display: block;
  height: 2px;
  left: calc(50% - 13px );
  position: absolute;
  top: calc(50% - 1px );
  transform-origin: 50% 50%;
  transition: background-color 0.2s ease-in-out, top 0.2s 0.2s ease-out, transform 0.2s linear;
  width: 26px;
}
.toggle-menu span:before, .toggle-menu span:after {
  background-color: #fff;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  transform-origin: 50% 50%;
  transition: background-color 0.2s ease-in-out, top 0.2s 0.2s ease-out, transform 0.2s linear;
  width: 26px;
}
.toggle-menu span:before {
  top: 7px;
}
.toggle-menu span:after {
  top: -7px;
}
.toggle-menu.active span {
  background-color: transparent;
  transition: background-color 0.2s ease-out;
}
.toggle-menu.active span:before, .toggle-menu.active span:after {
  transition: top 0.2s ease-out, transform 0.2s 0.2s ease-out;
}
.toggle-menu.active span:before {
  top: 0;
  transform: rotate3d(0, 0, 1, -45deg);
}
.toggle-menu.active span:after {
  top: 0;
  transform: rotate3d(0, 0, 1, 45deg);
}


/* COULEUR MENU */
.xdsbtn-accueilhover:hover {
  background-color: var(--xdsbtn-hover-Home);
}
.xdsbtn-planninghover:hover {
  background-color: var(--xdsbtn-hover-BoutfyPedia);
}
.xdsbtn-setupshover:hover {
  background-color: var(--xdsbtn-hover-Setups);
}
.xdsbtn-commandshover:hover {
  background-color: var(--xdsbtn-hover-Commands);
}
.xdsbtn-gameothequeshover:hover {
  background-color: var(--xdsbtn-hover-Gameotheques);
}
.xdsbtn-coupehover:hover {
  background-color: var(--xdsbtn-hover-Coupe);
}
.xdsbtn-imaginehover:hover {
  background-color: var(--xdsbtn-hover-Imagine);
}
.xdsbtn-socialhover:hover {
  background-color: var(--xdsbtn-hover-Social);
}