/* Styles pour la Galerie des Liens (Django Style) */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-card-thumb {
    width: 100%;
    height: 180px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.video-card-thumb:hover img {
    opacity: 0.8;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(230, 126, 34, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.video-card-thumb:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-content {
    padding: 15px;
    flex-grow: 1;
}

.video-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #2b1d1a;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    height: 3em;
    overflow: hidden;
}

.video-card-actions {
    padding: 10px 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsiveness */
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
