/* ========== VIDEO GALLERY PRO - STYLES ========== */

/* ========== STYLES GÉNÉRAUX ========== */
.video-gallery-pro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========== EN-TÊTE ========== */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: -250px;
    margin-bottom: 190px;
  }

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    border-color: #2ea3f2;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

.results-count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 25px;
}

.results-count span {
    color: #2ea3f2;
    font-weight: 700;
    font-size: 18px;
}

/* ========== FILTRES ========== */
.video-filters-pro {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    margin-top:-150px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filters-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.reset-filters {
    padding: 10px 20px;
    color: black;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background-color:none;
}

.filter-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.filter-group-pro h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #555;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn-pro {
    background: #f8f9fa;
    border:none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #495057;
}

.filter-btn-pro:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.filter-btn-pro.active {
    background: #6c2eb9;
    color: white;
}

/* ========== GRILLE VIDÉOS ========== */
.video-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.video-grid-pro[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.video-grid-pro[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.video-item-pro {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.video-item-pro.hiding {
    opacity: 1 !important;
    transform: none !important;
}

.video-item-pro.hidden {
    display: none !important;
    opacity: 1 !important;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* ========== THUMBNAIL ========== */
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0,0,0,0.5);
}

.play-icon {
    transition: transform 0.3s ease;
}

.play-overlay:hover .play-icon {
    transform: scale(1.2);
}

/* ========== INFO VIDÉO ========== */
.video-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title-pro {
    font-size: 18px;
    margin: 0px;
    color: #2ab8e1;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.video-description {
    margin: 0px 0px 20px 0px;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.tag-thematique {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ========== ACTIONS ========== */
.video-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-pdf {
    padding: 5px 10px;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pdf:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* ========== LIGHTBOX ========== */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    margin-top:2%;
}

.video-lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: #ff6b6b;
    color: white;
    transform: rotate(90deg);
}

.lightbox-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.lightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== MESSAGE AUCUN RÉSULTAT ========== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999;
}

.no-videos {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .video-grid-pro {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .video-filters-pro {
        padding: 20px;
    }

    .filter-sections {
        grid-template-columns: 1fr;
    }

    .video-grid-pro {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .lightbox-content {
        width: 95%;
    }

    .lightbox-close {
        top: -45px;
        width: 35px;
        height: 35px;
    }
}