/* --- Boutons du switch (inchangé: centrés) --- */
.nivo-signup-switch {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    gap: 1em;
    text-align: center;
}

.nivo-signup-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 45%;
}

.nivo-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.nivo-btn:hover {
    background-color: #005f8d;
}

.nivo-msg {
    margin-top: 0.5em;
    font-size: 14px;
    color: #555;
}

/* --- FORMULAIRES EN COLONNE, PLEINE LARGEUR --- */
.nivo-form {
    width: 100%;
}

.nivo-form .nivo-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    /* encadré */
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

/* En-tête de chaque groupe (participant) */
.nivo-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.nivo-row-title {
    font-weight: 600;
    color: #111827;
}

/* Labels et inputs full width */
.nivo-form label {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nivo-form label>span {
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.nivo-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background: #fff;
}

.nivo-error {
    border: 2px solid #e53935 !important;
    background-color: #ffecec;
}

/* Bouton supprimer dans l'entête de la carte */
.nivo-remove {
    border: 1px solid #ef4444;
    background: #fff;
    color: #ef4444;
    border-radius: 6px;
    height: 36px;
    padding: 0 10px;
    cursor: pointer;
}

.nivo-remove:hover {
    background: #fff5f5;
}

/* Zone actions sous le formulaire */
.nivo-actions {
    display: flex;
    justify-content: space-between;
    /* Add à gauche, Validate à droite */
    gap: 12px;
    margin-top: 12px;
}

.nivo-validate,
.nivo-add {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.nivo-validate:hover,
.nivo-add:hover {
    background: #f9fafb;
}

.nivo-signup-empty-note {
    text-align: center;
    color: #777;
    font-style: italic;
    margin-top: 1.5em;
}

/* Responsive */
@media (max-width: 640px) {
    .nivo-signup-option {
        max-width: 100%;
    }
}