:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #243040;
  --text: #e8eef4;
  --muted: #9aabbc;
  --accent: #c8102e;
  --accent-2: #f0c75e;
  --ok: #2f9e6b;
  --err: #d64545;
  --border: #314155;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, #2a1520 0%, transparent 55%),
    linear-gradient(180deg, #121820 0%, var(--bg) 40%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

/* Shell staff : bandeau + sidebar */
.app-body {
  min-height: 100vh;
}
.site-header--shell {
  z-index: 40;
}
.header-inner--shell {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}
.header-inner--shell .brand { flex: 1; }
.sidebar-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle__bars,
.sidebar-toggle__bars::before,
.sidebar-toggle__bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.sidebar-toggle__bars::before,
.sidebar-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.sidebar-toggle__bars::before { top: -5px; }
.sidebar-toggle__bars::after { top: 5px; }

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: calc(100vh - 4rem);
  align-items: start;
}
.app-sidebar {
  position: sticky;
  top: 4.1rem;
  align-self: start;
  padding: 1rem 0.75rem 2rem 0;
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 4.5rem);
}
.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.app-sidebar__link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.app-sidebar__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.app-sidebar__link.is-active {
  color: var(--text);
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid rgba(200, 16, 46, 0.35);
}
.app-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-sidebar__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.app-sidebar__group-toggle:hover,
.app-sidebar__group-toggle.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.app-sidebar__caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.app-sidebar__group.is-open .app-sidebar__caret {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}
.app-sidebar__submenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.15rem 0 0.35rem 0.55rem;
  margin: 0 0 0.25rem 0.35rem;
  border-left: 1px solid var(--border);
}
/* display:flex doit céder à l’attribut HTML hidden */
.app-sidebar__submenu[hidden] {
  display: none !important;
}
.app-sidebar__link--sub {
  font-weight: 600;
  font-size: 0.95em;
  padding: 0.45rem 0.7rem;
}
.app-sidebar__ext {
  margin-left: 0.35rem;
  opacity: 0.7;
  font-size: 0.85em;
}
.sidebar-backdrop {
  display: none;
}
.app-main {
  padding: 1.5rem 0 3rem 1.25rem;
  min-width: 0;
}

.page-sections-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem;
  background: rgba(15, 20, 25, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.page-sections-nav__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.page-sections-nav__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.page-sections-nav__btn.is-active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}
html.page-sections-ready [data-page-section][hidden] {
  display: none !important;
}
.page-sections-group {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .sidebar-toggle { display: inline-flex; }
  .app-shell {
    grid-template-columns: 1fr;
    width: min(1100px, calc(100% - 2rem));
  }
  .app-sidebar {
    position: fixed;
    z-index: 35;
    top: 0;
    left: 0;
    width: min(280px, 86vw);
    height: 100vh;
    min-height: 100vh;
    padding: 4.5rem 0.85rem 1.5rem;
    background: rgba(15, 20, 25, 0.97);
    border-right: 1px solid var(--border);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(8, 12, 18, 0.65);
  }
  .sidebar-backdrop[hidden] { display: none; }
  .app-main { padding: 1.25rem 0 2.5rem; }
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: 0.04em; color: var(--text); text-transform: uppercase; }
nav { display: flex; gap: 1rem; flex: 1; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); }
.logout-form { margin-left: 0; }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.header-action-btn,
.logout-form button.header-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.header-action-btn:hover,
.logout-form button.header-action-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}
.header-action-btn--icon {
  padding: 0.35rem;
  min-width: 2rem;
  min-height: 2rem;
}
.header-action-btn--icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

