/* Jeeves Dashboard — thème sombre Discord-like */
:root {
  --bg: #1e1f22;
  --bg-card: #2b2d31;
  --bg-input: #1e1f22;
  --border: #3f4147;
  --text: #dbdee1;
  --text-muted: #949ba4;
  --primary: #5865f2;
  --primary-hover: #4752c4;
  --green: #23a55a;
  --red: #f23f43;
  --gold: #f0b232;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.brand { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { color: var(--text); }
.nav-premium { color: var(--gold) !important; font-weight: 600; }
.nav-user { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.footer {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border); background: transparent; }
.btn-ghost:hover { background: var(--bg-card); }
.btn-premium { background: var(--gold); color: #1e1f22; font-weight: 700; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

/* Flash */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-left: 4px solid var(--green);
}
.flash-error { border-left-color: var(--red); }
.flash-info { border-left-color: var(--primary); }

/* Hero / landing */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.lead { color: var(--text-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

.features-grid, .module-grid, .guild-grid, .pricing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.features-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.module-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guild-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 800px; margin: 2rem auto; }

/* Guilds */
.guild-card { text-align: center; }
.guild-card-nobot { opacity: 0.65; }
.guild-icon { width: 64px; height: 64px; border-radius: 50%; }
.guild-icon-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 1.5rem; font-weight: 700;
}

.guild-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.guild-header h1 { margin: 0; }
.header-action { margin-left: auto; }

/* Tabs */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem; margin-bottom: 1rem;
}
.tabs a {
  padding: 0.4rem 0.8rem; border-radius: 6px;
  color: var(--text); background: var(--bg-card);
}
.tabs a:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* Modules */
.module-card p { color: var(--text-muted); min-height: 3em; }
.module-enabled { border-color: var(--green); }
.module-footer { display: flex; justify-content: space-between; align-items: center; }

/* Badges */
.badge {
  display: inline-block; padding: 0.15rem 0.5rem;
  border-radius: 999px; font-size: 0.8rem;
  background: var(--bg-input); border: 1px solid var(--border);
}
.badge-on { color: var(--green); border-color: var(--green); }
.badge-off { color: var(--text-muted); }
.badge-premium { color: var(--gold); border-color: var(--gold); }

/* Formulaires */
.form-card { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.form-card label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.form-card .checkbox-label { flex-direction: row; align-items: center; gap: 0.5rem; }
.form-card select, .form-card input[type="text"], .form-card input[type="number"], .form-card textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-card small { font-weight: 400; }
.form-card button { align-self: flex-start; }

section { margin-bottom: 2.5rem; }
.muted { color: var(--text-muted); }

/* Stats */
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td {
  text-align: left; padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.stats-table th { color: var(--text-muted); font-weight: 600; }

/* Tokens API (page Connecter Claude) */
.token-reveal { border-color: var(--gold); margin-bottom: 1.5rem; }
.token-value {
  display: block;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  word-break: break-all;
  user-select: all;
}
pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  overflow-x: auto;
}

/* Pricing */
.pricing-card { text-align: center; }
.pricing-premium { border-color: var(--gold); }
.price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }
.feature-list { list-style: none; padding: 0; text-align: left; }
.feature-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
