/* ============================================================
   HECM Parakou — Normalisation de l'interface
   Objectif : des boutons homogènes et compacts sur toutes les
   pages (admin + professeur), sans toucher page par page.
   Chargé en dernier ; les !important priment sur les styles
   inline des pages (qui n'utilisent pas !important).
   ============================================================ */

/* --- Boutons « maison » verts / de retour --- */
.btn-hecm,
.btn-primary-hecm,
.btn-add,
.btn-register-submit,
.btn-login {
    padding: 8px 18px !important;
    font-size: .86rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    line-height: 1.35 !important;
    gap: 7px !important;
}

.btn-back {
    padding: 7px 16px !important;
    font-size: .84rem !important;
    border-radius: 8px !important;
    line-height: 1.35 !important;
    gap: 7px !important;
}

/* --- Boutons utilitaires (filtres, exports, impression) --- */
.btn-filter,
.btn-reset,
.btn-exp,
.btn-print {
    padding: 7px 14px !important;
    font-size: .82rem !important;
    border-radius: 8px !important;
}

/* --- Boutons Bootstrap : proportions natives, texte réduit --- */
.btn {
    font-size: .85rem;
    border-radius: 8px;
}
.btn-sm,
.btn-group-sm > .btn {
    font-size: .78rem;
    padding: 4px 10px;
}
.btn-lg {
    font-size: .92rem;
    padding: 9px 18px;
}

/* Icônes internes un cran plus discrètes */
.btn-hecm i,
.btn-primary-hecm i,
.btn-back i,
.btn-add i,
.btn i {
    font-size: .92em;
}

/* --- Zone d'actions d'un formulaire : alignement propre --- */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 26px;
}

@media (max-width: 560px) {
    .btn-hecm,
    .btn-primary-hecm,
    .btn-back,
    .btn-add,
    .btn-register-submit {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .form-actions > * { width: 100%; }
}
