/* ═══════════════════════════════════════════
   NERO BLANKA — Page Projet · Style Behance
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --pj-nav-h: 56px;
  --pj-max: 1160px;
  --pj-pad: 40px;
}

/* ── Reset body for project page ── */
.is-project-page {
  background: #fff;
  cursor: none;
}

/* ═══════════════════════
   NAVIGATION STICKY
═══════════════════════ */
.pj-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pj-nav-h);
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pj-nav-inner {
  height: 100%;
  max-width: var(--pj-max);
  margin: 0 auto;
  padding: 0 var(--pj-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.pj-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s, gap 0.2s; flex-shrink: 0;
  cursor: pointer;
  min-height: 44px; padding: 0 4px;
}
.pj-back:hover { color: #fff; gap: 12px; }
.pj-back:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 4px; border-radius: 2px; }
.pj-back svg { width: 14px; height: 14px; transition: transform 0.2s; }
.pj-back:hover svg { transform: translateX(-3px); }

.pj-nav-meta {
  display: flex; align-items: center; gap: 12px;
  overflow: hidden;
}
.pj-nav-num {
  font-size: 9px; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,0.35); flex-shrink: 0;
}
.pj-nav-title {
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pj-nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.pj-nav-brand .nav-logo { width: 30px; }
.pj-nav-brand span {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5);
  letter-spacing: -0.2px;
}

/* ═══════════════════════
   HERO
═══════════════════════ */
.pj-hero {
  margin-top: var(--pj-nav-h);
  height: 68vh; min-height: 460px; max-height: 680px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

/* Scale up the hero visuals */
.pj-hero-logo { width: 160px !important; }
.pj-scale-3d  { transform: scale(2.4); transform-origin: center; }
.pj-scale-ia  { transform: scale(2); transform-origin: center; }
.pj-scale-print { transform: scale(1.8); transform-origin: center; }

/* ═══════════════════════
   META BAR (below hero)
═══════════════════════ */
.pj-meta-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}
.pj-meta-bar-inner {
  max-width: var(--pj-max);
  margin: 0 auto;
  padding: 20px var(--pj-pad);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.pj-meta-bar-item { display: flex; align-items: center; gap: 10px; }
.pj-meta-bar-label {
  font-size: 8px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #aaa;
}
.pj-meta-bar-val {
  font-size: 12px; font-weight: 600; color: #0a0a0a;
}
.pj-meta-bar-sep {
  width: 1px; height: 24px; background: #e0e0e0; flex-shrink: 0;
}

/* ═══════════════════════
   MAIN LAYOUT
═══════════════════════ */
.pj-layout {
  max-width: var(--pj-max);
  margin: 0 auto;
  padding: 0 var(--pj-pad);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 64px;
}

/* ── Content stream ── */
.pj-content {
  padding: 64px 0;
  min-width: 0;
}

/* ── Sidebar ── */
.pj-sidebar {
  padding: 64px 0 64px;
  align-self: end;
  height: fit-content;
  border-left: 1px solid #e8e8e8;
  padding-left: 48px;
}

/* ═══════════════════════
   CONTENT BLOCKS
═══════════════════════ */
.pj-block {
  margin-bottom: 56px;
}
.pj-block-label {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #bbb;
  margin-bottom: 14px;
}
.pj-block-desc {
  font-size: 16px; line-height: 1.8; color: #333;
  font-weight: 400; max-width: 620px;
}

/* Challenge / Solution */
.pj-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin-bottom: 56px;
}
.pj-col .pj-block-label { margin-bottom: 10px; }
.pj-col p {
  font-size: 13px; line-height: 1.8; color: #555;
}

/* ── Full-bleed showcase ── */
.pj-bleed {
  width: 100vw;
  margin-left: calc(-1 * var(--pj-pad));
  height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 56px;
  position: relative;
}

/* Reuse card visual classes */
.pj-bleed .projet-logo-display { width: 160px !important; }
.pj-bleed .projet-3d-visual    { transform: scale(2.4); }
.pj-bleed .projet-ia-visual    { transform: scale(2); }
.pj-bleed .projet-print-visual { transform: scale(1.8); }

/* ── Mockup grid (3 columns) ── */
.pj-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 56px;
}
.pj-showcase-item {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 4px;
}
.pj-showcase-item .projet-logo-display { width: 48px !important; }
.pj-showcase-item .projet-3d-visual    { transform: scale(1.3); }
.pj-showcase-item .projet-ia-visual    { transform: scale(1.1); }
.pj-showcase-item .projet-print-visual { transform: scale(0.9); }
.pj-showcase-item .ai3d-text           { font-size: 36px !important; letter-spacing: -2px !important; }
.pj-showcase-item .projet-wide-content { padding: 24px !important; }
.pj-showcase-item .pwc-title           { font-size: 18px !important; }
.pj-showcase-item .pwc-logo            { width: 50px !important; }
.pj-showcase-item .pwc-desc            { display: none; }

/* ── Result block ── */
.pj-result {
  background: #0a0a0a;
  padding: 48px;
  border-radius: 4px;
  margin-bottom: 0;
}
.pj-result-label {
  font-size: 8px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}
.pj-result-text {
  font-size: 18px; font-weight: 700; letter-spacing: -0.4px;
  color: #fff; line-height: 1.6; max-width: 560px;
}

/* ═══════════════════════
   SIDEBAR BLOCKS
═══════════════════════ */
.pj-meta-block { margin-bottom: 28px; }
.pj-meta-label {
  font-size: 8px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: #bbb;
  margin-bottom: 8px;
}
.pj-meta-val {
  font-size: 13px; font-weight: 700; color: #0a0a0a;
  letter-spacing: -0.2px;
}

