/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/****************************************************
  PORTFOLIO HERO: poster + inline video + actions + MODALE
  Requis:
  - Colonne droite = .pv-right (classe sur la COLONNE)
  - Colonne gauche = .pv-left (classe sur la COLONNE)
****************************************************/

/* =========================
   Safety: éviter le texte “mot par mot”
========================= */
.pv-left, .pv-left *{
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

/* =========================
   Fix: backgrounds chelous côté texte
========================= */
.pv-left,
.pv-left .uncode_text_column,
.pv-left .uncode_text_column *{
  background: transparent !important;
}
.pv-left .row,
.pv-left .uncont,
.pv-left .wpb_wrapper{
  background: transparent !important;
}

/* =========================
   H1 SEO (ACF)
========================= */
.pv-seo-h1{
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 17px !important;
	line-height: 1.5;
	font-weight: 200;
	opacity: 100;
	margin: 0 0 16px 0;
}

/****************************************************
  HERO base
****************************************************/

/* Colonne hero */
.pv-right{
  position: relative;
  background-color: white !important;
}

/* HERO wrapper */
.pv-right .pv-hover{
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

/* Desktop: plein écran dans layout dédié */
@media (min-width: 960px){
  .pv-layout .pv-right .pv-hover{
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

/* media full cover */
.pv-right .pv-hover .pv-media{
  position: absolute;
  inset: 0;
}

/* poster + fallback mp4 */
.pv-right .pv-hover .pv-poster,
.pv-right .pv-hover .pv-preview{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube inline */
.pv-right .pv-hover .pv-yt{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

/* Quand prêt, on révèle l’iframe */
.pv-hero.pv-ready .pv-yt{ opacity: 1; }

/* Mobile: autoplay parfois bloqué -> au pire poster visible */
@media (max-width: 959px){
  .pv-right .pv-hover .pv-preview{ opacity: 0; }
}

/* Scrim léger au dessus (lisibilité actions) */
.pv-right .pv-hover::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.22);
  z-index: 6;
  pointer-events:none;
}

/* Textes au-dessus (ne doivent jamais bloquer) */
.pv-right .hero-headline,
.pv-right .hero-year{
  position: absolute;
  top: 18px;
  z-index: 20;
  pointer-events: none;
}
.pv-right .hero-headline{ left: 18px; }
.pv-right .hero-year{ right: 18px; }

/* Uncode wrappers */
.pv-right .uncode_text_column,
.pv-right .uncode-heading{
  pointer-events: none;
}

/* Responsive */
@media (max-width: 959px){
  .pv-right .pv-hover{ height: 52vh; min-height: 300px; }
  .pv-right .hero-headline{ top: 12px; left: 12px; }
  .pv-right .hero-year{ top: 12px; right: 12px; }
}

/****************************************************
  Actions premium (Son / Plein écran)
****************************************************/

.pv-actions{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  pointer-events: auto;
}

.pv-action{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(12,12,12,.40);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pv-action:hover,
.pv-action:focus-visible{
  transform: translateY(-1px);
  background: rgba(12,12,12,.55);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 16px 46px rgba(0,0,0,.45);
  outline: none;
}

.pv-action:active{ transform: translateY(0); }

.pv-action .pv-label{
  font-size: 13px;
  line-height: 1;
}

/* SVG icône */
.pv-action .pv-ic{
  display: inline-block;
  color: currentColor;
}

/* Son ON (état) */
.pv-sound.is-on{
  background: rgba(255,255,255,.92);
  color: #000;
  border-color: rgba(255,255,255,.92);
}

/* Quand Son ON: on masque les “ondes” si tu veux une vibe plus sobre (optionnel) */
.pv-sound.is-on .pv-ic-wave{
  opacity: .55;
}

@media (max-width: 959px){
  .pv-actions{
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }
  .pv-action{
    padding: 11px 12px;
    border-radius: 12px;
  }
}

/****************************************************
  LIGHTBOX CUSTOM YOUTUBE (inchangé + un poil plus premium)
****************************************************/

/* modale ouverte -> évite interactions derrière */
body.pv-modal-open{
  overflow: hidden;
}

/* container */
.pv-modal{
  position: fixed;
  inset: 0;
  z-index: 10000050;
  display: none;
}
.pv-modal.is-open{ display: block; }

/* backdrop */
.pv-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
}

/* boite */
.pv-modal__inner{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 92vw);
  z-index: 2;
}

/* frame 16/9 */
.pv-modal__frame{
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 110px rgba(0,0,0,.65);
}
.pv-modal__frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* close */
.pv-modal__close{
  position: absolute;
  top: -54px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(12,12,12,.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pv-modal__close:hover,
.pv-modal__close:focus-visible{
  transform: translateY(-1px);
  background: rgba(12,12,12,.65);
  border-color: rgba(255,255,255,.35);
  outline: none;
}

@media (max-width: 640px){
  .pv-modal__inner{ width: 92vw; }
  .pv-modal__close{ top: 10px; right: 10px; }
}

/****************************************************
  TAGS (pv_terms)
  - lisibles sur fond clair + hover propre
****************************************************/

.pv-tags-title{
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
}

.pv-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

/* Tags fond clair */
.pv-tag{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.18);
  color: rgba(0,0,0,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  user-select: none;
}

.pv-tag:hover,
.pv-tag:focus-visible{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.35);
  color: rgba(0,0,0,.92) !important;
  transform: translateY(-1px);
  outline: none;
}

.pv-tag:active{ transform: translateY(0); }

@media (max-width: 959px){
  .pv-tags{ gap: 8px; }
  .pv-tag{ padding: 9px 12px; font-size: 12.5px; }
}
/****************************************************
  FIX FINAL: le hero vidéo reste TOUJOURS en 16/9
****************************************************/

/* Si c’est un hero vidéo, on NE VEUT JAMAIS de 100vh */
.pv-layout .pv-right .pv-hover.pv-hero{
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
}

/* Sécurité: même sans pv-layout */
.pv-right .pv-hover.pv-hero{
  height: auto !important;
  min-height: 0 !important;
}

/* Empêche Uncode d’imposer une hauteur via children */
.pv-hover.pv-hero > *,
.pv-hover.pv-hero .pv-media{
  height: 100% !important;
}

/* Texte portfolio card bottom and white */
.ly-gallery h3{
	color: white !important;
    bottom: 0px;
    position: absolute;
    padding: 0 0 20px 0;
}
.portfolio-filters {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
