/* Barre de progression améliorée */
.order-progress-section {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    font-size:18px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.progress-wrapper {
    position: relative;
}

.progress-line-container {
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    z-index: 1;
}

.progress-line-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    border-radius: 2px;
}

.progress-line-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #28a745, #5cb85c);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.progress-steps {
    position: relative;
    z-index: 2;
    margin: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.progress-step.completed,
.progress-step.active {
    opacity: 1;
}

.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid #e0e0e0;
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.step-icon {
    font-size: 2rem;
    color: #999;
    transition: all 0.5s ease;
}

/* Étape active (en cours) */
.progress-step.active .step-icon-wrapper {
    border-color: #0d6efd;
    background: #e7f3ff;
    animation: pulse 2s infinite;
    transform: scale(1.05);
}

.progress-step.active .step-icon {
    color: #0d6efd;
}

/* Étape complétée */
.progress-step.completed .step-icon-wrapper {
    background: linear-gradient(135deg, #28a745, #5cb85c);
    border-color: #28a745;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.progress-step.completed .step-icon {
    color: #fff;
    animation: iconPop 0.6s ease;
}

/* Badge de vérification */
.check-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: #28a745;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-badge i {
    color: #fff;
    font-size: 0.75rem;
}

/* Texte des étapes */
.step-title {
    font-size: 18px; 
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.progress-step.completed .step-title {
    color: #28a745;
    font-weight: 700;
}

.progress-step.active .step-title {
    color: #0d6efd;
    font-weight: 700;
}

.step-date {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.progress-step.completed .step-date {
    color: #28a745;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(0.5) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Styles existants */
.alert-simple {
    border-left: 5px solid #0d6efd;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .order-progress-section {
        padding: 30px 15px;
    }

    .progress-line-container {
        display: none;
    }

    .progress-steps {
        margin: 0 -5px;
    }

    .progress-step {
        margin-bottom: 20px;
    }

    .step-icon-wrapper {
        width: 65px;
        height: 65px;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 0.85rem;
    }

    .check-badge {
        width: 24px;
        height: 24px;
    }
}


