/* =============================================================================
   TIMELINE / FRISE
   ============================================================================= */

.mhb-timeline {
    position: relative;
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Ligne verticale centrale */
.mhb-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: var(--mhb-secondary, #007AC1);
    border-radius: 2px;
}

/* Evenement */
.mhb-timeline__event {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.mhb-timeline__event.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternance gauche/droite — texte aligné vers la timeline */
.mhb-timeline__event:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: left;
}

.mhb-timeline__event:nth-child(even) {
    flex-direction: row;
    text-align: right;
}

/* Contenu — fond transparent */
.mhb-timeline__content {
    flex: 0 0 calc(50% - 40px);
    max-width: calc(50% - 40px);
    background: linear-gradient(180deg, rgba(8, 20, 42, 0.96), rgba(4, 12, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    border-radius: 18px;
    padding: 18px 22px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mhb-timeline__content:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

/* Image */
.mhb-timeline__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.mhb-timeline__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    transform: scale(1.001);
    transition: transform 0.45s ease;
}

.mhb-timeline__content:hover .mhb-timeline__image img {
    transform: scale(1.04);
}

/* Point central */
.mhb-timeline__marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--mhb-secondary, #007AC1);
    border: 4px solid var(--mhb-bg-dark, #001025);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--mhb-secondary, #007AC1);
    z-index: 2;
    top: 24px;
}

/* Icone dans le marqueur */
.mhb-timeline__marker--trophy {
    width: 36px;
    height: 36px;
    background: var(--mhb-trophy-gold, #BB9860);
    box-shadow: 0 0 0 3px var(--mhb-trophy-gold, #BB9860);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mhb-timeline__marker--champagne {
    width: 36px;
    height: 36px;
    background: #C9A62D;
    box-shadow: 0 0 0 3px #C9A62D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Annee */
.mhb-timeline__year {
    display: inline-block;
    font-family: var(--mhb-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--mhb-secondary, #007AC1);
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

/* Titre */
.mhb-content__inner .mhb-timeline__title,
.mhb-timeline__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mhb-text-white, #ffffff);
    margin-top: 0;
    margin: 0 0 3px;
    line-height: 1.3;
}

/* Description */
.mhb-timeline__description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mhb-text-gray, #a0aec0);
    margin: 0;
}

/* Type palmares : titres groupes par saison */
.mhb-timeline--palmares .mhb-timeline__year {
    color: var(--mhb-trophy-gold, #BB9860);
}

.mhb-timeline--palmares .mhb-timeline__marker {
    background: var(--mhb-trophy-gold, #BB9860);
    box-shadow: 0 0 0 3px var(--mhb-trophy-gold, #BB9860);
}

/* Pas de bordure sur les cartes */

/* Dernier element : pas de marge basse */
.mhb-timeline__event:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .mhb-timeline::before {
        left: 20px;
    }

    .mhb-timeline__event,
    .mhb-timeline__event:nth-child(odd) {
        flex-direction: row !important;
        text-align: left !important;
        padding-left: 50px;
    }

    .mhb-timeline__content {
        flex: 1;
        max-width: 100%;
    }

    .mhb-timeline__marker {
        left: 20px;
        top: 20px;
    }



    .mhb-timeline__year {
        font-size: 1.6rem;
    }

    .mhb-timeline__title {
        font-size: 1rem;
    }
}
