.hero {
  padding: var(--amenatys-header-height, 72px) var(--wp--preset--spacing--sm) 0;
  margin-top: 0;

  .hero__media {
    display: flex;
    align-items: center;
    min-height: 490px;
    position: relative;
    padding: 140px var(--wp--preset--spacing--xl);
  }

  .hero__image,
  .hero__overlay,
  .hero__video {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    border-radius: 16px;
  }

  .hero__image {
    object-fit: cover;
  }

  .hero__video iframe {
    width: 100%;
    height: 100%;
  }

  .hero__overlay {
    background: rgba(0, 0, 0, .4);
  }

  .hero__content {
    position: relative;
    margin: 0 auto;
    text-align: center;
  }

  .hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--xl);
    color: var(--wp--preset--color--base);
    font-weight: var(--wp--custom--font-weight--medium);
  }

  .hero__titre {
    margin: 0 auto;
  }

  .hero__sous-titre {
    margin: 0 auto;
  }

  .hero__texte {
    font-size: var(--wp--preset--font-size--text-lg);
  }

  .hero__texte> :first-child {
    margin-top: 0;
  }

  .hero__texte> :last-child {
    margin-bottom: 0;
  }

  .hero__search {
    position: relative;
    z-index: 2;
  }

  .hero__search .filtre-desktop {
    display: block !important;
  }

  &.hero--has-search {
    .hero__media {
      min-height: 720px;
      display: flex;
      flex-direction: column;
      padding: 0 var(--wp--preset--spacing--xl) var(--wp--preset--spacing--xl);
    }

    .hero__content {
      width: 100%;
      flex: 1 0 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }

  .hero__breadcrumbs {
    display: none;
  }

  @media (width >=992px) {
    padding: 50px var(--wp--preset--spacing--xl) 0;

    .hero__media {
      padding: var(--wp--preset--spacing--12-xl) var(--wp--preset--spacing--7-xl);
    }

    .hero__content {
      padding: 0;
    }

    .hero__text {
      gap: var(--wp--preset--spacing--3-xl);
    }

    .hero__texte {
      font-size: var(--wp--preset--font-size--text-xl);
    }

    .hero__breadcrumbs {
      display: block;
      padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--5-xl);
      color: #393937;
      font-size: var(--wp--preset--font-size--text-sm);
    }

    .hero__breadcrumbs-inner>span {
      display: flex;
      align-items: center;
      gap: var(--wp--preset--spacing--sm);
    }

    .hero__breadcrumbs a {
      color: inherit;
      text-decoration: none;
    }

    .hero__breadcrumbs a:hover,
    .hero__breadcrumbs a:focus-visible {
      text-decoration: underline;
    }

    .hero__breadcrumbs .breadcrumb_last {
      font-weight: var(--wp--custom--font-weight--semi-bold);
    }

    .hero__breadcrumb-separator {
      position: relative;
      width: 24px;
      height: 24px;
    }

    .hero__breadcrumb-separator::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 6px;
      height: 6px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: translate(-65%, -50%) rotate(45deg);
    }

    &.hero--has-search {
      padding-bottom: 54px;

      .hero__media {
        min-height: 660px;
        padding-top: 70px;
        padding-bottom: 70px;
      }

      .hero__content {
        transform: translateY(-24px);
      }


    }
  }

  @media (width < 992px) {
    .filtre-desktop {
      margin-top: 0 !important;
    }
  }
}

.home,
.single-landing_page {
  @media (width < 992px) {
    .hero-home {
      padding-left: 0;
      padding-right: 0;
    }

    .hero__image,
    .hero__overlay,
    .hero__video {
      border-radius: 0;
    }
  }
}

@media (width >=992px) {

  body.single-amenatys_realisation,
  body.page:not(.home) {
    .hero {
      padding-left: var(--wp--preset--spacing--sm);
      padding-right: var(--wp--preset--spacing--sm);
    }
  }
}

@media (width <=992px) {

  body.single-amenatys_realisation,
  body.page:not(.home) {
    .hero {
      padding-left: 0;
      padding-right: 0;
    }
  }
}