/* ============================================
   STYLES PAGE BLOGS
   ============================================ */

body {
    background-color: #FFFFFF; /* Fond blanc comme sur l'image */
}

.blogs-page-container {
    margin: 30px 0px;
    font-family: 'Inter-regular', sans-serif;
}

/* --- HERO SECTION (Haut de page) --- */
.blog-hero {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* Partie Gauche (Grand Article) */
.hero-main {
    flex: 1.4; /* Prend plus de place */
    display: flex;
    flex-direction: column;
}

.hero-main-img-box {
    width: 100%;
    height: 360px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-date {
    color: #373948;
    font-size: 15px;
    margin-bottom: 10px;
    font-family: 'Inter-semiregular';
}

.hero-title {
    font-family: 'Inter-bold';
    font-size: 24px;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-desc {
    color: #373948;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Inter-semiregular';
}

/* Partie Droite (Liste latérale) */
.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.side-post {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 140px;
}

.side-post-img-box {
    width: 210px;
    height: 136px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.side-post-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-post-content {
    display: flex;
    flex-direction: column;
}

.side-date {
    font-size: 14px;
    font-weight: 600;
    color: #373948;
    margin-bottom: 8px;
}

.side-title {
    font-family: 'Inter-bold';
    font-size: 15px;
    color: #000;
    line-height: 1.4;
}


/* --- FEATURED POSTS (Grille) --- */
.featured-section {
    margin-bottom: 60px;
}
.section-heading {
    font-family: 'Inter-bold';
    font-size: 28px;
    color: #000;
    margin-bottom: 30px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes exactes */
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.card-img-box {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-date {
    font-size: 13px;
    color: #373948;
    margin-bottom: 8px;
    font-family: 'Inter-semibold';
}
.card-title {
    font-family: 'Inter-bold';
    font-size: 18px;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #373948;
    font-family: 'Inter-semiregular';
}


/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #F2F2F2;
    color: #000;
    font-family: 'Inter-bold';
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.page-btn:hover {
    background-color: #e0e0e0;
}

/* Style Actif (Vert) */
.page-btn.active {
    background-color: #96DC02; /* Vert Zhilki */
    color: #000;
}


/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    .blog-hero {
        flex-direction: column;
    }
    .hero-main-img-box {
        height: 360px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 600px) {
    .blogs-page-container {
        margin: 20px 15px;
    }
    .hero-main-img-box {
    height: 190px;
}
.side-post {
    height: auto;
}
.section-heading {
    font-size: 22px;
    margin-bottom: 20px;
}
    .hero-title { font-size: 20px; }
    
    /* Hero Side devient liste verticale simple */
    .hero-side { gap: 20px; }
    .side-post-img-box { width: 100px; height: 80px; }
    
    /* Grille en 1 colonne */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pagination {
        gap: 5px;
    }
    .page-btn {
        width: 35px; height: 35px; font-size: 12px;
    }
}
/* ============================================
   ANIMATIONS SCROLL (AJOUT)
   ============================================ */

/* Base : Vient du bas (Fade In Up) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    visibility: hidden;
}

/* Vient de la GAUCHE */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease-out;
    visibility: hidden;
}

/* Vient de la DROITE */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s ease-out;
    visibility: hidden;
}

/* État Final (Visible) */
.reveal.active, 
.reveal-left.active, 
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
}

/* Délais pour l'effet cascade dans la grille */
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }