/* ==========================================================================
   PROJECT DETAIL PAGES — ROGUESTUDIO
   - Desktop (> 900px): Fixed/Sticky Left Black Project Rail + Right Stage
   - 9 Signature Agency Layout Proposals (L01..L09) + Live Studio Switcher
   - Mobile (<= 900px): Classic Rogue Studio Vertical Flow (100% Legible)
   ========================================================================== */

:root {
  --pd-rail-w: clamp(248px, 19.5vw, 292px);
  --pd-rail-bg: #141414;
  --pd-stage-bg: #141414;
  --pd-surface: #141414;
  --pd-border: rgba(255, 255, 255, 0.11);
  --pd-border-strong: rgba(255, 255, 255, 0.22);
  --pd-text: #ffffff;
  --pd-muted: #a19591;
  --pd-accent: #ea362a;
  --pd-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --pd-serif: "jaf-lapture-display", Georgia, serif;
}

/* --- Top Header Integration on Project Pages (Desktop) --- */
@media (min-width: 769px) {
  body.is-project-page .rogue-nav-spacer {
    display: none !important;
  }

  body.is-project-page .rogue-nav.is-fixed {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================================================
   1. DESKTOP SHELL: LEFT BLACK SIDEBAR + RIGHT SCROLLABLE STAGE
   ========================================================================== */
body.is-project-page {
  background: #141414;
}

body.is-project-page .rogue-site-footer {
  background: #141414;
  margin-left: var(--pd-rail-w);
  width: calc(100% - var(--pd-rail-w));
}

@media (max-width: 1180px) and (orientation: portrait), (max-width: 768px) {
  body.is-project-page .rogue-site-footer {
    margin-left: 0;
    width: 100%;
  }
}

.pdetail-shell {
  display: block;
  width: 100%;
  min-height: 100svh;
  background: #141414;
  position: relative;
}

.pdetail-mobile-classic {
  display: none;
}

/* --- Left Black Sidebar (.pdetail-rail) --- */
.pdetail-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--pd-rail-w);
  height: 100svh;
  background: #141414;
  border-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 68px 18px 18px 18px;
  z-index: 40;
  overflow-y: auto;
  scrollbar-width: none;
}

.pdetail-rail::-webkit-scrollbar {
  display: none;
}

.pdetail-rail-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdetail-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 0;
}

.pdetail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.pdetail-back-link:hover {
  color: var(--pd-text);
  transform: translateX(-2px);
}

.pdetail-rail-count {
  font-family: var(--pd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
}

/* Project List in Sidebar */
.pdetail-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pdetail-nav-item {
  position: relative;
  border-bottom: 0;
}

.pdetail-nav-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 4px;
  color: var(--pd-muted);
  text-decoration: none;
  filter: blur(2.6px);
  transition: color 0.28s ease, padding-left 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
  position: relative;
}

