/* project3.css */
/* =========================================
   PROJECT 3
   ✅ Hero (index + meta + texte)
   ✅ 3 Vimeo centrées
   ✅ Carousel sticky (images 1..5)
========================================= */

.project3-page{
  background: #101010;
  color: #f5f5f5;
}

/* =========================
   HERO
========================= */
.p3-hero{
  position: relative;
  padding-top: 0;
  min-height: calc(100vh - 70px);
}

.p3-hero-inner{
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px 110px;
  overflow: visible;
}

.p3-hero-index{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(7rem, 16vw, 15rem);
  line-height: 0.75;
  position: relative;
  z-index: 4;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.p3-hero-meta{
  position: absolute;
  top: 25px;
  left: 420px;
  right: 60px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.7fr;
  gap: 60px;
  z-index: 5;
  mix-blend-mode: difference;
  text-transform: uppercase;
}

.p3-meta-title{
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.12rem;
  font-weight: 400;
}

.p3-meta-sub{
  margin-top: 10px;
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.12rem;
  font-weight: 300;
  opacity: 0.85;
}

.p3-hero-text{
  margin-top: 120px;
  max-width: 560px;
  position: relative;
  z-index: 6;
  mix-blend-mode: difference;
  text-transform: uppercase;
}

.p3-hero-text p{
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.12rem;
  font-weight: 300;
  margin-bottom: 22px;
  opacity: 0.9;
}

.p3-hero-text strong{
  font-weight: 600;
  opacity: 1;
}

/* =========================
   VIMEO LIST
========================= */
.p3-videos{
  width: 100%;
  padding: 80px 0 180px;
}

.p3-videos-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 110px;
}

.p3-vimeo-wrap{
  width: min(82vw, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  mix-blend-mode: exclusion;
  filter: grayscale(1) contrast(1.15);
  will-change: transform, opacity;
}

.p3-vimeo-ratio{
  position: relative;
  padding-top: 56.25%;
  height: 0;
}

.p3-vimeo-ratio iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  border: 0;
}

/* =========================
   PRODUCTION — sticky carousel
========================= */
.p3-prod-scene{
  position: relative;
  height: 260vh;
  overflow: visible;
}

.p3-prod-scene .p3-prod-sticky{
  position: sticky;
  top: 70px;
  min-height: calc(100vh - 70px);
  overflow: visible;
  contain: none;
}

.p3-prod-topline{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  mix-blend-mode: difference;
  text-transform: uppercase;
}

.p3-prod-kicker{
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.8rem;
}

.p3-prod-sub{
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  opacity: 0.85;
}

/* carousel */
.p3-carousel{
  position: relative;
  width: 100%;
  height: calc(100vh - 70px - 60px);
  overflow: hidden;
  background: #101010;
}

.p3-carousel-track{
  height: 100%;
  display: flex;
  will-change: transform;
}

.p3-slide{
  width: 100vw;
  flex: 0 0 100vw;
  position: relative;
  height: 100%;
  background: #101010;
  isolation: isolate;
}

/* Media */
.p3-slide-media{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p3-slide-media img{
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: exclusion;
}

/* Scale progressif par slide */
.p3-slide[data-index="0"] .p3-slide-media img{ max-width: min(82vw, 1200px); max-height: 88vh; }
.p3-slide[data-index="1"] .p3-slide-media img{ max-width: min(74vw, 980px);  max-height: 78vh; }
.p3-slide[data-index="2"] .p3-slide-media img{ max-width: min(68vw, 900px);  max-height: 72vh; }
.p3-slide[data-index="3"] .p3-slide-media img{ max-width: min(62vw, 820px);  max-height: 68vh; }
.p3-slide[data-index="4"] .p3-slide-media img{ max-width: min(62vw, 820px);  max-height: 68vh; }

/* Legend overlay (comme p1) */
.p3-slide-legend{
  position: absolute;
  right: calc(50% - 500px);
  top: 50%;
  transform: translateY(-50%);

  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: baseline;

  z-index: 10;
  pointer-events: none;
  text-transform: uppercase;

  background: none;
  border: none;
  backdrop-filter: none;

  mix-blend-mode: difference;
}

.p3-legend-left{
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  opacity: 1;
}

.p3-legend-text{
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  line-height: 1.45;
  opacity: 0.7;
}

.cap-num{ font-weight: 600; opacity: 1; }

/* Dots */
.p3-dots{
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  mix-blend-mode: difference;
}

.p3-dots .dot{
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(245,245,245,0.55);
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.p3-dots .dot.is-active{
  background: rgba(245,245,245,0.95);
  transform: scale(1.35);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px){
  .p3-hero-meta{
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .p3-hero-inner{ padding: 0 26px 90px; }
  .p3-videos-inner{ padding: 0 26px; gap: 90px; }
  .p3-prod-topline{ padding: 0 26px 14px; }
  .p3-slide-legend{ right: 26px; top: 22px; transform: none; }
}