main.wrap { padding: 1.5rem 0 3rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
h1, h2 { margin: 0 0 0.75rem; letter-spacing: 0.01em; }

.btn, button[type="submit"] {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font: inherit;
}
.header-actions button.header-action-btn[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem;
  min-width: 2rem;
  min-height: 2rem;
}
.header-actions button.header-action-btn[type="submit"]:hover {
  color: var(--text);
  border-color: var(--muted);
}
.btn-secondary { background: var(--surface-2); color: var(--text); }
.actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.filters, .stack-form, .panel, .detail-grid, .stats .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.filters { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters label, .stack-form label { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.filters input, .filters select, .stack-form input, .stack-form select, .stack-form textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font: inherit;
}
.stack-form { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; }
.field-error { color: var(--err); margin: 0.25rem 0 0; font-size: 0.9rem; }
.field-hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }
.search-status { margin: 0; color: var(--muted); font-size: 0.9rem; align-self: end; }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px; overflow: hidden; }
.data-table th, .data-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { color: var(--muted); font-weight: 600; background: var(--surface-2); }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.8rem; background: var(--surface-2); }
.badge-actif { background: #1f4d38; }
.badge-desactive { background: #4a5563; }
.badge-banni, .badge-exclu, .badge-exclu_definitif { background: #6b1f1f; }
.badge-exclu_temporaire { background: #6b4a1f; }
.badge-dissous { background: #3a3f4a; }
.badge-ok { background: #1f4d38; color: #d8f3e5; }
.badge-sent { background: #1f3d5c; color: #d6e8ff; }
.badge-pending { background: #4a5563; }
.badge-failed { background: #6b1f1f; }
.badge-muted { background: var(--surface-2); color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-form { display: inline; margin: 0; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.forum-stats { margin-bottom: 1rem; }
.forum-alert { margin-top: 0; }
.forum-batch-actions {
  margin-bottom: 1rem;
  align-items: center;
}
.forum-check-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}
.forum-assign-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.forum-assign-form select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  min-width: 160px;
}
.forum-groupe-filters { margin-bottom: 0.75rem; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover { color: var(--accent-2); text-decoration: underline; }

.forum-modal {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
}
.forum-modal--wide {
  width: min(860px, calc(100% - 2rem));
}
.membre-logs-detail {
  margin-top: 0.85rem;
}
.membre-logs-detail pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.45);
  border: 1px solid var(--border);
  overflow: auto;
  max-height: 220px;
  font-size: 0.82rem;
}
.membre-logs-row {
  cursor: pointer;
}
.membre-logs-row:hover,
.membre-logs-row:focus {
  background: rgba(240, 199, 94, 0.08);
  outline: none;
}
.app-access-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.85rem;
  background: rgba(15, 20, 25, 0.28);
}
.app-access-card legend {
  padding: 0 0.35rem;
  font-weight: 700;
}
.app-access-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.55rem;
}
.app-access-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}
.app-access-role code {
  color: var(--muted);
  font-size: 0.85em;
}
.app-access-subtitle {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.forum-modal::backdrop {
  background: rgba(8, 12, 18, 0.72);
}
.forum-modal__inner {
  padding: 1rem 1.1rem 1.2rem;
  overflow: auto;
  max-height: calc(100vh - 2rem);
}
.forum-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.forum-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.forum-info-dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1rem;
}
.forum-info-dl dt { color: var(--muted); margin: 0; }
.forum-info-dl dd { margin: 0; word-break: break-word; }
.forum-modal h3 {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.forum-campagne-panel { margin-bottom: 1rem; }

.flash { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash-success,
.flash-ok { background: #1f4d38; }
.flash-error { background: #6b1f1f; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.stats .stat { color: inherit; text-decoration: none; }
.stats .stat strong { display: block; font-size: 2rem; }

.dashboard-statut-panel { margin-top: 0.5rem; }
.dashboard-statut-grids {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.dashboard-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}
.dashboard-statut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.dashboard-statut-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.dashboard-comptes-head {
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.dashboard-filters label,
.dashboard-chart-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.dashboard-filters select,
.dashboard-chart-toolbar select {
  min-width: 12rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}
.dashboard-chart-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.dashboard-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dashboard-chart-wrap {
  position: relative;
  height: min(360px, 55vh);
}
.dashboard-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.dashboard-campagne-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.dashboard-campagne-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.muted { color: var(--muted); }
@media (max-width: 800px) {
  .dashboard-statut-grids,
  .dashboard-side-grid { grid-template-columns: 1fr; }
  .dashboard-chart-wrap { height: 280px; }
}
.detail-grid dl { display: grid; grid-template-columns: 220px 1fr; gap: 0.4rem 1rem; margin: 0; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; word-break: break-word; }
.detail-grid h2 { margin-top: 0; }
.detail-grid code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.panel { margin-top: 1.25rem; }
.pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0.85rem 0;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pagination--top { margin-top: 0; margin-bottom: 0.85rem; }
.pagination--bottom { margin-top: 0.85rem; margin-bottom: 0; }
.pagination__link,
.pagination > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.pagination__link:hover,
.pagination > a:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent-2, var(--accent)) 45%, var(--border));
  color: var(--accent-2, var(--accent));
}
.pagination__link.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}
.pagination__page:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent-2, var(--accent)) 45%, var(--border));
  color: var(--accent-2, var(--accent));
}
.pagination__page.is-current {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: #fff;
  cursor: default;
}
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}
.pagination__meta {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .pagination {
    justify-content: center;
    gap: 0.5rem;
  }
  .pagination__pages {
    order: -1;
    flex: 1 1 100%;
    margin-bottom: 0.15rem;
  }
  .pagination__link,
  .pagination > a {
    min-width: 0;
    flex: 1;
  }
  .pagination__meta {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: center;
  }
}
.logs-stats-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.logs-mini-table { margin: 0; }
@media (max-width: 800px) {
  .logs-stats-tables { grid-template-columns: 1fr; }
}
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; color: var(--text); }
h1 small { color: var(--muted); font-weight: 500; font-size: 0.7em; }

/* Fiche membre — Informations membre */
.membre-info {
  padding: 0;
  overflow: hidden;
}
.membre-info__hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 1.15rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.18), transparent 55%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.membre-info--cartage .membre-info__hero {
  background:
    linear-gradient(135deg, rgba(240, 199, 94, 0.14), transparent 55%),
    var(--surface-2);
}
.membre-info--systeme .membre-info__hero {
  background:
    linear-gradient(135deg, rgba(154, 171, 188, 0.16), transparent 55%),
    var(--surface-2);
}
.membre-info--compte .membre-info__hero {
  background:
    linear-gradient(135deg, rgba(94, 186, 160, 0.14), transparent 55%),
    var(--surface-2);
}
.membre-info--compte .membre-info__grid--compte {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .membre-info--compte .membre-info__grid--compte { grid-template-columns: 1fr; }
}
.membre-card--discourse .field-hint {
  margin-top: 0.75rem;
}
.membre-info--cartage .membre-info__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.membre-info--systeme .membre-info__grid {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .membre-info--cartage .membre-info__grid { grid-template-columns: 1fr; }
}
.membre-info__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.membre-info__identity h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.membre-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
}
.membre-info__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.membre-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.45);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
}
.membre-chip--muted { color: var(--muted); }
.membre-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
}
@media (max-width: 800px) {
  .membre-info__grid { grid-template-columns: 1fr; }
}
.membre-card {
  background: rgba(15, 20, 25, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.membre-card--full {
  grid-column: 1 / -1;
}
.membre-card--full .membre-dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .membre-card--full .membre-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.membre-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.membre-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}
.membre-dl > div { min-width: 0; }
.membre-dl__full { grid-column: 1 / -1; }
.membre-dl dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.membre-dl dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.membre-dl a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(240, 199, 94, 0.45);
  text-underline-offset: 0.15em;
}
.membre-dl a:hover { color: var(--accent-2); }
.membre-pill {
  display: inline-flex;
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.brand-auth {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.profil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.profil-card h2 {
  margin-top: 0;
}
.profil-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.profil-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
