<style>
/* ===== STYLES VIDÉO ERGONOMIQUES ===== */
.video-card-container {
    border-radius: 12px;
    overflow: hidden;
}

.video-player-container {
    position: relative;
    background: #000;
    border-radius: 0 !important;
}

.video-player {
    height: auto;
    min-height: 250px;
    background: #000;
    border-radius: 0 !important;
}

/* Overlay de prévisualisation */
.video-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 66, 159, 0.9) 0%, rgba(26, 58, 138, 0.8) 100%);
    transition: all 0.3s ease;
    opacity: 1;
    cursor: pointer;
}

.video-player.playing + .video-preview-overlay,
.video-preview-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Bouton play moderne */
.btn-play-video {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.btn-play-video:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-play-video::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 1; }
}

/* Informations vidéo */
.video-info {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Optimisation mobile */
@media (max-width: 768px) {
    .video-player {
        min-height: 200px;
    }

    .btn-play-video {
        width: 60px;
        height: 60px;
    }

    .video-preview-overlay {
        padding: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-footer {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .video-player {
        min-height: 180px;
    }

    .btn-play-video {
        width: 50px;
        height: 50px;
    }

    .play-button-container {
        margin-bottom: 1rem !important;
    }
}

/* Amélioration des contrôles vidéo natifs */
.video-player::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.video-player::-webkit-media-controls-play-button {
    background-color: #1E429F;
    border-radius: 50%;
}

/* États de chargement */
.video-player.loading::after {
    content: 'Chargement...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
</style>
