/* Styles pour la barre de progression */
.form-progress {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 0;
    list-style: none;
}

.step {
    width: 33.33%;
    text-align: center;
    position: relative;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ligne de connexion entre les étapes */
.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 1;
    transform: translateX(0);
}

/* Cercle numéroté */
.step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    color: #999;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

/* Label de l'étape */
.step-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

/* État actif */
.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* État complété */
.step.completed .step-number {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

.step.completed:after {
    background: #2ecc71;
}

.step.completed .step-label {
    color: #2ecc71;
}

/* Navigation entre les étapes */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.prev-step,
.next-step {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600 !important;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prev-step {
    background-color: #6c757d;
    color: white;
    font-weight: 600;
}

.next-step {
    background-color: var(--primary-color);
    color: white;
}

.prev-step:hover {
    background-color: #aaa;
}

.next-step:hover {
    background-color: #2980b9;
}

/* Animation des transitions */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
}

/* Styles pour les champs en erreur */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.radio-group.error {
    padding: 10px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    background-color: rgba(231, 76, 60, 0.05);
}

/* Message d'erreur */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error .error-message {
    display: block;
}

.form-introduction {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.form-introduction h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.form-introduction p {
    color: #576574;
    line-height: 1.6;
    margin: 0;
}

.form-conclusion {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.form-conclusion p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-conclusion ul {
    margin: 0;
    padding-left: 20px;
}

.form-conclusion li {
    color: #576574;
    line-height: 1.6;
    margin-bottom: 8px;
}

.form-conclusion li:last-child {
    margin-bottom: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .form-progress {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
    }

    .step {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
        flex-direction: row;
        align-items: center;
    }

    .step:after {
        display: none;
    }

    .step-number {
        margin: 0 15px 0 0;
    }

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