/* ===== INDICATEURS DE NAVIGATION - THÈME TV RÉTRO ===== */

/* Indicateur de navigation */
.navigation-indicator {
    position: fixed;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.navigation-indicator.horizontal {
    top: 50%;
    right: 30px;
    transform: translateY(-50%) scale(0.8);
}

.navigation-indicator.vertical {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
}

.navigation-indicator.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.navigation-indicator.vertical.show {
    transform: translateX(-50%) scale(1);
}

.indicator-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.indicator-icon {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    animation: pulse 0.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.indicator-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ===== ANIMATIONS AU SURVOL DES STATS ===== */
.stat-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-item:hover .stat-value {
    font-size: 1.8rem;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.stat-item:hover .stat-label {
    font-weight: 700;
    color: #fff;
}

.stat-item:hover .stat-icon {
    transform: rotate(360deg) scale(1.2);
    color: #00d4ff;
}

.stat-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ff6b8b;
}

/* ===== ANIMATIONS DES LÉGENDES ===== */
.legend-item {
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
}

.legend-item:hover {
    transform: scale(1.1) !important;
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.legend-color {
    transition: all 0.3s ease;
}

.legend-item:hover .legend-color {
    transform: scale(1.3);
    box-shadow: 0 0 15px currentColor;
}

/* ===== ANIMATIONS DES FOOTERS DE GRAPHIQUES ===== */
.chart-footer {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px;
    background: rgba(20, 20, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-footer:hover {
    transform: scale(1.02) !important;
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.2);
}

.chart-footer:hover .summary-item {
    font-size: 1.05em;
    font-weight: 600;
    color: #00d4ff;
}

.summary-item {
    transition: all 0.3s ease;
    color: #b0b0b0;
}

/* ===== AIDE NAVIGATION CLAVIER ===== */
.keyboard-help {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 50, 0.95) 0%, rgba(30, 30, 60, 0.95) 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.keyboard-help:hover {
    opacity: 1;
    transform: scale(1.02);
    border-color: rgba(0, 212, 255, 0.3);
}

.keyboard-help-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.keyboard-help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    font-size: 0.8rem;
    color: #c0c0c0;
}

.keyboard-key {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 200, 0.2) 100%);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    color: #00d4ff;
}

/* ===== ANIMATIONS DES GRAPHIQUES ===== */
.chart-container {
    animation: chartFadeIn 0.6s ease-out;
}

@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de transition entre graphiques */
.chart-view.active {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== EFFET DE GLOW SUR LES ÉLÉMENTS INTERACTIFS ===== */
.mode-btn:hover,
.chart-tab:hover,
.btn-chart-control:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.5) !important;
}

/* ===== ANIMATIONS DES VALEURS NUMÉRIQUES ===== */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: countUp 0.5s ease-out;
    color: #f0f0f0;
}

/* Effet de mise à jour des valeurs */
.metric-value.updating {
    animation: valuePulse 0.6s ease-out !important;
}

@keyframes valuePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
        color: #00d4ff;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== BOUTONS DE NAVIGATION ===== */
.nav-arrow {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 2px solid rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    transition: all 0.3s ease !important;
}

.nav-arrow:hover {
    background: rgba(0, 212, 255, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

/* ===== INDICATEURS DE TENDANCE ===== */
.trend-up {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1)) !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
}

.trend-down {
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.2), rgba(255, 107, 139, 0.1)) !important;
    color: #ff6b8b !important;
    border: 1px solid rgba(255, 107, 139, 0.3) !important;
}

/* ===== SCROLLBARS PERSONNALISÉES ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #00b8e6);
}

/* ===== SÉLECTION DE TEXTE ===== */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .keyboard-help {
        display: none;
    }
    
    .navigation-indicator.horizontal {
        right: 10px;
        padding: 10px 20px;
    }
    
    .indicator-text {
        font-size: 0.9rem;
    }
}

