/*
Theme Name: Hello Elementor Child
Theme URI:
Description: Th?me enfant de Hello Elementor ¡X Site ?milien Plisson
Author: ?milien Plisson
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ============================================================
   HERO ¡X Wrapper sticky
   ============================================================ */

#experience-ep {
    position: relative;
    width: 100%;
    cursor: none !important;
}

.sticky-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* ¢w¢w¢w Vid?o de fond ¢w¢w¢w */
#video-fond {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* ============================================================
   R?GLAGES HERO ¡X calage logo/masque

   Le conteneur #logo-container est positionn? dynamiquement en JS
   (voir le <script> dans functions.php) via getBoundingClientRect()
   sur le groupe de r?f?rence #logo-ref ¡X sa position/taille suit
   donc exactement le masque ? chaque instant, sur n'importe quel
   ?cran, sans r?glage manuel par breakpoint.
   ============================================================ */

/* ¢w¢w¢w Masque SVG ¢w¢w¢w */
#svg-mask {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    mix-blend-mode: luminosity;
    pointer-events: none;
    overflow: hidden;
}

/* ¢w¢w¢w Conteneur logo (position/taille fix?es en JS) ¢w¢w¢w */
#logo-container {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

#logo-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ¢w¢w¢w Titre en-t?te ¢w¢w¢w */
.header-title {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.header-title h1 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
}

.header-title h1 span {
    font-weight: 400;
    margin-left: 5px;
}

/* ¢w¢w¢w Info overlay (infos projet en bas ? gauche) ¢w¢w¢w */
.info-overlay {
    position: absolute;
    bottom: 3vh;
    left: 2vw;
    z-index: 10;
    color: white;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    mix-blend-mode: exclusion;
}

.badge-group {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.badge {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    white-space: nowrap;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.main-title {
    font-size: clamp(48px, 6vw, 100px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 0;
}

.sub-title {
    font-size: clamp(40px, 5vw, 80px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 0;
    opacity: 0.55;
}


/* ============================================================
   GRILLE PROJETS
   ============================================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.video-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.video-player-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-player-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-card:hover .js-video {
    opacity: 1;
}

.video-content {
    padding: 10px 0 6px;
}

.video-content h2 {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 600;
    margin: 0;
    color: #fff;
}


/* ============================================================
   LIGHTBOX PLEIN ?CRAN
   ============================================================ */

#emilien-fullscreen-lightbox {
    cursor: none !important;
}

#close-emilien-lightbox {
    cursor: pointer;
    transition: opacity 0.2s;
}

#close-emilien-lightbox:hover {
    opacity: 1 !important;
}

#emilien-lightbox-media {
    border-radius: 2px;
}