/* ==========================================================================
   1. VARIABLES & RESET GLOBAL
   ========================================================================== */
:root {
  /* Nuances de fond et surfaces */
  --bg-main: #070709;
  --bg-card: #111217;
  --bg-card-hover: #161821;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --bg-subtle-hover: rgba(255, 255, 255, 0.06);

  /* Bordures */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-active: rgba(167, 139, 250, 0.4);

  /* Couleurs de texte */
  --text-main: #ffffff;
  --text-muted: #8f929b;
  --text-dim: #636674;

  /* Accentuation Violette */
  --accent-purple: #8b5cf6;
  --accent-purple-light: #c084fc;
  --accent-purple-hover: #7c3aed;
  --accent-glow: rgba(138, 75, 255, 0.18);

  /* Couleurs de Statut */
  --status-green: #22c55e;
  --status-green-bg: rgba(34, 197, 94, 0.1);
  --status-yellow: #eab308;
  --status-yellow-bg: rgba(234, 179, 8, 0.1);
  --status-discord: #5865f2;

  /* Polices */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Halo lumineux en arrière-plan */
.glow-bg {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   2. TYPOGRAPHIE COMMUNE & CONTENEURS
   ========================================================================== */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #818cf8 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-subtle-hover);
  padding: 2px 7px;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 0.88em;
}

/* ==========================================================================
   3. BARRE DE NAVIGATION (NAVBAR)
   ========================================================================== */
.navbar-wrapper {
  position: relative;
  z-index: 10;
  padding: 20px 40px;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  gap: 36px;
}

.nav-right {
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-hover);
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.highlight {
  color: var(--accent-purple-light);
}

.nav-sublink {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-sublink:hover {
  color: var(--text-main);
}

.custom-nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.nav-icon-logo:hover {
  transform: scale(1.1);
  border-color: var(--accent-purple-light);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
}

.user-pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.user-pill-name {
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   4. BOUTONS & PILLS
   ========================================================================== */
.btn-pill-white {
  background: #ffffff;
  color: #070709;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-pill-white:hover {
  background: #f1f1f5;
  transform: translateY(-1px);
}

.btn-pill-dark {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-pill-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-pill-outline {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 9999px;
  transition: border-color 0.2s ease;
}

.btn-pill-outline:hover {
  border-color: var(--border-hover);
}

.discord-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   5. PAGE D'ACCUEIL (HERO SECTION & APERÇU DISCORD)
   ========================================================================== */
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  margin-bottom: 28px;
}

.badge-tag {
  background: #ffffff;
  color: #070709;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-text {
  color: #c9cdd4;
}

.badge-arrow {
  color: var(--accent-purple);
}

.hero-title {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-description {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 34px;
}

.cta-group {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.custom-bot-btn-wrapper {
  margin-bottom: 28px;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
}

.highlight-count {
  color: var(--accent-purple-light);
  font-weight: 700;
}

.bullet {
  color: #3b3d45;
}

.topgg-link {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid #3b3d45;
}

/* Carte de prévisualisation Discord */
.discord-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.discord-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.channel-name {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

.server-stat {
  color: var(--status-green);
  font-size: 12px;
  font-weight: 700;
}

.discord-chat-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.discord-message {
  display: flex;
  gap: 14px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-matheo {
  background: #334155;
  color: #fff;
}

.bot-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.message-body {
  flex-grow: 1;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.username {
  font-weight: 700;
  font-size: 14px;
}

.bot-badge {
  background: var(--status-discord);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
}

.timestamp {
  color: var(--text-dim);
  font-size: 11px;
}

.command-bubble {
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.slash {
  color: #a78bfa;
  font-weight: 600;
}

.cmd-args {
  color: var(--text-muted);
}

.discord-embed {
  background: #18191f;
  border-left: 4px solid var(--status-discord);
  border-radius: 4px;
  padding: 14px;
  margin-top: 6px;
  max-width: 320px;
}

.embed-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.embed-sub {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 12px;
}

.embed-btn {
  background: var(--status-green);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.progress-bar {
  height: 3px;
  flex: 1;
  background: var(--border-subtle);
  border-radius: 2px;
}

.progress-bar.active {
  background: #a78bfa;
}

/* ==========================================================================
   6. PAGE DES COMMANDES (DOCS & FILTRES)
   ========================================================================== */
.docs-hero {
  text-align: center;
  margin: 40px auto 48px;
  max-width: 900px;
  padding: 0 20px;
}

.docs-tag {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.docs-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.docs-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 24px;
}

.docs-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pill-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 9999px;
  color: #c9cdd4;
}

.pill-badge strong {
  color: var(--text-main);
}

.text-muted-badge {
  color: #717482;
}

.purple {
  color: #a78bfa;
  font-weight: 700;
}

.docs-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.docs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: #a78bfa;
}

.search-shortcut {
  position: absolute;
  right: 12px;
  background: var(--bg-subtle-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-count {
  font-size: 12px;
  color: #555866;
  font-weight: 600;
}

.cat-item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.cat-item.active {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.cat-item.active .cat-count {
  color: #a78bfa;
}

.category-block {
  margin-bottom: 50px;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-header-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.cat-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.header-count {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 700;
}

.commands-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.command-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 20px;
}

.cmd-pill {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-block;
}

.cmd-desc {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 10px;
  line-height: 1.5;
}

.cmd-emoji {
  margin-right: 4px;
}

.cmd-syntax code {
  background: var(--bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #9ca3af;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
}

.subcommands-tree {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.sub-item code {
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent-purple-light);
  border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 12px;
  padding: 3px 8px;
}

/* ==========================================================================
   7. DASHBOARD : SÉLECTION DES SERVEURS & GESTION
   ========================================================================== */
.dashboard-container {
  max-width: 1200px;
  margin: 40px auto 100px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.dash-hero {
  text-align: center;
  margin-bottom: 50px;
}

.dash-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}

.dash-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.servers-section {
  margin-bottom: 40px;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #717482;
  margin-bottom: 20px;
}

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guild-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guild-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.guild-card-invite {
  background: rgba(17, 18, 23, 0.6);
  border-style: dashed;
}

.guild-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guild-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
}

.guild-icon-fallback {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #20222a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
  font-size: 16px;
}

.icon-dimmed {
  opacity: 0.6;
}

.guild-meta {
  overflow: hidden;
}

.guild-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.guild-badge {
  font-size: 11px;
  font-weight: 600;
}

.badge-active {
  color: var(--status-green);
}

.badge-missing {
  color: var(--text-muted);
}

.btn-guild-manage {
  background: var(--accent-purple);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-guild-manage:hover {
  background: var(--accent-purple-hover);
}

.btn-guild-invite {
  background: #1e2029;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-guild-invite:hover {
  background: #282b37;
  border-color: var(--border-hover);
}

/* Pas de serveurs */
.no-guilds-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.no-guilds-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.no-guilds-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.no-guilds-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.no-guilds-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Boîte générique (carte de gestion profil/serveur) */
.card {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #a78bfa;
  object-fit: cover;
}

.separator {
  border: 0;
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

.status-box {
  padding: 16px;
  border-radius: 8px;
  margin: 15px 0;
}

.status-success {
  background: var(--status-green-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-warning {
  background: var(--status-yellow-bg);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.info-box {
  background: #090a0d;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-box ul {
  padding-left: 20px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .navbar-wrapper {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
    gap: 40px;
  }

  .hero-title {
    font-size: 40px;
  }

  .docs-container {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .docs-title {
    font-size: 38px;
  }

  .dashboard-container {
    padding: 0 20px;
  }

  .dash-title {
    font-size: 34px;
  }
}

/* ==========================================================================
   CURSEUR PERSONNALISÉ
   ========================================================================== */

/* Cache le curseur natif sur PC */
@media (pointer: fine) {
  body, a, button, input, .cat-item, .guild-card {
    cursor: none !important;
  }
}

/* Le point central */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #c084fc;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
  transition: opacity 0.2s ease, transform 0.1s ease;
}

/* L'anneau fluide extérieur */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

/* Effet au survol des liens et boutons */
.cursor-ring.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: #c084fc;
  background-color: rgba(167, 139, 250, 0.12);
}

.cursor-dot.cursor-hover {
  transform: translate(-50%, -50%) scale(1.4);
  background-color: #ffffff;
}

/* Cache le curseur s'il sort de la fenêtre */
.cursor-hidden {
  opacity: 0 !important;
}

/* Désactivation totale sur les écrans tactiles */
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   ANNUAIRE & PUB SERVEUR (NEXORA STYLE)
   ========================================================================== */

.btn-pill-purple {
  background: #8b5cf6;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, background 0.2s;
}

.btn-pill-purple:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn-pill-boost {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
  transition: transform 0.15s;
}

.btn-pill-boost:hover {
  transform: translateY(-1px);
}

/* Statistiques globales */
.pub-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #717482;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Barre de tags & Filtres */
.pub-tags-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-pill {
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f929b;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-pill.active {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
}

/* Grille de l'annuaire */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.directory-card {
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Carte avec Flamme de Boost */
.card-boosted {
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.boost-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 18, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  pointer-events: none;
}

.flame-icon {
  font-size: 13px;
}

.card-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-icon, .card-icon-fallback {
  position: absolute;
  bottom: -22px;
  left: 20px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 3px solid #111217;
  object-fit: cover;
}

.card-icon-fallback {
  background: #20222a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.card-content {
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.card-counters {
  font-size: 12px;
  color: #8f929b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.online-indicator strong {
  color: #22c55e;
}

.dot-sep {
  color: #3b3d45;
}

.cat-badge-small {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: #c084fc;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-item {
  background: #181920;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-join {
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.btn-join:hover {
  background: #20222c;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   MODALES (POPUPS AJOUT & BOOST)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #8f929b;
  font-size: 18px;
  cursor: pointer;
}

.modal-sub {
  color: #8f929b;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.account-pill-modal {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.account-pill-modal.warning {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
}

.input-with-icon input {
  padding-left: 36px !important;
}

.form-group input, .select-input, .form-group textarea {
  width: 100%;
  background: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .select-input:focus, .form-group textarea:focus {
  border-color: #a78bfa;
}

.form-row {
  display: flex;
  gap: 14px;
}

.btn-submit-modal {
  width: 100%;
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-submit-modal:hover:not(:disabled) {
  background: #7c3aed;
}

.btn-submit-modal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-footer-note {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

.boost-pricing-card {
  background: #181920;
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.pricing-title {
  font-weight: 700;
  color: #c084fc;
  font-size: 14px;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 12px;
  color: #8f929b;
}

.form-error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
}

/* ==========================================================================
   NOTIFICATIONS TOAST (HTML / CSS)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.toast-show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-body {
  flex-grow: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
}

.toast-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #fff;
}

/* Variantes */
.toast-success {
  border-color: rgba(34, 197, 94, 0.35);
}
.toast-success .toast-title {
  color: #4ade80;
}

.toast-boost {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.2);
}
.toast-boost .toast-title {
  color: #c084fc;
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
}
.toast-error .toast-title {
  color: #f87171;
}

/* Barre de progression */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: #8b5cf6;
  animation: toastTimer linear forwards;
}

.toast-success .toast-progress-bar {
  background: #22c55e;
}
.toast-error .toast-progress-bar {
  background: #ef4444;
}

@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0%; }
}

.mod-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 18, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 8px;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.mod-delete-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
  transform: scale(1.08);
}

/* ==========================================================================
   MODALE DE CONFIRMATION DE SUPPRESSION
   ========================================================================== */
.confirm-modal-box {
  background: #111217;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  text-align: center;
  animation: modalFadeIn 0.2s ease-out;
}

.confirm-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.confirm-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.confirm-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 22px;
}

.confirm-desc strong {
  color: #f87171;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-confirm-cancel {
  flex: 1;
  background: #1e2029;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm-cancel:hover {
  background: #282b37;
  color: #fff;
}

.btn-confirm-delete {
  flex: 1;
  background: #ef4444;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm-delete:hover {
  background: #dc2626;
}

/* ==========================================================================
   PAGE PREMIUM (Cartes tarifaires & éléments)
   ========================================================================== */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .premium-grid {
    grid-template-columns: 1fr;
  }
}

.premium-card {
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.premium-card.featured {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #181512 0%, #111217 100%);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.15);
  transform: scale(1.03);
}

.premium-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.card-plan {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.card-price {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.card-price span {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

.card-price-sub {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-plan-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
  min-height: 38px;
  line-height: 1.4;
}

.premium-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.premium-perks li {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-perks li strong {
  color: #fff;
}

.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1e2029;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-plan:hover {
  background: #282b37;
}

.featured-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  border: none;
}

.featured-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.premium-active-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 12px 20px;
  border-radius: 12px;
  margin: 16px auto 0;
  text-align: left;
}

.premium-active-banner .crown-icon {
  font-size: 26px;
}

.premium-active-banner strong {
  color: #fbbf24;
  font-size: 14px;
}

.premium-active-banner p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #cbd5e1;
}

/* ==========================================================================
   MODALE DE SUCCÈS PREMIUM & CANVAS CONFETTIS
   ========================================================================== */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.success-vip-window {
  background: radial-gradient(circle at top, #241a10 0%, #111217 70%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalScaleUp {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.vip-badge-glow {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  border: 2px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
  animation: crownBounce 2s infinite ease-in-out;
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.vip-success-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.vip-success-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 24px;
}

.vip-recap-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.vip-recap-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-recap-item:last-child {
  border-bottom: none;
}

.vip-recap-item span {
  color: #94a3b8;
}

.vip-recap-item strong {
  color: #fbbf24;
}

.btn-vip-continue {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-vip-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.45);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}

@media (max-width: 1150px) {
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .premium-grid {
    grid-template-columns: 1fr;
  }
}

/* Carte et bouton spécial Essai 24H */
.premium-card.trial-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, #111217 100%);
}

.btn-plan-trial {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-plan-trial:hover:not(:disabled) {
  background: #38bdf8;
  color: #000;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-plan-trial:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #64748b;
  background: #181a20;
}