.btn-nav-mobile {
  display: flex;
  justify-content: flex-end;
}

.btn-menu {
  cursor: pointer;
  background: transparent;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
}

.ligne {
  width: 40px;
  height: 5px;
  background: var(--orange-color);
  border-radius: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease-in-out;
}

.ligne::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--orange-color);
  bottom: 10px;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

.ligne::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--orange-color);
  top: 10px;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

.btn-menu.active .ligne::before {
  transform: translateY(10px) rotate(-45deg);
}

.btn-menu.active .ligne {
  background: transparent;
}

.btn-menu.active .ligne::after {
  transform: translateY(-10px) rotate(45deg);
}

.search-bar {
  display: none;
}

.header-nav .custom img {
  width: 8rem;
  height: auto;
  object-fit: cover;
}

#btn-nav-menu-mobile i {
  font-size: 1.5rem;
}

.header-nav {
  display: none;
  width: 100%;
}

.header-nav ul .parent > a::after {
  content: "";
  display: inline-block;
  background: url("../../../../../images/icons/icon-arrow.svg") no-repeat 50%
    100%;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transition: all 0.4s ease-in-out;
  margin-top: -6px;
}

.header-nav .nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  list-style-type: none;
  padding: 0;
}

.header-nav .nav,
.header-nav .nav li {
  list-style: none;
  list-style-type: none;
}

.header-nav .nav li {
  width: 100%;
}

.header-nav .nav li a {
  font-size: 16px;
  color: black;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: white;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding 0.3s ease;
}

.header-nav .nav li a img {
  height: 20px;
  order: 1;
  margin-right: 5px;
  user-select: none;
  -webkit-user-drag: none;
}

.header-nav .nav li a:hover {
  cursor: pointer;
}

.header-nav .mod-menu__sub {
  display: none;
  padding-left: 0 !important;
}

.header-nav .mod-menu__sub li {
  padding: 0 !important;
}

.header-nav .nav-opened {
  background: var(--saumon-color) !important;
  color: var(--orange-color) !important;
}

.header-nav .show-menu {
  display: block !important;
}

.header-nav .nav-opened::after {
  content: "";
  display: inline-block;
  background: url("../../../../../images/icons/icon-arrow-orange.svg") no-repeat
    50% 100% !important;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transition: all 0.4s ease-in-out;
  transform: rotate(360deg);
}

.header-nav .nav-close {
  background: white !important;
  color: black !important;
}

.header-nav .nav-close::after {
  content: "";
  display: inline-block;
  background: url("../../../../../images/icons/icon-arrow.svg") no-repeat 50%
    100% !important;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transform: rotate(0deg);
  transition: all 0.4s ease-in-out;
}

.header-nav .mod-menu__sub li::after {
  content: "";
  display: block;
  border-bottom: 1px solid gray;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}

.header-nav .mod-menu__sub li:last-child::after {
  border: none;
}

.header-nav .search {
  display: none;
}

@media screen and (min-width: 1200px) {
  header .btn-nav-mobile {
    display: none;
  }

  .search {
    display: block;
  }

  .header-nav {
    display: flex;
    width: initial;
  }

  .header-nav .nav {
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .header-nav .nav li {
    width: auto;
  }

  .header-nav .nav li a {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-nav ul .parent > a::after {
    height: 18px;
  }

  .header-nav ul .parent:hover .active-arrow::after {
    height: 18px;
  }

  .header-nav .nav li.parent:hover > a,
  .header-nav .nav li.parent:focus-within > a {
    background: var(--saumon-color) !important;
    color: var(--orange-color) !important;
  }

  .header-nav li.parent:hover > a::after {
    content: "";
    display: inline-block;
    background: url("../../../../../images/icons/icon-arrow-orange.svg")
      no-repeat 50% 100% !important;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    transition: all 0.4s ease-in-out;
    transform: rotate(360deg);
  }

  .header-nav .mod-menu__sub {
    padding-left: 0px;
    list-style-type: none;
    position: absolute;
    width: 350px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    background-color: #fff;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

  .header-nav .nav li.parent:hover .mod-menu__sub,
  .header-nav .nav li.parent:focus-within .mod-menu__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-nav .mod-menu__sub li > a {
    padding: 15px 16px;
  }

  .header-nav .mod-menu__sub li > a:hover {
    background: var(--saumon-color);
    color: var(--orange-color);
  }

  .search-bar {
    display: block;
  }
}
