/* --- POLICES --- */
@font-face {
    font-family: 'Dugas Pro Ultra Condensed';
    src: url('../assets/fonts/DugasProUltraCondensed.ttf') format('truetype');
    font-weight: normal; font-style: normal;
}

:root {
    --font-saira: 'Saira Extra Condensed', sans-serif;
    --font-dugas: 'Dugas Pro Ultra Condensed', sans-serif;
    --text-color: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- PARAMÈTRES GLOBAUX MAGIQUES --- */
html, body {
    width: 100%;
    margin: 0; padding: 0;
    background-color: #000;
    /* CACHE LA SCROLLBAR SUR TOUS LES NAVIGATEURS */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    /* LE SNAPPING MAGIQUE : force l'arrêt pile poil sur les pages */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
::-webkit-scrollbar { display: none; } /* Cache sur Chrome/Safari */

/* --- STRUCTURE STICKY SCROLL --- */
.sticky-viewport {
    position: fixed; /* La caméra ne bouge pas */
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    overflow: hidden; 
    z-index: 1;
}

.horizontal-rail {
    display: flex;
    height: 100vh;
    width: fit-content;
    will-change: transform;
    /* L'effet 'Smooth' interpolé pour un glissement lourd et premium */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Les boîtes invisibles sur lesquelles le scroll s'aimante */
.ghost-scroll {
    position: relative; 
    z-index: 2; 
    pointer-events: none; /* Laisse passer les clics vers la caméra */
}
.snap-point {
    height: 100vh; 
    width: 100%;
    scroll-snap-align: start; /* Point d'arrêt */
}

/* --- CHAQUE PAGE (SLIDE) --- */
.slide {
    width: 100vw; height: 100vh;
    position: relative;
    flex-shrink: 0; 
    overflow: hidden;
}

/* --- VIDEO BACKGROUND --- */
.video-background {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; background-color: #000;
}
.video-background iframe {
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    width: max(100vw, 133.33vh) !important;
    height: max(75vw, 100vh) !important;
    transform: translate(-50%, -50%) scale(1.02) !important;
    pointer-events: none !important; border: none !important;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); z-index: 1;
}

/* --- MENU FIXE --- */
.top-nav {
    position: fixed; top: 40px; right: 50px; z-index: 100;
}

.menu-btn {
    background-color: #ffffff; color: #000000; border: none;
    font-family: var(--font-saira); font-size: 1.1rem; font-weight: 700;
    cursor: pointer; letter-spacing: 1px; padding: 8px 24px; border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu-btn:hover { transform: scale(1.05); background-color: #e0e0e0; }

/* --- TEXTES SLIDE 1 (ACCUEIL) --- */
.top-left-content {
    position: absolute; 
    top: 50px; left: 50px; 
    display: flex; flex-direction: column; align-items: flex-start; z-index: 2; color: var(--text-color);
}
.title-main { font-family: var(--font-dugas); font-size: clamp(4rem, 8vw, 10rem); line-height: 0.75; }
.title-sub { 
    font-family: var(--font-saira); font-size: clamp(1.5rem, 3.5vw, 4rem); 
    line-height: 1; font-weight: 600;
    margin-top: 52px; /* LES FAMEUX 52PX */
}

/* ALIGNEMENT : MÊME HAUTEUR QUE LES CRÉATIONS (bottom: 60px) */
.bottom-right-content {
    position: absolute; 
    bottom: 60px; right: 50px;
    display: flex; flex-direction: row; align-items: baseline; gap: 8px; z-index: 2; color: var(--text-color);
}
.showreel-main { font-family: var(--font-dugas); font-size: clamp(3rem, 7vw, 9rem); line-height: 0.8; }
.showreel-sub { font-family: var(--font-saira); font-size: clamp(1rem, 2.5vw, 3rem); line-height: 0.8; font-weight: 600;}

/* --- TEXTES SLIDES CRÉATIONS --- */
/* ALIGNEMENT : MÊME HAUTEUR QUE LE SHOWREEL (bottom: 60px) */
.bottom-left-content {
    position: absolute;
    bottom: 60px; /* Même hauteur exacte que le SHOWREEL */
    left: 50px;
    z-index: 2; color: var(--text-color);
    display: flex; flex-direction: column; gap: 12px; 
}

/* DESIGN DES TAGS : "CLASSIC GLASS" */
.roles-list {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.role-tag {
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-saira);
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    letter-spacing: 1px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Titre et Genre */
.title-genre-wrapper {
    display: flex; 
    align-items: baseline; /* LA MAGIE EST ICI : aligne le "pied" des lettres */
    gap: 15px;
}

.project-title {
    font-family: var(--font-dugas); font-size: clamp(3rem, 7vw, 9rem);
    line-height: 0.8; 
    text-transform: uppercase;
    margin-bottom: 0; 
}

/* LA CORRECTION DU GENRE EST LÀ : MÊME TAILLE QUE 2026 */
.project-genre {
    font-family: var(--font-saira); 
    font-size: clamp(1rem, 2.5vw, 3rem); 
    letter-spacing: 2px; font-weight: 600; 
    padding-bottom: 0; 
}

/* ========================================= */
/* --- ANIMATIONS D'APPARITION (REVEAL) --- */
/* ========================================= */

.animate-up {
    opacity: 0;
    transform: translateY(30px); /* Décalé vers le bas au départ */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Quand le JS ajoute la classe .is-visible au parent (.slide) */
.slide.is-visible .animate-up {
    opacity: 1;
    transform: translateY(0);
}

/* Décalages pour faire apparaître les éléments un par un */
.slide.is-visible .delay-1 { transition-delay: 0.2s; }
.slide.is-visible .delay-2 { transition-delay: 0.4s; }
.slide.is-visible .delay-3 { transition-delay: 0.6s; }

/* --- RESPONSIVE TELEPHONE --- */
@media screen and (max-width: 768px) {
    .top-left-content { top: 30px; left: 30px; }
    .bottom-right-content { bottom: 30px; right: 30px; gap: 8px; }
    .bottom-left-content { bottom: 30px; left: 30px; }
    .top-nav { top: 30px; right: 30px; }
    .menu-btn { font-size: 0.9rem; padding: 6px 16px; }
}