/* ============================================================
   work-panel.css
   Panel droit + vague + bandes + page projet + lightbox
   Trigger = + WORK (#navWork) dans le header — click only, stays open
   ============================================================ */

/* Header always ABOVE the work module.
   header.css sets z-index:20 — that loses to .wp-panel (900).
   Force fixed + high z-index so logo/nav stay on top of panel/bands/project. */
header {
  position: fixed !important;
  z-index: 10000 !important;
}

/* Fill z-index set per-instance in JS: WORK=50, François=9800 */



/* + WORK stays white while menu is open (JS toggles .is-open + body.wp-panel-open) */
#navWork {
  transition: color 0.2s ease;
}
#navWork:hover,
#navWork.is-open,
body.wp-panel-open #navWork {
  color: #fff !important;
}

#navAbout {
  transition: color 0.2s ease;
}
header .nav #navAbout.is-open,
header .nav #navAbout.is-open:hover,
#navAbout.is-open,
body.about-open #navAbout,
body.about-open #navAbout:hover {
  color: #fff !important;
}

/* Nav controls above header-hover-fill (z-index:0) inside the header stack */
.nav,
#navWork,
.header-right,
.socials {
  position: relative;
  z-index: 2;
}

/* --- Panel droit (listes) — pas de calque, texte seulement --- */
.wp-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  /* left set by JS to align with + WORK */
  left: auto;
  width: 0;
  z-index: 900;
  background: transparent; /* no overlay under the menu */
  overflow: hidden;
  pointer-events: none;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.wp-panel.is-open {
  pointer-events: auto;
  /* width applied by JS from + WORK left edge → viewport right */
}

.wp-panel-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 130px 40px 48px 10px; /* lower groups + 10px to the right */
  box-sizing: border-box;
  scrollbar-width: none;
  overscroll-behavior: contain; /* don't chain scroll to page */
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 108px,
    #000 138px,
    #000 calc(100% - 56px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 108px,
    #000 138px,
    #000 calc(100% - 56px),
    transparent 100%
  );
}

.wp-panel-scroll::-webkit-scrollbar {
  display: none;
}

.wp-section {
  margin-bottom: 36px;
}

/* BRANDS & ORGANIZATIONS / RODEO CLIP & THE SECRETS */
.wp-section-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.2;
  margin-bottom: 2px;
}

/* /18 · /11 — même typo que .sec-count page principale */
.wp-number {
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 12px;
}

.wp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items — screenshot 1 : Bold 22px, interlétrage + interligne serrés */
.wp-item.is-active {
  color: #fff !important;
  /* scale is driven by GSAP transform; class is the semantic lock */
}
.wp-item {

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.045em;
  line-height: 0.88;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  padding: 2px 0;
  cursor: pointer;
  transform-origin: 0% 50% !important;
  will-change: transform, color;
  display: block;
}

/* Gap between project right edge and menu column (preserves menu/blur spacing) */
:root {
  --wp-project-gap: 20px;
}

/* --- Band transition (4 vertical strips) --- */
.wp-bands {
  position: fixed;
  top: 0;
  left: 0;
  right: calc(var(--wp-panel-width, 420px) + var(--wp-project-gap, 20px));
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: row;
}

.wp-bands .wp-band {
  flex: 1;
  background: #0a0a0a;
  transform: scaleY(0);
  transform-origin: bottom center;
  will-change: transform;
}

/* --- Project page (narrower — gap before menu column) --- */
.wp-project {
  position: fixed;
  top: 0;
  left: 0;
  right: calc(var(--wp-panel-width, 420px) + var(--wp-project-gap, 20px));
  bottom: 0;
  z-index: 999;
  background: #0a0a0a;
  color: #fff;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wp-project::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.wp-project.is-open {
  pointer-events: auto;
}

.wp-project-inner {
  width: 100%;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
}

.wp-project-video {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.wp-project-video.is-fs {
  position: fixed;
  inset: 0;
  z-index: 20000;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  cursor: grab;
}

.wp-viewer-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 6;
  background: none;
  border: 0;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.wp-project-video.is-fs .wp-viewer-close {
  display: none !important;
}

.wp-viewer-fs-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
}

.wp-project-video.is-fs .wp-viewer-fs-hit {
  display: none;
}

.wp-project-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.wp-project-video.is-empty {
  display: none;
}

.wp-project-video.has-poster iframe {
  display: none;
}

.wp-video-poster,
.wp-video-slides,
.wp-video-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wp-video-slides {
  z-index: 1;
  overflow: hidden;
  background-color: transparent;
  background-size: cover;
  background-position: center;
}
.wp-video-slides img {
  opacity: 0;
  will-change: transform, opacity;
}

.wp-video-bar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.wp-video-bar[hidden] { display: none; }

.wp-video-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.wp-video-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}

.wp-project-body {
  position: relative;
  z-index: 2;
  background: #0a0a0a;
  padding: 48px 56px 28px;
  margin-top: 0;
  will-change: transform;
}

/* Title left · Close X right — aligned with title, flush to content right edge */
.wp-project-head {
  display: flex;
  align-items: center; /* vertical center with title */
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  width: 100%;
}

.wp-project-close {
  position: relative;
  top: -35px;   /* remonté */
  right: -23px; /* décalé à droite */
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: color 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.wp-project-close:hover {
  color: #fff;
}

.wp-project-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

.wp-project-lead {
  white-space: pre-line;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  max-width: 960px;
  margin-bottom: 24px;
}

.wp-project-meta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wp-meta-block label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: #fff;
}

.wp-meta-block span {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.wp-stills {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.wp-stills h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.wp-stills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.wp-stills-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: #111;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wp-stills-grid img:hover {
  opacity: 0.85;
}

/* Pattern 1 / 2 / 2 / 1 */
.wp-stills-grid img:nth-child(1),
.wp-stills-grid img:nth-child(6) {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.wp-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
}

.wp-footer-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.22);
}

.wp-footer-icons svg {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.7;
}

/* Project footer — Helvetica Light only (override project bold cascade) */
.wp-footer,
.wp-footer-text,
.wp-footer-text span {
  font-family: Helvetica, "Helvetica Neue", "Arial", sans-serif !important;
  font-weight: 300 !important;
  font-style: normal !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
.wp-footer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 8px !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.45;
}
.wp-footer-text span {
  display: block;
  font-size: inherit !important;
  font-weight: 300 !important;
  letter-spacing: inherit;
  text-transform: uppercase;
}

/* --- Lightbox --- */
.wp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wp-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wp-lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transform-origin: center center;
}

.wp-lightbox-close {
  display: none !important;
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  z-index: 2;
}

.wp-lightbox-close:hover {
  color: #fff;
}

.wp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 28px;
  cursor: pointer;
  padding: 16px 20px;
  font-family: inherit;
  z-index: 2;
  transition: color 0.2s;
}

.wp-lightbox-nav:hover {
  color: #fff;
}

.wp-lightbox-prev {
  left: 8px;
}

.wp-lightbox-next {
  right: 8px;
}

.wp-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
