/* ============ PAGE PROJET ============ */

/* Nav toujours visible sur les pages projet */
.nav {
  transform: translateY(0) !important;
  opacity: 1 !important;
  background: rgba(12, 12, 13, 0.95) !important;
}

/* Hero image plein écran */
.proj-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: #000;
}
.proj-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.proj-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
  rgba(12,12,13,0) 25%,
  rgba(12,12,13,0.55) 70%,
  rgba(12,12,13,1) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 60px 8vw;
}
.proj-hero-label {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.proj-hero-title {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

/* Corps du projet */
.proj-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 5vw 120px;
  display: flex; flex-direction: column; gap: 60px;
}

/* Intro */
.proj-intro p {
  font-size: 1.15rem; color: var(--text-dim);
  line-height: 1.8; max-width: 68ch;
}

/* Vidéo */
.proj-video {
  position: relative; aspect-ratio: 16/9;
  background: #000;
}
.proj-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.proj-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Galeries */
.proj-gallery {
  display: grid; gap: 4px;
}
.proj-gallery-1 { grid-template-columns: 1fr; }
.proj-gallery-2 { grid-template-columns: 1fr 1fr; }
.proj-gallery-3 { grid-template-columns: 1fr 1fr 1fr; }

.proj-gallery img {
  width: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: 16/9;
}

/* Texte */
.proj-text {
  display: flex; flex-direction: column; gap: 16px;
}
.proj-text p {
  color: var(--text-dim); font-size: 1rem; line-height: 1.8;
  max-width: 68ch;
}
.proj-credit {
  font-family: var(--font-mono); font-size: 0.82rem !important;
  color: var(--text-faint) !important;
}
.proj-credit a { color: var(--text-dim); text-decoration: underline; }

/* Logiciels */
.proj-tools-label {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 16px;
}

/* Navigation retour */
.proj-nav {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.proj-nav-back {
  font-size: 0.88rem; color: var(--text-dim);
  transition: color 0.2s;
}
.proj-nav-back:hover { color: var(--text); }

@media (max-width: 700px) {
  .proj-gallery-2,
  .proj-gallery-3 { grid-template-columns: 1fr; }
  .proj-hero { height: 60vh; }
}

/* Bandeau qui masque le débordement d'image au-dessus de la nav */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  z-index: 199;
}
