/* --- Dark Mode --- */
.dark-theme .video-item { background: #1a1a1a; box-shadow: none; }
.dark-theme .video-info h4 { color: white; }



  :root {
            --primary: #0a1931;
            --accent: #d4af37;
            --text-dark: #333;
            --text-light: #777;
            --bg-light: #f9f9f9;
            --white: #ffffff;
            --shadow: 0 10px 30px rgba(0,0,0,0.08);
            --transition: all 0.3s ease;
        }

        body { font-family: 'Poppins', sans-serif; background-color: #fff; color: var(--text-dark); }

        /* --- Bannière --- */
.breadcrumb-area {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
                url('../img/Children-helped-by-World-Vision-from-its-webiste.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    margin-bottom: 20px;
}

.breadcrumb-area h1 { color: var(--white); font-size: 3.5rem; letter-spacing: 3px; margin-bottom: 10px; }
.breadcrumb-area p a { color: var(--gold); text-decoration: none; font-weight: 600; }
.breadcrumb-area p  { color: var(--white); text-decoration: none; font-weight: 600; }



        .gallery-main-section { padding-bottom: 80px; }
        .containerr { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        .subset-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 15px;
            border-left: 5px solid var(--accent);
            padding-left: 15px;
        }

        /* Grid System */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        /* Cartes Photos */
        .gallery-item {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            height: 250px;
            display: block;
            transition: var(--transition);
        }
        .gallery-item:hover { transform: translateY(-10px); }
        .gallery-item .img-container { width: 100%; height: 100%; }
        .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .gallery-item:hover img { transform: scale(1.1); }

        .gallery-item .overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(transparent, rgba(10, 25, 49, 0.9));
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
            opacity: 0;
            transition: var(--transition);
        }
        .gallery-item:hover .overlay { opacity: 1; }
        .overlay span { color: var(--white); font-weight: 600; font-size: 16px; }
        .overlay i { color: var(--accent); font-size: 24px; margin-bottom: 10px; }

        /* Cartes Vidéos */
        .video-item {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
        }
        .video-item:hover { transform: translateY(-10px); }
        .video-preview { position: relative; height: 180px; overflow: hidden; }
        .video-preview img { width: 100%; height: 100%; object-fit: cover; }
        .play-btn-circle {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 60px; height: 60px;
            background: rgba(212, 175, 55, 0.9);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: var(--white);
            font-size: 20px;
            transition: var(--transition);
        }
        .video-item:hover .play-btn-circle { background: var(--primary); transform: translate(-50%, -50%) scale(1.1); }
        .video-info { padding: 20px; }
        .video-info h4 { margin: 0; font-size: 17px; font-weight: 600; color: var(--primary); }

        /* Badge Activité */
        .activity-badge {
            display: inline-block;
            background: rgba(212, 175, 55, 0.15);
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        /* Pagination */
        .pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
        .pagination a {
            width: 45px; height: 45px;
            display: flex; align-items: center; justify-content: center;
            background: var(--white);
            color: var(--primary);
            border: 1px solid #eee;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }
        .pagination a:hover, .pagination a.active {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(10, 25, 49, 0.2);
        }

        /* Empty Message */
        .empty-msg {
            grid-column: 1/-1;
            text-align: center;
            padding: 60px;
            background: var(--bg-light);
            border-radius: 20px;
            border: 2px dashed #ddd;
            color: var(--text-light);
        }
        .empty-msg i { margin-bottom: 15px; opacity: 0.5; }

        /* Modal Vidéo */
        .video-lightbox-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.95);
            z-index: 9999;
            align-items: center; justify-content: center;
        }
        .video-modal-container { width: 90%; max-width: 900px; position: relative; }
        .close-modal {
            position: absolute; top: -50px; right: 0;
            color: #fff; font-size: 40px; cursor: pointer;
        }
        .video-responsive { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 15px; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
        .video-responsive iframe { position: absolute; top:0; left:0; width:100%; height:100%; }

        @media (max-width: 768px) {
            .breadcrumb-area h1 { font-size: 2rem; }
            .gallery-grid { grid-template-columns: 1fr; }
        }