/* Paris T’aime V2 — pt-site-hero
   Timeline en 5 états :
   1. titre seul
   2. rue vide
   3. dos homme avance
   4. textes
   5. boutons
*/

.pt-site-hero {
  --hero-stage-y: 0px;

  --hero-intro-opacity: 0;
  --hero-intro-y: 0px;
  --hero-intro-scale: 1;

  --hero-street-opacity: 1;
  --hero-bg-y: 0px;
  --hero-bg-scale: 1.04;

  --hero-person-opacity: 1;
  --hero-person-y: 0px;
  --hero-person-scale: 1;

  --hero-story-opacity: 1;
  --hero-story-y: 0px;
  --hero-story-two-opacity: 0;
  --hero-story-two-y: 24px;
  --hero-story-visibility: hidden;

  --hero-actions-opacity: 1;
  --hero-actions-y: 0px;
  --hero-actions-visibility: hidden;
  --hero-actions-pointer-events: auto;

  --hero-trace-opacity: 1;
  --hero-trace-scale: 1;

  position: relative;
  height: 440svh;
  min-height: 2500px;
  background: #05070c;
  overflow: visible;
}

.pt-site-hero.pt-site-hero--motion-ready {
  --hero-intro-opacity: 1;
  --hero-intro-y: 0px;
  --hero-intro-scale: 1;

  --hero-street-opacity: 0;
  --hero-bg-y: 0px;
  --hero-bg-scale: 1.08;

  --hero-person-opacity: 0;
  --hero-person-y: 90px;
  --hero-person-scale: 1.08;

  --hero-story-opacity: 0;
  --hero-story-y: 28px;
  --hero-story-two-opacity: 0;
  --hero-story-two-y: 24px;

  --hero-actions-opacity: 0;
  --hero-actions-y: 24px;
  --hero-actions-pointer-events: none;

  --hero-trace-opacity: 0;
  --hero-trace-scale: 0;
}

.pt-site-hero__stage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #05070c;
  backface-visibility: hidden;
}

.pt-site-hero.pt-site-hero--stage-fixed .pt-site-hero__stage {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

.pt-site-hero.pt-site-hero--stage-ended .pt-site-hero__stage {
  position: absolute;
  top: auto;
  bottom: 0;
  right: 0;
  left: 0;
}

/* ÉTAT 1 — TITRE SEUL */

.pt-site-hero__intro {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: var(--hero-intro-opacity);
  transform: translate3d(0, var(--hero-intro-y), 0) scale(var(--hero-intro-scale));
  will-change: opacity, transform;
}

.pt-site-hero__intro h1 {
  margin: 0;
  color: #f2ebdd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 7vw, 7.2rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
  text-align: center;
  text-shadow: 0 12px 40px rgba(3, 4, 6, .62);
}

.pt-site-hero.pt-site-hero--motion-ready .pt-site-hero__intro h1 {
  animation: pt-site-hero-title-in 5.35s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes pt-site-hero-title-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.982);
    filter: blur(9px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* ÉTAT 2 — RUE VIDE */

.pt-site-hero__background,
.pt-site-hero__shade,
.pt-site-hero__vignette {
  position: absolute;
  inset: 0;
}

.pt-site-hero__background {
  z-index: 0;
  opacity: var(--hero-street-opacity);
  transform: translate3d(0, var(--hero-bg-y), 0) scale(var(--hero-bg-scale));
  transform-origin: 50% 54%;
  will-change: opacity, transform;
}

.pt-site-hero__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pt-site-hero__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 16, .86) 0%, rgba(3, 8, 16, .42) 42%, rgba(3, 8, 16, .82) 100%),
    linear-gradient(90deg, rgba(3, 8, 16, .62), rgba(3, 8, 16, .16) 50%, rgba(3, 8, 16, .42));
}

/* ÉTAT 3 — DOS HOMME AVANCE */

.pt-site-hero__person {
  position: absolute;
  left: 50%;
  bottom: -2%;
  z-index: 2;
  width: auto;
  height: min(78svh, 880px);
  max-width: 76vw;
  object-fit: contain;
  object-position: center bottom;
  opacity: var(--hero-person-opacity);
  transform: translate3d(-50%, var(--hero-person-y), 0) scale(var(--hero-person-scale));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 1.6rem 2.6rem rgba(3, 4, 6, .48));
  will-change: opacity, transform;
}

/* ÉTAT 4 — TEXTES */

