:root {
  --accent: #1f4e79;
  --accent-dark: #163a5a;
  --accent-light: #dce6f1;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #d8dee5;
  --text: #24303d;
  --text-muted: #5c6b7a;
  --green: #1e7e34;
  --green-bg: #e6f4ea;
  --red: #b02a37;
  --red-bg: #fde8e8;
  --amber: #8a5a00;
  --amber-bg: #fff7e6;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 3px rgba(24, 39, 60, 0.06), 0 1px 2px rgba(24, 39, 60, 0.08);
  --shadow-md: 0 6px 20px rgba(24, 39, 60, 0.08);
  --gap: 16px;
  --control-gap: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--accent); }

/* --- Login page --- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-box h1 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.5em;
}
.subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.9em;
}
.login-box form {
  text-align: left;
  margin-top: 20px;
}
.login-box label {
  display: block;
  margin: 14px 0 4px;
  font-size: 0.9em;
  font-weight: 600;
}
.login-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1em;
}
.login-box input:focus, .login-box input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.hint {
  margin-top: 20px;
  font-size: 0.85em;
  color: var(--text-muted);
}
.hint code {
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Alerts --- */
.alert {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.9em;
  text-align: left;
}
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid #f5c2c7; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid #b6dfc0; }

/* Message flottant après une action (voir app.js) - reste visible même si
   la page ne revient pas en haut, disparaît tout seul après quelques
   secondes. */
.flash-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 560px;
  box-shadow: var(--shadow-md);
  padding-right: 40px !important;
  animation: flash-toast-entree 0.2s ease-out;
}
.flash-toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
}
.flash-toast-close:hover { opacity: 1; }
.flash-toast.flash-toast-sortie {
  animation: flash-toast-sortie 0.3s ease-in forwards;
}
@keyframes flash-toast-entree {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes flash-toast-sortie {
  from { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -12px); }
}

/* --- Layout --- */
.topbar {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  justify-content: center;
}
.topbar > .topbar-inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { font-weight: 700; font-size: 1.2em; color: #fff; text-decoration: none; }
.brand:hover { opacity: 0.85; }
.userinfo { font-size: 0.9em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logout { color: #fff; opacity: 0.85; text-decoration: none; }
.logout:hover { opacity: 1; text-decoration: underline; }

.badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px 70px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9em;
}
.back-link:hover { color: var(--accent); }

/* --- Page header (title + toolbar), centered --- */
.page-header {
  text-align: center;
  margin-bottom: 26px;
}
.page-header h1 {
  margin: 0 0 14px;
  color: var(--accent);
}
.page-header .toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--control-gap);
}

h1 { color: var(--accent); text-align: center; margin-top: 0; }
h2 { color: var(--accent); margin-top: 40px; font-size: 1.2em; text-align: center; }

/* --- Unified button system --- */
.btn,
.btn-new, .btn-secondary, .btn-remove, .btn-save, .btn-close,
.filters a, .filters button,
.add-form button, .add-membre-form button,
.ticket-form button, .action-form button, .action-form-inline button, .settings-form button,
.roles-table .inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  background: var(--accent);
  color: #fff;
}
.btn:hover,
.btn-new:hover, .btn-secondary:hover, .btn-save:hover, .btn-close:hover,
.filters button:hover,
.add-form button:hover, .add-membre-form button:hover,
.ticket-form button:hover, .action-form button:hover, .action-form-inline button:hover, .settings-form button:hover {
  background: var(--accent-dark);
}
.btn:focus-visible, .btn-new:focus-visible, .btn-secondary:focus-visible,
button:focus-visible, a.btn-new:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-light);
}
.btn-block { width: 100%; margin-top: 22px; }

/* secondary / ghost variant */
.btn-secondary, .filters a, .roles-table .inline-form button {
  background: #fff;
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover, .roles-table .inline-form button:hover { background: var(--accent-light); }

/* danger variant */
.btn-remove, .btn-close {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}
.btn-remove:hover, .btn-close:hover { background: var(--red); color: #fff; }

.filters a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- Filters --- */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--control-gap);
  margin-bottom: 24px;
}
.filter-group { display: flex; gap: var(--control-gap); align-items: center; flex-wrap: wrap; justify-content: center; }
.filter-group input[type=text] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  font-family: inherit;
  line-height: 1.3;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.tickets th, table.tickets td,