.pdetail-nav-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pdetail-nav-left {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.pdetail-nav-idx,
.pdetail-nav-dot,
.pdetail-nav-sub {
  display: none;
}

.pdetail-nav-name {
  font-family: var(--pd-serif);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdetail-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd-accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  align-self: center;
}

.pdetail-nav-sub {
  font-family: var(--pd-serif);
  font-size: 12.5px;
  font-style: italic;
  color: var(--pd-muted);
  padding-left: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.pdetail-nav-link:hover,
.pdetail-nav-link:focus-visible {
  color: #ffffff;
  padding-left: 8px;
  filter: none;
}

.pdetail-nav-item.is-active .pdetail-nav-link,
.pdetail-nav-item.is-active .pdetail-nav-link:hover {
  color: #ffffff;
  padding-top: 12px;
  padding-bottom: 14px;
  filter: none;
}

/* Barre de lecture retirée — le projet actif reste rouge, sans filet */
.pdetail-nav-progress {
  display: none;
}

/* --- Studio Layout Tester Dock — retiré de l'affichage, layouts 04 et 05 conservés dans le code --- */
.pdetail-tester {
  display: none;
}

.pdetail-tester.is-collapsed .pdetail-tester-body {
  display: none;
}

.pdetail-tester-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pdetail-tester-kicker {
  font-family: var(--pd-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdetail-tester-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pd-accent);
}

.pdetail-tester-toggle {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--pd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 4px;
}

.pdetail-tester-toggle:hover {
  color: #ffffff;
}

.pdetail-tester-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdetail-tester-current {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdetail-tester-name {
  font-family: var(--pd-serif);
  font-size: 14.5px;
  color: #ffffff;
  line-height: 1.2;
}

.pdetail-tester-note {
  font-family: var(--pd-serif);
  font-size: 12px;
  line-height: 1.35;
  color: var(--pd-muted);
}

.pdetail-tester-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.pdetail-layout-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--pd-muted);
  font-family: var(--pd-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pdetail-layout-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.pdetail-layout-btn.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0a;
}

.pdetail-layout-btn.is-default:not(.is-active) {
  border-color: rgba(234, 54, 42, 0.55);
}

/* ==========================================================================
   2. RIGHT STAGE — SHARED BUILDING BLOCKS & LEGIBILITY SYSTEM
   ========================================================================== */
.pdetail-stage-wrap {
  margin-left: var(--pd-rail-w);
  width: calc(100% - var(--pd-rail-w));
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #141414;
}

.pdetail-stage {
  width: 100%;
  padding: 82px clamp(24px, 3.2vw, 52px) 64px;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
  animation: pdStageFade 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdetail-stage.is-layout-03 {
  padding-top: 0;
}

@keyframes pdStageFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography Atoms */
.pd-kicker {
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-title {
  font-family: var(--pd-serif);
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--pd-text);
  margin: 0;
}

.pd-slogan {
  font-family: var(--pd-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pd-muted);
  margin: 0;
}

.pd-services-line {
  font-family: var(--pd-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--pd-text);
  margin: 0;
}

.pd-copy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.pd-copy p {
  font-family: var(--pd-serif);
  font-size: clamp(17px, 1.3vw, 19.5px);
  font-weight: 400;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.pd-credits {
  font-family: var(--pd-serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--pd-muted);
  margin-top: 4px;
}

/* Tags / Discipline Pills */
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--pd-border-strong);
  font-family: var(--pd-serif);
  font-size: 13.5px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

/* External Website Rollover Pill (100% Rogue Studio DA) */
.pd-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-family: var(--pd-serif);
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: flex-start;
  transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-cta-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: -1;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-cta-pill:hover {
  color: #141414;
}

.pd-cta-pill:hover::before {
  transform-origin: left center;
  transform: scaleX(1);
}

.pd-cta-pill svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pd-cta-pill:hover svg {
  transform: translate(2px, -2px);
}

/* Editorial Pull-Quote Block */
.pd-quote-block {
  padding: clamp(28px, 3.8vw, 52px) 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-quote-text {
  font-family: var(--pd-serif);
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.24;
  color: #ffffff;
  max-width: 28ch;
}

/* ==========================================================================
   3. HIGH-LEGIBILITY MEDIA FIGURES & VIDEO FRAMES
   ========================================================================== */
.pd-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pd-media-box {
  position: relative;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: default;
}

.pd-media-box img,
.pd-media-box video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.pd-media-box:hover img {
  transform: none;
}

.pd-zoom-pill {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--pd-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .pd-media-box:hover .pd-zoom-pill {
    opacity: 1;
    transform: translateY(0);
  }
}

.pdetail-stage:not(.is-layout-05) .pd-figcaption {
  display: none;
}

.pdetail-stage:not(.is-layout-05) .pd-figure {
  gap: 0;
}

.is-layout-05 .pd-figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--pd-serif);
  font-size: 14px;
  color: var(--pd-muted);
}

.pd-fig-num {
  font-family: var(--pd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Cinema Video Stage */
.pd-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: #141414;
  aspect-ratio: 16 / 9;
}

.pd-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Smart Row Grids (Never > 2 columns inside narrower stage!) */
.pd-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
  align-items: start;
}

.pd-pair--stagger .pd-figure:nth-child(2) {
  margin-top: clamp(36px, 5.5vw, 84px);
}

.pd-pair--wide-left {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.pd-pair--wide-right {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.pd-full {
  width: 100%;
}

/* ==========================================================================
   4. THE 9 SIGNATURE LAYOUT PROPOSALS (L01 .. L09)
   ========================================================================== */

/* --- LAYOUT 01: Monographie Split Sticky (Mermont) --- */
.pd-l01-hero {
  display: grid;
  grid-template-columns: minmax(290px, 0.43fr) minmax(0, 0.57fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
}

.pd-l01-sticky {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pd-l01-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
}

.pd-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pd-meta-label {
  font-family: var(--pd-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.pd-meta-val {
  font-family: var(--pd-serif);
  font-size: 15.5px;
  color: #ffffff;
}

.pd-l01-right {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

.pd-l01-quote-split {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

/* --- LAYOUT 02: Catalogue d'Exposition Centré (Les Muses BM) --- */
.pd-l02-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-top: 12px;
}

.pd-l02-header .pd-title {
  font-size: clamp(48px, 6vw, 86px);
}

.pd-l02-header .pd-slogan {
  font-style: italic;
}

.pd-l02-specs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
  margin-top: 14px;
}

.pd-l02-spec {
  padding: 14px 16px;
  border-right: 1px solid var(--pd-border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-l02-spec:last-child {
  border-right: 0;
}

.pd-l02-essay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  max-width: 980px;
  margin: 0 auto;
}

.pd-l02-mat .pd-media-box {
  padding: 0;
  background: transparent;
  border: 0;
}

.pd-l02-mat .pd-media-box img {
  border-radius: 5px;
}

/* --- LAYOUT 03: Cover Immersive & Horizon (Swiss Yacht Brokers) --- */
.pd-l03-cover {
  position: relative;
  margin-left: calc(-1 * clamp(24px, 3.2vw, 52px));
  margin-right: calc(-1 * clamp(24px, 3.2vw, 52px));
  height: min(80svh, 760px);
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 4vw, 56px);
  background: #0d0d0d;
}

.pd-l03-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pd-l03-cover-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.35) 0%,
    rgba(12, 12, 12, 0.12) 40%,
    rgba(20, 20, 20, 0.92) 100%
  );
}

.pd-l03-cover-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-l03-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--pd-border);
}

.pd-l03-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- LAYOUT 04: Récit en Chapitres (Château de Mont) --- */
.pd-l04-masthead {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.pd-l04-subdeck {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-l04-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.7fr);
  gap: clamp(28px, 3.6vw, 56px);
  padding-top: 0;
  border: 0;
  align-items: start;
}

.pd-l04-chapter.is-full {
  grid-template-columns: minmax(0, 1fr);
}

.pd-l04-row {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(220px, 0.72fr);
  gap: clamp(28px, 3.6vw, 64px);
  align-items: center;
}

.pd-l04-row.is-head {
  align-items: center;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.pd-l04-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-visual.is-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 22px);
  align-items: start;
}

.pd-visual.is-pair img {
  width: auto;
  max-width: 100%;
  max-height: 64vh;
  height: auto;
  margin: 0 auto;
}

.pd-visual.is-single .pd-media-box {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.pd-visual.is-single img {
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
}

.pd-l05-beat {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
  border-bottom: 1px solid var(--pd-border-strong);
  align-items: stretch;
}

.pd-l05-beat .pd-visual {
  padding: clamp(16px, 2vw, 28px);
  min-width: 0;
}

.pd-l05-beat .pd-l05-cell {
  border-left: 1px solid var(--pd-border-strong);
  justify-content: center;
}

.pd-l05-beat.is-media {
  grid-template-columns: minmax(0, 1fr);
}

.pd-l05-beat.is-media .pd-visual.is-single {
  max-width: min(440px, 48%);
  margin: 0 auto;
}

.pd-l04-ch-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

.pd-l04-ch-num {
  font-family: var(--pd-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--pd-muted);
}

.pd-l04-ch-body {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.8vw, 38px);
}

/* --- LAYOUT 05: Grille Horlogère Suisse (Delaloye Genève) --- */
.is-layout-05 {
  --pd-hair: rgba(255, 255, 255, 0.22);
}

.pd-l05-grid {
  border: 0;
  border-top: 1px solid var(--pd-hair);
  border-left: 1px solid var(--pd-hair);
  display: flex;
  flex-direction: column;
}

.pd-l05-top {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(240px, 0.32fr);
  border-right: 1px solid var(--pd-hair);
  border-bottom: 1px solid var(--pd-hair);
}

.pd-l05-cell {
  padding: clamp(20px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-l05-cell + .pd-l05-cell {
  border-left: 1px solid var(--pd-hair);
}

.pd-l05-video-row {
  padding: clamp(14px, 1.8vw, 24px);
  border-bottom: 1px solid var(--pd-border-strong);
}

.pd-l05-video-row .pd-video-wrap,
.pd-l05-plates .pd-media-box {
  border-radius: 5px;
}

.pd-l05-band {
  border-right: 1px solid var(--pd-hair);
  border-bottom: 1px solid var(--pd-hair);
  min-width: 0;
}

.is-layout-05 .pd-title,
.is-layout-05 .pd-slogan,
.is-layout-05 .pd-services-line,
.is-layout-05 .pd-copy,
.is-layout-05 .pd-l05-copy,
.is-layout-05 .pd-figcaption,
.is-layout-05 .pd-meta-val {
  text-align: left;
}

.pd-l05-grid > :last-child {
  border-bottom: 0;
}

.pd-l05-band.is-full,
.pd-l05-band.is-single {
  padding: clamp(16px, 2.2vw, 28px);
}

.pd-l05-band.is-full .pd-visual,
.pd-l05-band.is-full .pd-video-wrap,
.pd-l05-band.is-full .pd-media-box {
  width: 100%;
}

.pd-l05-band.is-full img,
.pd-l05-band.is-pair img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.is-layout-05 .pd-figure[data-orient="portrait"],
.is-layout-05 .pd-figure[data-orient="square"] {
  width: fit-content;
  max-width: 100%;
}

.is-layout-05 .pd-figure[data-orient="portrait"] .pd-media-box,
.is-layout-05 .pd-figure[data-orient="square"] .pd-media-box {
  width: auto;
  max-width: 100%;
}

.is-layout-05 .pd-figure[data-orient="portrait"] img,
.is-layout-05 .pd-figure[data-orient="square"] img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  max-height: calc(100svh - 220px);
  height: auto;
  object-fit: contain;
}

.is-layout-05 .pd-l05-band.is-pair .pd-figure[data-orient="portrait"] img,
.is-layout-05 .pd-l05-band.is-pair .pd-figure[data-orient="square"] img {
  max-height: 46vh;
}

.is-layout-05 .pd-l05-band.is-single .pd-figure[data-orient="portrait"] img,
.is-layout-05 .pd-l05-band.is-single .pd-figure[data-orient="square"] img,
.is-layout-05 .pd-l05-band.is-aside .pd-figure[data-orient="portrait"] img,
.is-layout-05 .pd-l05-band.is-aside .pd-figure[data-orient="square"] img {
  max-width: min(36vw, 420px);
  max-height: 46vh;
}

.pd-l05-band.is-single {
  display: flex;
  justify-content: flex-start;
}

.pd-l05-band.is-single .pd-media-box,
.pd-l05-band.is-aside .pd-media-box {
  width: auto;
  display: inline-block;
  max-width: 100%;
}

.pd-l05-band.is-single img,
.pd-l05-band.is-aside img {
  width: auto;
  max-width: min(42vw, 520px);
  max-height: 70vh;
  height: auto;
}

.pd-l05-band.is-pair .pd-visual.is-pair {
  width: 100%;
}

.pd-l05-band.is-pair .pd-figure,
.pd-l05-band.is-aside .pd-visual {
  padding: clamp(16px, 2.2vw, 28px);
}

.pd-l05-band.is-pair .pd-figure + .pd-figure {
  border-left: 1px solid var(--pd-hair);
}

.pd-l05-band.is-aside {
  display: grid;
  align-items: center;
}

.pd-l05-band.is-text-right {
  grid-template-columns: auto minmax(220px, 1fr);
}

.pd-l05-band.is-text-left {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.pd-l05-band.is-text-right .pd-l05-copy,
.pd-l05-band.is-text-left .pd-visual {
  border-left: 1px solid var(--pd-hair);
}

.pd-l05-copy {
  padding: clamp(22px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.pd-l05-band.is-copy .pd-l05-copy {
  max-width: none;
  margin: 0;
  text-align: left;
  align-items: flex-start;
}

.pd-l05-narrative {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.34fr) minmax(0, 0.34fr);
  border-bottom: 1px solid var(--pd-hair);
}

.pd-l05-plates {
  display: flex;
  flex-direction: column;
}

.pd-l05-plate-full {
  padding: clamp(16px, 2.2vw, 28px);
  border-bottom: 1px solid var(--pd-border-strong);
}

.pd-l05-plate-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--pd-border-strong);
}

.pd-l05-plate-pair > .pd-figure {
  padding: clamp(16px, 2.2vw, 28px);
}

.pd-l05-plate-pair > .pd-figure + .pd-figure {
  border-left: 1px solid var(--pd-border-strong);
}

.pd-l05-plates > *:last-child {
  border-bottom: 0;
}

/* --- LAYOUT 06: Carnet Saisonnier Décalé (Café de Certoux) --- */
.pd-l06-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pd-l06-lead {
  font-family: var(--pd-serif);
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.16;
  color: #ffffff;
  max-width: 26ch;
}

.pd-l06-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
}

.pd-l06-drift {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(180px, 0.26fr);
  gap: clamp(20px, 2.8vw, 40px);
  align-items: end;
}

.pd-l06-drift.is-right {
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 0.74fr);
}

