/* ==========================================================
 🌈 — Panneau Admin La Famille LGBT —
 Thème sombre néon rose / bleu — version unifiée & optimisée
========================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --bg: #0b0b0f;
  --bg2: #141418;
  --panel: #1b1c20;
  --border: #222;
  --text: #fff;
  --muted: #aaa;
  --accent: #ff007c;
  --accent2: #00e5ff;
  --ok: #4caf50;
  --warn: #ff9800;
  --err: #f44336;
  --radius: 10px;
  --transition: 0.25s;
  --font: "Poppins", sans-serif;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}
a {
  color: var(--accent2);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { opacity: 0.8; }

/* ---------- HEADER ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-bottom: 1px solid var(--border);
}
header .brand {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
}
header .user {
  display: flex;
  align-items: center;
  gap: 10px;
}
header .user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff22;
}

/* ---------- STRUCTURE PRINCIPALE ---------- */
.wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: calc(100vh - 60px);
  gap: 16px;
  padding: 16px;
}

/* ---------- ASIDE ---------- */
.side {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky;
  top: 16px;
  height: max-content;
}
.side h3 {
  margin: 10px 0 8px;
  font-size: 13px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  all: unset;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #1a1a1d;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: var(--transition);
}
.nav button:hover {
  background: #24242a;
  color: #fff;
}
.nav button.active {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
}

/* ---------- CONTENU PRINCIPAL ---------- */
.content {
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- CARTES ---------- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}
.card.hidden { display: none; }

.card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.card .body {
  padding: 16px;
}

/* ---------- STATS ---------- */
.grid-4,
.grid-3 {
  display: grid;
  gap: 12px;
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stat {
  background: #1a1a1d;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat .k {
  font-size: 13px;
  color: var(--muted);
}
.stat .v {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent2);
  margin-top: 4px;
}

/* ---------- TABLES & LIGNES ---------- */
.table {
  width: 100%;
  overflow-x: auto;
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.25s;
}
.row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- PROFILS RESPONSIVE ---------- */
#profilesList {
  overflow-x: auto;
  display: block;
  white-space: nowrap;
  max-width: 100%;
}
#profilesList .row {
  display: inline-grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 8px;
}
#profilesList .row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}
#profilesList small.muted {
  color: #888;
  font-size: 0.8em;
}
#profilesList a {
  color: var(--accent2);
  text-decoration: none;
  font-size: 1.1em;
}

/* ---------- BOUTONS ---------- */
.btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 14px;
  padding: 8px 12px;
  transition: var(--transition);
  font-family: var(--font);
}
.btn.small {
  padding: 5px 9px;
  font-size: 13px;
}
.btn.icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.secondary {
  background: #333;
  color: #fff;
}
.btn:hover {
  opacity: 0.85;
}

/* ---------- MODALES ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
}
.modal-content {
  background: #18181b;
  border-radius: var(--radius);
  padding: 20px;
  width: 90%;
  max-width: 520px;
  color: #fff;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content h3 {
  margin-top: 0;
  color: var(--accent2);
}

/* ---------- LOGS ---------- */
.log {
  white-space: pre-wrap;
  background: #0f1014;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  font-family: monospace;
  font-size: 13px;
  color: #ddd;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- STYLES GÉNÉRAUX ---------- */
.muted { color: var(--muted); }
.err { color: var(--err); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.hidden { display: none !important; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent2);
}
/* === PROFILS EN CARTES === */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  transition: 0.3s;
}
.profile-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 0, 124, 0.2),
              0 0 15px rgba(0, 229, 255, 0.2);
}

.profile-card .header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-card .header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.profile-card .header .name {
  font-weight: 700;
  font-size: 16px;
}
.profile-card .header small {
  color: #999;
  font-size: 12px;
}

.profile-card .info {
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 8px;
}

.profile-card .socials {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  margin-top: 8px;
}
.profile-card .socials i {
  opacity: 0.8;
  transition: 0.2s;
}
.profile-card .socials i:hover {
  opacity: 1;
  transform: scale(1.1);
}

.profile-card .updated {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}
/* === STYLE DES FICHES PROFILS === */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.profile-card {
  background: #15151a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  transition: 0.3s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 10px rgba(255,0,124,0.3), 0 0 20px rgba(0,229,255,0.2);
}

.profile-card .header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.profile-card .header img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}
.profile-card .name {
  font-weight: 700;
  font-size: 17px;
}
.profile-card small {
  color: #999;
  font-size: 12px;
}

.profile-card .section {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: #ddd;
  line-height: 1.5;
}
.profile-card .section p {
  margin: 4px 0;
}
.profile-card .section b {
  color: var(--accent2);
  font-weight: 600;
}

.profile-card .socials {
  margin-top: 12px;
  font-size: 14px;
  color: #ccc;
}
.profile-card .socials i {
  margin-right: 6px;
  font-style: normal;
  cursor: default;
}

.profile-card .updated {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  text-align: right;
}
