/* ==========================================================================
   Page Actualités - Liste des articles BKB Chemicals (Design Validé)
   Grille 3 colonnes : Miniature | Badge + Titre + Date | Extrait + Lire l'article
   ========================================================================== */

.bkb-actualites-liste {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 60px 0;
    box-sizing: border-box;
}

/* 1. Ligne article (Grille 3 colonnes conforme à la maquette validée) */
.bkb-actu-item {
    display: grid;
    grid-template-columns: 240px minmax(280px, 380px) 1fr;
    gap: 45px;
    align-items: start;
    padding: 35px 0;
    border-bottom: 1px dotted rgba(20, 40, 34, 0.22); /* Séparateur pointillé fin */
    box-sizing: border-box;
    transition: background-color 0.25s ease;
}

.bkb-actu-item.bkb-actu-last,
.bkb-actu-item:last-child {
    border-bottom: none;
}

/* 2. Colonne 1 : Image miniature */
.bkb-actu-image {
    width: 100%;
    max-width: 240px;
    height: 140px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.bkb-actu-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.bkb-actu-image img,
.bkb-actu-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    background: #eaf0ed;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bkb-actu-item:hover .bkb-actu-image img {
    transform: scale(1.04);
}

.bkb-actu-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2ece7;
}

.bkb-actu-image-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: #7A8B86;
    opacity: 0.6;
}

/* 3. Colonne 2 : Badge vert + Titre + Date */
.bkb-actu-contenu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bkb-actu-badge-titre {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bkb-actu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 5px;
}

.bkb-actu-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.bkb-actu-titre {
    margin: 0;
    font-family: "Clash Grotesk", "Space Grotesk", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.bkb-actu-titre,
.bkb-actu-titre a,
.bkb-actu-titre a:visited,
.elementor-widget-posts .elementor-post__title a,
.elementor-widget-loop-grid .elementor-heading-title a {
    font-family: "Clash Grotesk", "Space Grotesk", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: #00642E !important;
    text-decoration: none !important;
    transition: color 0.25s ease, opacity 0.25s ease !important;
}

.bkb-actu-titre a:hover,
.bkb-actu-item:hover .bkb-actu-titre a,
.elementor-post__title a:hover {
    color: #004d23 !important;
    opacity: 0.85;
    text-decoration: none !important;
}

.bkb-actu-date,
.bkb-actu-meta-small {
    font-family: "Inter", Sans-serif;
    font-size: 13px;
    color: #8A9B94;
    margin-top: 10px;
    margin-left: 26px; /* Aligné sous le texte du titre */
    display: block;
}

/* 4. Colonne 3 : Extrait + Lien Lire l'article */
.bkb-actu-texte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bkb-actu-texte p,
.bkb-actu-excerpt {
    margin: 0 0 16px 0;
    color: #5A6E67;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.bkb-actu-lien,
.elementor-post__read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: "Space Grotesk", "Clash Grotesk", Sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #142822 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.25s ease !important;
}

.bkb-actu-lien:hover,
.elementor-post__read-more:hover {
    color: #00642E !important;
    text-decoration: none !important;
}

/* Icône flèche circulaire */
.bkb-actu-lien-icon,
.bkb-actu-lien svg,
.bkb-actu-lien i,
.elementor-post__read-more svg,
.elementor-post__read-more i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.bkb-actu-lien:hover .bkb-actu-lien-icon,
.bkb-actu-lien:hover svg,
.bkb-actu-lien:hover i,
.bkb-actu-item:hover .bkb-actu-lien-icon,
.bkb-actu-item:hover .bkb-actu-lien svg,
.elementor-post__read-more:hover svg,
.elementor-post__read-more:hover i {
    transform: translateX(5px) !important;
}

.bkb-actu-lien svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   5. EN-TÊTE OPTIONNEL DE LA PAGE ACTUALITÉS & FILTRES
   ========================================================================== */

.bkb-actualites-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding-top: 10px;
    box-sizing: border-box;
}

