.header-image #navigation {
  &:not(.fixed-bar):not(.always-fixed-bar):not(.active) {
    background: linear-gradient(rgba(30, 19, 20, 1), rgba(30, 19, 20, 0));
    box-shadow: none;
  }
}
#navigation {
  position: absolute;
  top: 0;
  width: 100%;
  max-height: 140px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  background: $navbar-bg-color;
  color: #ffffff;
  z-index: 5000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: width 0.3s, height 0.2s, background-color 0.2s,
    box-shadow 0.2s linear;
  -webkit-transition: width 0.3s, height 0.2s, background-color 0.2s,
    box-shadow 0.2s linear;
  -moz-transition: width 0.3s, height 0.2s, background-color 0.2s,
    box-shadow 0.2s linear;
  -o-transition: width 0.3s, height 0.2s, background-color 0.2s,
    box-shadow 0.2s linear;

  &.always-fixed-bar,
  &.fixed-bar {
    width: 100%;
    position: fixed;
    top: 0;
    background: $navbar-bg-color;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
  }

  .logo-link {
    text-decoration: none;
    display: flex;
  }

  .logo-header {
    display: -ms-inline-flex;
    display: inline-flex;
    flex-flow: row;
    align-items: center;
    max-height: 115px;
    padding: 15px 0;
    padding-right: 30px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-width: max-content;

    img {
      margin: auto 0;
      height: 80px;
      -webkit-filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4));
      filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4));
    }

    .association-name-desc {
      display: flex;
      flex-flow: column;
      .association-name,
      .association-desc {
        margin: 0;
        color: #ffffff;
        text-decoration: none;
        text-transform: uppercase;
      }

      .association-desc {
        font-size: 12px;
        color: #ffffff;
        font-family: fonts(titles);
        font-weight: bold;
      }

      .association-name {
        font-family: fonts(titles);
        font-weight: normal;
        font-size: 27px;
        line-height: 1.1;
      }
    }

    .logo-img {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 20px;
    }

    @media screen and (max-width: 630px) {
      img {
        height: 70px;
      }
    }

    @media screen and (max-width: 500px) {
      img {
        height: 50px;
      }
      .association-name-desc {
        .association-desc {
          font-size: 11px;
        }
        .association-name {
          font-size: 24px;
        }
      }
    }

    @media screen and (max-width: 420px) {
      img {
        height: 40px;
      }
      .association-name-desc {
        .association-desc {
          text-align: center;
          font-size: 9px;
        }
        .association-name {
          font-size: 21.5px;
        }
      }
    }

    @media (max-width: 350px) {
      img {
        height: 30px;
      }
      .association-name-desc {
        .association-desc {
          text-align: center;
          font-size: 8px;
        }
        .association-name {
          font-size: 19px;
        }
      }
    }
    @media (max-width: 300px) {
      .association-name-desc {
        .association-desc,
        .association-name {
          display: none;
        }
      }

      .logo-img {
        margin-right: 0;
      }
    }
  }

  .menu-main {
    flex-grow: 1;
    display: flex;
    flex-flow: column;
    padding-right: 50px;

    .header-infos {
      display: flex;
      flex-flow: wrap;
      align-items: center;
      padding: 10px 0;
      padding-top: 15px;
      justify-content: flex-end;
    }

    .navigation-menu-container {
      align-self: flex-end;
    }
  }

  .navigation-menu {
    list-style: none outside none;
    margin: 10px 0;
    margin-left: auto;
    padding: 0;
    text-align: center;

    a {
      color: #ffffff;
      text-decoration: none;
      &:hover,
      &focus,
      &visited {
        color: #ffffff;
        text-decoration: none;
      }
    }

    > li {
      display: inline-flex;
      padding: 0 10px;
      border-right: 0.5px solid #ffffff;

      &:last-child,
      &:last-child > a {
        border-right: none;
        padding-right: 0;
      }

      > a,
      > div > a {
        font-family: fonts(titles);
        font-weight: bold;
        text-transform: uppercase;
        width: 100%;
        max-width: 220px;
        font-size: 17px;
        padding: 0 6px;
        margin: auto;

        &.current-page {
          color: esprit-sentiers(orange);
        }
      }
    }

    a,
    > li:last-child {
      transition: color 0.3s;
      -webkit-transition: color 0.3s;
    }

    li > a,
    li > div > a {
      &:hover,
      &:focus {
        color: esprit-sentiers(orange);
        cursor: pointer;
        text-decoration: none;
      }
    }

    > .sf-with-ul {
      min-width: 170px;

      > div {
        position: relative;
        width: 100%;
      }

      ul {
        width: 100%;
        position: absolute;
        max-height: 0;
        overflow: hidden;
        list-style: none outside none;
        margin: 0;
        margin-top: 32px;
        padding: 0;
        transition: 0.5s all;
        box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);

        > li {
          background: $navbar-bg-color;
          padding: 5px;
          border-bottom: 1px solid esprit-sentiers(orange);

          &:first-child {
            border-top: 3px solid esprit-sentiers(orange);
          }

          &:last-child {
            border-bottom: none;
          }

          > a {
            display: block;
            text-transform: none;
            font-family: fonts(titles);
            font-weight: lighter;
          }
        }
      }

      &:hover,
      &:focus {
        > a,
        > div > a {
          color: esprit-sentiers(orange);
          cursor: pointer;
          text-decoration: none;
        }
        @media screen and (min-width: 1050px) {
          ul {
            max-height: 230px;
          }
        }
      }
    }
  }

  .navigation-controls {
    display: inline-flex;
    transition: border 0.3s;
  }

  @media screen and (max-width: 1050px) {
    position: fixed;
    top: 0;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    border-radius: 0;

    .menu-main {
      padding-right: 20px;
    }

    .navigation-menu {
      display: none;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.3s, visibility 0.3s ease-in-out;
      -webkit-transition: opacity 0.3s, visibility 0.3s ease-in-out;
      -moz-transition: opacity 0.3s, visibility 0.3s ease-in-out;
      -o-transition: opacity 0.3s, visibility 0.3s ease-in-out;

      > ul {
        flex-flow: wrap;
        justify-content: space-around;
      }
    }

    .navigation-controls {
      margin-left: 0;
      margin-right: 0;
      width: 100%;

      > * {
        transition: border-width 0.1s ease-in-out;
        -webkit-transition: border-width 0.1s ease-in-out;
        -moz-transition: border-width 0.1s ease-in-out;
        -o-transition: border-width 0.1s ease-in-out;
      }
    }

    .logo-header {
      padding-right: 0;
    }

    .logo-header-container {
      flex-grow: 1;
      justify-content: center;
      display: flex;
      align-items: center;
    }

    &.active {
      height: 100%;
      max-height: none;
      align-items: flex-start;
      padding-bottom: 0;
      flex-flow: column;
      overflow: auto;
      background: $navbar-bg-color;

      .menu-main {
        padding: 0 20px;
        width: 100%;

        .navigation-menu-container {
          align-self: auto;
        }
      }

      .header-infos {
        justify-content: center;
      }

      .navigation-menu {
        display: block;
        width: 100%;
        margin: 20px 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        padding: 0;

        > li {
          display: flex;
          flex-flow: column;
          align-items: center;
          padding: 0;
          border: none;

          > a,
          > div > a {
            width: 370px;
            border-left: none;
            padding: 10px;
            padding-top: 20px;
            padding-bottom: 20px;
            border-bottom: 3px esprit-sentiers(orange) solid;
            text-align: center;
          }

          ul li a {
            width: auto;
          }
        }

        > .sf-with-ul {
          > div {
            display: flex;
            flex-flow: column-reverse;
            border-bottom: 3px esprit-sentiers(orange) solid;
            width: initial;

            > ul {
              position: relative;
              max-width: 270px;
              list-style: none outside none;
              margin: 0;
              transition: 0.5s all;
              box-shadow: none;
              padding-right: 17px !important;
              padding-left: 17px !important;
              padding-top: 0 !important;
            }
          }

          &.active ul {
            padding: 10px;
            max-height: 230px;
          }

          &:hover,
          &focus {
            > a {
              background: transparent;
            }
          }
        }

        > li:last-child > li > a > li:last-child > li > div > a,
        > .sf-with-ul div > a {
          border: none;
        }
      }

      .logo-header-container {
        margin-right: 20px;
        padding-left: 0;
        padding-right: 40px;
      }

      .logo-header-container,
      .close-menu {
        border-bottom: 3px esprit-sentiers(orange) solid;
      }
    }
  }

  @media screen and (max-width: 770px) {
    .slogan {
      display: none;
    }
  }

  @media screen and (max-width: 670px) {
    &:not(.active) .menu-main {
      padding-right: 60px;
      > * {
        display: none;
      }
    }
  }

  @media screen and (max-width: 430px) {
    &.active {
      .navigation-menu {
        > li {
          > a {
            width: 270px;
          }
          > ul {
            max-width: 200px !important;
          }
        }
      }
    }
  }

  @media screen and (max-width: 380px) {
    &.active {
      .navigation-menu {
        > li {
          > a {
            width: 200px;
          }
          > ul {
            max-width: 160px !important;
          }
        }
      }
    }
  }
}

.burger {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;

  span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    display: block;
    position: absolute;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.25s ease-in-out;

    &::before,
    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 3px;
      border-radius: 10px;
      background: #fff;
      transition: transform 0.25s ease-in-out;
    }

    &::before {
      transform: translateY(-7px);
    }
    &::after {
      transform: translateY(7px);
    }
  }

  &.active {
    span {
      background-color: transparent;
      &::before,
      &::after {
        transform: translateY(0);
      }
      &::before {
        transform: rotateZ(45deg);
      }
      &::after {
        transform: rotateZ(-45deg);
      }
    }
  }

  @media screen and (min-width: 1051px) {
    display: none;
  }
}

.header-tel,
.header-tel h4 {
  margin: 0;
  a {
    text-decoration: none;
    color: esprit-sentiers(orange);
    &:hover,
    &:focus {
      text-decoration: none;
      color: esprit-sentiers(orange-hovered);
    }
  }
}

.close-menu {
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 20px;
}
