/* PRATINIUM v530 — hero : photo de contexte fondue dans le visuel noir & or.
   La photo occupe la moitié droite (derrière « Votre parcours »), se fond vers la gauche
   dans le cercle natif, reçoit un voile sombre chaud pour garder la lisibilité, et vit
   par un lent travelling. Respect de prefers-reduced-motion. */

html body#index section.pf-hero > .pf-hero__context {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;           /* au-dessus du voile ::after du hero, sous le contenu */
  overflow: hidden !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background: url("../img/home-premium/hero-context-v530.webp") 78% 50% / cover no-repeat !important; /* filet de sécurité */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0,0,0,.55) 46%, #000 62%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, rgba(0,0,0,.55) 46%, #000 62%, #000 100%);
}
html body#index section.pf-hero > .pf-hero__context picture,
html body#index section.pf-hero > .pf-hero__context img.pf-hero__context-img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  opacity: 1 !important;
}
html body#index section.pf-hero > .pf-hero__context img.pf-hero__context-img {
  object-fit: cover !important;
  object-position: 78% 50% !important;
  filter: saturate(.92) contrast(1.06) brightness(.86) !important;
  transform-origin: 72% 55% !important;
  animation: pfHeroContextDrift530 28s ease-in-out infinite alternate !important;
  will-change: transform;
}
@keyframes pfHeroContextDrift530 {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(-1.4%, -0.6%, 0); }
}

/* voile : noir chaud à gauche (raccord avec le cercle), lecture des boutons à droite, reflet or */
html body#index section.pf-hero > .pf-hero__context > .pf-hero__context-shade {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background:
    radial-gradient(ellipse 60% 70% at 74% 52%, rgba(8, 10, 12, .30) 0%, rgba(8, 10, 12, .62) 70%, rgba(4, 5, 6, .82) 100%),
    linear-gradient(180deg, rgba(4, 5, 6, .55) 0%, rgba(4, 5, 6, .12) 32%, rgba(4, 5, 6, .18) 70%, rgba(4, 5, 6, .72) 100%),
    radial-gradient(ellipse 45% 40% at 86% 12%, rgba(219, 184, 105, .20), rgba(219, 184, 105, 0) 70%) !important;
}

/* le voile noir natif du hero (::after) reste sous la photo, qui porte son propre voile */
html body#index section.pf-hero::after { z-index: 0 !important; }

/* le contenu passe au-dessus de la photo */
html body#index section.pf-hero > .pf-hero__overlay {
  position: relative !important;
  z-index: 2 !important;
}

/* lisibilité renforcée des éléments du parcours posés sur la photo */
html body#index section.pf-hero .pf-hero-journey__title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65) !important;
}
html body#index section.pf-hero .pf-step__title,
html body#index section.pf-hero .pf-step__desc {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .75) !important;
}

/* ---------- mobile : la photo se place en haut du hero, derrière le titre, très voilée ---------- */
@media (max-width: 767px) {
  html body#index section.pf-hero > .pf-hero__context {
    background-image: url("../img/home-premium/hero-context-v530-mobile.webp") !important;
    background-position: 50% 40% !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
  }
  html body#index section.pf-hero > .pf-hero__context img.pf-hero__context-img {
    object-position: 50% 40% !important;
  }
  html body#index section.pf-hero > .pf-hero__context > .pf-hero__context-shade {
    background: linear-gradient(180deg, rgba(4, 5, 6, .74) 0%, rgba(4, 5, 6, .70) 40%, rgba(4, 5, 6, .90) 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body#index section.pf-hero > .pf-hero__context img.pf-hero__context-img { animation: none !important; }
}