.pd-l06-note {
  padding-bottom: 8px;
  border-top: 1px solid var(--pd-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- LAYOUT 07: Système & Fiches Signalétiques (Base Aparthotels) --- */
.pd-l07-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-l07-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pd-l07-arrow {
  color: var(--pd-accent);
  margin-right: 10px;
}

.pd-l07-bar {
  display: none;
}

.pd-l07-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-l07-card-bar {
  display: none;
}

/* --- LAYOUT 08: Brand Book & Bento Modulaire (Force Promotion) --- */
.pd-l08-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-l08-bento-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pd-l08-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-l08-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.pd-l08-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.pd-span-12 { grid-column: span 12; }
.pd-span-7  { grid-column: span 7; }
.pd-span-5  { grid-column: span 5; }
.pd-span-6  { grid-column: span 6; }

/* --- LAYOUT 09: Case Study Transformation (EduSanté) --- */
.pd-l09-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-l09-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* ==========================================================================
   4b. L10–L16 · compositions de référence, DA Rogue
   Noir, serif JAF Lapture, Outfit, gris #a19591, rouge #ea362a.
   Aucun visuel ne dépasse la hauteur de l'écran.
   ========================================================================== */

.is-layout-10,
.is-layout-11,
.is-layout-12,
.is-layout-13,
.is-layout-14,
.is-layout-15,
.is-layout-16 {
  background: #141414;
  color: #ffffff;
}

.pdetail-stage-wrap:has(.is-layout-10),
.pdetail-stage-wrap:has(.is-layout-11),
.pdetail-stage-wrap:has(.is-layout-12),
.pdetail-stage-wrap:has(.is-layout-13),
.pdetail-stage-wrap:has(.is-layout-14),
.pdetail-stage-wrap:has(.is-layout-15),
.pdetail-stage-wrap:has(.is-layout-16) {
  background: #141414;
}

/* Visuels : jamais plus hauts que la page. Le cadre reste, l'image tient dedans. */
.is-layout-10 .pd-media-box,
.is-layout-11 .pd-media-box,
.is-layout-12 .pd-media-box,
.is-layout-13 .pd-media-box,
.is-layout-14 .pd-media-box,
.is-layout-15 .pd-media-box,
.is-layout-16 .pd-media-box,
.is-layout-10 .pd-video-wrap,
.is-layout-11 .pd-video-wrap,
.is-layout-12 .pd-video-wrap,
.is-layout-13 .pd-video-wrap,
.is-layout-14 .pd-video-wrap,
.is-layout-15 .pd-video-wrap,
.is-layout-16 .pd-video-wrap {
  max-height: 100svh;
  background: #141414;
}

.is-layout-10 .pd-media-box img,
.is-layout-11 .pd-media-box img,
.is-layout-12 .pd-media-box img,
.is-layout-13 .pd-media-box img,
.is-layout-14 .pd-media-box img,
.is-layout-15 .pd-media-box img,
.is-layout-16 .pd-media-box img {
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  object-position: center center;
  background: #141414;
}

.is-layout-10 .pd-video-wrap,
.is-layout-11 .pd-video-wrap,
.is-layout-12 .pd-video-wrap,
.is-layout-13 .pd-video-wrap,
.is-layout-14 .pd-video-wrap,
.is-layout-15 .pd-video-wrap,
.is-layout-16 .pd-video-wrap {
  width: min(100%, calc(100svh * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

.is-layout-10 .pd-title,
.is-layout-11 .pd-title,
.is-layout-12 .pd-l12-display,
.is-layout-13 .pd-title,
.is-layout-14 .pd-l14-display,
.is-layout-15 .pd-title,
.is-layout-16 .pd-l16-display {
  font-family: var(--pd-serif);
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.is-layout-10 .pd-figcaption,
.is-layout-13 .pd-figcaption,
.is-layout-15 .pd-figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--pd-serif);
  font-size: 14px;
  color: var(--pd-muted);
}

.is-layout-10 .pd-figure,
.is-layout-13 .pd-figure,
.is-layout-15 .pd-figure {
  gap: 10px;
}

/* --- L10 · planches centrées --- */
.is-layout-10 {
  padding-top: 108px;
  gap: 0;
}

.pd-l10-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 40rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.is-layout-10 .pd-title {
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: 0.94;
}

.pd-l10-slogan {
  margin: 0;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
  color: var(--pd-muted);
}

.pd-l10-lede { max-width: 38rem; }

.pd-l10-services {
  margin: 0;
  max-width: 36rem;
  font-family: var(--pd-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--pd-muted);
}

.pd-l10-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 4.5vw, 64px);
}

.pd-l10-plate { width: min(100%, 760px); }
.pd-l10-plate.is-wide { width: min(100%, 100%); }

.pd-l10-aside {
  width: min(100%, 460px);
  align-self: flex-start;
  margin-left: clamp(12px, 6vw, 72px);
}

/* --- L11 · un chapitre = un écran --- */
.pdetail-stage.is-layout-11 {
  padding: 0 0 48px;
  gap: 0;
}

.pd-l11-hero {
  position: relative;
  height: 100svh;
  max-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #141414;
  cursor: default;
}

.pd-l11-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100svh;
  object-fit: contain;
  background: #141414;
}

.pd-l11-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.pd-l11-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(28px, 4vw, 56px);
  max-width: 16ch;
}

