/* ========================================
   BARRE DE PROGRESSION SIDEBAR - VERSION AMÉLIORÉE 2025
   Design moderne avec glassmorphism et animations fluides
   ======================================== */

/* Conteneur principal de la barre de progression - Version compacte */
.sidebar-progress-container {
    padding: 1rem 1rem;
    margin: 0.5rem 0.75rem 1rem 0.75rem;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(36, 36, 36, 0.9) 50%,
        rgba(30, 30, 30, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.4), 
        0 1px 3px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(12px);
}

/* Effet de brillance subtile en arrière-plan */
.sidebar-progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(16, 185, 129, 0.08), 
        rgba(255, 255, 255, 0.03),
        rgba(16, 185, 129, 0.08), 
        transparent);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Effet de hover amélioré */
.sidebar-progress-container:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5), 
        0 4px 16px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.5);
    backdrop-filter: blur(16px);
}

/* Effet d'activation */
.sidebar-progress-container:active {
    transform: translateY(-1px) scale(0.99);
    transition: all 0.1s ease;
}

/* En-tête de la progression - Version compacte sans icône */
.sidebar-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.sidebar-progress-title-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.sidebar-progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

/* Animation pulse-glow supprimée pour éviter le clignotement du pourcentage */

/* Barre de progression compacte */
.sidebar-progress-bar-wrapper {
    position: relative;
    height: 10px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-progress-bar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 24px 24px 0 0;
}

.sidebar-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        #10b981 0%, 
        #059669 30%,
        #34d399 60%, 
        #4ade80 100%);
    border-radius: 24px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(16, 185, 129, 0.6),
        0 2px 8px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Effet de brillance animé sur la barre */
.sidebar-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%);
    animation: progress-shine 3s infinite;
    border-radius: 24px;
}

@keyframes progress-shine {
    0% { 
        left: -100%; 
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        left: 100%; 
        opacity: 0;
    }
}

/* Effet pulsant pour la barre de progression */
.sidebar-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    animation: progress-pulse 4s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Statistiques de progression compactes */
.sidebar-progress-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-progress-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #ffffff !important;
    font-weight: 600;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.sidebar-progress-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-progress-stat i {
    font-size: 1rem;
    color: #10b981;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.sidebar-progress-stat-value {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    /* Removed gradient text effect for solid white color */
}

/* Badge de niveau supprimé pour éviter la surcharge */

/* Animation d'entrée discrète pour version compacte */
.sidebar-progress-container {
    animation: slideInProgressCompact 0.5s ease-out;
}

@keyframes slideInProgressCompact {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation de celebration supprimée */

/* Emoji de celebration supprimé */

/* État de complétion à 100% - Pas de changement visuel */

/* Styles de completion supprimés - Aucun changement visuel à 100% */

/* Statistiques de completion supprimées - Pas de changement à 100% */

/* Styles du badge de completion supprimés */

/* Responsive - Version compacte */
@media (max-width: 768px) {
    .sidebar-progress-container {
        padding: 0.75rem 0.875rem;
        margin: 0.5rem 0.5rem 0.75rem 0.5rem;
    }
    
    .sidebar-progress-percentage {
        font-size: 1.25rem;
    }
    
    .sidebar-progress-title-text {
        font-size: 0.6875rem;
    }
    
    .sidebar-progress-stats {
        padding: 0.375rem 0.5rem;
        gap: 0.75rem;
    }
    
    .sidebar-progress-stat {
        font-size: 0.6875rem;
    }
    
    .sidebar-progress-stat-value {
        font-size: 0.75rem;
    }
}

/* Animation au chargement */
.sidebar-progress-bar[data-progress] {
    width: 0%;
}

.sidebar-progress-bar.animated {
    animation: fillProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillProgress {
    to {
        width: var(--progress-width);
    }
}

/* Mode compact - Encore plus réduit */
.sidebar.compact .sidebar-progress-container {
    padding: 0.625rem 0.75rem;
    margin: 0.375rem 0.5rem 0.75rem 0.5rem;
}

.sidebar.compact .sidebar-progress-header {
    margin-bottom: 0.5rem;
}

.sidebar.compact .sidebar-progress-title-text {
    font-size: 0.6875rem;
}

.sidebar.compact .sidebar-progress-percentage {
    font-size: 1.25rem;
}

.sidebar.compact .sidebar-progress-bar-wrapper {
    height: 8px;
    margin-bottom: 0.5rem;
}

.sidebar.compact .sidebar-progress-stats {
    padding: 0.375rem 0.5rem;
}

.sidebar.compact .sidebar-progress-stat {
    font-size: 0.6875rem;
    gap: 0.375rem;
}

/* Effet de hover sur les stats amélioré */
.sidebar-progress-stat:hover {
    transform: translateY(-2px) scale(1.02);
    color: #ffffff;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.sidebar-progress-stat:hover::before {
    opacity: 1;
}

.sidebar-progress-stat:hover i {
    color: #34d399;
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.6);
}

.sidebar-progress-stat:hover .sidebar-progress-stat-value {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
