/* Styles pour les indicateurs d'étapes */
.step-indicator-container {
    position: relative;
    padding: 2rem 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    min-width: 140px;
}


.step-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.step-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4f46e5;
    transition: all 0.3s ease;
    opacity: 1;
}

.step-check {
    position: absolute;
    color: white;
    font-size: 1.25rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.step-check.visible {
    opacity: 1;
    transform: scale(1);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 140px;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.step-connector {
    width: 6rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    margin: 0 1rem;
    align-self: flex-start;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.step-connector.completed::after {
    width: 100%;
}

/* État actif */
.step-indicator.active .step-circle {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.step-indicator.active .step-number {
    color: #4f46e5;
    font-weight: 800;
}

.step-indicator.active .step-label {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* État complété */
.step-indicator.completed .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.step-indicator.completed .step-number {
    opacity: 0;
    transform: scale(0.8);
}

.step-indicator.completed .step-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Animation de pulsation pour l'étape active */
.step-indicator.active .step-circle::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Styles responsifs */
@media (max-width: 768px) {
    .step-indicator-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-indicator {
        flex-direction: row;
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .step-circle {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .step-number {
        font-size: 1.25rem;
    }

    .step-check {
        font-size: 1rem;
    }

    .step-label {
        text-align: left;
        max-width: none;
        flex: 1;
        font-size: 0.9rem;
    }

    .step-connector {
        display: none;
    }

    /* Connecteur vertical pour mobile */
    .step-indicator:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 1.5rem;
        top: 4rem;
        width: 3px;
        height: 2rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .step-indicator.completed:not(:last-child)::after {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* États de hover pour une meilleure UX - seulement pour les étapes accessibles */
.step-indicator:not(.active):not(.completed):not(.locked):hover .step-circle {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    background: rgba(81, 255, 197, 0.65);
    cursor: pointer;
}

.step-indicator:not(.active):not(.completed):not(.locked):hover .step-label {
    color: white;
}

/* État verrouillé/grisé pour les étapes inaccessibles */
.step-indicator.locked {
    cursor: not-allowed;
    pointer-events: none;
}

.step-indicator.locked .step-circle {
    background: rgba(150, 150, 150, 0.4);
    border-color: rgba(150, 150, 150, 0.3);
    box-shadow: none;
}

.step-indicator.locked .step-number {
    color: rgba(100, 100, 100, 0.6);
}

.step-indicator.locked .step-label {
    color: rgba(255, 255, 255, 0.4);
    text-shadow: none;
}

/* Désactiver complètement le hover pour les étapes verrouillées */
.step-indicator.locked:hover .step-circle {
    transform: none;
    background: rgba(150, 150, 150, 0.4);
    box-shadow: none;
}

.step-indicator.locked:hover .step-label {
    color: rgba(255, 255, 255, 0.4);
}