/* Timeline Horizontale - Option 2 (Navigation par Flèches) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.arrow-timeline-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4169E1 0%, #2E4F9F 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-navigation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.nav-arrow svg {
    width: 28px;
    height: 28px;
}

.timeline-container-arrow {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
}

.timeline-container-arrow:active {
    cursor: grabbing;
}

.timeline-track-arrow {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 50px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.timeline-item-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 400px;
    padding: 0 40px;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.timeline-content-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.6s ease-out forwards;
}

.timeline-item-arrow:nth-child(1) .timeline-content-arrow { animation-delay: 0.1s; }
.timeline-item-arrow:nth-child(2) .timeline-content-arrow { animation-delay: 0.2s; }
.timeline-item-arrow:nth-child(3) .timeline-content-arrow { animation-delay: 0.3s; }
.timeline-item-arrow:nth-child(4) .timeline-content-arrow { animation-delay: 0.4s; }
.timeline-item-arrow:nth-child(5) .timeline-content-arrow { animation-delay: 0.5s; }
.timeline-item-arrow:nth-child(6) .timeline-content-arrow { animation-delay: 0.6s; }
.timeline-item-arrow:nth-child(7) .timeline-content-arrow { animation-delay: 0.7s; }
.timeline-item-arrow:nth-child(8) .timeline-content-arrow { animation-delay: 0.8s; }

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-card-arrow {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 320px;
}

.timeline-card-arrow:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.timeline-image-arrow {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.timeline-image-arrow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-card-arrow:hover .timeline-image-arrow img {
    transform: scale(1.1);
}

.timeline-info-arrow {
    padding: 20px;
}

.timeline-title-arrow {
    font-size: 22px;
    font-weight: 700;
    color: #2E4F9F;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.timeline-description-arrow {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.timeline-connector-arrow {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.timeline-dot-arrow {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1);
    }
}

.timeline-line-arrow {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, rgba(76, 175, 80, 0.3) 100%);
    position: relative;
}

.timeline-year-arrow {
    background: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.timeline-year-arrow span {
    font-size: 24px;
    font-weight: 700;
    color: #4169E1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Barre de progression */
.timeline-progress {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0%;
}

.progress-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.progress-dot.active {
    background: white;
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.drag-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    animation: fadeInOut 3s ease-in-out infinite;
    pointer-events: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-navigation {
        padding: 0 20px;
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
    }
    
    .nav-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .timeline-item-arrow {
        min-width: 300px;
        padding: 0 20px;
    }
    
    .timeline-card-arrow {
        width: 260px;
    }
    
    .timeline-image-arrow {
        height: 160px;
    }
    
    .timeline-title-arrow {
        font-size: 18px;
    }
    
    .timeline-year-arrow span {
        font-size: 20px;
    }
    
    .timeline-progress {
        width: 90%;
    }
}

/* Animations de transition fluides */
.timeline-track-arrow.transitioning {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Effet de focus pour l'accessibilité */
.nav-arrow:focus,
.progress-dot:focus {
    outline: 2px solid white;
    outline-offset: 4px;
}
