/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Courier New', monospace;
    cursor: default;
}

/* ============================================
   SCENE PRINCIPALE (video de fond)
   ============================================ */
.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.scene-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* ============================================
   DVD ANIME
   ============================================ */
.dvd-container {
    position: absolute;
    left: 34%;
    top: 40%;
    width: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: opacity 0.3s ease-out;
    z-index: 5;
}

.dvd-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.dvd-container:hover {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7)) brightness(1.05);
}

.dvd-container.fading {
    opacity: 0.3;
}

/* ============================================
   NAVIGATION (boutons avec images PNG)
   ============================================ */
.navigation {
    position: absolute;
    bottom: 15%;
    left: 33%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    align-items: center;
    z-index: 10;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s ease-out, filter 0.1s ease-out;
    user-select: none;
}

.nav-prev {
    width: 180px;
    height: 180px;
    background-image: url('../assets/flechegauche.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: -40px;
}

.nav-next {
    width: 180px;
    height: 180px;
    background-image: url('../assets/flechedroite.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: -40px;
}

.nav-play {
    width: 210px;
    height: 210px;
    background-image: url('../assets/boutonplay.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
}

.nav-btn span {
    display: none;
}

.nav-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-btn:active {
    transform: scale(0.95);
    filter: brightness(0.85);
}

/* ============================================
   SCOTCH DECORATIF (sous les boutons)
   ============================================ */
.dvd-scotch {
    position: absolute;
    bottom: 3%;
    left: 33%;
    transform: translateX(-50%);
    width: 350px;
    height: auto;
    z-index: 5;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* ============================================
   VIDEOS DE TRANSITION (zoom / dezoom)
   ============================================ */
.transition-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 100;
    display: none;
    background: #000;
}

.transition-video.active {
    display: block;
}

/* ============================================
   ECRAN PROJET
   ============================================ */
.project-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 90;
    display: none;
}

.project-screen.active {
    display: block;
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 2;
    pointer-events: none;
}

.btn-back {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 15px 30px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border: 2px solid #222;
    border-radius: 4px;
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.1s ease-out;
    z-index: 110;
}

.btn-back:hover {
    background: linear-gradient(180deg, #666 0%, #444 100%);
}

.btn-back:active {
    background: linear-gradient(180deg, #333 0%, #555 100%);
    transform: translateY(2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .dvd-container {
        width: 50%;
    }
    
    .nav-prev,
    .nav-next {
        width: 110px;
        height: 110px;
    }
    
    .nav-play {
        width: 140px;
        height: 140px;
    }
    
    .dvd-scotch {
        width: 220px;
    }
    
    .btn-back {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
}