/* ===== BARBERSHOP — StudioHolostar ===== */

/* HEADER */
.project-header {
    text-align: center;
    margin: 90px auto 30px;
    max-width: 880px;
    padding: 0 16px;
  }
  .project-header .caption {
    color: rgba(244,244,244,.7);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 12px;
  }
  .project-title {
    font-weight: 800;
    font-size: clamp(30px, 4.8vw, 48px);
    line-height: 1.1;
    margin-top: 8px;
  }
  .project-intro {
    color: rgba(244,244,244,.72);
    font-size: 15.5px;
    line-height: 1.7;
    margin-top: 8px;
  }
  
  /* HERO VIDÉO */
  .barber-hero {
    position: relative;
    width: min(92vw, 1280px);
    margin: 30px auto 60px;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.5);
  }
  .barber-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.96) contrast(1.03);
    transition: transform .5s ease, filter .5s ease;
  }
  .barber-hero:hover video {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.07);
  }
  
  /* PLAY BUTTON */
  .play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    border: 2px solid rgba(255,255,255,.7);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 10;
  }
  .play::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
  }
  .play.playing::after {
    border: none;
    width: 16px;
    height: 16px;
    background: white;
    mask: linear-gradient(90deg, transparent 40%, black 40%, black 60%, transparent 60%);
    mask-size: 100% 100%;
  }
  
  /* GRID 3 BLOCS (magazine look) */
  .barber-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid rgba(255,255,255,.06);
    border-bottom: 2px solid rgba(255,255,255,.06);
    margin: 0 0 60px;
  }
  .barber-grid .tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111;
  }
  .barber-grid .tile + .tile {
    border-left: 2px solid rgba(255,255,255,.06);
  }
  .barber-grid img,
  .barber-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.95) contrast(1.03);
    transition: transform .45s, filter .45s;
  }
  .barber-grid .tile:hover img,
  .barber-grid .tile:hover video {
    transform: scale(1.04);
    filter: brightness(1) contrast(1.07);
  }
  
  /* SPLIT DOUBLE VIDÉO */
  .barber-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid rgba(255,255,255,.06);
    border-bottom: 2px solid rgba(255,255,255,.06);
    margin: 0 0 90px;
  }
  .pane {
    position: relative;
    overflow: hidden;
    background: #111;
  }
  .pane + .pane {
    border-left: 2px solid rgba(255,255,255,.06);
  }
  .pane video {
    width: 100%;
    height: clamp(360px, 50vw, 640px);
    object-fit: cover;
    filter: brightness(.95) contrast(1.02);
    transition: transform .5s ease, filter .5s ease;
  }
  .pane:hover video {
    transform: scale(1.03);
    filter: brightness(1) contrast(1.07);
  }
  .pane figcaption {
    text-align: center;
    color: rgba(244,244,244,.75);
    font-size: 13px;
    padding: 10px 12px 14px;
  }
  
  /* RESPONSIVE */
  @media (max-width: 980px) {
    .barber-grid { grid-template-columns: 1fr; }
    .barber-grid .tile + .tile { border-left: 0; border-top: 2px solid rgba(255,255,255,.06); }
  
    .barber-split { grid-template-columns: 1fr; }
    .pane + .pane { border-left: 0; border-top: 2px solid rgba(255,255,255,.06); }
  
    .play { width: 62px; height: 62px; }
  }
  
  /* YOU MAY ALSO LIKE */
  .also-like {
    width: 100%;
    margin: 80px 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);
    border-top: 2px solid rgba(255,255,255,.06);
    border-bottom: 2px solid rgba(255,255,255,.06);
  }
  .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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.95);
    transition: transform .45s, filter .45s;
  }
  .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;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(18px, 2.6vw, 34px);
    color: #fff;
    text-shadow: 0 3px 16px rgba(0,0,0,.7);
  }
  @media (max-width: 980px) {
    .also-like-row { grid-template-columns: 1fr; }
    .also-like-card + .also-like-card { border-left: 0; border-top: 2px solid rgba(255,255,255,.06); }
  }
  
  /* CTA */
  .project-cta {
    display: flex;
    justify-content: center;
    margin: 40px 0 90px;
  }
  .video-fullscreen {
    position: fixed;
    inset: 0;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .4s ease;
    opacity: 0;
  }
  
  .video-fullscreen.active {
    display: flex;
    opacity: 1;
  }
  
  .video-fullscreen video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
  }
  
  /* Bouton de fermeture */
  .video-fullscreen::after {
    content: "✕";
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 30px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: opacity .3s;
  }
  .video-fullscreen:hover::after {
    opacity: 1;
  }
  
  /* ----- COMING SOON message ----- */
.coming-soon {
  position: absolute;
  bottom: 16px;              /* sous le texte principal */
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-weight: 400;          /* plus fin que le titre */
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.coming-soon.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- VIDÉO EN OVERLAY ----- */
.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);
}
