/* ============================================================
   FGMC – Formulaire public d'adhésion v2.0.0
   ============================================================ */

.amm-public-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ── Message de succès ── */
.amm-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 20px 24px;
    color: #14532d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ── Formulaire global ── */
.amm-registration-form { display: flex; flex-direction: column; gap: 24px; }

/* ── Fieldsets (type adhésion, personne) ── */
.amm-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    background: #f8fafc;
}
.amm-fieldset legend {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    padding: 0 6px;
}

/* ── Radios ── */
.amm-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.4;
}
.amm-radio input[type="radio"] { margin-top: 3px; flex-shrink: 0; accent-color: #1d4ed8; }
.amm-radio strong { display: block; }

/* ── Labels et champs ── */
.amm-registration-form label,
.amm-registration-form p > label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 5px;
}
.amm-optional { font-weight: 400; color: #64748b; font-size: 13px; }

.amm-registration-form input[type="text"],
.amm-registration-form input[type="email"],
.amm-registration-form input[type="tel"],
.amm-registration-form input[type="url"],
.amm-registration-form input[type="number"],
.amm-registration-form select,
.amm-registration-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    background: #fff;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.amm-registration-form input:focus,
.amm-registration-form select:focus,
.amm-registration-form textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.amm-registration-form textarea { min-height: 70px; resize: vertical; }
.amm-registration-form p { margin: 0; }

/* ── Ligne double ── */
.amm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Section membres actifs (affichage conditionnel) ── */
.amm-active-only {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}
.amm-active-only.amm-hidden { display: none; }

/* ── Consentements ── */
.amm-fieldset-consent { background: #fff; }
.amm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
    color: #1e293b;
}
.amm-checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #1d4ed8; }
.amm-checkbox-label a { color: #1d4ed8; }
.amm-required-check { font-weight: 600; }

/* ── Note obligatoire ── */
.amm-required-note { font-size: 13px; color: #64748b; margin-top: -8px; }

/* ── Bouton envoi ── */
.amm-button {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: #1d4ed8;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background .15s, transform .1s;
}
.amm-button:hover { background: #1e40af; }
.amm-button:active { transform: scale(.99); }

/* ── Honeypot ── */
.amm-hp { display: none !important; }

/* ── Responsive ── */
@media (max-width: 540px) {
    .amm-field-row { grid-template-columns: 1fr; gap: 20px; }
}
