/* ── Pages prestations — portfolio photo ── */

.prestation-page {
  background: var(--black);
}

.prestation-back {
  display: inline-flex;
  align-items: center;
  margin: calc(var(--header-height) + clamp(16px, 3vw, 24px)) auto 0;
  padding: 0 clamp(24px, 5vw, 56px);
  width: min(var(--layout-max), 100%);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.35s var(--ease);
}

.prestation-back:hover {
  color: var(--gold);
}

/* ── Hero compact ── */

.prestation-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.prestation-hero--compact {
  min-height: clamp(280px, 45vh, 420px);
  max-height: 45vh;
}

.prestation-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.editorial-opening__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.05);
  transform-origin: center center;
  will-change: transform;
}

.prestation-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.45) 55%,
    rgba(10, 10, 10, 0.2) 100%
  );
  pointer-events: none;
}

.prestation-hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--layout-max), 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 56px) clamp(32px, 5vw, 48px);
}

.prestation-hero__title {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}

.prestation-hero__subtitle {
  margin: clamp(10px, 1.8vw, 14px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.05vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(212, 175, 55, 0.78);
}

/* ── Fin de page ── */

.prestation-closing {
  padding: clamp(80px, 16vh, 180px) clamp(24px, 5vw, 56px) clamp(96px, 18vh, 200px);
}

.prestation-closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(28rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.prestation-closing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.prestation-closing__cta {
  margin-top: clamp(28px, 4.5vw, 40px);
  min-width: min(100%, 16rem);
}

/* ── Reveal ── */

.editorial-reveal.viewport-reveal:not(.is-in-view) {
  opacity: 0;
}

.editorial-reveal.viewport-reveal.from-below:not(.is-in-view) {
  transform: translateY(20px);
}

.editorial-reveal.viewport-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .prestation-hero--compact {
    min-height: clamp(260px, 42vh, 360px);
    max-height: none;
  }

  .prestation-hero__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-opening__img {
    transform: scale(1.02) !important;
    will-change: auto;
  }

  .editorial-reveal.viewport-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
