/* Styles pour le lecteur vidéo modal */

.videoframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: videoModalIn 0.3s ease-out;
}

.video-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.close-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .videoframe {
        padding: 10px;
    }
    
    .video-container {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .videoframe {
        padding: 5px;
    }
    
    .video-container {
        border-radius: 8px;
    }
}

/* Animation d'ouverture */
@keyframes videoModalIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de fermeture */
@keyframes videoModalOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Styles pour les contrôles vidéo */
.video-player::-webkit-media-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.video-player::-webkit-media-controls-panel {
    background: transparent;
}

/* Amélioration de l'accessibilité */
.videoframe:focus {
    outline: none;
}

.close-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
