#et-main-area, .section-categorie {
    min-height: 89vh;
}
/* ====== Onglets de catégories ====== */

.category-tabs {
    margin-top: 20px;
}

/* Barre d’onglets */
.category-tabs-nav {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.category-tabs-nav li {
    cursor: pointer;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 6px 6px 0 0;
    background: #f4f4f8;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.category-tabs-nav li:hover {
    background: #e6e0f5;
}

.category-tabs-nav li.active {
    background: #0c71c3!important; 
    color: #fff;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
}

/* Contenu des panels */
.category-tabs-content .tab-panel {
    display: none; /* JS gère l’affichage */
}

.category-tabs-content .tab-panel.active {
    display: block;
	min-height: 55vh;
}

/* ================================================================
   GRILLE D'ARTICLES — Style éditorial moderne
   Compatible Divi 5 + responsive tactile
   ================================================================ */

/* --- Grille principale --- */
.et_pb_posts_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Premier article en vedette : 2 colonnes, disposition horizontale */
.et_pb_posts_grid .et_pb_post:first-child {
    grid-column: span 2;
    flex-direction: row;
}
.et_pb_posts_grid .et_pb_post:first-child .et_pb_post_thumbnail {
    width: 55%;
    flex-shrink: 0;
    aspect-ratio: unset;
}
.et_pb_posts_grid .et_pb_post:first-child .et_pb_post_thumbnail img {
    height: 100%;
}
.et_pb_posts_grid .et_pb_post:first-child .et_pb_post_content {
    padding: 28px;
    justify-content: center;
}
.et_pb_posts_grid .et_pb_post:first-child .entry-title {
    font-size: 22px;
    -webkit-line-clamp: 3;
}
.et_pb_posts_grid .et_pb_post:first-child .post-excerpt {
    display: block;
}

/* --- Carte article --- */
.et_pb_posts_grid .et_pb_post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 0 1px rgba(0,0,0,0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.et_pb_posts_grid .et_pb_post:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(12,113,195,0.14), 0 1px 4px rgba(0,0,0,0.08);
}

/* --- Image --- */
.et_pb_posts_grid .et_pb_post_thumbnail {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #dde3ea;
}
.et_pb_posts_grid .et_pb_post_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.et_pb_posts_grid .et_pb_post:hover .et_pb_post_thumbnail img {
    transform: scale(1.06);
}

/* Badge catégorie sur l'image */
.et_pb_posts_grid .et_pb_post_thumbnail::after {
    content: attr(data-category);
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0c71c3;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Contenu --- */
.et_pb_posts_grid .et_pb_post_content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Méta (date + temps de lecture) */
.et_pb_posts_grid .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #8892a0;
    margin: 0;
}
.et_pb_posts_grid .post-meta .published::after {
    content: "·";
    margin-left: 10px;
    opacity: 0.5;
}

/* Titre */
.et_pb_posts_grid .entry-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.et_pb_posts_grid .entry-title a {
    color: inherit;
    text-decoration: none;
}
.et_pb_posts_grid .entry-title a:hover {
    color: #0c71c3;
}

/* Extrait (caché sur les cartes normales, visible sur featured) */
.et_pb_posts_grid .post-excerpt {
    display: none;
    font-size: 13.5px;
    color: #5a6070;
    line-height: 1.6;
    margin: 0;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pied de carte */
.et_pb_posts_grid .card-footer-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Lien "Lire la suite" */
.et_pb_posts_grid .more-link.et_pb_more_button {
    font-size: 12px;
    font-weight: 700;
    color: #0c71c3;
    text-decoration: none;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.et_pb_posts_grid .more-link.et_pb_more_button:hover {
    gap: 8px;
}

.no-posts-back {
	position: absolute;
	bottom: 0;
}
/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablette (≤ 980px) : 2 colonnes, featured pleine largeur */
@media (max-width: 980px) {
    .et_pb_posts_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .et_pb_posts_grid .et_pb_post:first-child {
        grid-column: span 2;
        flex-direction: column;
    }
    .et_pb_posts_grid .et_pb_post:first-child .et_pb_post_thumbnail {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .et_pb_posts_grid .et_pb_post:first-child .et_pb_post_content {
        padding: 20px;
    }
    .et_pb_posts_grid .et_pb_post:first-child .entry-title {
        font-size: 18px;
    }
}

/* Mobile (≤ 640px) : 1 colonne */
@media (max-width: 640px) {
    .et_pb_posts_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .et_pb_posts_grid .et_pb_post:first-child {
        grid-column: span 1;
    }
}

/* Borne 1080px (votre breakpoint spécifique) */
@media all and (min-width: 1079px) and (max-width: 1081px) {
    .et_pb_posts_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media all and (min-width: 1079px) and (max-width:1081px) {
	.section-categorie {
		    display: flex;
    justify-content: center;
    align-items: flex-end;
	min-height: 1735px;
	}
}

