/* Container du formulaire */
#im-form {
    max-width: 700px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Titres des étapes */
#im-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Labels */
#im-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.red{
    color:red;
    font-weight: bold;
}

/* Champs input, select, textarea */
#im-form input[type="text"],
#im-form input[type="email"],
#im-form input[type="password"],
#im-form input[type="number"],
#im-form input[type="date"],
#im-form input[type="tel"],
#im-form select,
#im-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.5rem;
    box-sizing: border-box;
}

#im-form textarea {
    min-height: 80px;
}

/* Boutons */
#im-form button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-right: 10px;
}

#im-form button:hover {
    background-color: #005177;
}

/* Boutons secondaires (Retour) */
#im-form button.prev {
    background-color: #ccc;
    color: #333;
}

#im-form button.prev:hover {
    background-color: #999;
}

/* Étapes (sans JavaScript, toutes les étapes restent visibles) */
.fw16m-js .step {
    display: none;
}

.fw16m-js .step.active {
    display: block;
}

/* Barre de progression (optionnelle) */
#im-form .progress-bar {
    display: flex;
    margin-bottom: 20px;
    counter-reset: step;
}

#im-form .progress-bar div {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

#im-form .progress-bar div::before {
    counter-increment: step;
    content: counter(step);
    width: 25px;
    height: 25px;
    line-height: 25px;
    border: 2px solid #ccc;
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: #fff;
}

#im-form .progress-bar div.active {
    color: #0073aa;
}

#im-form .progress-bar div.active::before {
    border-color: #0073aa;
    background-color: #0073aa;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    #im-form {
        padding: 20px;
        margin: 20px;
    }
}


/* --- Module FW16 Membres --- */
#im-form .fw16m-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#im-form .fw16m-field {
    margin-bottom: 0;
}

#im-form .fw16m-help {
    display: block;
    margin: -14px 0 18px;
    color: #777;
}

#im-form .fw16m-intro {
    margin-bottom: 20px;
    color: #555;
}

#im-form .fw16m-errors,
#im-form .fw16m-success {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

#im-form .fw16m-errors {
    background: #fdecea;
    border-left: 4px solid #c62828;
    color: #7f1d1d;
}

#im-form .fw16m-errors p {
    margin: 0 0 4px;
}

#im-form .fw16m-success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

#im-form .fw16m-invalid input,
#im-form .fw16m-invalid select,
#im-form .fw16m-invalid textarea {
    border-color: #c62828;
    margin-bottom: 4px;
}

#im-form .fw16m-error {
    display: block;
    margin-bottom: 16px;
    color: #c62828;
    font-size: 0.9rem;
}

#im-form .fw16m-recap {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

#im-form .fw16m-recap div {
    margin-bottom: 4px;
}

#im-form .fw16m-legend {
    margin-top: 1rem;
}
