.article-section{
    padding:90px 0;
    background:var(--light);
}


/* ARTICLE */

.article-content{

    background:var(--white);
    border-radius:var(--radius-lg);
    padding:35px;
    box-shadow:var(--shadow-sm);

}


.article-image{

    height:420px;
    overflow:hidden;
    border-radius:var(--radius-lg);
    margin-bottom:25px;

}


.article-image img{

    width:100%;
    height:100%;
    object-fit:cover;

}



.article-meta{

    display:flex;
    gap:25px;
    color:var(--text);
    font-size:14px;
    margin-bottom:20px;

}


.article-meta span{

    display:flex;
    align-items:center;
    gap:8px;

}



.article-title{

    font-size:40px;
    line-height:1.2;
    color:var(--heading);
    margin-bottom:25px;

}



.article-resume{

    background:#f1f5ff;
    border-left:5px solid var(--primary);
    padding:20px;
    border-radius:10px;
    color:var(--text);
    margin-bottom:30px;

}



.article-body{

    color:var(--text);
    font-size:16px;
    line-height:1.9;

}


.article-body h2,
.article-body h3{

    color:var(--heading);
    margin-top:30px;

}


.article-body img{

    max-width:100%;
    border-radius:15px;

}



/* SHARE */

.article-share{

    border-top:1px solid var(--border);
    margin-top:40px;
    padding-top:25px;

}


.share-links{

    display:flex;
    gap:12px;

}


.share-links a{

    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:white;
    text-decoration:none;

}


.facebook{
    background:#1877f2;
}

.linkedin{
    background:#0a66c2;
}

.whatsapp{
    background:#25d366;
}




/* SIDEBAR */


.sidebar-box{

    background:white;
    padding:25px;
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
    margin-bottom:25px;

}


.sidebar-box h3{

    color:var(--heading);
    font-size:22px;
    margin-bottom:20px;

}



.search-box{

    display:flex;

}


.search-box input{

    width:100%;
    padding:12px;
    border:1px solid var(--border);
    border-radius:8px 0 0 8px;

}


.search-box button{

    width:50px;
    border:none;
    background:var(--primary);
    color:white;
    border-radius:0 8px 8px 0;

}




/* RECENT */


.recent-post{

    display:flex;
    gap:15px;
    margin-bottom:20px;

}


.recent-post img{

    width:80px;
    height:70px;
    object-fit:cover;
    border-radius:10px;

}


.recent-post a{

    color:var(--heading);
    text-decoration:none;
    font-weight:600;
    font-size:14px;

}


.recent-post small{

    display:block;
    color:var(--text);
    margin-top:5px;

}





/* CTA */

.sidebar-cta{

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color:white;
    padding:30px;
    border-radius:var(--radius-lg);

}


.sidebar-cta h3{

    color:white;
}


.sidebar-cta p{

    opacity:.9;
}



.cta-btn{

    display:inline-block;
    background:var(--secondary);
    color:white;
    padding:12px 20px;
    border-radius:10px;
    text-decoration:none;
    margin-top:15px;

} 


.cta-btn:hover{

    background:var(--secondary-dark);

}

/* ===== GALERIE D'IMAGES ===== */

.article-gallery{
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.article-gallery h4{
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 20px;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item{
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: var(--transition);
}

.gallery-item:hover{
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.gallery-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img{
    transform: scale(1.08);
}

@media (max-width: 576px){
    .gallery-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== LIGHTBOX AVEC SLIDER ===== */

.lightbox-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.lightbox-overlay img{
    max-width: 80%;
    max-height: 85%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-close{
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.lightbox-close:hover{
    color: var(--secondary);
}

.lightbox-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-arrow:hover{
    background: var(--secondary);
}

.lightbox-prev{
    left: 25px;
}

.lightbox-next{
    right: 25px;
}

@media (max-width: 576px){
    .lightbox-arrow{
        width: 40px;
        height: 40px;
        font-size: .9rem;
    }

    .lightbox-prev{
        left: 10px;
    }

    .lightbox-next{
        right: 10px;
    }
}