/* ===== PROJECT PAGE — StudioHolostar ===== */

/* Header titre + intro */
.project-header {
    text-align: center;
    margin: 110px auto 40px;
    max-width: 840px;
    padding: 0 16px;
  }
  .project-title {
    font-weight: 800;
    font-size: clamp(32px, 5.2vw, 56px);
    line-height: 1.05;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
  }
  .project-intro {
    color: rgba(244,244,244,.75);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.7;
  }
  
  /* Full-bleed media (image/vidéo large) */
  .project-media {
    width: min(92vw, 1280px);
    margin: 30px auto 70px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
    background: #111;
  }
  .project-media > img,
  .project-media > video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 21/9;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
  }
  .project-media:hover img,
  .project-media:hover video {
    transform: scale(1.02);
    filter: contrast(1.05) brightness(1.02);
  }
  
  /* Mosaic / grid d’images sous le hero (2 rangées x 4 par ex.) */
  .gallery-mosaic {
    width: min(92vw, 1280px);
    margin: 0 auto 80px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-mosaic .tile {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    aspect-ratio: 4/3;
  }
  .gallery-mosaic .tile img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
  }
  .gallery-mosaic .tile:hover img {
    transform: scale(1.05);
    filter: contrast(1.1);
  }
  @media (max-width: 1100px) {
    .gallery-mosaic { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 720px) {
    .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
  }
  
  /* “You may also like” — 3 cartes pleine largeur avec séparation verticale */
  .also-like {
    width: 100%;
    margin: 90px 0 120px;
  }
  .also-like .section-caption {
    text-align: center;
    color: rgba(244,244,244,.7);
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .also-like-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* séparateurs via bordures */
    border-top: 2px solid rgba(255,255,255,.06);
    border-bottom: 2px solid rgba(255,255,255,.06);
  }
  @media (max-width: 980px) {
    .also-like-row { grid-template-columns: 1fr; }
  }
  .also-like-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
  }
  .also-like-card + .also-like-card {
    border-left: 2px solid rgba(255,255,255,.06);
  }
  .also-like-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.95);
    transition: transform .45s ease, filter .45s ease;
  }
  .also-like-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
  }
  .also-like-card h3 {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-weight: 900;
    font-size: clamp(18px, 2.6vw, 34px);
    letter-spacing: .02em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 3px 16px rgba(0,0,0,.7);
    padding: 8px;
  }
  
  /* Back to Work / CTA bas de page */
  .project-cta {
    display: flex; justify-content: center; margin: 48px 0 90px;
  }
  .project-cta .button {
    background: var(--red);
  }
  .project-cta .button:hover {
    background: var(--jade);
  }
  
  /* === Message d’indisponibilité sur le Hero === */
.project-media {
  position: relative;
  width: min(90vw, 1200px);
  margin: 40px auto 60px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}

.project-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

/* Le message en overlay */
.unavailable-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: fadeInMsg 1.4s ease forwards;
}

@keyframes fadeInMsg {
  to { opacity: 1; }
}
/* ===== OVERLAY VIDÉO GÉNÉRIQUE ===== */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.video-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.video-overlay video {
  width: min(90vw, 1280px);
  height: auto;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.8);
  background: #000;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
}
.close-video:hover {
  background: rgba(255,255,255,.15);
}
