.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
    transform: translateY(-50%);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    max-width: 80px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.step.active .step-number {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    transform: scale(1.1);
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.step.complete .step-number {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.step.complete .step-label {
    color: #198754;
}

.step.complete::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Animation pour les transitions d'étapes */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.form-step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Style pour la navigation du formulaire */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.form-navigation button {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-step {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.prev-step:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.next-step {
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
}

.next-step:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.submit-form {
    background-color: #198754;
    border: 1px solid #198754;
    color: #fff;
}

.submit-form:hover {
    background-color: #157347;
    border-color: #146c43;
}

.submit-form:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.spinner-border {
    margin-right: 0.5rem;
}

/* Responsive Design pour la navigation */
@media (max-width: 767.98px) {
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation button {
        width: 100%;
        min-width: auto;
    }
}

/* Animation pour les boutons */
.form-navigation button {
    position: relative;
    overflow: hidden;
}

.form-navigation button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out;
}

.form-navigation button:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* Style pour les sections du formulaire */
.form-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.form-section h3 {
    color: #212529;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

/* Style pour les champs de formulaire */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .progress-steps {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-navigation {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 1.5rem;
    }

    .progress-steps::before {
        top: 0;
        left: 15px;
        width: 2px;
        height: 100%;
        transform: none;
    }

    .step {
        width: 100%;
        margin-bottom: 1.5rem;
        flex-direction: row;
        align-items: center;
    }

    .step:last-child {
        margin-bottom: 0;
    }

    .step-number {
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .step-label {
        margin-top: 0;
        text-align: left;
    }

    .form-section {
        padding: 1rem;
    }

    .form-floating > label {
        font-size: 0.9rem;
    }

    .form-navigation {
        flex-direction: column;
    }

    .prev-step,
    .next-step,
    .submit-form {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .form-section {
        padding: 0.75rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.75rem;
        max-width: 50px;
    }
}

@media (max-width: 767.98px) {
    .progress-steps {
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }
}

@media (max-width: 575.98px) {
    .progress-steps {
        margin-bottom: 1rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .step-label {
        font-size: 0.65rem;
        max-width: 50px;
    }
}