.pd-l11-idx,
.pd-l11-chip,
.pd-l14-eye,
.pd-l16-run {
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.is-layout-11 .pd-l11-hero .pd-title {
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 0.9;
}

.pd-l11-slogan {
  margin: 0;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 26px);
  color: #ffffff;
}

.pd-l11-inter {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  min-height: 70svh;
  max-height: 100svh;
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--pd-border);
}

.pd-l11-big {
  margin: 0;
  max-width: 18ch;
  font-family: var(--pd-serif);
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  color: #ffffff;
}

.pd-l11-inter.is-quiet {
  min-height: 0;
  max-height: none;
  padding-top: 28px;
  padding-bottom: 56px;
}

.pd-l11-inter.is-quiet p {
  margin: 0;
  max-width: 38rem;
  font-family: var(--pd-serif);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.pd-l11-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pd-l11-services,
.pd-l14-row p,
.pd-l16-services {
  margin: 0;
  max-width: 32rem;
  font-family: var(--pd-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--pd-muted);
}

.pd-l11-beat { position: relative; }

.pd-l11-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.pd-l11-fallback { padding: 108px clamp(28px, 4vw, 64px) 40px; }

/* --- L12 · grand titre Rogue --- */
.is-layout-12 {
  gap: clamp(32px, 4vw, 52px);
  padding-top: 108px;
  min-width: 0;
}

.pd-l12-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-l12-top,
.pd-l12-deck {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.pd-l12-top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pd-accent);
  font-family: var(--pd-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-l12-top span {
  flex: none;
  white-space: nowrap;
}

.pd-l12-display {
  margin: 0;
  max-width: 100%;
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.9;
  overflow-wrap: break-word;
}

.pd-l12-slogan {
  margin: 0;
  max-width: 16ch;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  color: var(--pd-muted);
}

.pd-l12-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 46%;
}

.pd-l12-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  min-width: 0;
}

