#timeline {
    display: flex !important;
    flex-direction: row !important;
    background-color: #031625;
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    max-width: 100vw !important;
}

#timeline .tl-item {
    flex: 1 1 0;
    min-width: 250px;
    min-height: 600px;
    height: 100vh;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: flex 0.5s ease;
}

#timeline:hover .tl-item {
    flex: 0.233 1 0;
}

.tl-item:before, .tl-item:after {
    transform: translate3d(0, 0, 0);
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.tl-item:after {
    background: rgba(3, 22, 37, 0.85);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.tl-item:before {
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* État hover de l'item spécifique */
.tl-item:hover {
    flex: 1.8 1 0 !important; /* Équivalent à 53% mais adapté au flexbox */
}

.tl-item:hover:after {
    opacity: 0;
}

.tl-item:hover:before {
    opacity: 1;
    transform: translate3d(0, 0, 0) translateY(0);
    transition: opacity 1s ease, transform 1s ease 0.25s;
}

.tl-item:hover .tl-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.75s ease 0.5s;
}

.tl-item:hover .tl-bg {
    filter: grayscale(0);
}

.tl-content {
    transform: translate3d(0, 0, 0) translateY(25px);
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 1.618em;
    top: 55%;
    opacity: 0;
}

.tl-content h1 {
    font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    color: #1779cf;
    font-size: 1.44rem;
    font-weight: normal;
}

.tl-content p{
    color: white !important;
}

.tl-content h2{
    color: white !important;
}

.tl-year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
}

.tl-year p {
    font-family: 'Pathway Gothic One', Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 1.728rem;
    line-height: 0;
    white-space: nowrap;
}

.tl-bg {
    transform: translate3d(0, 0, 0);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    transition: filter 0.5s ease;
    filter: grayscale(100%);
}

.imgJob{
    border-radius: 3% !important;
    width: 50%;
    margin: auto;
    margin-top: auto;
    margin-top: -72px;
    position: relative;
    padding-bottom: 50px;
    margin-top: -105px;
}

@media only screen and (max-width: 968px) {
    #timeline {
        flex-direction: column;
    }
    
    #timeline .tl-item {
        flex: none !important;
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
    }

    #timeline .tl-item:hover {
        flex: none !important;
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .tl-item, #test, #test .upb-background-text-wrapper {
        height: 2400px !important;
        min-height: 2400px !important;
    }
}