/* MarkHues — Homepage Sur mesure immersive refinements */

.mh-sur-mesure::before {
  width: 64%;
  background:
    linear-gradient(
      90deg,
      rgba(17, 23, 24, 0.88) 0%,
      rgba(17, 23, 24, 0.76) 24%,
      rgba(17, 23, 24, 0.58) 48%,
      rgba(17, 23, 24, 0.34) 68%,
      rgba(17, 23, 24, 0.14) 84%,
      rgba(17, 23, 24, 0) 100%
    );
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 56%, rgba(0,0,0,.72) 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 56%, rgba(0,0,0,.72) 72%, transparent 100%);
}

.mh-sur-mesure__media img {
  object-position: 68% center;
}

.mh-sur-mesure__sequence {
  position: absolute;
  left: 54%;
  right: 0;
  bottom: 112px;
  z-index: 3;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(17,23,24,.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(0,0,0,.12);
}

.mh-sur-mesure__options {
  position: absolute;
  left: 54%;
  right: 0;
  bottom: 62px;
  z-index: 3;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.58);
}

@media (min-width: 1025px) and (max-width: 1920px) and (max-height: 1000px) {
  .mh-sur-mesure,
  .mh-sur-mesure__inner {
    min-height: 580px;
  }

  .mh-sur-mesure__copy {
    max-width: 440px;
  }

  .mh-sur-mesure__title {
    margin-top: 16px;
    font-size: 44px;
    line-height: 1.03;
  }

  .mh-sur-mesure__text {
    max-width: 400px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 23px;
  }

  .mh-sur-mesure__cta {
    margin-top: 22px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .mh-sur-mesure__sequence {
    left: 55%;
    bottom: 72px;
    padding: 15px 18px;
    gap: 12px;
  }

  .mh-sur-mesure__step {
    gap: 9px;
  }

  .mh-sur-mesure__step-number,
  .mh-sur-mesure__step div > span {
    font-size: 12px;
  }

  .mh-sur-mesure__step strong {
    font-size: 13px;
  }

  .mh-sur-mesure__options {
    left: 55%;
    bottom: 32px;
    padding-top: 10px;
    font-size: 11px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .mh-sur-mesure {
    min-height: 760px;
    padding: 0;
  }

  .mh-sur-mesure__inner {
    min-height: 760px;
  }

  .mh-sur-mesure__copy {
    grid-column: 1 / span 4;
  }

  .mh-sur-mesure::before {
    width: 70%;
  }

  .mh-sur-mesure__sequence,
  .mh-sur-mesure__options {
    left: 50%;
  }

  .mh-sur-mesure__sequence {
    bottom: 104px;
  }

  .mh-sur-mesure__options {
    bottom: 56px;
  }
}

@media (max-width: 767px) {
  .mh-sur-mesure {
    min-height: auto;
    padding: 0;
  }

  .mh-sur-mesure::before {
    display: none;
  }

  .mh-sur-mesure__inner {
    min-height: 0;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mh-sur-mesure__copy {
    width: 100%;
    padding-bottom: 44px;
  }

  .mh-sur-mesure__visual {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .mh-sur-mesure__media {
    width: calc(100% + (2 * var(--mh-gutter)));
    height: auto;
    aspect-ratio: 4 / 3;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-inline: calc(-1 * var(--mh-gutter));
    transform: none;
  }

  .mh-sur-mesure__media img {
    object-position: center;
  }

  .mh-sur-mesure__sequence {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mh-sur-mesure__options {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 26px;
    padding: 15px 0 70px;
  }
}
