.hero {
  padding-top: var(--wp--preset--spacing--medium);
  padding-bottom: 8rem;
  background-color: var(--wp--preset--color--secondary-accent);
  position: relative;

  @media(width <=767px) {
    padding-bottom: 6.0625rem;
  }

  #breadcrumbs {
    color: #fff;
    position: relative;
    z-index: 2;
    margin-bottom: 7.5rem;
    font-size: .75rem;

    @media(width <=767px) {
      margin-bottom: 3.5625rem;
    }

    a {
      color: #fff;
    }
  }

  .hero__titre {
    font-size: var(--wp--preset--font-size--x-large);
    color: var(--wp--preset--color--base);
    margin: 0;

    @media(width <=767px) {
      font-size: 1.6875rem;
    }
  }

  .hero__content {
    position: relative;
    z-index: 1;
    padding: 0;
  }

  .hero__texte {
    color: var(--wp--preset--color--base);
  }

  .hero__btn {
    justify-content: center;
  }

  .hero__video,
  .hero__image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;

    &:before {
      content: '';
      background-color: var(--wp--preset--color--secondary);
      opacity: .6;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }
  }

  .hero__image {
    img {
      height: 100%;
      width: 100vw;
      object-fit: cover;
    }
  }


  &.alignfull,
  &.alignwide {
    .hero__content {
      max-width: 1051px;
      margin: 0 auto;
    }
  }


  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #231E34;
    background: linear-gradient(180deg, rgba(35, 30, 52, 1) 0%, rgba(35, 30, 52, 0) 43%, rgba(35, 30, 52, 0) 62%, rgba(35, 30, 52, 1) 100%);
  }

  /* style 2 de la hero */
  &.is-style-second {
    min-height: 702px;

    @media(width <=991px) {
      min-height: auto;
    }

    #breadcrumbs {
      margin-bottom: 1.4375rem;
    }
  }

  /* Special home */
  &.is-front-page {
    padding-top: 263px;
    background-color: var(--wp--preset--color--secondary);

    @media(width <=1400px) {
      padding-top: 80px;
    }

    @media(width <=991px) {
      padding-top: 50px;
      padding-bottom: 50px;

      .hero__image {
        max-height: 600px;
      }

      &:after {
        height: 600px;
      }
    }

    .hero__content {
      padding: 0;

      .hero__titre {
        color: var(--wp--preset--color--primary);

        span {
          color: var(--wp--preset--color--base);
        }
      }

      .hero__texte {
        color: var(--wp--preset--color--base);
        line-height: 1.5625rem;
      }
    }
  }

  &.has-sticky-nav {
    @media(width < 991px) {
      padding-top: 10px !important;
      margin-top: 0 !important;

      #breadcrumbs {
        margin-bottom: 3.75rem;
      }
    }
  }
}

/* style hero page header transparent */

.body-header-transparent:not(.home) {
  .hero {
    padding-top: var(--wp--preset--spacing--xxx-large);

    @media(width <=991px) {
      padding-top: 10px;
      padding-bottom: 50px;
    }
  }
}

.body-header-transparent.body-top-message:not(.home) {
  .hero {
    padding-top: var(--wp--preset--spacing--xxxx-large);

    @media(width <=991px) {
      padding-top: 10px;
      padding-bottom: 50px;
    }
  }
}


/* style hero slide */
.hero__slide {
  .swiper-wrapper {
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 0;
      background: #231E34;
      opacity: .38;
    }
  }
}

.hero__sticky_nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11;
  background-color: var(--wp--preset--color--secondary);
  padding: 28px 0 25px;

  @media(width < 991px) {
    position: inherit;
    z-index: 4;
    bottom: inherit;
    background-color: var(--wp--preset--color--secondary-accent);
    padding: 11px 0;

    >.container {
      padding-left: 0;
      padding-right: 0;
    }
  }

  nav {
    flex-wrap: nowrap;

    @media(width < 991px) {
      overflow-x: scroll;
      margin-left: 15px;
    }

    ul {
      margin: 0;
      padding: 0;
      flex-wrap: nowrap;

      li {
        list-style: none;
        margin: 0 40px 0 0;
        padding: 0;
        flex: 0 0 auto;

        a {
          font-size: 1.25rem;
          font-weight: bold;
          font-family: var(--wp--preset--font-family--secondary);
          color: var(--wp--preset--color--primary);
          text-decoration: none;

          &:hover {
            text-decoration: underline;
          }

          @media(width < 991px) {
            font-size: .875rem;
          }
        }
      }
    }
  }

  .hero__sticky_nav__btn {
    gap: 20px;

    @media(width < 991px) {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 12;
      background-color: #fff;
      padding: 15px;
      display: flex;
      justify-content: center;
      width: 100vw;

      .wp-block-button-obf {
        flex: 1;

        .wp-element-button {
          width: 100%;
        }
      }

      .js-phone-reveal {
        font-size: 26px;
        padding: 0;
        height: 46px;
        width: 58px;

        span {
          display: none;
        }

        i {
          display: block;
        }
      }
    }

  }

  &.stick {
    position: fixed;
    top: 0;
    bottom: inherit;

    @media(width <=991px) {
      position: relative;
      top: inherit;
      z-index: 1;
      height: 54px;
    }
  }
}

/* fix cacher le sticky nav quand menu mobile ouvert */
body.is-open {
  .hero__sticky_nav {
    display: none;
  }
}

.hero__navigation {
  margin-block-start: 40px !important;
  /* opacity: 0; */
  transition: all 200ms ease-in-out;

  /* &.swiper-initialized {
    opacity: 1;
  } */

  .swiper-wrapper {
    align-items: flex-start;
    justify-content: center;

    @media(width <=767px) {
      justify-content: flex-start;
    }

    .swiper-slide {
      display: flex;
      max-width: 254px;
      min-height: 65px;
      align-items: center;
      justify-content: center;
      font-size: 1.125rem;
      line-height: normal;
      font-weight: 500;
      font-family: var(--wp--preset--font-family--secondary);
      padding-top: 14px;
      border-top: solid 3px rgba(98, 100, 116, 1);
      opacity: .2;
      transition: all 200ms ease-in-out;

      &:hover {
        cursor: pointer;
      }

      &:before {
        content: '';
        width: 0;
        height: 3px;
        position: absolute;
        top: -3px;
        left: 0;
        background-color: var(--wp--preset--color--primary);
        z-index: 1;
      }

      &.swiper-slide-thumb-active {
        opacity: 1;

        &:before {
          transition: width 5s linear;
          width: 100%;
        }
      }

      img {
        margin-right: 13px;
      }
    }
  }
}