.pd-l12-lead,
.pd-l12-side,
.pd-l12-flow,
.pd-l12-cell { min-width: 0; }

.pd-l12-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.pd-l12-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
}

.pd-l12-cell.is-wide { grid-column: 1 / -1; }

/* --- L13 · fiche calme, toujours noire --- */
.is-layout-13 {
  gap: 0;
  padding-top: 108px;
  padding-bottom: 72px;
}

.is-layout-13 .pd-title {
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
}

.pd-l13-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--pd-border-strong);
}

.pd-l13-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-l13-lead {
  margin: 0;
  max-width: 36rem;
  font-family: var(--pd-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: #ffffff;
}

.pd-l13-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pd-l13-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-l13-facts li {
  padding: 5px 12px;
  border: 1px solid var(--pd-border-strong);
  border-radius: 999px;
  font-family: var(--pd-serif);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
}

.pd-l13-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  max-width: 980px;
  padding-top: clamp(32px, 4vw, 56px);
}

.pd-l13-copy { max-width: 40rem; }

/* --- L14 · manifeste --- */
.pdetail-stage.is-layout-14 {
  padding: 0 0 48px;
  gap: 0;
}

.pd-l14-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 108px clamp(22px, 3vw, 48px) clamp(28px, 4vw, 48px);
}

