/*STYLES COMMUN DES ELEMENTS*/
@-webkit-keyframes slideDown {
  from {
    opacity: 0;
    -webkit-transform: translate(0px, -10px);
    transform: translate(0px, -10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    -webkit-transform: translate(0px, -10px);
    transform: translate(0px, -10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
  }
}
@-webkit-keyframes slideUp {
  from {
    opacity: 0;
    -webkit-transform: translate(0, 50px);
    transform: translate(0, 50px);
  }
  to {
    opacity: 1;
    -webkit-transform: translate(0, 0px);
    transform: translate(0, 0px);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    -webkit-transform: translate(0, 50px);
    transform: translate(0, 50px);
  }
  to {
    opacity: 1;
    -webkit-transform: translate(0, 0px);
    transform: translate(0, 0px);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.theme-page-content-navigation a {
  transition-duration: 0.2s;
}

.theme-page-content-navigation a:hover {
  transition-duration: 0.2s;
  color: #EF5327;
}

.theme-page-content-navigation > .menu {
  width: 290px;
  margin-top: 0;
}

.book-block-menu > .menu {
  background-color: white;
}

@media (max-width: 767px) {
  .book-block-menu > .menu {
    display: none;
  }
}
.menu-item--collapsed ul {
  display: none;
}

.menu-item--expanded::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 50px;
  top: 0;
  left: 0;
  background-color: rgba(187, 187, 187, 0.15);
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-out;
  animation-timing-function: ease-out;
}

.menu-item--expanded ul {
  display: block;
}

.menu-item--expanded > .lvl-1 {
  -webkit-animation-name: slideDown;
  animation-name: slideDown;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: cubic-bezier(0, 1.04, 1, 1);
  animation-timing-function: cubic-bezier(0, 1.04, 1, 1);
}

.chevron {
  content: "";
  position: absolute;
  right: 5px;
  top: -5px;
  height: 50px;
  width: 50px;
  cursor: pointer;
  border: none;
  background-color: #EF5327;
  -webkit-mask-image: url("../../../img/ic_chevron_menu.svg");
  mask-image: url("../../../img/ic_chevron_menu.svg");
  -webkit-mask-size: 23px;
  mask-size: 23px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0, 1.04, 1, 1);
}

.chevron[aria-pressed=false] {
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.chevron[aria-pressed=true] {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

/* COMMON MENU-ITEMS STYLES*/
.menu-item {
  position: relative;
  list-style: none;
}

.menu-item a {
  position: relative;
  display: block;
  text-decoration: none;
}

.menu-item.lvl-0 > a {
  display: flex;
  align-items: center;
}

.menu-item.lvl-0 > a > .icon {
  margin-right: 10px;
}

.menu,
.menu.lvl-1 {
  padding: 0;
}

.menu.lvl-0 {
  margin-top: 0;
  padding-left: 15px;
}

.menu.lvl-1 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.menu-item.lvl-0 {
  position: relative;
  letter-spacing: -0.5px;
  color: #0E013B;
  line-height: 2.4;
  font-family: "CircularStd";
  font-weight: bold;
  font-size: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
}

.menu-item.lvl-1 {
  list-style: none;
  line-height: 2.7;
  font-size: 15px;
  font-family: "Roboto";
  font-weight: normal;
  color: #7a7c93 !important;
}

.menu-item--active-trail.lvl-1 a {
  color: #EF5327;
}

/*---- TOGGLE BUTTON ----*/
.book-block-navigation-toggle {
  display: none;
  white-space: nowrap;
  position: fixed;
  z-index: 10;
  left: 0;
  bottom: 15px;
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  padding-inline: 20px;
  -webkit-animation-name: slideUp;
  animation-name: slideUp;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-timing-function: cubic-bezier(0, 1.04, 1, 1);
  animation-timing-function: cubic-bezier(0, 1.04, 1, 1);
}

/* ---- SMALL SCREEN ---- */
@media (max-width: 767px) {
  .theme-page-content-navigation {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100vw;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    padding-top: 60px;
    padding-bottom: 39px;
    background-color: white;
    overflow-y: scroll;
    -webkit-animation-name: slideDown;
    animation-name: slideDown;
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -webkit-animation-timing-function: cubic-bezier(0, 1.04, 1, 1);
    animation-timing-function: cubic-bezier(0, 1.04, 1, 1);
  }
  .theme-page-content-navigation::-webkit-scrollbar {
    display: none;
  }
  .theme-page-content-navigation > .menu {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
  }
  .theme-page-content-navigation .menu-item.lvl-0 {
    border-bottom: 1px solid rgba(191, 191, 191, 0.3);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 20px;
  }
  .theme-page-content-navigation .menu-item--expanded::before {
    height: 60px;
  }
  .theme-page-content-navigation .chevron {
    top: 0;
    right: 0;
  }
  .theme-page-content-navigation .menu-item.lvl-1 {
    font-size: 17px;
  }
}
.navigation--expanded {
  display: block;
}

/*---- TOGGLE BUTTON ----*/
@media (max-width: 767px) {
  .book-block-navigation-toggle {
    display: block;
  }
}