/* Marseille Tracker - Styles de la timeline */

/* Barre de progression temporelle */
.timeline-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 620px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 20px 30px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(59, 130, 246, 0.1);
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 769px) {
    .timeline-container {
        right: calc(var(--info-panel-width, 600px) + 20px);
    }
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.current-date {
    font-size: 24px;
    font-weight: 300;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    flex: 1;
    min-width: 200px;
}

.timeline-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.timeline-controls button {
    background: radial-gradient(circle, rgba(51, 65, 85, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.timeline-controls button:hover:not(:disabled) {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.timeline-controls button:active:not(:disabled) {
    transform: translateY(-1px);
}

.timeline-controls button:disabled,
.timeline-controls button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(51, 65, 85, 0.4);
    box-shadow: none;
    transform: none;
}

/* Style principal pour le bouton "Projet suivant" */
.next-project-button {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.9) 0%, rgba(21, 128, 61, 1) 100%) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
    font-size: 18px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
}

.next-project-button:hover:not(:disabled) {
    background: radial-gradient(circle, rgba(34, 197, 94, 1) 0%, rgba(21, 128, 61, 1) 100%) !important;
    border-color: rgba(34, 197, 94, 1) !important;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
    transform: translateY(-3px);
}

/* Effet halo dynamique pour le bouton principal */
.pulsing-glow {
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}

.pulsing-glow::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, rgba(34, 197, 94, 0.1) 50%, transparent 70%);
    border-radius: 16px;
    z-index: -1;
    animation: haloAnimation 2s ease-in-out infinite;
}

.pulsing-glow::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 30%, transparent 50%);
    border-radius: 20px;
    z-index: -2;
    animation: haloAnimation 2s ease-in-out infinite 0.5s;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(34, 197, 94, 0.3),
            0 0 20px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 30px rgba(34, 197, 94, 0.5),
            0 0 30px rgba(34, 197, 94, 0.4);
    }
}

@keyframes haloAnimation {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.next-project-button.disabled {
    background: radial-gradient(circle, rgba(100, 116, 139, 0.6) 0%, rgba(71, 85, 105, 0.7) 100%) !important;
    border-color: rgba(100, 116, 139, 0.4) !important;
    animation: none !important;
    box-shadow: none !important;
}

.next-project-button.disabled::before,
.next-project-button.disabled::after {
    display: none;
}

/* Indicateur de progression */
.project-progress {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

/* Style spécial pour le bouton de démarrage */
.timeline-controls button.start-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    color: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(59, 130, 246, 0.2);
    animation: startButtonGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.timeline-controls button.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.timeline-controls button.start-button:hover::before {
    width: 200px;
    height: 200px;
}

.timeline-controls button.start-button:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    border-color: #60a5fa;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 36px rgba(59, 130, 246, 0.4), 0 5px 18px rgba(59, 130, 246, 0.25);
    animation: startButtonGlowHover 2.5s ease-in-out infinite;
}

@keyframes startButtonGlow {
    0% { 
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(59, 130, 246, 0.2), 0 0 0 0 rgba(59, 130, 246, 0.6);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6), 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 0 20px rgba(59, 130, 246, 0);
    }
    100% { 
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(59, 130, 246, 0.2), 0 0 0 0 rgba(59, 130, 246, 0.6);
    }
}

@keyframes startButtonGlowHover {
    0% { 
        box-shadow: 0 10px 36px rgba(59, 130, 246, 0.4), 0 5px 18px rgba(59, 130, 246, 0.25), 0 0 0 0 rgba(96, 165, 250, 0.5);
    }
    50% { 
        box-shadow: 0 10px 36px rgba(59, 130, 246, 0.5), 0 5px 18px rgba(59, 130, 246, 0.35), 0 0 0 15px rgba(96, 165, 250, 0);
    }
    100% { 
        box-shadow: 0 10px 36px rgba(59, 130, 246, 0.4), 0 5px 18px rgba(59, 130, 246, 0.25), 0 0 0 0 rgba(96, 165, 250, 0.5);
    }
}

/* Slider de la timeline */
.timeline-slider-container {
    position: relative;
    margin-bottom: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Optimisations mobile pour le slider */
@media (max-width: 768px) {
    .timeline-slider-container {
        margin-bottom: 12px; /* Réduit de 20px */
        height: 16px; /* Réduit de 20px */
    }
}

@media (max-width: 480px) {
    .timeline-slider-container {
        margin-bottom: 8px; /* Réduit encore plus */
        height: 14px; /* Réduit encore plus */
    }
}

/* Barre de fond grise pour compatibilité cross-browser */
.timeline-background-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(203, 213, 225, 0.7);
    border-radius: 3px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    pointer-events: none;
    z-index: 0;
}

/* Points des projets sur la timeline */
.timeline-project-points {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 6px;
    pointer-events: none;
    z-index: 3;
}