.pd-l14-eye { margin: 0; }

.pd-l14-display {
  margin: 0;
  max-width: min(100%, 10ch);
  font-size: clamp(56px, 7.2vw, 112px);
  line-height: 0.88;
  overflow-wrap: break-word;
}

.pd-l14-manifesto {
  margin: 4px 0 0;
  max-width: 22ch;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.15;
  color: #ffffff;
}

.pd-l14-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--pd-accent);
}

.pd-l14-stack { display: flex; flex-direction: column; }

.pd-l14-plate { position: relative; }

.pd-l14-num {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ffffff;
  pointer-events: none;
}

.pd-l14-note {
  max-width: 42rem;
  padding: clamp(36px, 5vw, 72px) clamp(22px, 6vw, 96px);
}

/* --- L15 · catalogue sur noir --- */
.is-layout-15 {
  gap: 0;
  padding-top: 108px;
}

.pd-l15-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

.pd-l15-rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pd-accent);
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.is-layout-15 .pd-title {
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 0.96;
}

.pd-l15-slogan {
  margin: 0;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--pd-muted);
}

.pd-l15-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: 8px;
  border-top: 1px solid var(--pd-border);
}

.pd-l15-facts { display: flex; flex-direction: column; }

.pd-l15-fact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pd-border);
  font-family: var(--pd-serif);
  font-size: 15px;
  line-height: 1.4;
}

.pd-l15-fact span {
  padding-top: 3px;
  font-family: var(--pd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-l15-fact strong {
  font-weight: 400;
  color: #ffffff;
}

.pd-l15-facts .pd-cta-pill { margin-top: 18px; }

.pd-l15-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--pd-border-strong);
}

.pd-l15-cell.is-span { grid-column: 1 / -1; }

.pd-l15-idx {
  display: block;
  margin-bottom: 8px;
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pd-muted);
}

/* --- L16 · double page sur noir --- */
.is-layout-16 {
  gap: 0;
  padding-top: 108px;
  min-width: 0;
}

.pd-l16-head { padding-bottom: 8px; }

.pd-l16-run { display: block; margin-bottom: 8px; }

.pd-l16-display {
  margin: 0;
  max-width: min(100%, 10ch);
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 0.88;
  overflow-wrap: break-word;
}

.pd-l16-spread {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: 28px;
}

.pd-l16-piece.is-a { width: min(100%, 78%); }
.pd-l16-piece.is-b { width: min(100%, 62%); margin-left: auto; }
.pd-l16-piece.is-c { width: min(100%, 88%); margin-left: 6%; }
.pd-l16-piece.is-d { width: min(100%, 70%); }
.pd-l16-piece.is-film { width: min(100%, calc(100svh * 16 / 9)); }

