/* ============================================================
   STENE PROD — portfolio.css
   Pages vidéo, photo, fiction — Style B (split card, beige)
   ============================================================ */

/* ── Hero portfolio (demi-hero beige, style legal) ──── */
.pf-hero {
  background: var(--bg-light);
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  padding-top: var(--nav-height);
  border-bottom: 1px solid var(--cream-dark);
}

.pf-hero-logo-bg {
  position: absolute;
  top: 50%; right: -100px;
  width: clamp(340px, 45vw, 680px);
  opacity: .05;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(1) contrast(2);
  transform: translateY(-50%);
}

.pf-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 80px 52px;
  position: relative;
  z-index: 2;
}

.pf-hero-eyebrow {
  font: 700 13px/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}

.pf-hero-title {
  font: 700 clamp(36px, 5vw, 72px)/1.05 var(--font-title);
  letter-spacing: -.03em;
  color: var(--text-dark);
  margin: 0;
}

.pf-hero-title em {
  font-style: italic;
  color: var(--orange);
}

.pf-hero-count {
  font: 400 13px/1 var(--font-body);
  color: var(--text-mid);
  opacity: .6;
}

/* ── Section grille ─────────────────────────────────── */
.pf-section {
  background: #000;
  padding: 60px 80px 100px;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Carte Style B ──────────────────────────────────── */
.pf-card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s, transform .2s;
}

.pf-clickable {
  cursor: pointer;
}

.pf-card.pf-clickable:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

/* Image */
.pf-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.pf-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.pf-card.pf-clickable:hover .pf-card-img img {
  transform: scale(1.04);
}

.pf-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: #222;
  min-height: 180px;
}

/* Bouton play — vidéo/fiction */
.pf-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange);
  border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s, transform .25s, background .25s;
  box-shadow: 0 4px 20px rgba(255,76,41,.4);
}

.pf-card.pf-clickable:hover .pf-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: #e03d1e;
}

.pf-play-btn svg {
  width: 20px; height: 20px;
  fill: #fff; margin-left: 4px;
}

/* Compteur photos */
.pf-photo-count {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,.6); color: #fff;
  font: 700 12px/1 var(--font-body);
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Badge vedette */
.pf-featured-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: #fff;
  font: 700 10px/1 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

/* Info band */
.pf-card-info {
  padding: 18px 22px 20px;
  border-top: 2px solid var(--orange);
  display: flex; flex-direction: column; gap: 6px;
}

.pf-card-tag {
  font: 700 10px/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  display: block;
}

.pf-card-title {
  font: 700 17px/1.2 'Inter', var(--font-body);
  color: var(--text-dark);
  text-wrap: balance;
}

.pf-card-title em { font-style: italic; }

.pf-card-desc {
  font: 400 13px/1.7 var(--font-body);
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-card-meta {
  display: flex; gap: 8px; align-items: center;
  font: 600 13px/1 var(--font-body);
  color: #bbb;
  margin-top: 2px;
}

.pf-card-meta-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #bbb;
  flex-shrink: 0;
  align-self: center;
}

/* Featured card : pleine largeur */
.pf-card.pf-featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
}

.pf-card.pf-featured .pf-card-img {
  aspect-ratio: unset;
  min-height: 280px;
}

.pf-card.pf-featured .pf-card-info {
  border-top: none;
  border-left: 2px solid var(--orange);
  padding: 32px 36px;
  justify-content: center;
  gap: 10px;
}

.pf-card.pf-featured .pf-card-title {
  font-size: clamp(20px, 2.5vw, 28px);
}

/* Empty state */
.pf-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  color: var(--text-mid);
  font: 400 15px/1 var(--font-body);
}

/* ── CTA simple fin de page ──────────────────────────── */
.pf-end-cta {
  background: #000;
  padding: 60px 80px 80px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   MODAL VIDÉO
═══════════════════════════════════════════════════════ */
.video-modal {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}

.video-modal.open { opacity: 1; pointer-events: all; }

.video-modal-inner {
  position: relative; width: 90vw; max-width: 1080px;
}

.video-modal-inner iframe {
  width: 100%; aspect-ratio: 16/9; border: none;
  border-radius: 12px; display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.video-modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}

.video-modal-close:hover { background: rgba(255,255,255,.3); }
.video-modal-close svg { width: 18px; height: 18px; stroke: #fff; }

/* ═══════════════════════════════════════════════════════
   LIGHTBOX PHOTO
═══════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-inner {
  position: relative;
  max-width: min(90vw, 1200px); max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}

.lightbox-img-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%; max-height: 85vh;
  line-height: 0;
}

.lightbox-img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  display: block;
}

.lightbox-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-close svg { width: 18px; height: 18px; stroke: #fff; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: none;
  color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
  backdrop-filter: blur(4px);
}

.lightbox-nav:hover { background: rgba(0,0,0,.7); }
.lightbox-nav svg { width: 20px; height: 20px; stroke: #fff; }

#lightboxPrev { left: 12px; }
#lightboxNext { right: 12px; }

.lightbox-counter {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  font: 400 13px/1 var(--font-body);
  color: rgba(255,255,255,.7); white-space: nowrap;
  background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════
   MODALE PROJET
═══════════════════════════════════════════════════════ */
.proj-modal {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  padding: 20px;
}
.proj-modal.open { opacity: 1; pointer-events: all; }

.proj-modal-inner {
  background: var(--bg-light);
  border-radius: 20px;
  width: 100%; max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  transform: translateY(16px);
  transition: transform .3s;
}
.proj-modal.open .proj-modal-inner { transform: translateY(0); }

.proj-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.25); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.proj-modal-close:hover { background: rgba(0,0,0,.45); }
.proj-modal-close svg { width: 16px; height: 16px; stroke: #fff; }

.proj-modal-cover {
  width: 100%;
  background: #111; border-radius: 20px 20px 0 0;
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
}
/* Photos : hauteur fixe, photo centrée dans le cadre */
.proj-modal-cover--photo {
  aspect-ratio: unset;
  height: 400px;
  max-height: 55vh;
}
.proj-modal-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .25s ease;
}
.proj-modal-cover--photo img {
  object-fit: contain;
}
.proj-modal-cover img.fading {
  opacity: 0;
}

.proj-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
  backdrop-filter: blur(4px);
}
.proj-modal-nav:hover { background: rgba(0,0,0,.7); }
.proj-modal-nav svg { width: 18px; height: 18px; stroke: #fff; }
.proj-modal-nav--prev { left: 12px; }
.proj-modal-nav--next { right: 12px; }

.proj-modal-counter {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font: 600 12px/1 var(--font-body); color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px); pointer-events: none;
}
.proj-modal-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

