/* Deuxième section - avec fond qui recouvre l'image */
.section-2 {
    width: 100%;
    min-height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
} 

.full-width-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 40px;
    margin-bottom: 40px; 
}
/* Timeline avec Owl Carousel */
.timeline-section {
    width: 100%;
    max-width: 92vw;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.timeline-title {
    text-align: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Items du timeline */
.timeline-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.timeline-item:hover {
    transform: translateY(-10px) scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.timeline-item:active {
    transform: translateY(-5px) scale(1.01);
}

.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.timeline-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-image {
    transform: scale(1.05);
}

.timeline-year {
    text-align: center;
    padding: 20px 20px 5px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-name {
    text-align: center;
    padding: 20px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation du timeline */
.timeline-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.timeline-prev,
.timeline-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.timeline-prev:hover,
.timeline-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-prev:active,
.timeline-next:active {
    transform: scale(0.95);
}

.timeline-prev.disabled,
.timeline-next.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Personnalisation des dots Owl */
.owl-theme .owl-dots {
    margin-top: 30px;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #fff;
    transform: scale(1.2);
}

.owl-theme .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.8);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
}
.back-to-top img {
    width: 90%;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {

    .section-2 {
        /*! min-height: auto; */
        padding: 40px 10px;
    }
    .section-3 {
    width: 100%;
    min-height: 100vh;
}
    
    .timeline-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .timeline-image {
        height: 200px;
    }
    
    .timeline-year {
        font-size: 22px;
        padding: 15px 15px 5px;
    }
    
    .timeline-name {
        font-size: 12px;
        padding: 5px 15px 15px;
    }
    
    .timeline-prev,
    .timeline-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .timeline-title {
    font-size: 18px;
}
    .timeline-section {
        padding: 20px 10px;
    }
    
    .timeline-image {
        height: 180px;
    }
    
    .timeline-year {
        font-size: 20px;
    }
}