/* === DÉSACTIVATION DE L'ANIMATION D'ARRIÈRE-PLAN === */
body {
    animation: none !important;
    background-attachment: fixed !important;
}

body::before,
body::after {
    animation: none !important;
}

/* === CARROUSEL SIMPLE - UNE VIDÉO À LA FOIS === */

/* === CONTENEUR PRINCIPAL === */
.carousel-container {
    width: 90%;
    max-width: 1800px;
    margin: 60px auto 40px;
    padding: 0;
    position: relative;
}

/* === TITRE DE LA VIDÉO === */
.video-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-beige);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    min-height: 40px;
}

/* === CARROUSEL SIMPLE === */
.simple-carousel {
    position: relative;
    width: 100%;
    height: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* === ITEM DU CARROUSEL === */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* === VIDÉO === */
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* === FLÈCHES DE NAVIGATION === */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.carousel-prev {
    left: -80px;
}

.carousel-next {
    right: -80px;
}

.carousel-nav-btn:hover {
    background: rgba(30, 58, 95, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(30, 58, 95, 0.8);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* === INDICATEURS === */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    z-index: 5;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--color-beige);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

/* === INSTRUCTIONS UTILISATEUR === */
.user-instructions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 90;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.user-instructions p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Animation fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Masquer les instructions après quelques secondes */
.user-instructions.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        pointer-events: none;
    }
}

/* === RESPONSIVE === */

/* Tablettes et grands écrans */
@media (max-width: 1500px) {
    .simple-carousel {
        height: 700px;
    }
}

@media (max-width: 1200px) {
    .carousel-container {
        width: 90%;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .simple-carousel {
        height: 600px;
    }
}

@media (max-width: 992px) {
    .carousel-container {
        width: 92%;
    }
    
    .simple-carousel {
        height: 500px;
    }
    
    .video-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .carousel-nav-btn {
        width: 55px;
        height: 55px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .carousel-container {
        margin: 40px auto 20px;
        width: 95%;
        padding: 0;
    }
    
    .simple-carousel {
        height: 450px;
        border-radius: 15px;
    }
    
    .video-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .carousel-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .carousel-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .user-instructions {
        bottom: 20px;
        padding: 12px 25px;
        max-width: 90%;
    }
    
    .user-instructions p {
        font-size: 0.85rem;
    }
}

/* Petits smartphones */
@media (max-width: 480px) {
    .simple-carousel {
        height: 350px;
    }
    
    .video-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .carousel-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .user-instructions {
        padding: 10px 20px;
    }
    
    .user-instructions p {
        font-size: 0.75rem;
    }
}

/* Mode paysage mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .simple-carousel {
        height: 300px;
    }
    
    .video-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .user-instructions {
        bottom: 15px;
        padding: 8px 15px;
    }
}
