/* DevisExpress — INTERNAL HERO ALIGN SAFE V4
   Reference deliberately left untouched: /demandes (mur-demandes.html).
   This stylesheet is loaded by the other internal hero pages only.
   Goal: no text under the white header, no clipped eyebrow, no cropped heads,
   no hero/card collision. Visual-only; no business logic.
*/

/* Neutralise every historical transparent-header compensation. */
html body.dx-hero-page .dx-page-hero,
html body.dx-hero-page .dx-page-hero.dx-hero-extra-pad {
  margin-top: 0 !important;
  padding-top: 44px !important;
  padding-bottom: 56px !important;
  min-height: 282px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
}

/* Same content width/rhythm as the approved /demandes hero. */
html body.dx-hero-page .dx-page-hero > .container,
html body.dx-hero-page .dx-page-hero > .dx-page-hero__wrap {
  width: min(1200px, calc(100% - 32px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body.dx-hero-page.dx-hero-standard .dx-page-hero__inner {
  min-height: 182px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  position: relative !important;
  z-index: 5 !important;
  overflow: visible !important;
  transform: none !important;
}

/* Show more sky above the group so hair/heads can never sit on the crop edge. */
html body.dx-hero-page .dx-page-hero .dx-hero-bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  transform: none !important;
  scale: 1 !important;
  animation: none !important;
  will-change: auto !important;
  filter: brightness(.68) saturate(1.04) !important;
}

html body.dx-hero-page .dx-page-hero::before {
  background:
    linear-gradient(90deg, rgba(7,14,24,.86) 0%, rgba(7,14,24,.66) 34%, rgba(7,14,24,.32) 62%, rgba(7,14,24,.10) 100%),
    linear-gradient(180deg, rgba(7,14,24,.08) 0%, rgba(7,14,24,.10) 60%, rgba(7,14,24,.42) 100%) !important;
}
html body.dx-hero-page .dx-page-hero::after { opacity: .28 !important; }

html body.dx-hero-page.dx-hero-standard .dx-page-hero__left,
html body.dx-hero-page.dx-hero-standard .dx-page-hero__copy {
  max-width: min(560px, 44vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 6 !important;
  overflow: visible !important;
  transform: none !important;
}

/* Stop the old fade/translate animation from ever putting the first line under the header. */
html body.dx-hero-page.dx-hero-standard .dx-page-hero__eyebrow,
html body.dx-hero-page.dx-hero-standard .dx-page-hero__title,
html body.dx-hero-page.dx-hero-standard .dx-page-hero__sub,
html body.dx-hero-page.dx-hero-standard .dx-page-hero__badge {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

html body.dx-hero-page.dx-hero-standard .dx-page-hero__eyebrow {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  letter-spacing: .16em !important;
  color: #ffb36f !important;
  overflow: visible !important;
}
html body.dx-hero-page.dx-hero-standard .dx-page-hero__title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  max-width: 20ch !important;
  font-size: clamp(30px, 2.7vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  color: #fff !important;
  overflow: visible !important;
}
html body.dx-hero-page.dx-hero-standard .dx-page-hero__sub {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 58ch !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,.88) !important;
  overflow: visible !important;
}
html body.dx-hero-page.dx-hero-standard .dx-page-hero__badge {
  position: relative !important;
  z-index: 6 !important;
  margin: 0 !important;
  align-self: center !important;
  background: rgba(12,22,35,.56) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #fff !important;
}

/* Desktop overlap kept subtle; never enough to cover hero copy. */
html body.dx-hero-page .dx-below-hero {
  margin-top: -28px !important;
  position: relative !important;
  z-index: 7 !important;
}

/* Login page: this one had a second stylesheet that pushed the eyebrow under the header.
   Give it extra safety without changing the login form/card design. */
html body.dx-page-login-pro .dx-page-hero,
html body.dx-page-login-pro .dx-page-hero.dx-hero-extra-pad {
  padding-top: 56px !important;
  padding-bottom: 60px !important;
  min-height: 300px !important;
}
html body.dx-page-login-pro .dx-page-hero__inner {
  min-height: 184px !important;
  align-items: center !important;
}
html body.dx-page-login-pro .dx-page-hero__left {
  transform: translateY(8px) !important;
}
html body.dx-page-login-pro .dx-page-hero .dx-hero-bg-img {
  object-position: center 14% !important;
}
html body.dx-page-login-pro .dx-below-hero {
  margin-top: -24px !important;
}

/* Account hero keeps avatar/actions layout. We only protect image crop/header gap. */
html body.dx-hero-page.dx-hero-account .dx-page-hero {
  margin-top: 0 !important;
  padding-top: 42px !important;
  overflow: hidden !important;
}
html body.dx-hero-page.dx-hero-account .dx-page-hero .dx-hero-bg-img {
  object-position: center 18% !important;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 980px) {
  html body.dx-hero-page .dx-page-hero,
  html body.dx-hero-page .dx-page-hero.dx-hero-extra-pad,
  html body.dx-page-login-pro .dx-page-hero,
  html body.dx-page-login-pro .dx-page-hero.dx-hero-extra-pad {
    margin-top: 0 !important;
    padding-top: 22px !important;
    padding-bottom: 24px !important;
    min-height: 214px !important;
  }

  html body.dx-hero-page.dx-hero-standard .dx-page-hero__inner,
  html body.dx-page-login-pro .dx-page-hero__inner {
    min-height: 168px !important;
    padding: 0 !important;
    align-items: flex-end !important;
    overflow: visible !important;
  }

  html body.dx-hero-page .dx-page-hero .dx-hero-bg-img {
    object-position: center 18% !important;
    filter: brightness(.64) saturate(1.02) !important;
  }

  html body.dx-hero-page.dx-hero-standard .dx-page-hero__left,
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__copy {
    max-width: min(100%, 560px) !important;
  }

  html body.dx-hero-page.dx-hero-standard .dx-page-hero__eyebrow {
    display: block !important;
    margin-bottom: 5px !important;
    font-size: 9px !important;
  }
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__title {
    max-width: 22ch !important;
    font-size: clamp(23px, 7vw, 30px) !important;
    margin-bottom: 6px !important;
  }
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__sub {
    max-width: 48ch !important;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
  }
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__badge { display: none !important; }

  html body.dx-hero-page .dx-below-hero,
  html body.dx-page-login-pro .dx-below-hero {
    margin-top: 0 !important;
  }

  html body.dx-page-login-pro .dx-page-hero__left { transform: none !important; }
}

@media (max-width: 640px) {
  html body.dx-hero-page .dx-page-hero,
  html body.dx-hero-page .dx-page-hero.dx-hero-extra-pad,
  html body.dx-page-login-pro .dx-page-hero,
  html body.dx-page-login-pro .dx-page-hero.dx-hero-extra-pad {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
    min-height: 202px !important;
  }
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__inner {
    min-height: 164px !important;
  }
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__title {
    font-size: clamp(22px, 7vw, 27px) !important;
  }
  html body.dx-hero-page.dx-hero-standard .dx-page-hero__sub {
    font-size: 13px !important;
  }
}