.proj-modal-body {
  padding: 28px 32px 36px;
  display: flex; flex-direction: column; gap: 12px;
}

.proj-modal-tag {
  font: 700 11px/1 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
}

.proj-modal-title {
  font: 700 clamp(22px, 4vw, 32px)/1.1 var(--font-title);
  letter-spacing: -.02em; color: var(--text-dark);
  margin: 0;
}

.proj-modal-desc {
  font: 400 14px/1.85 var(--font-body);
  color: var(--text-mid); margin: 0;
}

.proj-modal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font: 400 13px/1 var(--font-body);
  color: #bbb; padding-top: 4px;
}
.proj-modal-meta-item { display: flex; align-items: center; gap: 6px; }
.proj-modal-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #bbb; flex-shrink: 0; align-self: center; }

.proj-modal-top-action {
  display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 4px;
}
.proj-modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px;
}
.proj-modal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-body);
  padding: 12px 24px; border-radius: 999px; border: none;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s;
}
.proj-modal-btn:hover { transform: translateY(-1px); }
.proj-modal-btn--primary { background: var(--orange); color: #fff; }
.proj-modal-btn--primary:hover { background: #e03d1e; }
.proj-modal-btn--outline { background: transparent; color: var(--text-dark); border: 1.5px solid var(--cream-dark); }
.proj-modal-btn--outline:hover { border-color: var(--orange); color: var(--orange); }

@media (max-width: 640px) {
  .proj-modal-inner { border-radius: 16px; }
  .proj-modal-cover { border-radius: 16px 16px 0 0; }
  .proj-modal-body { padding: 20px 20px 28px; }
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq-section {
  background: var(--bg-light);
  padding: 60px 80px 80px;
  border-top: 1px solid var(--cream-dark);
}
.faq-container { max-width: 860px; margin: 0 auto; }
.faq-header { margin-bottom: 48px; }
.faq-header .section-label { color: var(--orange); display: block; margin-bottom: 12px; }
.faq-header h2 { font: 400 clamp(28px,4vw,42px)/1.2 var(--font-title); color: var(--text-dark); }
.faq-header h2 em { color: var(--orange); font-style: italic; }
.faq-item { border-bottom: 1px solid var(--cream-dark); }
.faq-item:first-child { border-top: 1px solid var(--cream-dark); }
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; background: none; border: none;
  font: 600 15px/1.4 var(--font-body); color: var(--text-dark);
  text-align: left; transition: color .2s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--cream-dark); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; color: var(--text-dark);
  transition: border-color .2s, background .2s, transform .3s;
}
.faq-item.open .faq-icon { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { font: 400 14px/1.9 var(--font-body); color: var(--text-mid); padding-bottom: 20px; text-align: justify; hyphens: auto; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .pf-hero-inner { padding: 32px 40px 44px; }
  .pf-section { padding: 48px 40px 80px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-card.pf-featured { grid-column: span 2; }
  .pf-cta-section { padding: 60px 40px; flex-direction: column; }
  .pf-cta-btns { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .pf-hero-inner { padding: 24px 24px 36px; gap: 16px; }
  .pf-section { padding: 40px 20px 60px; }
  .pf-grid { grid-template-columns: 1fr; gap: 16px; }
  .pf-card.pf-featured { grid-column: span 1; display: block; }
  .pf-card.pf-featured .pf-card-img { min-height: 220px; }
  .pf-card.pf-featured .pf-card-info { border-left: none; border-top: 2px solid var(--orange); padding: 18px 22px 20px; }
  .pf-cta-section { padding: 48px 24px; flex-direction: column; }
  #lightboxPrev { left: 8px; }
  #lightboxNext { right: 8px; }
}

@media (max-width: 640px) {
  .pf-hero { height: 40vh; }
  .pf-hero-logo-bg { height: 100%; width: auto; max-width: none; top: 0; right: 0; transform: translateX(50%); }
}