.pt-site-hero__scroll-story,
.pt-site-hero__story {
  position: absolute;
  left: max(clamp(1.5rem, 10vw, 11rem), env(safe-area-inset-left));
  right: max(1.5rem, env(safe-area-inset-right));
  top: clamp(7.2rem, 20vh, 13rem);
  z-index: 5;
  box-sizing: border-box;
  width: auto;
  max-width: min(860px, calc(100% - 3rem));
  visibility: visible;
  text-shadow: 0 12px 42px rgba(3, 4, 6, .82);
  will-change: opacity, transform;
  pointer-events: none;
}

.pt-site-hero__scroll-story {
  opacity: var(--hero-story-opacity);
  transform: translate3d(0, var(--hero-story-y), 0);
}

.pt-site-hero__story {
  opacity: var(--hero-story-two-opacity);
  transform: translate3d(0, var(--hero-story-two-y), 0);
}

.pt-site-hero__eyebrow {
  margin: 0 0 1.4rem;
  color: rgba(242, 235, 221, .58);
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.pt-site-hero__scroll-story h2,
.pt-site-hero__story h2 {
  margin: 0;
  color: rgba(242, 235, 221, .92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
}

.pt-site-hero__scroll-story p:not(.pt-site-hero__eyebrow),
.pt-site-hero__story p:not(.pt-site-hero__eyebrow) {
  margin: 1.15rem 0 0;
  max-width: 720px;
  color: rgba(242, 235, 221, .92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.75vw, 1.9rem);
  line-height: 1.18;
}

.pt-site-hero__scroll-story .pt-site-hero__lead {
  max-width: 560px;
  color: rgba(242, 235, 221, .9);
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 500;
  line-height: 1.38;
}

.pt-site-hero__scroll-story .pt-site-hero__logline {
  margin-top: .85rem;
  max-width: 720px;
  color: rgba(242, 235, 221, .9);
  font-family: Arial, sans-serif;
  font-size: clamp(.95rem, 1.18vw, 1.2rem);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .005em;
}

.pt-site-hero__scroll-story .pt-site-hero__manifesto {
  margin-top: .75rem;
  max-width: 720px;
  color: rgba(242, 235, 221, .72);
  font-family: Arial, sans-serif;
  font-size: clamp(.72rem, .78vw, .9rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .04em;
}

.pt-site-hero__loop {
  color: rgba(242, 235, 221, .68) !important;
  font-family: Arial, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.6 !important;
  text-transform: uppercase;
}

.pt-site-hero__trace {
  position: absolute;
  left: max(clamp(1.5rem, 10vw, 11rem), env(safe-area-inset-left));
  right: max(clamp(1.5rem, 10vw, 11rem), env(safe-area-inset-right));
  bottom: clamp(5.8rem, 14vh, 9rem);
  z-index: 5;
  height: 2px;
  background: rgba(122, 32, 32, .92);
  opacity: var(--hero-trace-opacity);
  transform: scaleX(var(--hero-trace-scale));
  transform-origin: 0 50%;
  will-change: opacity, transform;
}

.pt-site-hero__background,
.pt-site-hero__person,
.pt-site-hero__intro,
.pt-site-hero__scroll-story,
.pt-site-hero__actions,
.pt-site-hero__trace {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* ÉTAT 5 — BOUTONS */

.pt-site-hero__actions {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(11rem, 1fr));
  gap: .55rem;
  box-sizing: border-box;
  max-width: calc(100% - 2.5rem);
  opacity: var(--hero-actions-opacity);
  transform: translate3d(0, var(--hero-actions-y), 0);
  visibility: visible;
  pointer-events: var(--hero-actions-pointer-events);
  will-change: opacity, transform;
}

.pt-site-hero__actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem;
  border: 1px solid rgba(242, 235, 221, .36);
  border-radius: 3px;
  background: rgba(20, 3, 7, .48);
  color: #f2ebdd;
  font-family: Arial, sans-serif;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.pt-site-hero__actions a:first-child {
  border-color: rgba(102, 25, 25, .9);
  background: rgba(102, 25, 25, .92);
}

.pt-site-hero__actions a:hover,
.pt-site-hero__actions a:focus-visible {
  border-color: rgba(242, 235, 221, .74);
  background: rgba(102, 25, 25, .82);
  outline: 0;
}

/* VIGNETTE CINÉMA */

.pt-site-hero__vignette {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 26%, rgba(3, 8, 16, .18) 66%, rgba(3, 8, 16, .78) 115%),
    linear-gradient(180deg, rgba(3, 8, 16, .18), transparent 24%, transparent 68%, rgba(3, 8, 16, .76));
}

/* Sécurité : anciens blocs si encore présents */

.pt-site-hero__content,
.pt-site-hero__question {
  display: none;
}

/* MOBILE */

@media (max-width: 700px) {
  .pt-site-hero {
    height: 430svh;
    min-height: 2300px;
  }

  .pt-site-hero__stage {
    min-height: 540px;
  }

  .pt-site-hero__intro h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
    letter-spacing: -.045em;
  }

  .pt-site-hero__background {
    transform-origin: 50% 48%;
  }

  .pt-site-hero__background img {
    object-position: center top;
  }

  .pt-site-hero__person {
    bottom: 3%;
    height: min(58svh, 560px);
    max-width: 82vw;
  }

  .pt-site-hero__scroll-story,
  .pt-site-hero__story {
    left: max(1.25rem, env(safe-area-inset-left));
    right: max(1.25rem, env(safe-area-inset-right));
    top: clamp(4.9rem, 12vh, 7rem);
    width: auto;
  }

  .pt-site-hero__eyebrow {
    margin-bottom: 1rem;
    font-size: .58rem;
    letter-spacing: .16em;
  }

  .pt-site-hero__scroll-story h2,
  .pt-site-hero__story h2 {
    font-size: clamp(2.25rem, 10.8vw, 3.55rem);
    line-height: .93;
  }

  .pt-site-hero__scroll-story p:not(.pt-site-hero__eyebrow),
  .pt-site-hero__story p:not(.pt-site-hero__eyebrow) {
    max-width: 94%;
    font-size: clamp(1rem, 4.7vw, 1.28rem);
    line-height: 1.28;
  }

  .pt-site-hero__scroll-story .pt-site-hero__lead {
    max-width: 92%;
    font-size: clamp(.96rem, 4.15vw, 1.12rem);
    line-height: 1.36;
  }

  .pt-site-hero__scroll-story .pt-site-hero__logline {
    max-width: 94%;
    font-size: clamp(.78rem, 3.45vw, .98rem);
    line-height: 1.45;
  }

  .pt-site-hero__scroll-story .pt-site-hero__manifesto {
    max-width: 94%;
    font-size: clamp(.62rem, 2.85vw, .76rem);
    line-height: 1.48;
  }

  .pt-site-hero__loop {
    font-size: .58rem !important;
  }

  .pt-site-hero__trace {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 8.8rem;
  }

  .pt-site-hero__actions {
    right: auto;
    bottom: 48px;
    left: 50%;
    width: min(360px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    gap: 11px;
    transform: translate3d(-50%, var(--hero-actions-y), 0);
  }

  .pt-site-hero__actions a {
    width: 100%;
    min-height: 42px;
    padding: .72rem .45rem;
    font-size: .5rem;
    letter-spacing: .1em;
  }
}

/* RÉDUCTION ANIMATION */

@media (prefers-reduced-motion: reduce) {
  .pt-site-hero {
    --hero-stage-y: 0px !important;

    --hero-intro-opacity: 0 !important;
    --hero-intro-y: 0px !important;
    --hero-intro-scale: 1 !important;

    --hero-street-opacity: 1 !important;
    --hero-bg-y: 0px !important;
    --hero-bg-scale: 1.04 !important;

    --hero-person-opacity: 1 !important;
    --hero-person-y: 0px !important;
    --hero-person-scale: 1 !important;

    --hero-story-opacity: 0 !important;
    --hero-story-y: 0px !important;
    --hero-story-two-opacity: 1 !important;
    --hero-story-two-y: 0px !important;
    --hero-story-visibility: visible !important;

    --hero-actions-opacity: 1 !important;
    --hero-actions-y: 0px !important;
    --hero-actions-visibility: visible !important;
    --hero-actions-pointer-events: auto !important;
    --hero-trace-opacity: 1 !important;
    --hero-trace-scale: 1 !important;

    height: 100svh;
    min-height: 640px;
  }

  .pt-site-hero__stage {
    position: relative;
    transform: none;
    will-change: auto;
  }

  .pt-site-hero__background,
  .pt-site-hero__person,
  .pt-site-hero__intro,
  .pt-site-hero__scroll-story,
  .pt-site-hero__story,
  .pt-site-hero__actions,
  .pt-site-hero__trace {
    will-change: auto;
  }

  .pt-site-hero__intro h1 {
    animation: none !important;
  }
}