.pj-tools-list, .pj-tags-list {
  display: flex; flex-direction: column; gap: 6px;
}
.pj-tool {
  font-size: 11px; font-weight: 500; color: #333;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.pj-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: #777;
}

.pj-cta-btn {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 36px; padding: 14px 18px;
  background: #0a0a0a; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-decoration: none; border-radius: 3px;
  transition: background 0.2s, box-shadow 0.2s;
  gap: 8px;
}
.pj-cta-btn:hover { background: #222; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.pj-cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pj-cta-btn svg { flex-shrink: 0; transition: transform 0.2s; }
.pj-cta-btn:hover svg { transform: translateX(3px); }

/* ═══════════════════════
   NEXT PROJECT
═══════════════════════ */
.pj-next {
  margin-top: 80px;
  background: #0a0a0a;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 320px;
  overflow: hidden;
}
.pj-next-inner {
  padding: 64px var(--pj-pad) 64px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 16px;
}
.pj-next-label {
  font-size: 9px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.pj-next-num {
  font-size: 9px; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,0.3); margin-top: 8px;
}
.pj-next-title {
  font-size: 36px; font-weight: 900; letter-spacing: -1.5px;
  color: #fff; line-height: 1.1; margin: 0;
}
.pj-next-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-top: 8px;
  transition: color 0.2s, gap 0.2s;
}
.pj-next-link:hover { color: #fff; gap: 12px; }
.pj-next-link:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 4px; border-radius: 2px; }

.pj-next-visual {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.pj-next-visual .projet-logo-display { width: 80px !important; }
.pj-next-visual .projet-3d-visual    { transform: scale(1.6); }
.pj-next-visual .projet-ia-visual    { transform: scale(1.4); }
.pj-next-visual .projet-print-visual { transform: scale(1.3); }
.pj-next-visual .ai3d-text           { font-size: 64px !important; letter-spacing: -3px !important; }
.pj-next-visual .projet-wide-content { padding: 40px !important; }
.pj-next-visual .pwc-title           { font-size: 26px !important; }
.pj-next-visual .pwc-logo            { width: 70px !important; }
.pj-next-visual .pwc-desc            { display: none; }

/* ═══════════════════════
   RESPONSIVE
═══════════════════════ */
@media (max-width: 900px) {
  .pj-layout {
    grid-template-columns: 1fr;
  }
  .pj-sidebar {
    position: static;
    border-left: none;
    border-top: 1px solid #e8e8e8;
    padding: 48px 0 0;
  }
  .pj-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pj-next {
    grid-template-columns: 1fr;
  }
  .pj-next-visual { min-height: 200px; }
  .pj-mock-grid { grid-template-columns: repeat(2, 1fr); }
  .pj-mock-grid .pj-showcase-item:last-child { display: none; }
  .pj-nav-brand { display: none; }
}
@media (max-width: 600px) {
  :root { --pj-pad: 20px; }
  .pj-nav-meta { display: none; }
  .pj-hero { height: 50vh; min-height: 300px; }
  .pj-next-title { font-size: 24px; }
  .pj-result { padding: 32px 24px; }
  .pj-result-text { font-size: 15px; }
  .pj-bleed { height: 280px; }
  .pj-mock-grid { grid-template-columns: 1fr; }
  .pj-mock-grid .pj-showcase-item:not(:first-child) { display: none; }

  /* ── Mobile font-size fixes ── */
  .pj-block-label   { font-size: 10px; letter-spacing: 2px; }
  .pj-meta-bar-label { font-size: 10px; letter-spacing: 1.5px; }
  .pj-meta-label    { font-size: 10px; letter-spacing: 1.5px; }
  .pj-tag           { font-size: 11px; letter-spacing: 0.5px; }
  .pj-tool          { font-size: 13px; }
  .pj-col p         { font-size: 15px; }
  .pj-next-label    { font-size: 10px; }
  .pj-next-num      { font-size: 10px; }

  /* ── Touch target fixes ── */
  .pj-next-link {
    min-height: 44px;
    display: inline-flex; align-items: center;
  }
}

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,10,10,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out !important;
}
.lb-overlay.is-open {
  opacity: 1; visibility: visible;
}

.lb-img-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: default !important;
  max-width: 90vw; max-height: 88vh;
}
.lb-img-wrap img {
  max-width: 90vw !important;
  max-height: 88vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 2px;
  cursor: default !important;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lb-img-wrap img.lb-loaded {
  opacity: 1;
}

/* Buttons base */
.lb-btn {
  position: fixed;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  cursor: pointer !important;
  transition: background 0.2s;
  z-index: 10001;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-btn:hover {
  background: rgba(255,255,255,0.16);
}
.lb-btn svg {
  fill: none;
  stroke: rgba(255,255,255,0.88);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Close */
.lb-close {
  top: 20px; right: 24px;
  width: 40px; height: 40px;
}
.lb-close svg { width: 16px; height: 16px; }

/* Arrows */
.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  transition: background 0.2s, transform 0.2s;
}
.lb-arrow svg { width: 20px; height: 20px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); background: rgba(255,255,255,0.16); }
.lb-next:hover { transform: translateY(-50%) translateX(3px);  background: rgba(255,255,255,0.16); }

/* Counter */
.lb-counter {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  z-index: 10001; user-select: none;
}

/* Hide arrows when single image */
.lb-overlay.lb-single .lb-arrow { display: none !important; }

/* Zoom-in cursor on clickable images */
.lb-trigger { cursor: zoom-in !important; transition: opacity 0.2s; }
.lb-trigger:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .lb-arrow { width: 40px; height: 40px; }
  .lb-prev  { left: 12px; }
  .lb-next  { right: 12px; }
  .lb-close { top: 14px; right: 14px; }
}