.pd-l16-copy {
  width: min(100%, 440px);
  margin-left: auto;
  margin-right: 4%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-l16-slogan {
  margin: 0;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.08;
  color: #ffffff;
}

@media (max-width: 1180px) {
  .pd-l12-mosaic,
  .pd-l12-flow,
  .pd-l15-split,
  .pd-l15-board {
    grid-template-columns: 1fr;
  }

  .pd-l12-tools {
    align-items: flex-start;
    max-width: none;
  }

  .pd-l12-top,
  .pd-l12-deck {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   4c. L06 · PLEINE PAGE
   Bord à bord dans la scène (le rail des projets reste à part).
   ========================================================================== */
.pdetail-stage.is-layout-06 {
  padding: 0;
  gap: 10px;
  background: #141414;
}

.pd-l06-block {
  width: 100%;
  background: #141414;
  padding: clamp(48px, 6vw, 84px) 0;
  text-align: left;
}

.pd-l06-block.is-mast {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 108px;
}

.pd-l06-brief {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 72px);
  width: 100%;
  align-items: start;
  margin-top: 8px;
}

.pd-l06-facts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pd-l06-fact {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.pd-l06-fact span {
  padding-top: 4px;
  font-family: var(--pd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-l06-fact strong {
  font-family: var(--pd-serif);
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
}

.pd-l06-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 12px;
  text-align: left;
}

.pd-l06-lead .pd-cta-pill {
  margin-top: 22px;
}

.pd-l06-slogan {
  display: none;
}

.pd-l06-services {
  margin: 0;
  max-width: 36rem;
  font-family: var(--pd-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--pd-muted);
}

.pd-l06-mast-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
  padding-top: 6px;
}

.pd-l06-block.is-long .pd-l06-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.pd-l06-row {
  display: flex;
  width: 100%;
  max-height: 100svh;
  overflow: hidden;
  background: #141414;
}

.pd-l06-cell,
.pd-l06-solo-inner {
  min-width: 0;
  height: 100%;
}

.pd-l06-row .pd-figure,
.pd-l06-row .pd-media-box,
.pd-l06-solo .pd-figure,
.pd-l06-solo .pd-media-box {
  width: 100%;
  height: 100%;
  max-height: none;
}

.pd-l06-row .pd-media-box img,
.pd-l06-row .pd-media-box video,
.pd-l06-solo .pd-media-box img,
.pd-l06-solo .pd-media-box video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.pd-l06-solo {
  display: flex;
  justify-content: center;
  width: 100%;
  max-height: 100svh;
  overflow: hidden;
  background: #141414;
}

.pd-l06-full .pd-media-box img,
.pd-l06-full .pd-media-box video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  background: #141414;
}

.is-layout-06 .pd-figure,
.is-layout-06 .pd-media-box,
.is-layout-06 .pd-media-box img,
.is-layout-06 .pd-media-box video,
.is-layout-06 .pd-video-wrap {
  border-radius: 5px;
}

.is-layout-06 .pd-video-wrap {
  width: 100%;
  max-height: 100svh;
  aspect-ratio: 16 / 9;
}

.is-layout-06 .pd-l06-full.is-crop,
.is-layout-06 .pd-l06-film.is-crop .pd-video-wrap {
  aspect-ratio: 4 / 3;
  max-height: none;
  overflow: hidden;
}

.is-layout-06 .pd-l06-full.is-crop .pd-figure,
.is-layout-06 .pd-l06-full.is-crop .pd-media-box,
.is-layout-06 .pd-l06-full.is-crop .pd-media-box img,
.is-layout-06 .pd-l06-full.is-crop .pd-media-box video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.pd-compose {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.pd-compose-col {
  grid-column: span var(--span, 6);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-compose-figure {
  margin: 0;
  min-height: 0;
}

.pdetail-stage.is-layout-06 {
  --pd-band: 75svh;
}

.is-layout-06 .pd-compose .pd-media-box,
.is-layout-06 .pd-compose .pd-video-wrap {
  width: 100%;
  height: var(--pd-band);
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  background: #141414;
}

.is-layout-06 .pd-compose .pd-media-box img,
.is-layout-06 .pd-compose .pd-media-box video,
.is-layout-06 .pd-compose .pd-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1180px) {
  .pd-l06-block.is-long .pd-l06-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pd-compose {
    display: flex;
    flex-direction: column;
  }

}

/* ==========================================================================
   5. NEXT PROJECT EDITORIAL CURTAIN (Bottom of Right Stage)
   ========================================================================== */
.pdetail-stage.is-layout-05 + .pdetail-next {
  border-top: 0;
}

.pdetail-next .pd-kicker,
.pmob-next-bar > .pd-kicker {
  display: none;
}

.pdetail-next {
  margin: 0 clamp(24px, 3.2vw, 52px) 64px;
  padding-top: 40px;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-decoration: none;
  color: var(--pd-muted);
}

.pdetail-next-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdetail-next-title {
  font-family: var(--pd-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pd-muted);
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdetail-next .pd-services-line {
  color: var(--pd-muted) !important;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdetail-next:hover .pdetail-next-title,
.pdetail-next:hover .pd-services-line {
  color: #ffffff !important;
  transform: translateX(8px);
}

.pdetail-next-preview {
  width: clamp(150px, 16vw, 230px);
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  overflow: hidden;
  background: #1b1b1b;
  flex-shrink: 0;
}

.pdetail-next-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdetail-next:hover .pdetail-next-preview img {
  transform: scale(1.06);
}

/* ==========================================================================
   6. COMPACT DESKTOP / TABLET ADJUSTMENTS (769px .. 1180px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1180px) {
  :root {
    --pd-rail-w: 216px;
  }

  .pdetail-stage {
    padding: 74px 22px 56px;
  }

  .pdetail-stage.is-layout-06 {
    padding: 0;
  }

  .pd-l03-cover {
    margin-left: -22px;
    margin-right: -22px;
  }

  .pd-l01-hero,
  .pd-l04-row,
  .pd-l05-beat,
  .pd-l05-top,
  .pd-l06-hero-split {
    grid-template-columns: 1fr;
  }

  .pd-l05-band.is-aside,
  .pd-l05-band.is-text-right,
  .pd-l05-band.is-text-left {
    grid-template-columns: 1fr;
  }

  .pd-l05-band.is-text-right .pd-l05-copy,
  .pd-l05-band.is-text-left .pd-visual {
    border-left: 0;
    border-top: 1px solid var(--pd-hair);
  }

  .pd-l05-top .pd-l05-cell + .pd-l05-cell {
    border-left: 0;
    border-top: 1px solid var(--pd-hair);
  }

  .pd-l01-sticky,
  .pd-l04-ch-rail {
    position: static;
  }

  .pd-l02-specs,
  .pd-l07-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-l03-brief,
  .pd-l05-narrative,
  .pd-l08-bento-brief,
  .pd-l09-matrix {
    grid-template-columns: 1fr;
  }

  .pd-l05-narrative .pd-l05-cell + .pd-l05-cell {
    border-left: 0;
    border-top: 1px solid var(--pd-border-strong);
  }

  .pd-span-7,
  .pd-span-5 {
    grid-column: span 6;
  }
}

/* ==========================================================================
   6b. RAIL — tablette et mobile en portrait uniquement
   Le bandeau fixe reste en paysage (et au-dessus de 1180px).
   ========================================================================== */
@media (max-width: 1180px) and (orientation: portrait) {
  .pdetail-rail {
    display: none;
  }

  .pdetail-stage-wrap {
    margin-left: 0;
    width: 100%;
  }

  /* Sans le bandeau, le texte reprend des marges. Les images restent bord à bord. */
  .pd-l06-block,
  .pd-l06-block.is-mast {
    padding-left: clamp(20px, 5vw, 40px);
    padding-right: clamp(20px, 5vw, 40px);
  }
}

/* ==========================================================================
   7. MOBILE CLASSIC VIEW (<= 768px — Fidèle à l'expérience actuelle du site
      avec lisibilité d'image 100 % naturelle sans recadrage destructif)
   ========================================================================== */
@media (max-width: 768px) {
  .pdetail-shell {
    display: block;
  }

  .pdetail-mobile-classic {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 28px 5% 56px;
    gap: 20px;
    background: var(--pd-stage-bg);
  }

  .pd-l06-block {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .pd-l06-block.is-mast {
    padding-top: 64px;
    padding-bottom: 68px;
    gap: 20px;
  }

  .pd-l06-brief {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-l06-lead {
    padding-top: 8px;
  }

  .pd-l06-lead .pd-cta-pill {
    margin-top: 28px;
  }

  .pd-l06-film {
    display: block;
    width: 100%;
  }

  .is-layout-06 .pd-l06-film .pd-video-wrap {
    aspect-ratio: auto;
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .is-layout-06 .pd-l06-film video {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #141414;
  }

  .is-layout-06 .pd-compose .pd-l06-film .pd-video-wrap {
    height: var(--pd-band);
    aspect-ratio: auto;
    max-height: none;
    overflow: hidden;
  }

  .is-layout-06 .pd-compose .pd-l06-film video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .is-layout-06 .pd-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .pdetail-next {
    margin: 10px 16px 48px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pmob-stream {
    gap: 10px;
  }

  .pmob-media {
    border-radius: 5px;
  }

  .pmob-media:has(video) {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .pmob-media:has(video) video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pmob-intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
  }

  .pmob-title {
    font-family: var(--pd-serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 6px 0;
  }

  .pmob-slogan {
    font-family: var(--pd-serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
  }

  .pmob-services {
    font-family: var(--pd-serif);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--pd-muted);
    margin: 2px 0 4px 0;
  }

  .pmob-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .pmob-copy p {
    font-family: var(--pd-serif);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
  }

  .pmob-cta-wrap {
    margin: 8px 0 6px;
  }

  .pmob-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .pmob-media {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    background: #141414;
  }

  .pmob-media img,
  .pmob-media video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
  }

  .pmob-next-bar {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .pmob-next-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #ffffff;
  }

  .pmob-next-name {
    font-family: var(--pd-serif);
    font-size: 28px;
    text-transform: uppercase;
    line-height: 1.1;
  }

  .pmob-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-family: var(--pd-serif);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-decoration: none;
  }
}

/* ==========================================================================
   8. FULLSCREEN STUDIO LIGHTBOX (Inspection Haute Lisibilité)
   ========================================================================== */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pd-lb-top,
.pd-lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pd-lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.pd-lb-stage img {
  max-width: 92vw;
  max-height: 80svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.pd-lb-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--pd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pd-lb-btn:hover {
  background: #ffffff;
  color: #0a0a0a;
}

.pd-lb-caption {
  font-family: var(--pd-serif);
  font-size: 16px;
  color: var(--pd-muted);
}
