/* Barre de progression des remises */
.rebate-progress-bar {
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 0 0 16px 0;
    position: sticky;
    top: 0;
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Masquer la box-shadow quand le contrôle commercial est actif */
.has-extended-control .rebate-progress-bar {
    border-bottom: none;
    box-shadow: none;
}

.progress-container {
    justify-content: flex-end !important;
}

.progress-content {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 24px;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.current-status {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    line-height: 1.2;
}

.current-status i {
    color: var(--primary-green, #059669);
    margin-right: 8px;
}

.next-target {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.3;
}

.next-target strong {
    color: var(--primary-green, #059669);
    font-weight: 600;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
}

.progress-track {
    position: relative;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    flex: 1;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.progress-marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.progress-percentage {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green, #059669);
    min-width: 35px;
}

/* États de la barre */
.rebate-progress-bar.success .progress-fill {
    background: linear-gradient(135deg, #059669, #10b981);
}

.rebate-progress-bar.success .current-status {
    color: var(--success-text, #059669);
}

.rebate-progress-bar.warning .progress-fill {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.rebate-progress-bar.info .progress-fill {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* Responsive */
@media (max-width: 768px) {
    .rebate-progress-bar {
        padding: 12px 0;
    }
    
    .progress-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .progress-info {
        text-align: center;
        gap: 4px;
    }
    
    .current-status {
        font-size: 14px;
        justify-content: center;
    }
    
    .next-target {
        font-size: 12px;
    }
    
    .progress-container {
        min-width: auto;
        max-width: none;
    }
    
    .progress-track {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .rebate-progress-bar {
        padding: 10px 0;
    }
    
    .progress-info {
        gap: 3px;
    }
    
    .current-status {
        font-size: 13px;
    }
    
    .next-target {
        font-size: 11px;
    }
    
    .progress-percentage {
        font-size: 12px;
    }
    
    .progress-container {
        gap: 8px;
    }
}

/* Animation d'entrée */
.rebate-progress-bar.animate-in {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Masquer sur certaines pages si nécessaire */
.hide-rebate-bar .rebate-progress-bar {
    display: none !important;
}
