.gallery-section{

    padding:60px 0;
}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;
}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:20px;

    height:280px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    background:#fff;
}

.gallery-item img{

    width:100%;

    display:block;

    transition:.5s;
}

.gallery-overlay{

    position:absolute;

    inset:0;

    background:rgba(67,56,202,.75);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    transition:.4s;
}

.gallery-overlay i{

    color:white;

    font-size:32px;
}

.gallery-item:hover img{

    transform:scale(1.1);
}

.gallery-item:hover .gallery-overlay{

    opacity:1;
}

.filter-wrapper{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

    margin-bottom:40px;
}

.filter-btn{

    padding:12px 25px;

    border-radius:50px;

    background:white;

    color:#4338ca;

    font-weight:600;

    transition:.3s;

    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.filter-btn.active{

    background:#4338ca;

    color:white;
}

.video-section{

    padding:40px 0 80px;
}

.video-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;
}

.video-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.video-card iframe{

    width:100%;

    height:250px;

    border:none;
}

.video-card h4{

    padding:20px;

    color:#4338ca;
}

/* ==========================================
   HERO MEDIATHEQUE
========================================== */

.media-hero{

    position:relative;

    min-height:60vh;

    display:flex;

    align-items:center;

    background:url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1920&q=80');

    background-size:cover;

    background-position:center;
}

.media-hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(67,56,202,.92),
        rgba(30,41,59,.88)
    );
}

.media-hero-content{

    position:relative;

    z-index:2;

    color:white;

    max-width:850px;
}

.media-hero-content h1{

    font-size:65px;

    font-weight:800;

    margin:20px 0;
}

.media-hero-content p{

    font-size:20px;

    color:#e2e8f0;
}

.gallery-filter{

    margin-top:-40px;

    position:relative;

    z-index:10;
}

.filter-wrapper{

    background:rgb(203, 203, 210);

    border-radius:70px;

    padding:15px;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.filter-btn{

    border:none;

    padding:14px 28px;

    border-radius:50px;

    background:transparent;

    color:#475569;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.filter-btn:hover{

    background:#eef2ff;

    color:#4338ca;
}
/* ===================================
   VIDEO HEADER
=================================== */

.video-section{

    /* padding:80px 0; */
}

.video-section .section-header{

    text-align:center;

    max-width:800px;

    margin:0 auto 50px;
}

.video-section .section-badge{

    display:inline-block;

    padding:10px 22px;

    border-radius:50px;

    background:rgba(67,56,202,.08);

    color:#4338ca;

    font-weight:600;

    margin-bottom:15px;
}

.video-section .section-header h2{

    font-size:42px;

    font-weight:800;

    color:#1e293b;

    margin-bottom:15px;
}

.video-section .section-header p{

    color:#64748b;

    font-size:17px;

    line-height:1.8;
}
.video-card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    transition:.3s;
}

.video-card:hover{

    transform:translateY(-8px);
}

.video-content{

    padding:20px;
}

.video-content h4{

    margin:0;

    color:#4338ca;

    font-size:18px;

    font-weight:700;
}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:18px;
}

.gallery-item img{

    width:100%;

    height:260px;

    object-fit:cover;

    transition:.4s;
}

.gallery-item:hover img{

    transform:scale(1.05);
}

.gallery-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.35);

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    transition:.3s;

    color:white;

    font-size:22px;
}

.gallery-item:hover .gallery-overlay{

    opacity:1;
}

/* video style */

.gallery-overlay.video{

    background:rgba(30,41,59,.5);
}

.gallery-overlay.video i{

    font-size:30px;

    color:#38bdf8;
}

.gallery-overlay.video{

    background:rgba(0,0,0,.35);

    display:flex;

    align-items:center;

    justify-content:center;
}

.gallery-overlay.video i{

    font-size:48px;

    color:#38bdf8;

    text-shadow:0 10px 25px rgba(0,0,0,.4);

    transition:.3s;
}

/* effet hover vidéo */

.gallery-item:hover .gallery-overlay.video i{

    transform:scale(1.15);

    color:#67e8f9;
}