/* ============================
   CONTENEUR GLOBAL
============================ */
.vlc-timeline {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

/* ============================
   LIGNE CENTRALE
============================ */
.vlc-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0; /* ← essentiel pour que la ligne occupe toute la hauteur */
    width: 3px;
    background: #d0d0d0;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 1;
}

.vlc-timeline-line .line-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: #2b6fb7;
    transition: height 0.15s linear;
    z-index: 2;
}

/* ============================
   ITEMS
============================ */
.vlc-timeline-item {
    width: 50%;
    position: relative;
    margin-bottom: 60px;
    z-index: 3;
}

.vlc-timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.vlc-timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

/* ============================
   POINT + ICÔNE (Méthode UAE)
============================ */
.vlc-timeline-point {
    position: absolute;
    opacity: 1 !important;
    transform: scale(1);
    top: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d0d0d0;
    border: 2px solid #d0d0d0;
    z-index: 4;

    /* CENTRAGE FLEX */
    display: flex;
    align-items: center;
    justify-content: center;

    /* ANIMATION PREMIUM */
    transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
    opacity: 0.4;
    transform: scale(0.8);
}

.vlc-timeline-item.left .vlc-timeline-point {
    right: -17px;
}

.vlc-timeline-item.right .vlc-timeline-point {
    left: -17px;
}

/* Point actif (quand l’item est marqué .active par le JS) */
.vlc-timeline-item.active .vlc-timeline-point {
    background: #2b6fb7;
    border-color: #2b6fb7;
    opacity: 1 !important;
    transform: scale(1.25);
}

/* Icône FA4 dans le point */
.vlc-timeline-icon i {
    position: relative;
    top: 1px; /* ajustement du centrage */
    font-size: 18px;
    line-height: 1;
    color: #666;
    opacity: 1; /* ← empêche l’héritage de l’opacité du point */
}

.vlc-timeline-item.active .vlc-timeline-icon i {
    color: #fff;
}

/* ============================
   BULLES
============================ */
.vlc-timeline-bubble {
    background: #f5f5f51c;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #999;
    display: inline-block;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vlc-timeline-bubble h3 + p {
    margin-top: 8px; /* espace entre titre et description */
}

.vlc-timeline-item.active .vlc-timeline-bubble {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   POINTE BULLE
============================ */
.vlc-timeline-item.left .vlc-timeline-bubble::before,
.vlc-timeline-item.right .vlc-timeline-bubble::before {
    content: "";
    position: absolute;
    top: 34px;
    width: 0;
    height: 0;
    border: 11px solid transparent;
    z-index: 1;
}

.vlc-timeline-item.left .vlc-timeline-bubble::before {
    right: -22px;
    border-left-color: #999;
}

.vlc-timeline-item.right .vlc-timeline-bubble::before {
    left: -22px;
    border-right-color: #999;
}

.vlc-timeline-item.left .vlc-timeline-bubble::after,
.vlc-timeline-item.right .vlc-timeline-bubble::after {
    content: "";
    position: absolute;
    top: 35px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    z-index: 2;
}

.vlc-timeline-item.left .vlc-timeline-bubble::after {
    right: -20px;
    border-left-color: #f5f5f51c;
}

.vlc-timeline-item.right .vlc-timeline-bubble::after {
    left: -20px;
    border-right-color: #f5f5f51c;
}

/* ============================
   DATE
============================ */

/* La date n’est plus influencée par le padding de la bulle */
.vlc-timeline-bubble {
    position: relative;
    padding-top: 20px; /* tu peux garder ton padding */
}

/* Positionnement de la date */
.vlc-timeline-date {
    position: absolute;
    top: 20px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {

    .vlc-timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 20px !important;
        text-align: left !important;
    }

    .vlc-timeline-point {
        left: calc(50% - 17px) !important;
        right: auto !important;
    }

    .vlc-timeline-bubble {
        max-width: 100%;
    }

    .vlc-timeline-item.left .vlc-timeline-bubble::before,
    .vlc-timeline-item.right .vlc-timeline-bubble::before {
        left: calc(50% - 11px);
        right: auto;
        border-left-color: transparent;
        border-right-color: #999;
    }

    .vlc-timeline-item.left .vlc-timeline-bubble::after,
    .vlc-timeline-item.right .vlc-timeline-bubble::after {
        left: calc(50% - 10px);
        right: auto;
        border-left-color: transparent;
        border-right-color: #f5f5f51c;
    }
}

/* ----- RESPONSIVE TIMELINE ----- */
@media (max-width: 768px) {

    /* Ligne repositionnée à gauche */
    .vlc-timeline-line {
        left: 20px !important;
        transform: none !important;
    }

    /* Points alignés sur la ligne */
    .vlc-timeline-point {
        left: 20px !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Les items deviennent tous "left" */
    .vlc-timeline-item {
        padding-left: 60px !important;
        padding-right: 0 !important;
    }

    .vlc-timeline-bubble {
        position: relative;
        margin-left: 0 !important;
    }

    /* Les dates redeviennent visibles */
    .vlc-timeline-date {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin-bottom: 30px !important;
        text-align: left;
    }

    /* Pointe des bulles repositionnée */
    .vlc-timeline-bubble::before {
        left: 0 !important;
        right: auto !important;
        top: 20px;
        transform: translateX(-100%);
        border-width: 10px;
        border-color: transparent #ffffff transparent transparent; /* pointe vers la gauche */
    }

    .vlc-timeline-bubble::after {
        left: 0 !important;
        right: auto;
        top: 20px; /* même valeur que ::before */
        transform: translateX(-100%);
        border-width: 11px;
        border-style: solid;
        border-color: transparent #d0d0d0 transparent transparent; /* couleur de bordure/ombre */
        z-index: -1; /* derrière la bulle si besoin */
    }

    /* On désactive la pointe sous les onglets sur les mobiles */
    .vlc-tabs-nav::after {
        display: none !important;
    }

    .vlc-tab-title::before, .vlc-tab-title::after { 
        display: none !important; 
    }

}