/* Marqueur de la date du jour */
.current-date-marker {
    position: absolute;
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, 
        rgba(148, 163, 184, 0.9) 0%, 
        rgba(203, 213, 225, 1) 50%, 
        rgba(148, 163, 184, 0.9) 100%);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    border-radius: 0.5px;
    box-shadow: 
        0 0 8px rgba(203, 213, 225, 0.4),
        0 0 3px rgba(148, 163, 184, 0.6),
        0 0 1px rgba(241, 245, 249, 0.8);
}

.current-date-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, 
        rgba(241, 245, 249, 0.9) 0%, 
        rgba(203, 213, 225, 0.8) 50%, 
        rgba(148, 163, 184, 0.6) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 4px rgba(203, 213, 225, 0.5),
        0 0 8px rgba(148, 163, 184, 0.3);
}



.timeline-project-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(71, 85, 105, 0.9); /* Gris plus foncé pour meilleur contraste */
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    box-shadow: 0 0 0 1px rgba(71, 85, 105, 0.5);
}

.timeline-project-point.multiple-projects {
    background: rgba(51, 65, 85, 1); /* Gris encore plus foncé pour les multiples */
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.7), 0 0 4px rgba(51, 65, 85, 0.4);
}

.timeline-project-point.active {
    background: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4), 0 0 6px rgba(59, 130, 246, 0.3);
    width: 6px;
    height: 6px;
}

.timeline-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.timeline-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: transparent; /* Transparent car on utilise la barre de fond séparée */
    border: none;
}

.timeline-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent; /* Transparent car on utilise la barre de fond séparée */
    border: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 3px solid rgba(241, 245, 249, 0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.timeline-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 3px solid rgba(241, 245, 249, 0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.timeline-slider:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

.timeline-slider:hover::-moz-range-thumb {
    transform: scale(1.1);
}

.timeline-track-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.timeline-years {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Optimisations mobile pour les années */
@media (max-width: 768px) {
    .timeline-years {
        margin-top: 6px; /* Réduit de 10px */
        font-size: 10px; /* Réduit de 12px */
    }
}

@media (max-width: 480px) {
    .timeline-years {
        margin-top: 4px; /* Réduit encore plus */
        font-size: 9px; /* Réduit encore plus */
    }
}

/* Responsive pour mobile et tablette */
@media (max-width: 768px) {
    .timeline-container {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 10px 15px; /* Réduit de 15px 20px */
    }
    
    .timeline-header {
        flex-direction: row; /* Changé de column à row pour gagner de l'espace vertical */
        align-items: center;
        justify-content: space-between;
        gap: 10px; /* Réduit de 12px */
        margin-bottom: 12px; /* Réduit de 18px */
    }
    
    .current-date {
        font-size: 16px; /* Réduit de 20px */
        text-align: left; /* Changé de center */
        min-width: auto;
        flex: 1;
    }
    
    .timeline-controls {
        justify-content: flex-end;
        gap: 8px; /* Réduit de 12px */
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    
    .timeline-controls button {
        font-size: 13px; /* Réduit de 15px */
        padding: 8px 15px; /* Réduit de 10px 20px */
    }
    
    .next-project-button {
        font-size: 14px !important; /* Réduit de 16px */
        padding: 8px 16px !important; /* Réduit de 12px 24px */
        min-width: 90px; /* Ajouté pour limiter la largeur */
    }
    
    .project-progress {
        font-size: 11px; /* Réduit de 12px */
        padding: 4px 8px; /* Réduit de 5px 10px */
        min-width: 70px; /* Réduit de 90px */
    }
    
    /* Réduire l'effet halo sur mobile pour économiser la batterie et l'espace */
    .pulsing-glow::before,
    .pulsing-glow::after {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
    }
    
    .pulsing-glow::after {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding: 8px 12px; /* Réduit de 12px 15px */
    }
    
    .timeline-header {
        gap: 8px; /* Réduit de 10px */
        margin-bottom: 10px; /* Réduit de 15px */
    }
    
    .current-date {
        font-size: 15px; /* Réduit de 18px */
    }
    
    .timeline-controls {
        flex-direction: row; /* Changé de column à row pour économiser l'espace vertical */
        gap: 6px; /* Réduit de 10px */
        width: auto;
        flex-wrap: wrap;
    }
    
    .timeline-controls button {
        width: auto; /* Changé de 100% */
        font-size: 12px; /* Réduit de 14px */
        padding: 6px 12px; /* Réduit de 12px 20px */
    }
    
    .next-project-button {
        font-size: 13px !important; /* Réduit de 16px */
        padding: 6px 14px !important; /* Réduit de 14px 24px */
        width: auto !important; /* Changé de 100% */
        min-width: 80px; /* Réduit de largeur auto */
    }
    
    .project-progress {
        font-size: 10px; /* Réduit de 11px */
        padding: 3px 6px; /* Réduit de 4px 8px */
        min-width: 60px; /* Réduit de 80px */
        align-self: center;
        width: auto;
    }
}

 