/* ==========================================================================
   FRISE CHRONOLOGIQUE / TIMELINE BKB CHEMICALS (2014 - 2026)
   Shortcode : [bkb_timeline]
   ========================================================================== */

/* 1. Conteneur principal */
.bkb-timeline-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Version ScrollBox interne (si scroll="true") */
.bkb-timeline-scrollbox {
    max-height: 650px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

.bkb-timeline-scrollbox::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 2. Ligne centrale pointillée */
.bkb-timeline-track {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bkb-timeline-track::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 25px;
    left: 50%;
    width: 0;
    border-left: 1px dotted rgba(20, 40, 34, 0.28);
    transform: translateX(-50%);
    z-index: 1;
}

/* 3. Jalon individuel */
.bkb-timeline-item {
    position: relative;
    width: 50%;
    padding-bottom: 50px;
    box-sizing: border-box;
    z-index: 2;
}

/* Positionnement Gauche (années 2017, 2019, 2021, 2023, 2025) */
.bkb-timeline-item--left {
    align-self: flex-start;
    text-align: right;
    padding-right: 50px;
    padding-left: 0;
}

/* Positionnement Droite (années 2014, 2018, 2020, 2022, 2024, 2026) */
.bkb-timeline-item--right {
    align-self: flex-end;
    margin-left: 50%;
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
}

/* 4. Emblème BKB vert au centre de la ligne */
.bkb-timeline-badge {
    position: absolute;
    top: 8px;
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    background-image: url('https://bkb.goavana.com/wp-content/uploads/2026/08/Vector1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 4px #ffffff;
}

.bkb-timeline-item--left .bkb-timeline-badge {
    right: -11px;
}

.bkb-timeline-item--right .bkb-timeline-badge {
    left: -11px;
}

/* 5. Année */
.bkb-timeline-year {
    font-family: "Clash Grotesk", Sans-serif;
    font-size: 40px;
    font-weight: 500;
    color: #142822;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

/* Années en gris doux si souhaité */
.bkb-timeline-item--left .bkb-timeline-year {
    color: #142822;
}

/* 6. Contenu & Textes */
.bkb-timeline-content {
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5A6E67;
}

.bkb-timeline-subtitle {
    display: block;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #142822;
    margin-bottom: 4px;
    line-height: 1.45;
}

.bkb-timeline-text {
    margin: 0;
    color: #5A6E67;
}

/* 7. Listes à puces */
.bkb-timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bkb-timeline-list li {
    position: relative;
    margin-bottom: 6px;
    line-height: 1.55;
    color: #5A6E67;
}

.bkb-timeline-item--left .bkb-timeline-list li {
    padding-right: 14px;
}

.bkb-timeline-item--left .bkb-timeline-list li::after {
    content: '•';
    position: absolute;
    right: 0;
    color: #8A9B94;
    font-weight: bold;
}

.bkb-timeline-item--right .bkb-timeline-list li {
    padding-left: 14px;
}

.bkb-timeline-item--right .bkb-timeline-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8A9B94;
    font-weight: bold;
}

/* 8. Responsive (Tablettes et Mobiles < 768px) */
@media (max-width: 768px) {
    .bkb-timeline-container {
        padding: 20px 10px;
    }

    .bkb-timeline-track::before {
        left: 16px;
    }

    .bkb-timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 45px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .bkb-timeline-badge {
        left: 5px !important;
        right: auto !important;
    }

    .bkb-timeline-item--left .bkb-timeline-list li {
        padding-right: 0;
        padding-left: 14px;
        text-align: left;
    }

    .bkb-timeline-item--left .bkb-timeline-list li::after {
        display: none;
    }

    .bkb-timeline-item--left .bkb-timeline-list li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: #8A9B94;
        font-weight: bold;
    }
}
