/* Réutilisation de vos variables */
:root {
    --primary-navy: #002147; 
    --accent-red: #c04848;  
    --bg-soft: #f4f7f9;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

body { background-color: var(--bg-soft) !important; font-family: 'Inter', sans-serif; }

/* Hero Header Immersif */
.post-hero-header {
    height: 60vh; min-height: 400px;
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
    color: white; margin-bottom: -80px; /* Effet de chevauchement */
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,33,71,0.3), rgba(0,33,71,0.85));
}

.hero-content-single { position: relative; z-index: 2; text-align: center; }

.category-badge-single {
    background: var(--accent-red); color: white;
    padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 800;
}

.post-main-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800;
    margin: 20px 0; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Author & Meta */
.post-meta-top { display: flex; align-items: center; justify-content: center; gap: 15px; }
.author-pill { 
    display: flex; align-items: center; background: rgba(255,255,255,0.15); 
    padding: 5px 15px; border-radius: 50px; backdrop-filter: blur(5px);
}
.author-avatar {
    width: 30px; height: 30px; background: var(--accent-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 10px; font-size: 0.8rem; font-weight: bold;
}

/* Article Card Main */
.article-card-main {
    background: white; padding: 50px; border-radius: 20px;
    box-shadow: var(--card-shadow); position: relative; z-index: 10;
}

.con_art {
    font-size: 1.15rem; line-height: 1.8; color: #334155;
    text-align: justify;
}

.con_art p { margin-bottom: 1.5rem; }

/* Sidebar Moderne */
.sticky-sidebar { position: sticky; top: 100px; margin-top: 80px; }

.sidebar-card {
    background: white; padding: 25px; border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.sidebar-title { font-size: 1.2rem; font-weight: 800; color: var(--primary-navy); }

.mini-post-card {
    display: flex; gap: 15px; margin-bottom: 20px;
    text-decoration: none; transition: 0.3s;
}

.mini-post-card:hover { transform: translateX(5px); }

.mini-post-card img { width: 80px; height: 60px; border-radius: 10px; object-fit: cover; }

.mini-content h6 { 
    margin: 0; font-size: 0.95rem; color: var(--primary-navy); 
    font-weight: 700; line-height: 1.3;
}

.mini-content span { font-size: 0.75rem; color: var(--text-muted); }

/* Commentaires Style Twitter/Clean */
.comments-section-modern { margin-top: 50px; padding: 20px; }

.comment-item {
    display: flex; gap: 15px; margin-bottom: 25px;
    background: white; padding: 20px; border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.c-avatar {
    width: 45px; height: 45px; background: #e2e8f0;
    color: var(--primary-navy); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}

.c-user { font-weight: 700; color: var(--primary-navy); }
.c-text { margin-top: 5px; color: #475569; font-size: 0.95rem; }

/* Buttons & Utils */
.btn-main-sm {
    background: var(--primary-navy); color: white; border: none;
    padding: 12px 25px; border-radius: 10px; font-weight: 600; cursor: pointer;
}

.btn-outline-full {
    display: block; text-align: center; border: 2px solid var(--primary-navy);
    color: var(--primary-navy); padding: 10px; border-radius: 10px;
    text-decoration: none; font-weight: 700; margin-top: 20px;
}

.title-underline-left {
    width: 40px; height: 4px; background: var(--accent-red);
    margin: 10px 0 25px 0; border-radius: 10px;
}

/* --- Footer Social Links --- */
footer .footer-copyright .social_link a img {
    width: 24px !important; height: 24px !important;
    filter: grayscale(100%); transition: 0.3s;
}

footer .footer-copyright .social_link a:hover img { filter: none; }

#button {
    background: var(--primary-color); width: 45px; height: 45px;
    border-radius: 50%; border: none; color: white;
    position: fixed; bottom: 20px; right: 20px; cursor: pointer;
}

@media (max-width: 768px) {
    .post-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
}