.bkb-actualites-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bkb-actualites-header-tag .bkb-tag-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    background-image: url('https://bkb.goavana.com/wp-content/uploads/2026/08/Rectangle-3.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.bkb-actualites-header-tag .bkb-tag-text {
    font-family: "Clash Grotesk", "Space Grotesk", Sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7A8B86;
}

.bkb-actualites-header-title {
    margin: 0 0 12px 0;
    font-family: "Clash Grotesk", Sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #142822;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.bkb-actualites-header-desc {
    font-family: "Inter", Sans-serif;
    font-size: 15px;
    color: #5A6E67;
    margin: 0;
    max-width: 680px;
    line-height: 1.6;
}

.bkb-actu-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(20, 40, 34, 0.08);
    box-sizing: border-box;
}

.bkb-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 20px;
    background: #F0F4F2;
    color: #142822;
    font-family: "Space Grotesk", "Clash Grotesk", Sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.bkb-filter-btn:hover {
    background: #e2ece7;
    color: #00642E;
}

.bkb-filter-btn.active,
.bkb-filter-btn.current {
    background: #142822;
    color: #ffffff;
    border-color: #142822;
}

/* ==========================================================================
   6. PAGINATION & ÉTAT VIDE
   ========================================================================== */

.bkb-actu-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
}

.bkb-actu-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    background: #f1f5f3;
    color: #142822;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.bkb-actu-pagination .page-numbers.current,
.bkb-actu-pagination .page-numbers:hover {
    background: #142822;
    color: #ffffff;
}

.bkb-no-actu {
    padding: 40px 0;
    text-align: center;
    color: #5A6E67;
    font-size: 16px;
}

/* ==========================================================================
   7. BOUTON "VOIR TOUTES LES ACTUALITÉS" (Accueil / Bas de section)
   ========================================================================== */

.bkb-actu-footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 35px;
    padding-top: 15px;
    box-sizing: border-box;
}

.bkb-actu-btn-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid #142822;
    border-radius: 0;
    color: #142822 !important;
    font-family: "Clash Grotesk", Sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.bkb-actu-btn-all:hover {
    background: #f8f9f8 !important;
    color: #162D2B !important;
    border: 1px solid #f8f9f8 !important;
}

/* ==========================================================================
   7. ARTICLE UNIQUE (SINGLE POST)
   ========================================================================== */

.bkb-single-post {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 80px 20px;
    box-sizing: border-box;
}

.bkb-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Space Grotesk", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5A6E67;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bkb-single-back:hover {
    color: #00642E;
    transform: translateX(-4px);
}

.bkb-single-header {
    margin-bottom: 35px;
}

.bkb-single-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.bkb-single-title {
    font-family: "Clash Grotesk", Sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #142822;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
}

.bkb-single-hero-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.bkb-single-hero-image img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.bkb-single-content {
    font-family: "Inter", Sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #2D3E38;
}

.bkb-single-content p {
    margin: 0 0 24px 0;
}

.bkb-single-content h2 {
    font-family: "Clash Grotesk", Sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #142822;
    margin: 40px 0 20px 0;
    line-height: 1.25;
}

.bkb-single-content blockquote {
    margin: 35px 0;
    padding: 20px 30px;
    border-left: 4px solid #01ED6D;
    background: #F7F9F8;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #142822;
}

.bkb-single-related {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid rgba(20, 40, 34, 0.12);
}

.bkb-single-related-title {
    font-family: "Clash Grotesk", Sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #142822;
    margin: 0 0 30px 0;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .bkb-actu-item {
        grid-template-columns: 190px 1fr;
        gap: 25px;
    }

    .bkb-actu-texte {
        grid-column: 1 / -1;
    }

    .bkb-actualites-header-title {
        font-size: 36px;
    }

    .bkb-single-title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .bkb-actu-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 25px 0;
    }

    .bkb-actu-image {
        max-width: 100%;
        height: 180px;
    }

    .bkb-actu-titre {
        font-size: 18px;
    }

    .bkb-actu-date,
    .bkb-actu-meta-small {
        margin-left: 0;
    }

    .bkb-actualites-header-title {
        font-size: 28px;
    }

    .bkb-single-title {
        font-size: 24px;
    }
}