* { box-sizing: border-box; }
html { scrollbar-color: #4a4d53 #232428; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #1e1f22; }
::-webkit-scrollbar-thumb { background: #4a4d53; border-radius: 8px; border: 2px solid #1e1f22; }
::-webkit-scrollbar-thumb:hover { background: #5c6067; }

/* ── Design system RecruitBot : noir bleu-nuit, un seul accent (violet électrique), aplats
   et fines bordures — le néon reste réservé aux accents/CTA/états actifs, jamais généralisé. ── */
:root {
  --bg: #0e0f16;
  --surface: #17181f;
  --surface-2: #1e2029;
  --surface-3: #262838;
  --inset: #0e0f16;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e4e4ec;
  --text-strong: #f6f5fb;
  --muted: #9497a8;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139,92,246,0.16);
  --neon: #b98bff;
  --neon-glow: rgba(185,139,255,0.55);
  --metal: #3a3d4d;
  --ok: #3ba55d; --warn: #d9a441; --bad: #ed4245;
  --radius: 10px;
  --sidebar-w: 252px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  margin: 0;
  background: radial-gradient(1100px 420px at 75% -120px, rgba(139,92,246,0.10), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', 'gg sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: #9ba6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

input, select, textarea, button { font-family: inherit; }
input[type="text"], input[type="number"], select, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="checkbox"] { cursor: pointer; accent-color: var(--accent); }

.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Coque : menu latéral + barre haute ── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto;
}
body.has-shell { padding-left: var(--sidebar-w); }
.sb-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.sb-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.sb-logo:hover { background: var(--accent-hover); text-decoration: none; }
.sb-title { display: flex; flex-direction: column; line-height: 1.15; }
.sb-title strong { color: var(--text-strong); font-size: 14px; letter-spacing: .01em; }
.sb-title span { color: var(--muted); font-size: 11.5px; }
.sb-close, .shell-burger { display: none; background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.sb-close { margin-left: auto; }
.sb-close:hover, .shell-burger:hover { background: var(--surface-2); color: var(--text-strong); }

.sb-context { display: flex; align-items: center; gap: 10px; margin: 4px 12px 0; padding: 10px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.sb-avatar { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.sb-avatar--fb { display: grid; place-items: center; background: var(--accent-soft); color: #aab3ff; }
.sb-context-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sb-context-text strong { color: var(--text-strong); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-context-text span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-context-text span img { width: 14px; height: 14px; border-radius: 50%; }
.sb-switch { display: flex; gap: 6px; margin: 8px 12px 4px; }
.sb-switch a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); transition: background .15s, color .15s; }
.sb-switch a:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.sb-switch .ic { width: 14px; height: 14px; }

.sb-search { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 7px 10px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); transition: border-color .15s; }
.sb-search:focus-within { border-color: var(--border-strong); }
.sb-search .ic { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.sb-search input { flex: 1; min-width: 0; background: none; border: none; color: var(--text); font-size: 13px; font-family: inherit; }
.sb-search input:focus { outline: none; }
.sb-search input::placeholder { color: var(--muted); }

.sb-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px; flex: 1; }
.sb-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6d7178; padding: 14px 10px 5px; }
.sb-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; position: relative; transition: background .15s var(--ease), color .15s; }
.sb-link:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.sb-link.active { background: var(--accent-soft); color: #c3c9ff; }
.sb-link.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }

.sb-foot { border-top: 1px solid var(--border); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.sb-links { display: flex; gap: 6px; }
.sb-links a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; font-size: 12.5px; color: var(--muted); border-radius: 8px; }
.sb-links a:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.sb-links .ic { width: 14px; height: 14px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 6px; }
.sb-user img { width: 30px; height: 30px; border-radius: 50%; }
.sb-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; flex: 1; }
.sb-user-text strong { font-size: 13px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-text span { font-size: 11.5px; color: var(--muted); }
.sb-logout { color: var(--muted); padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.sb-logout:hover { background: rgba(237,66,69,.14); color: #ff8a8c; text-decoration: none; }
.sb-scrim { display: none; }

.shell-top { display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 52px; border-bottom: 1px solid var(--border); background: rgba(22,23,26,0.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.shell-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.shell-crumb span:last-child { color: var(--text); font-weight: 600; }
.shell-crumb i { font-style: normal; color: #4a4d53; }
.shell-sub { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.shell-sub a { color: var(--muted); padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.shell-sub a:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.shell-sub a.active { background: var(--accent-soft); color: #c3c9ff; }

@media (max-width: 900px) {
  body.has-shell { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.5); }
  body.sb-open .sidebar { transform: none; }
  .sb-close, .shell-burger { display: block; }
  .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.sb-open .sb-scrim { opacity: 1; pointer-events: auto; }
  .shell-top { padding: 10px 14px; }
}

.container { max-width: 1200px; margin: 28px auto; padding: 0 28px 56px; animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .container { padding: 0 16px 40px; margin-top: 18px; } }
.container h1 {
  color: var(--text-strong); font-size: 24px; font-weight: 650; letter-spacing: -0.015em;
  margin: 0 0 6px; padding-bottom: 6px;
}
.container > .hint:first-of-type { margin-bottom: 22px; font-size: 14.5px; }

.cmd-hero { margin-bottom: 22px; }
.cmd-hero-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmd-hero-name {
  font-size: 28px; font-weight: 700; color: #f2f3f5; letter-spacing: -0.01em;
  font-family: 'Consolas', 'Menlo', monospace;
  color: var(--text-strong);
}
.hint { color: #949ba4; font-size: 14px; margin: 0 0 20px; }

.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; flex-direction: column; gap: 24px;
}
.login-card {
  background: #2b2d31; border-radius: 12px; padding: 40px 48px;
  text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.login-card h1 { margin: 0 0 8px; color: #f2f3f5; font-size: 22px; }
.login-card p { color: #949ba4; margin: 0 0 24px; }

.bot-select-card { min-width: 320px; }
.bot-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.bot-choice {
  background: var(--inset); border: 1px solid var(--border-strong); color: var(--text-strong);
  padding: 14px 20px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.bot-choice:hover { background: #26282c; border-color: #8b5cf6; }
.bot-choice { display: flex; align-items: center; gap: 10px; width: 100%; }
.guild-icon { width: 24px; height: 24px; border-radius: 50%; }
.alert-error {
  background: rgba(242,63,66,0.12); border: 1px solid #f23f42; color: #ff8a8c;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; text-align: left;
}
.btn-discord {
  display: inline-flex; align-items: center; gap: 8px;
  background: #8b5cf6; color: white; border: none;
  padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.btn-discord:hover { background: #4752c4; text-decoration: none; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border-strong);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.025); }
code { background: #1e1f22; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.user-cell { display: flex; align-items: center; gap: 8px; }
.user-cell img { width: 24px; height: 24px; border-radius: 50%; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
.badge-open { background: rgba(46,204,113,0.12); color: #3ddc84; border-color: rgba(46,204,113,0.25); }
.badge-claimed { background: rgba(139,92,246,0.14); color: #8b95ff; border-color: rgba(139,92,246,0.3); }
.badge-none { background: rgba(148,155,164,0.1); color: #a4aab3; border-color: rgba(148,155,164,0.2); }

.error-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; flex-direction: column; gap: 16px;
}
.error-wrap .icon { font-size: 48px; }
.error-wrap p { color: #dbdee1; max-width: 400px; text-align: center; }

.btn-link { background: var(--surface-2); border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-link-danger {
  background: transparent; border: 1px solid #f23f42; color: #f23f42;
  padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; margin-top: 12px;
}
.btn-link-danger:hover { background: rgba(242,63,66,0.12); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 26px; margin-bottom: 18px;
}
@media (max-width: 600px) { .card { padding: 16px; } }
.card h2 { font-size: 15.5px; color: #f2f3f5; margin: 0 0 6px; letter-spacing: 0.01em; }

.btn {
  border: 1px solid transparent; padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s ease, transform 0.12s var(--ease), border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-success { background: var(--ok); color: #071a0e; }
.btn-success:hover { background: #349353; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #d23639; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

.tag-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 5px 8px 5px 12px;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: background 0.12s ease;
}
.tag-list li:hover { background: rgba(255,255,255,0.07); }
.btn-x {
  background: none; border: none; color: #949ba4; cursor: pointer; font-size: 12px;
  padding: 2px 4px; border-radius: 4px;
}
.btn-x:hover { color: #f23f42; background: rgba(242,63,66,0.12); }

.inline-form { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.inline-form select, .inline-form input[type="text"] {
  background: var(--inset); border: 1px solid var(--border-strong); color: var(--text);
  padding: 7px 10px; border-radius: 6px; font-size: 14px; flex: 1;
}
form.inline { display: inline; }

.inline-form input[type="number"] {
  background: var(--inset); border: 1px solid var(--border-strong); color: var(--text);
  padding: 7px 10px; border-radius: 6px; font-size: 14px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 8px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #b5bac1; }
.form-grid input[type="number"], .form-grid input[type="text"], .form-grid select, .form-grid textarea {
  background: var(--inset); border: 1px solid var(--border-strong); color: var(--text);
  padding: 8px 10px; border-radius: 6px; font-size: 14px; font-family: inherit;
}
.form-grid .full-width { grid-column: 1 / -1; }
.switch-row { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 14px !important; color: #dbdee1 !important; }
.switch-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

.btn-delete {
  background: transparent; border: 1px solid #f23f42; color: #f23f42;
  padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-delete:hover { background: rgba(242,63,66,0.12); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
button.btn-link { color: var(--text); }

/* Dashboard des commandes groupées par catégorie — remplace l'ancienne
   liste à plat, dont le rendu était jugé peu lisible sur beaucoup de
   commandes (une seule longue colonne de lignes identiques). */
.container.wide { max-width: 1200px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.cat-card {
  margin-bottom: 0; display: flex; flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s ease;
}
.cat-card:hover { border-color: rgba(139,92,246,0.35); }
.cat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-header h2 { margin: 0; font-size: 16px; letter-spacing: 0.01em; }

.cmd-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.06); }
.cmd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer; font-size: 13px;
  border-radius: 8px;
  transition: background 0.12s ease, padding-left 0.12s ease;
}
.cmd-row:last-child { border-bottom: none; }
.cmd-row:hover { background: rgba(139,92,246,0.08); padding-left: 10px; }
.cmd-row code {
  flex-shrink: 0; background: rgba(0,0,0,0.35); color: #b9c0ff;
  padding: 2px 7px; border-radius: 5px; font-size: 12.5px;
}
.cmd-desc {
  flex: 1; color: #949ba4; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 12.5px;
}
.cmd-row .badge { flex-shrink: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sélecteur de rôles recherchable + multi-sélection (remplace les <select>
   simples, difficiles à parcourir sur un serveur avec beaucoup de rôles). */
.role-picker { max-width: 420px; }
.role-picker-search {
  width: 100%; background: var(--inset); border: 1px solid var(--border-strong); color: var(--text);
  padding: 8px 10px; border-radius: 8px 8px 0 0; font-size: 14px; border-bottom: none;
}
.role-picker-list {
  max-height: 220px; overflow-y: auto;
  background: #1e1f22; border: 1px solid #3f4147; border-radius: 0 0 6px 6px;
  padding: 4px;
}
.role-picker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 4px; font-size: 14px; cursor: pointer;
}
.role-picker-item:hover { background: #2b2d31; }
.role-picker-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

/* Page publique /commands — pas de topbar (page non authentifiée), mise en
   page à deux colonnes : liste par catégorie à gauche, recherche + nav des
   catégories fixée à droite. */
.cmdpage { display: flex; gap: 32px; max-width: 1400px; margin: 0 auto; padding: 32px 24px 64px; align-items: flex-start; }
.cmdpage-main { flex: 1; min-width: 0; }
.cmdpage-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cmdpage-heading h1 { color: #f2f3f5; font-size: 26px; margin: 0; }
.cmdpage-botswitch { display: flex; gap: 6px; }
.cmdpage-botswitch a {
  background: #2b2d31; color: #b5bac1; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
}
.cmdpage-botswitch a.active { background: var(--accent); color: white; }
.cmdpage-botswitch a:hover { text-decoration: none; }

.cat-section { margin-bottom: 28px; }
.cat-bar {
  background: var(--accent); color: white; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 6px 6px 0 0;
}
.cmd-table { width: 100%; border-collapse: collapse; background: #2b2d31; border-radius: 0 0 6px 6px; overflow: hidden; }
.cmd-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #949ba4; padding: 8px 14px; border-bottom: 1px solid #3f4147;
}
.cmd-table td { padding: 8px 14px; font-size: 13.5px; border-bottom: 1px solid #35373c; vertical-align: top; }
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table tr:hover td { background: #313338; }
.cmd-name { color: #aab3ff; font-weight: 600; white-space: nowrap; }

.cmdpage-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 24px; }
.cmdpage-search {
  width: 100%; background: var(--inset); border: 1px solid var(--border-strong); color: var(--text);
  padding: 9px 12px; border-radius: 6px; font-size: 14px; margin-bottom: 16px;
}
.cmdpage-sidebar h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #949ba4; margin: 0 0 8px; }
.cat-nav { display: flex; flex-direction: column; gap: 2px; }
.cat-nav-item {
  padding: 7px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
  color: #b5bac1;
}
.cat-nav-item:hover { background: #2b2d31; text-decoration: none; }
.cat-nav-item.active { background: var(--accent); color: white; }

@media (max-width: 800px) {
  .cmdpage { flex-direction: column; }
  .cmdpage-sidebar { width: 100%; position: static; }
}

/* Page publique /docs — sidebar de navigation façon docs.draftbot.fr, plus
   large et plus verticale que la nav de /commands puisqu'elle porte du texte
   explicatif, pas juste des libellés courts. */
.docspage { display: flex; min-height: 100vh; }
.docs-sidebar {
  width: 260px; flex-shrink: 0; background: #1e1f22; border-right: 1px solid #232428;
  padding: 20px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.docs-brand { display: block; color: #f2f3f5; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.docs-brand:hover { text-decoration: none; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.docs-nav-item { padding: 8px 10px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #b5bac1; }
.docs-nav-item:hover { background: #2b2d31; text-decoration: none; color: #f2f3f5; }
.docs-nav-item.active { background: #8b5cf6; color: white; font-weight: 600; }
.docs-sidebar-footer { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #2b2d31; }
.docs-sidebar-footer a { font-size: 13px; color: #949ba4; padding: 4px 10px; }
.docs-sidebar-footer a:hover { color: #f2f3f5; text-decoration: none; }

.docs-main { flex: 1; max-width: 760px; padding: 48px 40px 80px; min-width: 0; }
.docs-main h1 { color: #f2f3f5; font-size: 28px; margin: 0 0 24px; }
.docs-content { color: #dbdee1; font-size: 15px; line-height: 1.7; }
.docs-content h3 { color: #f2f3f5; font-size: 17px; margin: 28px 0 10px; }
.docs-content p { margin: 0 0 14px; }
.docs-content ul { margin: 0 0 14px; padding-left: 22px; }
.docs-content li { margin-bottom: 8px; }
.docs-content code { background: #1e1f22; padding: 2px 6px; border-radius: 4px; font-size: 13.5px; color: #f2b790; }
.docs-content a { color: #00a8fc; }
.docs-content strong { color: #f2f3f5; }

.docs-pager { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid #2b2d31; }
.docs-pager-link { color: #dbdee1; font-weight: 600; font-size: 14px; }
.docs-pager-link:hover { color: #00a8fc; }

@media (max-width: 800px) {
  .docspage { flex-direction: column; }
  .docs-sidebar { width: 100%; position: static; height: auto; }
  .docs-main { padding: 24px 20px 60px; }
}

/* ── Page Santé ── */
.badge-warn { background: rgba(241,196,15,0.12); color: #f1c40f; border-color: rgba(241,196,15,0.3); }
.badge-bad  { background: rgba(231,76,60,0.14); color: #ff6b5c; border-color: rgba(231,76,60,0.35); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 4px; }
.health-stat { background: #2b2d31; border: 1px solid #35373c; border-radius: 8px; padding: 14px 16px; }
.health-stat .label { color: #949ba4; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.health-stat .value { color: #f2f3f5; font-size: 19px; font-weight: 600; margin-top: 4px; }
.health-err { max-width: 420px; word-break: break-word; color: #b5bac1; font-size: 12.5px; }
.ev-error { color: #ff6b5c; } .ev-warn { color: #f1c40f; } .ev-info { color: #8b95ff; }



/* ── Centre de contrôle ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { border: none; padding: 0; margin: 0; }
.page-head .hint { margin: 4px 0 0; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; border: 1px solid var(--border-strong); background: var(--surface-2); animation: page-in .3s var(--ease); }
.flash.ok { border-color: rgba(59,165,93,.4); background: rgba(59,165,93,.1); }
.flash.err { border-color: rgba(237,66,69,.45); background: rgba(237,66,69,.1); }
.flash.warn { border-color: rgba(217,164,65,.45); background: rgba(217,164,65,.1); }
.flash .ic { margin-top: 2px; }
.flash-body { min-width: 0; flex: 1; }
.flash code.invite { display: block; margin-top: 8px; padding: 10px 12px; font-size: 15px; user-select: all; word-break: break-all; }

.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bot-tile { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; color: inherit; transition: border-color .15s, transform .15s var(--ease); }
.bot-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); text-decoration: none; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-head img, .tile-head .sb-avatar { width: 44px; height: 44px; border-radius: 12px; }
.tile-head strong { color: var(--text-strong); font-size: 15.5px; display: block; }
.tile-head small { color: var(--muted); font-size: 12px; }
.tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-stats div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.tile-stats b { display: block; color: var(--text-strong); font-size: 16px; font-weight: 650; }
.tile-stats span { color: var(--muted); font-size: 11.5px; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-left: auto; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.on { color: #6fd08d; } .status-dot.on::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(59,165,93,.2); }
.status-dot.off { color: #ff8a8c; } .status-dot.off::before { background: var(--bad); box-shadow: 0 0 0 3px rgba(237,66,69,.2); }
.status-dot.mid { color: #e8bd6a; } .status-dot.mid::before { background: var(--warn); }

.srv-list { display: flex; flex-direction: column; }
.srv-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.srv-row:last-child { border-bottom: none; }
.srv-row img, .srv-row .srv-ph { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.srv-ph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.srv-info { flex: 1; min-width: 160px; }
.srv-info strong { color: var(--text-strong); display: block; font-size: 14px; }
.srv-info small { color: var(--muted); font-size: 12px; }
.srv-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.srv-actions form { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.srv-actions select { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 6px 8px; border-radius: 8px; font-size: 12.5px; }
.srv-filter { width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 9px 12px; border-radius: 8px; margin: 6px 0 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chip.degraded i { background: var(--warn); } .chip.failing i { background: var(--bad); }
.role-owner { color: #f0c96a; } .role-admin { color: #a8b1ff; } .role-staff { color: #7fd1c8; } .role-user { color: var(--muted); }
.logbox { background: #101113; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12px; line-height: 1.55; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #c3c7cf; }

.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 7px 8px; text-align: left; }
.matrix td select { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 5px 6px; border-radius: 6px; font-size: 12.5px; width: 100%; }
.matrix .grp td { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 16px; background: none !important; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.field-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.field-row input[type="text"], .field-row select { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.check-list label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 28px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 10px; }

.field-row label.chip, .field-row .chips label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.chip input { margin: 0; }


/* ══ Composants unifiés (toutes les pages) ══ */
input[type="text"], input[type="number"], input[type="url"], input[type="password"], input[type="search"], input[type="email"],
input[type="datetime-local"], input[type="time"], input[type="date"], select, textarea {
  background: var(--inset); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; line-height: 1.4; max-width: 100%;
}
input::placeholder, textarea::placeholder { color: #666b73; }
input[type="datetime-local"], input[type="time"], input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; min-height: 44px; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa1ab' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select option { background: #1e1f22; color: var(--text); }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; margin: 0;
  border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--inset);
  display: inline-grid; place-content: center; vertical-align: middle; cursor: pointer;
  transition: background .12s, border-color .12s;
}
input[type="checkbox"]:hover { border-color: #5d6270; }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: ''; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
input[type="radio"] { accent-color: var(--accent); }
.form-grid .switch-row input[type="checkbox"], .switch-row input[type="checkbox"] { width: 18px; height: 18px; }

/* boutons : primaire = accent ; danger = teinté ; ok = vert doux ; ghost = contour */
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: var(--accent-hover); }
.btn-ok { background: rgba(59,165,93,.16); color: #6fd08d; border-color: rgba(59,165,93,.35); }
.btn-ok:hover { background: rgba(59,165,93,.28); }
.btn-danger { background: rgba(237,66,69,.14); color: #ff8a8c; border-color: rgba(237,66,69,.38); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-delete { border-color: rgba(237,66,69,.4); color: #ff8a8c; border-radius: 8px; }
.btn-delete:hover { background: rgba(237,66,69,.16); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.full-width.btn, .btn.full-width { width: 100%; justify-content: center; margin-top: 4px; }
button, .btn { font-family: inherit; }

/* titres de page et de carte */
.container h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.container > .hint:first-of-type { max-width: 720px; line-height: 1.55; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card h2 + .hint { margin-top: -2px; }
.card .hint { margin-bottom: 14px; }
.cat-header h2 { text-transform: none; letter-spacing: 0; font-size: 15.5px; color: var(--text-strong); border: none; padding: 0; margin: 0; }

/* badges */
.badge { padding: 2px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.badge-open { background: rgba(59,165,93,.12); color: #6fd08d; border-color: rgba(59,165,93,.28); }
.badge-claimed { background: var(--accent-soft); color: #aab3ff; border-color: rgba(139,92,246,.35); }
.badge-none { background: rgba(148,155,164,.08); color: #98a0aa; border-color: rgba(148,155,164,.22); }

/* liste de commandes */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
.cmd-row { padding: 9px 8px; border-radius: 8px; }
.cmd-row:hover { background: var(--surface-2); padding-left: 12px; }
.cmd-row code { background: var(--inset); color: #b9c0ff; }
.cmd-desc { color: var(--muted); }
.cat-card:hover { border-color: var(--border-strong); }

/* listes de tags, tables */
.tag-list li { background: var(--surface-2); border-color: var(--border); }
table { border-radius: 8px; }
tr:last-child td { border-bottom: none; }
code { background: var(--inset); color: #c3c8d2; }

.inline-form select, .inline-form input[type="text"], .inline-form input[type="number"] { padding: 8px 11px; }
.form-grid label { color: var(--muted); font-size: 12.5px; }
.form-grid .switch-row { color: var(--text) !important; }
.hint { color: var(--muted); }

.page-head-icon:empty { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 7px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }
.form-grid { align-items: end; }
.form-grid > .full-width { align-self: stretch; }

.daily { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 14px; padding-top: 6px; }
.daily > div { flex: 1 1 0; max-width: 34px; min-width: 4px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .9; }

.form-grid > div > span:first-child, .an-field > span:first-child, .gw-field > span:first-child { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
input[type="color"] { background: var(--inset); border: 1px solid var(--border-strong); border-radius: 8px; padding: 3px; height: 38px; width: 64px; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }

/* Graphiques SVG (src/charts.js) */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.chart .ax { fill: #7d838d; font-size: 11px; font-family: inherit; }
.chart .col:hover rect:first-child { fill: rgba(255,255,255,0.05); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.subtabs { display: flex; gap: 6px; margin: 4px 0 18px; flex-wrap: wrap; }
.subtabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.subtabs a:hover { color: var(--text-strong); text-decoration: none; }
.subtabs a.active { background: var(--accent-soft); border-color: var(--accent); color: #c3c9ff; }

/* ══ Page Activité : cartes, graphiques et animations ══ */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growx { from { width: 0; } to { width: var(--w, 100%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scalex { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,165,93,.55); } 70% { box-shadow: 0 0 0 7px rgba(59,165,93,0); } 100% { box-shadow: 0 0 0 0 rgba(59,165,93,0); } }
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal { opacity: 0; animation: rise .65s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 65ms); }
.card.reveal, .ac-kpi.reveal { transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.card.reveal:hover { border-color: var(--border-strong); }

/* graphiques */
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .85s var(--ease) both; animation-delay: calc(350ms + var(--i, 0) * 20ms); transition: filter .15s; }
.chart .col:hover .bar { filter: brightness(1.25); }
.chart .zero { stroke: rgba(255,255,255,.22); stroke-dasharray: 3 4; }
.area-line, .spark-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease) .35s forwards; }
.spark-line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.area-fill, .spark-area { opacity: 0; animation: fadein 1s ease 1s forwards; }
.spark-flat { stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 4 5; }
.chart .dot { opacity: 0; transition: opacity .15s, r .15s; }
.chart .pt:hover .dot { opacity: 1; r: 5; }

/* héros « membres » */
.ac-hero { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: center; background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(139,92,246,.03) 55%), var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 22px 26px; margin-bottom: 14px; position: relative; overflow: hidden; }
.ac-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 4.5s linear 1.2s 2; pointer-events: none; }
.ac-hero-num span { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.ac-hero-num b { display: block; font-size: 46px; line-height: 1.1; color: var(--text-strong); font-weight: 700; letter-spacing: -.02em; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.ac-hero-num em, .delta { font-style: normal; font-size: 12.5px; font-weight: 600; }
.net.pos { color: #6fd08d; } .net.neg { color: #ff8a8c; }
.ac-hero-chart { min-width: 0; }
@media (max-width: 820px) { .ac-hero { grid-template-columns: 1fr; } }

/* chiffres clés */
.ac-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 14px; }
.ac-kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px 0; display: flex; flex-direction: column; }
.ac-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c, var(--accent)); opacity: .85; transform-origin: left; animation: scalex 1s var(--ease) both; animation-delay: .4s; }
.ac-kpi:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.ac-kpi .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ac-kpi b { font-size: 28px; color: var(--text-strong); font-weight: 700; line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.delta.good { color: #6fd08d; } .delta.bad { color: #ff8a8c; } .delta.flat { color: var(--muted); }
.delta small { font-weight: 400; color: var(--muted); }
.spark-wrap { margin: 8px -18px 0; height: 46px; }
.spark { width: 100%; height: 46px; display: block; }

/* points en direct */
.live { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #6fd08d; background: rgba(59,165,93,.12); border: 1px solid rgba(59,165,93,.3); vertical-align: middle; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }

.ac-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ac-3 { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 14px; }
@media (max-width: 1150px) { .ac-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .ac-2, .ac-3 { grid-template-columns: 1fr; } }
.sub { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* jours de la semaine */
.wd { display: flex; gap: 8px; align-items: flex-end; height: 150px; }
.wd-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.wd-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: rgba(255,255,255,.03); border-radius: 6px; overflow: hidden; }
.wd-bar i { display: block; width: 100%; background: var(--accent); border-radius: 6px 6px 0 0; opacity: .55; transform-origin: bottom; animation: grow .85s var(--ease) both; animation-delay: calc(500ms + var(--i, 0) * 60ms); min-height: 2px; }
.wd-col.best .wd-bar i { opacity: 1; box-shadow: 0 0 18px rgba(139,92,246,.55); }
.wd-col span { font-size: 11.5px; color: var(--muted); } .wd-col.best span { color: var(--text-strong); font-weight: 700; }

/* classements */
.ac-rank { list-style: none; margin: 0; padding: 0; }
.ac-rank li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--border); opacity: 0; animation: slidein .5s var(--ease) forwards; animation-delay: calc(500ms + var(--i, 0) * 70ms); border-radius: 8px; transition: background .15s; }
.ac-rank li:hover { background: var(--surface-2); }
.ac-rank li:last-child { border-bottom: none; }
.ac-rank img { width: 30px; height: 30px; border-radius: 50%; }
.ac-rank .who { flex: 1; min-width: 0; } .ac-rank .who a { color: var(--text-strong); font-weight: 600; }
.ac-rank .n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.ac-rank .pos { width: 22px; text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.ac-rank .medal { border-radius: 50%; height: 22px; line-height: 22px; color: #16171a; font-size: 12px; }
.ac-rank .m1 { background: linear-gradient(135deg, #f5d36b, #d9a441); } .ac-rank .m2 { background: linear-gradient(135deg, #dfe3ea, #9aa1ad); } .ac-rank .m3 { background: linear-gradient(135deg, #e6a877, #b4713f); }
.ac-rank .bar { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.ac-rank .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #8f9bff); animation: growx .9s var(--ease) forwards; animation-delay: calc(650ms + var(--i, 0) * 70ms); }
.ac-rank .bar.v i { background: linear-gradient(90deg, #3ba5a0, #6fd0cb); }
.ac-who { display: flex; align-items: center; gap: 9px; color: inherit; } .ac-who img { width: 26px; height: 26px; border-radius: 50%; }

/* puces / onglets : transitions */
.subtabs a, .chip { transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease); }
.subtabs a:hover, a.chip:hover { transform: translateY(-1px); text-decoration: none; }

/* mouvement réduit : tout est visible tout de suite */
@media (prefers-reduced-motion: reduce) {
  .reveal, .ac-rank li { opacity: 1 !important; }
  .ac-rank .bar i { width: var(--w, 100%) !important; }
  .area-line, .spark-line { stroke-dashoffset: 0 !important; }
  .area-fill, .spark-area { opacity: 1 !important; }
}

/* ══ Journaux du serveur ══ */
.lg-cat { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--cc, #8b5cf6) 18%, transparent); color: var(--cc, #aab3ff); border: 1px solid color-mix(in srgb, var(--cc, #8b5cf6) 45%, transparent); white-space: nowrap; }
[data-cat="messages"] { --cc: #f39c12; } [data-cat="membres"] { --cc: #2ecc71; } [data-cat="vocal"] { --cc: #3ba5a0; } [data-cat="moderation"] { --cc: #e74c3c; }
[data-cat="salons"] { --cc: #7f8cff; } [data-cat="roles"] { --cc: #b07fd6; } [data-cat="serveur"] { --cc: #1abc9c; } [data-cat="actions"] { --cc: #e67e22; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); transition: all .18s; }
.lg-chip b { color: var(--text-strong); font-variant-numeric: tabular-nums; } .lg-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cc, #666); }
.lg-chip:hover { text-decoration: none; color: var(--text-strong); transform: translateY(-1px); } .lg-chip.on { color: var(--text-strong); border-color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); }
.lg-table td { vertical-align: top; } .lg-time { white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.lg-sum { word-break: break-word; } .lg-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.lg-detail td { background: rgba(0,0,0,.18); padding: 12px 16px; } .lg-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.lg-dl dt { color: var(--muted); } .lg-dl dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@keyframes lgflash { from { background: rgba(139,92,246,.28); } to { background: transparent; } }
.lg-new { animation: lgflash 2.4s ease-out; }
#liveBtn.on { border-color: var(--ok); color: #6fd08d; }
.lg-msg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .lg-msg-head img { width: 34px; height: 34px; border-radius: 50%; }
.lg-badges { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; } .lg-badges a:hover { text-decoration: none; filter: brightness(1.2); }
.lg-body { background: var(--inset); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; }
.lg-msg.gone { border-color: rgba(237,66,69,.3); } .lg-files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lg-hist { margin: 10px 0 0; padding-left: 18px; } .lg-hist li { margin-bottom: 10px; } .lg-hist div { background: var(--inset); border-radius: 6px; padding: 6px 10px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; } .lg-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.lg-grid .switch-row { flex-direction: row; align-items: flex-start; color: var(--text); } @media (max-width: 800px) { .lg-grid { grid-template-columns: 1fr; } }
.lg-cat-block { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--surface-2); } .lg-cat-block[open] { background: transparent; }
.lg-cat-block summary { cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 12px; list-style: none; } .lg-cat-block summary::-webkit-details-marker { display: none; }
.lg-cat-block summary small { color: var(--muted); } .lg-cat-block summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; } .lg-cat-block[open] summary::after { transform: rotate(180deg); }
.lg-cat-head { padding: 0 14px 10px; } .lg-cat-head label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); max-width: 420px; }
.lg-routes { font-size: 13px; } .lg-routes td, .lg-routes th { padding: 6px 10px; } .lg-routes select { width: 100%; min-width: 130px; } .lg-routes input[type=color] { width: 40px; height: 28px; padding: 1px; }

/* ══════════════ Recruit Panel — composants propres ══════════════ */

/* Page de connexion */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; text-align: center; padding: 40px 32px; }
.login-card .sb-logo { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 14px; }
.login-card .sb-logo .ic { width: 28px; height: 28px; }
.login-card h1 { font-size: 20px; margin: 0 0 6px; color: var(--text-strong); }
.login-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }

/* Sélection de serveur */
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.guild-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; text-align: center; transition: transform .15s var(--ease), border-color .15s; }
.guild-card:hover { transform: translateY(-2px); border-color: var(--border-strong); text-decoration: none; }
.guild-card img, .guild-card .sb-avatar--fb { width: 56px; height: 56px; border-radius: 14px; }
.guild-card strong { color: var(--text-strong); font-size: 14.5px; }

/* Cartes statistiques */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 18px 20px; }
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.02em; }
.stat-card.accent .stat-value { color: #9ba6ff; }
.stat-card.ok .stat-value { color: #6fd08d; }
.stat-card.bad .stat-value { color: #ff8a8c; }
.stat-card.warn .stat-value { color: #f1c40f; }
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card canvas { max-height: 260px; }

/* Kanban des candidatures */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 200px; display: flex; flex-direction: column; }
.kanban-col-head { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: var(--text-strong); }
.kanban-col-head .count { background: var(--surface-2); border-radius: 20px; padding: 1px 9px; font-size: 11.5px; color: var(--muted); }
.kanban-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 65vh; }
.kanban-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; transition: border-color .15s, transform .15s; }
.kanban-card:hover { border-color: var(--border-strong); transform: translateY(-1px); text-decoration: none; display: block; color: var(--text); }
.kanban-card strong { display: block; color: var(--text-strong); margin-bottom: 3px; }
.kanban-card .kc-meta { color: var(--muted); font-size: 11.5px; }

/* Aperçu d'embed façon Discord */
.dc-embed { background: #2b2d31; border-left: 4px solid #8b5cf6; border-radius: 4px; padding: 10px 14px; max-width: 480px; font-size: 13.5px; color: #dbdee1; position: relative; }
.dc-embed-title { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 14.5px; }
.dc-embed-desc { line-height: 1.4; }
.dc-embed-footer { margin-top: 8px; font-size: 11.5px; color: #949ba4; }
.dc-embed-image { display: block; margin-top: 8px; max-width: 100%; border-radius: 4px; }
.dc-embed-thumb { float: right; width: 74px; height: 74px; border-radius: 4px; object-fit: cover; margin-left: 10px; }
.embed-editor-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 950px) { .embed-editor-grid { grid-template-columns: 1fr; } }
.embed-preview-box { position: sticky; top: 80px; background: #313338; padding: 20px; border-radius: var(--radius); }
.embed-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.embed-tabs a { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.embed-tabs a.active { background: var(--accent-soft); color: #c3c9ff; border-color: transparent; }
.embed-tabs a:hover { text-decoration: none; color: var(--text-strong); }

/* Cloche de notifications */
.bell-btn { position: relative; background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.bell-btn:hover { background: var(--surface-2); color: var(--text-strong); }
.bell-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid var(--bg); }
.notif-panel { position: absolute; top: 46px; right: 20px; width: 320px; max-height: 400px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(0,0,0,.4); z-index: 60; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.notif-item:last-child { border-bottom: none; }
.notif-item .notif-time { color: var(--muted); font-size: 11px; margin-top: 3px; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* Candidature — fiche détaillée */
.cand-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 950px) { .cand-grid { grid-template-columns: 1fr; } }
.answer-block { margin-bottom: 14px; }
.answer-block .q { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.answer-block .a { white-space: pre-wrap; word-break: break-word; }
.history-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.history-item:last-child { border-bottom: none; }
.history-item .h-time { color: var(--muted); white-space: nowrap; }
.note-item { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.note-item .n-meta { color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* Toggle / switch simple pour les automatisations */
.rule-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.rule-row:last-child { border-bottom: none; }
.rule-row .rule-name { font-weight: 600; color: var(--text-strong); flex: 1; min-width: 0; }
.rule-row .rule-desc { color: var(--muted); font-size: 12px; }

/* ══════════════ Identité RecruitBot — accents néon (usage ciblé uniquement) ══════════════ */
.glow-text { color: var(--neon); text-shadow: 0 0 18px var(--neon-glow); }
.btn-glow { background: var(--accent); box-shadow: 0 0 0 1px rgba(185,139,255,.25), 0 4px 24px -4px var(--neon-glow); }
.btn-glow:hover { background: var(--accent-hover); box-shadow: 0 0 0 1px rgba(185,139,255,.4), 0 6px 30px -2px var(--neon-glow); }
.sb-link.active { position: relative; }
.sb-link.active::before { content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 10px var(--neon-glow); }
.sb-logo { box-shadow: 0 0 22px -4px var(--neon-glow); overflow: hidden; }
.sb-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sb-logo:has(img) { background: transparent; }