table.groups th, table.groups td,
table.journal th, table.journal td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92em;
}
table.tickets thead, table.groups thead, table.journal thead { background: var(--accent); color: #fff; }
table.tickets tbody tr:hover, table.journal tbody tr:hover { background: var(--accent-light); }
table.tickets tbody tr:last-child td, table.groups tbody tr:last-child td, table.journal tbody tr:last-child td { border-bottom: none; }
td.objet { max-width: 320px; }
.tickets-fermes th { white-space: nowrap; }
.tickets-fermes td.objet { max-width: 260px; }

table.journal { font-size: 0.85em; }
table.journal .journal-date, table.journal .journal-ip { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.journal .journal-details { max-width: 480px; }
.tag-source {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
  text-transform: capitalize;
}
.tag-source-bot { background: var(--accent-light); color: var(--accent); }
.tag-source-site { background: #eaf7ec; color: var(--green); }

.purge-form {
  display: flex;
  align-items: center;
  gap: var(--control-gap);
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 24px;
}
.purge-form label { font-size: 0.9em; font-weight: 600; }
.purge-form input[type="date"] {
  padding: 0 12px;
  height: var(--control-h);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92em;
}

table.ticket-meta { margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
table.ticket-meta th {
  width: 180px;
  text-align: left;
  background: var(--accent-light);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9em;
}
table.ticket-meta td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
table.ticket-meta tr:last-child th, table.ticket-meta tr:last-child td { border-bottom: none; }

.statut {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
}
.statut-ouvert { background: #d4edda; color: var(--green); }
.statut-ferme { background: #f8d7da; color: var(--red); }

.tag-groupe {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eaeef2;
  color: var(--text-muted);
  font-size: 0.75em;
}

.contenu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 10px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.contenu p { margin: 6px 0; }

.empty { color: var(--text-muted); font-style: italic; text-align: center; }

/* --- Forms & cards (création de ticket, actions, paramètres) --- */
.ticket-form, .action-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 520px;
  margin: 0 auto 16px;
}
.settings-form { max-width: 720px; margin: 0 auto 16px; }
.ticket-form label, .action-form label, .settings-form label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.9em;
  font-weight: 600;
}
.ticket-form label:first-of-type, .action-form label:first-of-type, .settings-form label:first-of-type { margin-top: 0; }
.ticket-form input[type="text"], .ticket-form input[type="number"], .ticket-form input[type="password"],
.ticket-form select,
.ticket-form textarea,
.action-form input[type="text"], .action-form input[type="password"],
.action-form select,
.action-form textarea,
.settings-form input:not([type="checkbox"]),
.settings-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-family: inherit;
}
.ticket-form input:focus, .ticket-form select:focus, .ticket-form textarea:focus,
.action-form input:focus, .action-form select:focus, .action-form textarea:focus,
.settings-form input:focus, .settings-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.ticket-form button, .action-form button, .settings-form button {
  margin-top: 16px;
  width: 100%;
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
  justify-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}
.action-form-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-form-inline button { margin-top: 0; width: 100%; }

/* --- Rôles / groupes --- */
.roles-columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.roles-columns > div {
  flex: 1 1 220px;
  min-width: 220px;
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.roles-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}
.roles-table td:last-child { text-align: right; }

.inline-form { display: inline; }

.add-form {
  display: flex;
  gap: var(--control-gap);
  margin: 10px auto 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.add-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  font-family: inherit;
  line-height: 1.3;
}
.ip-ban-form { max-width: 600px; }
.ip-ban-form input[name="ip"] { flex: 1; min-width: 160px; }
.ip-ban-form input[name="raison"] { flex: 2; min-width: 200px; }
.add-form select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  font-family: inherit;
  line-height: 1.3;
}

.groupes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.groupe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.groupe-card h2 {
  margin: 0 0 10px;
  font-size: 1.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.orphelin-form {
  max-width: 640px;
  margin: 0 auto 16px;
  text-align: center;
}
.orphelin-form select {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}
.orphelin-sub {
  margin-top: 10px;
  text-align: left;
}
.orphelin-sub label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9em;
  font-weight: 600;
}
.orphelin-sub textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1em;
}

.roles-table select {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85em;
  margin-right: 4px;
}
.roles-table .inline-form { margin-right: 8px; }
.roles-table .inline-form button {
  padding: 4px 10px;
  font-size: 0.85em;
}

/* --- Personnes & groupes --- */
.personnes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  margin-bottom: 24px;
}
.personne-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
}
.personne-card form { text-align: left; }
.personne-card h3 {
  margin: 0 0 10px;
  font-size: 1em;
  text-align: center;
}
.role-select {
  width: 100%;
  padding: 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 10px;
}
.role-select.role-admin { background: #fdecea; color: var(--red); border-color: #f3b7b0; }
.role-select.role-traitant { background: var(--accent-light); color: var(--accent); border-color: #b7c9de; }
.role-select.role-moderateur { background: #eef2f5; color: var(--text-muted); }

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  font-weight: 600;
  margin: 0 0 10px;
}
.role-badge.role-admin { background: #fdecea; color: var(--red); }

.role-desc {
  font-size: 0.78em;
  color: var(--text-muted);
  text-align: left;
  margin: -4px 0 10px;
  line-height: 1.35;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 10px;
  font-size: 0.85em;
  text-align: left;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.cibles-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 0.85em;
  box-shadow: none;
  max-height: 180px;
  display: block;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cibles-table thead, .cibles-table tbody, .cibles-table tr { display: table; width: 100%; table-layout: fixed; }
.cibles-table th, .cibles-table td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.cibles-table thead th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9em;
}
.cibles-table th:first-child, .cibles-table td.cibles-nom {
  text-align: left;
  width: 46%;
}
.cibles-table tbody tr:last-child td { border-bottom: none; }
.cibles-nom {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-save {
  width: 100%;
}

.personne-card > form:last-of-type .btn-remove {
  width: 100%;
  margin-top: 8px;
}

.groupes-liste {
  list-style: none;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
}
.groupes-liste li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.groupe-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.groupe-ligne .hint { flex: 1; margin: 0; }
.groupe-actions {
  display: flex;
  align-items: flex-start;
  gap: var(--control-gap);
  flex-wrap: wrap;
  margin-left: auto;
}

details.groupe-membres summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92em;
}
details.groupe-membres summary::-webkit-details-marker,
details.groupe-membres summary::marker { display: none; content: ""; }
details.groupe-membres[open] summary { background: var(--accent-light); }
details.groupe-membres[open] { flex-basis: 100%; }

.groupe-membres-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: left;
}
.groupe-membres-panel-header {
  display: flex;
  justify-content: flex-end;
  margin: -4px -4px 6px auto;
}
.btn-close-panel {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.btn-close-panel:hover { background: var(--accent-light); color: var(--accent); }
.membres-liste { list-style: none; padding: 0; margin: 0 0 10px; }
.membres-liste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.membres-liste li:last-child { border-bottom: none; }
.add-membre-form { display: flex; gap: var(--control-gap); align-items: center; }
.add-membre-form select {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  font-family: inherit;
}

.champ-label {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--text-muted);
  text-align: left;
}
.notif-select {
  width: 100%;
  padding: 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.85em;
  margin-bottom: 4px;
}
.acces-web-status {
  font-size: 0.8em;
  margin: 8px 0 4px;
  color: var(--text-muted);
}
.acces-web-status .ok { color: var(--green); font-weight: 600; }
.acces-web-status .verrou { color: var(--red); font-weight: 600; }

/* --- Paramètres --- */
.param-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.param-groupe {
  margin: 0 0 14px;
  font-size: 1.05em;
  color: var(--accent);
  text-align: left;
}
.param-avertissement {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #f0d18a;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 0.85em;
  margin: 6px 0 0;
  text-align: left;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  main { padding: 20px 16px 60px; }
  .topbar { padding: 12px 16px; }
  table.tickets, table.groups { display: block; overflow-x: auto; }
  .ticket-form, .action-form, .settings-form { padding: 18px; }
}

/* ============================================================================
   Harmonisation finale des hauteurs de contrôles.
   Les navigateurs appliquent une line-height par défaut différente à <input>
   et à <button> même à padding/font-size identiques (~3px d'écart) : plutôt
   que d'ajuster le padding au pixel près à chaque endroit, on fixe une
   hauteur explicite unique à tous les champs de saisie sur une ligne et à
   tous les boutons/liens-boutons, ce qui règle l'écart une bonne fois pour
   toutes, quelle que soit la page.
   ============================================================================ */
:root { --control-h: 42px; }

.login-box input,
.filter-group input[type="text"],
.add-form input[type="text"], .add-form select,
.ticket-form input[type="text"], .ticket-form input[type="number"], .ticket-form input[type="password"], .ticket-form select,
.action-form input[type="text"], .action-form input[type="password"], .action-form select,
.settings-form input:not([type="checkbox"]),
.orphelin-form select,
.add-membre-form select,
.roles-table select {
  height: var(--control-h);
  padding: 0 12px;
  box-sizing: border-box;
}

.btn,
.btn-new, .btn-secondary, .btn-remove, .btn-save, .btn-close,
.filters a, .filters button,
.add-form button,
.ticket-form button, .action-form button, .action-form-inline button, .settings-form button,
.add-membre-form button,
.roles-table .inline-form button {
  height: var(--control-h);
  padding: 0 18px;
  box-sizing: border-box;
}
.roles-table .inline-form button { height: 34px; padding: 0 10px; } /* boutons compacts des tableaux de rôles */