﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap');

/* Styles globaux */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.section,
.version,
.features-section,
.showcase-row,
.category-section,
[id] {
  scroll-margin-top: 76px;
}

/* Barre de défilement */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: var(--small-radius);
  border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

:root {
  --background: #2a2c35;
  /* Fond sombre */
  --foreground: #f2f3f5;
  /* Texte principal */
  --card: #202225;
  /* Fond des cartes */
  --card-foreground: #f2f3f5;
  --popover: #202225;
  --popover-foreground: #f2f3f5;
  --primary: #ffffff;
  --primary-foreground: #2a2c35;
  --secondary: #2f3136;
  --secondary-foreground: #f2f3f5;
  --muted: #1e1f22;
  /* Fond des listes */
  --muted-foreground: #b5bac1;
  /* Texte secondaire */
  --text-description: #dcdee2;
  /* Texte des descriptions */
  --accent: #ffccff;
  /* Rose Nity */
  --accent-foreground: #150540;
  /* Noir du logo */
  --border: rgba(255, 255, 255, 0.08);
  /* Bordures */
  --input: rgba(255, 255, 255, 0.08);
  --ring: #949ba4;

  --border-radius: 8px;
  --small-radius: 6px;

  /* Couleurs secondaires */
  --brand-dark: #150540;
  --brand-pink: #ffccff;

  /* Largeur maximale */
  --content-max-width: 1400px;
}

/* Réinitialisation et styles de base */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  margin: 0;
  padding: 0 20px 20px 20px;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  margin-top: 0;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  display: block;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 16px;
}

h4 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* Disposition en grille */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  column-gap: 24px;
}

.historique-top-bar,
.commandes-top-bar {
  grid-column: 1;
  grid-row: 1;
}

.content {
  grid-column: 1;
  grid-row: 2;
}
/* Sommaire */
.toc {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background-color: var(--card);
  border-radius: var(--border-radius);
  padding: 20px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.toc h2 {
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 10px;
}

.toc a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: var(--foreground);
  opacity: 1;
}

.toc .date {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-left: 6px;
}

/* Défilement du sommaire */
.toc::-webkit-scrollbar {
  width: 6px;
}

.toc::-webkit-scrollbar-track {
  background: transparent;
}

.toc::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

.toc::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

.toc {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

/* Structure des cartes */
.section {
  background-color: var(--card);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--border);
}

/* Blocs de version */
.version {
  margin-bottom: 16px;
  border-radius: var(--small-radius);
  background-color: var(--muted);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
  scroll-margin-top: 92px;
}

.version:hover {
  border-color: rgba(255, 204, 255, 0.2);
}

.version-header {
  padding: 12px 18px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--small-radius) var(--small-radius) 0 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
}

.version-content {
  padding: 16px 20px;
}

.version-content ul {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.version-content li {
  margin-bottom: 6px;
  color: var(--foreground);
  font-weight: 400;
}

.version-content p.empty-version {
  font-style: italic;
  color: var(--muted-foreground);
  margin: 0;
}

.version .return-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--secondary);
  color: var(--foreground);
  padding: 6px 12px;
  border-radius: var(--small-radius);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.version .return-btn:hover {
  background-color: var(--muted);
}

/* Barre de navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: calc(100% + 40px);
  max-width: none;
  margin: 0 -20px 32px -20px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  border-radius: 0;
  box-sizing: border-box;
  height: 76px;
  min-height: 76px;
  border: none;

  /* État transparent */
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;

  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  /* Effet de flou */
  background-color: rgba(42, 44, 53, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Effet verre liquide */
@supports (backdrop-filter: url(#liquid-glass)) or (-webkit-backdrop-filter: url(#liquid-glass)) {
  .navbar.scrolled {
    background-color: rgba(42, 44, 53, 0.45);
    
    backdrop-filter: url(#liquid-glass) blur(8px) saturate(180%);
    -webkit-backdrop-filter: url(#liquid-glass) blur(8px) saturate(180%);
  }
}

.navbar-title {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin-right: 48px;
  letter-spacing: -0.02em;
}

.navbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--small-radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--foreground);
  background-color: var(--secondary);
}

.logo-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 12px;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nom du bot dans la barre de navigation */
.nity-text {
  color: var(--brand-pink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-block;
  white-space: nowrap;
  max-width: 120px;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  vertical-align: middle;
}

.nity-text-collapsed,
.nity-text.collapsed {
  max-width: 0 !important;
  opacity: 0 !important;
  transform: translateX(-10px) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

@view-transition {
  navigation: auto;
}

.navbar-link.discord-button {
  background-color: var(--foreground);
  color: var(--background);
  font-weight: 600;
  margin-left: auto;
  border: 1px solid transparent;
}

.navbar-link.discord-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--background);
  opacity: 1;
}

/* Page d'accueil */

.home-body {
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0 20px 20px 20px;
  min-height: 100vh;
}

.home-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--small-radius);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background-color: var(--brand-pink);
  color: var(--brand-dark);
  border: 1px solid var(--brand-pink);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--brand-pink);
  border-color: var(--brand-pink);
  color: var(--brand-dark);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
 
.btn-white {
  background-color: #ffffff !important;
  color: var(--brand-dark) !important;
  border: 1px solid #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
 
.btn-white:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--brand-dark) !important;
  opacity: 1 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.btn-white:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--secondary);
}

.btn-dashboard {
  background-color: #150540;
  color: #ffffff;
  border: 1px solid rgba(255, 204, 255, 0.2);
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-dashboard:hover {
  background-color: #1c0754;
  border-color: var(--brand-pink);
  box-shadow: 0 0 16px rgba(255, 204, 255, 0.25);
  opacity: 1;
}

.btn-dashboard .btn-icon {
  color: var(--brand-pink);
}

.hero-actions .btn-dashboard {
  width: 220px;
  box-sizing: border-box;
}

.btn-premium {
  background-color: var(--foreground);
  color: var(--background);
  font-weight: 600;
}

.btn-premium:hover {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Section hero */
.hero-section {
  position: relative;
  text-align: center;
  padding: 72px 24px;
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  background: radial-gradient(circle at center, rgba(21, 5, 64, 0.3) 0%, transparent 70%), var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
}

.hero-section .badge {
  background-color: var(--muted);
  border: 1px solid var(--border);
  color: var(--brand-pink);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-section h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.nity-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--foreground);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-description, #dcdee2);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Statistiques */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(255, 204, 255, 0.25);
}

.stat-icon {
  width: 42px;
  height: 42px;
  background-color: var(--muted);
  border: 1px solid var(--border);
  color: var(--brand-pink);
  border-radius: var(--small-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--foreground);
}

.stat-info p {
  margin: 0;
  color: var(--text-description, #dcdee2);
  font-size: 0.85rem;
}

/* Fonctionnalités */
.features-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.section-title h2 {
  font-size: 1.75rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--text-description, #dcdee2);
  font-size: 0.95rem;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 901px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.feature-card:hover {
  border-color: rgba(255, 204, 255, 0.25);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--foreground);
  font-weight: 600;
}

.feature-desc {
  color: var(--text-description, #dcdee2);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.feature-badge {
  background: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-pink);
  border: 1px solid var(--border);
}

/* Section Nity+ */
.premium-box-section {
  margin-bottom: 64px;
}

.premium-box {
  background: radial-gradient(circle at top right, rgba(255, 204, 255, 0.04) 0%, transparent 60%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-badge {
  background: var(--muted);
  color: var(--brand-pink);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.premium-box h2 {
  font-size: 1.75rem;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.premium-text-glow {
  color: var(--brand-pink);
}

.premium-box>p {
  max-width: 640px;
  margin: 0 auto 32px auto;
  color: var(--text-description, #dcdee2);
  font-size: 0.95rem;
}

.premium-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  text-align: left;
  margin-bottom: 36px;
}

.perk-item {
  display: flex;
  gap: 12px;
}

.perk-icon {
  color: var(--brand-pink);
  margin-top: 2px;
}

.perk-content h4 {
  font-size: 0.95rem;
  color: var(--foreground);
  margin: 0 0 4px 0;
  font-weight: 600;
}

.perk-content p {
  margin: 0;
  color: var(--text-description, #dcdee2);
  font-size: 0.85rem;
  line-height: 1.4;
}

.premium-actions {
  display: flex;
  justify-content: center;
}

/* Pied de page */
.footer-section {
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.copyright {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin: 0;
}

/* Menu de navigation */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.navbar-mobile-actions {
  display: none;
}

.navbar-profile-toggle {
  display: none;
}

.navbar-profile-menu {
  display: none;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--small-radius);
  transition: background-color 0.15s;
  width: 36px;
  height: 36px;
  position: relative;
  box-sizing: border-box;
}

.navbar-toggle:hover {
  background-color: var(--secondary);
}

.navbar-toggle .bar {
  position: absolute;
  left: 8px;
  
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.15s ease,
    top 0.25s ease;
}

.navbar-toggle .bar:nth-child(1) {
  top: 12px;
}

.navbar-toggle .bar:nth-child(2) {
  top: 17px;
}

.navbar-toggle .bar:nth-child(3) {
  top: 22px;
}

.navbar-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 17px;
}

.navbar-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.navbar-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 17px;
}

/* Styles mobiles */
@media (max-width: 900px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .historique-top-bar,
  .commandes-top-bar {
    order: 1;
    width: 100%;
  }

  .toc {
    order: 2;
    position: relative;
    margin-bottom: 24px;
    max-height: 220px;
    overflow-y: auto;
    top: 0;
  }

  .content {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section,
  .features-section,
  .showcase-row,
  .category-section,
  [id] {
    scroll-margin-top: 60px;
  }

  .version {
    scroll-margin-top: 74px;
  }

  body,
  .home-body {
    padding: 0 10px 10px 10px;
  }

  .section,
  .toc {
    padding: 20px;
  }

  .hero-section {
    padding: 48px 16px;
  }

  .hero-section h1 {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .premium-box {
    padding: 32px 16px;
  }

  .premium-box h2 {
    font-size: 1.5rem;
  }

  .premium-perks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .navbar {
    position: sticky;
    top: 0;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    max-width: none;
    border-radius: 0;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    min-height: 68px;
    box-sizing: border-box;
    box-shadow: none !important;
    
  }

  .navbar-title {
    margin-right: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 105;
  }

  .navbar-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    z-index: 105;
  }

  .navbar-profile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(42, 44, 53, 0.65) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--small-radius);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
  }

  .navbar-profile-toggle:hover,
  .navbar-profile-toggle.active {
    background-color: rgba(42, 44, 53, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--foreground) !important;
  }

  .navbar-profile-toggle svg {
    width: 18px;
    height: 18px;
  }

  .navbar-toggle {
    display: block;
    margin-left: 0;
    background-color: rgba(42, 44, 53, 0.65) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.15s ease;
    z-index: 105;
  }

  .navbar-menu,
  .navbar-profile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    max-height: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 80px 20px 32px 20px;
    margin: 0;

    background-color: #1a1b23;
    border-radius: 0;
    border: none;
    box-shadow: none;
    z-index: 99;
    overflow-y: auto;
    scrollbar-width: none;

    /* Animation du menu */
    clip-path: circle(0px at calc(100% - 34px) 31px);
    -webkit-clip-path: circle(0px at calc(100% - 34px) 31px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.45s cubic-bezier(0.32, 0.72, 0, 1),
      -webkit-clip-path 0.45s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.2s ease 0.1s,
      visibility 0.45s;
  }

  .navbar-profile-menu {
    width: 100vw !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 76px 16px 32px 16px !important;
    gap: 14px !important;
    align-items: center !important;
  }

  .navbar-menu::-webkit-scrollbar,
  .navbar-profile-menu::-webkit-scrollbar {
    display: none;
  }

  .navbar-menu.active,
  .navbar-profile-menu.active {
    clip-path: circle(150% at calc(100% - 35px) 30px);
    -webkit-clip-path: circle(150% at calc(100% - 35px) 30px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      -webkit-clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.2s ease,
      visibility 0s;
  }

  .navbar-menu > *,
  .navbar-profile-menu > * {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-menu.active > *,
  .navbar-profile-menu.active > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Menu profil mobile */
  .profile-mobile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(42, 44, 53, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    gap: 12px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
  }

  .profile-mobile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .profile-mobile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
  }

  .profile-mobile-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border);
    color: var(--foreground);
    flex-shrink: 0;
  }

  .profile-mobile-username {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-mobile-logout-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--foreground);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
  }

  .profile-mobile-logout-btn:hover {
    background-color: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
    color: #ff6b6b;
  }

  .profile-mobile-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    padding: 0 4px;
    margin-top: 4px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
  }

  .profile-mobile-servers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    max-height: calc(100dvh - 220px);
    overflow-y: auto;
    padding-right: 2px;
  }

  .profile-mobile-server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(42, 44, 53, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--small-radius);
    color: var(--foreground);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .profile-mobile-server-item:hover,
  .profile-mobile-server-item.active {
    background: rgba(42, 44, 53, 0.85);
    border-color: rgba(255, 204, 255, 0.3);
  }

  .profile-mobile-server-item.active {
    border-left: 3px solid var(--brand-pink);
  }

  .profile-mobile-server-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .profile-mobile-server-letter {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--foreground);
    flex-shrink: 0;
  }

  .profile-mobile-server-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .profile-mobile-server-check {
    color: var(--brand-pink);
    margin-left: auto;
    flex-shrink: 0;
  }

  .profile-mobile-server-all {
    margin-top: 4px;
    background: rgba(42, 44, 53, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .profile-mobile-server-all-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .navbar-profile-wrap.desktop-only {
    display: none !important;
  }

  .navbar-link {
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--small-radius);
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .navbar-link:hover,
  .navbar-link.active {
    color: var(--foreground);
    background-color: var(--secondary);
  }

  .navbar-link.discord-button {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* Page des commandes */

.category-intro {
  color: var(--muted-foreground);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.commands-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.command-description {
  margin: 0 0 16px 0;
  color: var(--text-description, #dcdee2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.command-description code {
  background: var(--secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--brand-pink);
  font-size: 0.85em;
  border: 1px solid var(--border);
}

.command-meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.command-meta-badges .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.badge-guild {
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
}

.badge-dm {
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
}

.badge-perm {
  background: rgba(255, 204, 255, 0.06);
  color: var(--brand-pink);
  border-color: rgba(255, 204, 255, 0.15) !important;
}

/* Page changelog */
.version-content p {
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.version-content strong {
  color: var(--foreground);
  font-weight: 600;
}

.version-content em {
  color: var(--muted-foreground);
  font-style: italic;
}

.version-content del {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

.version-content h4 {
  font-size: 0.95rem;
  color: var(--brand-pink);
  margin: 16px 0 8px 0;
  font-weight: 600;
}

.version-content a {
  color: var(--brand-pink);
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-pink);
  transition: opacity 0.15s ease;
}

.version-content a:hover {
  opacity: 0.85;
}

.version-content code {
  background: var(--secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--brand-pink);
  font-size: 0.85em;
  border: 1px solid var(--border);
}

.version-content ul.dash-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.version-content ol.num-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin: 8px 0;
}

.content ul li,
.content ol li,
.version-content li {
  margin-bottom: 6px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 400;
}

/* Recherche de commandes */
.search-container {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 2px rgba(255, 204, 255, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
}

/* En-tête du dashboard */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

@media (max-width: 600px) {
  .dash-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: left;
  }

  .dash-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Profil dans la navbar */
@media (max-width: 768px) {
  .navbar-profile-wrap {
    margin: 8px auto !important;
    justify-content: center;
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .navbar-user-info {
    margin: 0 !important;
    justify-content: center;
  }

  .navbar-link.logout-button {
    width: auto !important;
    text-align: center;
    margin-top: 0 !important;
  }
}

/* Sélecteur de module */
@media (min-width: 769px) {
  .module-switcher-container {
    display: none !important;
  }
}

.server-switcher-dropdown,
.module-switcher-dropdown {
  max-width: 90vw;
}

@media (max-width: 768px) {
  .dash-sidebar {
    display: none !important;
  }

  .server-switcher-container {
    display: none !important;
  }

  .module-switcher-container {
    display: block !important;
    margin-left: 0 !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .module-switcher-dropdown {
    left: 50% !important;
    transform: translateX(-50%);
    min-width: 200px;
    width: auto;
  }
}

/* Barre d'outils mobile */
.dash-mobile-toolbar {
  display: none;
}

@media (max-width: 768px) {
  .dash-mobile-toolbar {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 24px;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px) !important;
    box-sizing: border-box;
    position: sticky;
    top: 60px;
    background-color: transparent;
    padding: 14px 10px 10px 10px;
    z-index: 45;
    border: none;
    box-shadow: none;
    transition: backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  }

  .dash-mobile-toolbar.scrolled {
    background-color: rgba(42, 44, 53, 0.7) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
  }

  @supports (backdrop-filter: url(#liquid-glass)) or (-webkit-backdrop-filter: url(#liquid-glass)) {
    .dash-mobile-toolbar.scrolled {
      background-color: rgba(42, 44, 53, 0.45) !important;
      backdrop-filter: url(#liquid-glass) blur(8px) saturate(180%) !important;
      -webkit-backdrop-filter: url(#liquid-glass) blur(8px) saturate(180%) !important;
    }
  }

  .custom-select-trigger {
    background-color: rgba(42, 44, 53, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .custom-select-menu {
    background-color: #1e1f26 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  }

  .mobile-category-chip {
    background-color: rgba(42, 44, 53, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .mobile-category-chip.active {
    background-color: var(--brand-pink) !important;
    color: var(--brand-dark) !important;
    border-color: var(--brand-pink) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .dash-mobile-toolbar .btn-save-trigger {
    background-color: rgba(42, 44, 53, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .dash-mobile-toolbar .btn-save-trigger.unsaved {
    background-color: var(--brand-pink) !important;
    border-color: var(--brand-pink) !important;
    color: var(--brand-dark) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .dash-header .btn-save-trigger,
  #btn-save-global {
    display: none !important;
  }
}

/* Tableau de bord */

/* Sélecteur de serveur (navbar) */
.nav-mobile-server-selector {
  display: none;
}

@media (max-width: 768px) {
  .nav-mobile-server-selector {
    display: block;
    width: 100%;
    margin: 4px 0 8px 0;
  }

  .mobile-server-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: rgba(42, 44, 53, 0.65);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--small-radius);
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  .mobile-server-btn:hover,
  .mobile-server-btn.open {
    border-color: rgba(255, 204, 255, 0.35);
    background-color: rgba(42, 44, 53, 0.9);
  }

  .mobile-server-btn .server-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
  }

  .mobile-server-btn .server-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .mobile-server-btn .server-letter {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--muted);
    color: var(--brand-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--border);
  }

  .mobile-server-btn .server-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-server-btn .server-arrow {
    transition: transform 0.2s ease;
    color: var(--muted-foreground);
    flex-shrink: 0;
  }

  .mobile-server-btn.open .server-arrow {
    transform: rotate(180deg);
  }

  .mobile-server-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--small-radius);
    padding: 6px;
    margin-top: 6px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .mobile-server-menu.open {
    display: flex;
  }

  .mobile-server-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
  }

  .mobile-server-item:hover {
    background-color: var(--secondary);
    color: var(--foreground);
  }

  .mobile-server-item.active {
    background-color: rgba(255, 204, 255, 0.12);
    color: var(--brand-pink);
    font-weight: 600;
  }

  .mobile-server-item .server-icon,
  .mobile-server-item .server-letter {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.7rem;
  }

  .mobile-server-item-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .mobile-server-item-all:hover {
    color: var(--brand-pink);
  }
}

/* Sélecteur de serveur (sidebar) */
.sidebar-server-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.sidebar-server-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.15s ease;
  font-family: inherit;
}

.sidebar-server-btn:hover,
.sidebar-server-btn.open {
  border-color: rgba(255, 204, 255, 0.35);
  background-color: var(--secondary);
}

.sidebar-server-btn .server-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}

.sidebar-server-btn .server-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.sidebar-server-btn .server-letter {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.sidebar-server-btn .server-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  font-weight: 600;
}

.sidebar-server-btn .server-arrow {
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sidebar-server-btn.open .server-arrow {
  transform: rotate(180deg);
}

.sidebar-server-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 6px;
  z-index: 120;
  box-sizing: border-box;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.sidebar-server-menu.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: glassPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sidebar-server-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  transition: all 0.12s ease;
}

.sidebar-server-item:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.sidebar-server-item.active {
  background-color: rgba(255, 204, 255, 0.12);
  color: var(--brand-pink);
  font-weight: 600;
}

.sidebar-server-item .server-icon,
.sidebar-server-item .server-letter {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.sidebar-server-item .server-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.sidebar-server-item-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 0.775rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-server-item-all:hover {
  color: var(--brand-pink);
}

/* Bouton de sauvegarde */
.sidebar-save-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.sidebar-save-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
  border-radius: var(--small-radius) !important;
  font-family: inherit !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  margin: 4px 0 8px 0;
}

/* État enregistré */
.btn-save-trigger {
  background-color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted-foreground) !important;
  opacity: 1 !important;
  cursor: default;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* État non enregistré */
.btn-save-trigger.unsaved {
  background-color: var(--brand-pink) !important;
  border-color: var(--brand-pink) !important;
  color: var(--brand-dark) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(255, 204, 255, 0.35), 0 0 8px rgba(255, 204, 255, 0.2) !important;
  /* Pas de déplacement vertical au survol */
}

.btn-save-trigger.unsaved:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
}

.btn-save-trigger.unsaved:active {
  transform: translateY(0);
}

/* Chargement & Transition fluide */
.dash-main {
  position: relative;
  min-height: 480px;
  width: 100%;
  animation: moduleContentFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes moduleContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-main.is-transitioning {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out !important;
}

.dash-main > * {
  transition: opacity 0.15s ease-out, filter 0.15s ease-out;
}

/* Spinner de chargement */
.dash-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease 0.18s;
}

#dash-root.htmx-request .dash-loader-overlay,
.dash-main.htmx-request .dash-loader-overlay,
.htmx-request .dash-loader-overlay,
.htmx-request.dash-main .dash-loader-overlay {
  display: flex !important;
  opacity: 1;
}

#dash-root.htmx-request .dash-main > *:not(.dash-loader-overlay),
.dash-main.htmx-request > *:not(.dash-loader-overlay) {
  opacity: 0.15 !important;
  pointer-events: none !important;
  filter: blur(2px);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.dash-glass-loader {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.glass-spinner-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent !important;
  border: 3.5px solid transparent !important;
  border-top-color: var(--brand-pink) !important;
  border-right-color: #ffffff !important;
  animation: spin 0.75s linear infinite;
  box-shadow: none !important;
  filter: drop-shadow(0 0 6px var(--brand-pink));
}

.glass-loader-text {
  display: none !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bouton flottant */
.preview-corner-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 28, 0.92);
  border: 1px solid rgba(255, 204, 255, 0.28);
  color: #ffffff !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.preview-corner-btn:hover {
  background: rgba(30, 33, 42, 0.98);
  border-color: rgba(255, 204, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 204, 255, 0.25);
  color: #ffffff !important;
}

/* Module bienvenue et départ */
.code-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
  color: var(--brand-pink);
}

.discord-preview-wrap {
  margin-top: 20px;
}

.preview-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.discord-embed-card {
  background-color: #2b2d31;
  border-radius: 4px;
  padding: 12px 16px;
  max-width: 520px;
  border-left: 4px solid #5865f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.discord-embed-card.arrivee {
  border-left-color: #57f287;
}

.discord-embed-card.depart {
  border-left-color: #ed4245;
}

.discord-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.discord-avatar-mock {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.discord-avatar-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f2f3f5;
}

.discord-body {
  font-size: 0.875rem;
  color: #dbdee1;
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 8px;
}

.discord-body strong {
  font-weight: 700;
  color: #ffffff;
}

.discord-body em {
  font-style: italic;
}

.discord-body u {
  text-decoration: underline;
}

.discord-body del {
  text-decoration: line-through;
  opacity: 0.7;
}

.discord-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.discord-footer {
  font-size: 0.75rem;
  color: #949ba4;
  margin-top: 6px;
}

.variables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.variable-card {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.variable-card:hover {
  background-color: rgba(255, 204, 255, 0.06);
  border-color: var(--brand-pink);
  /* Pas de déplacement vertical au survol */
}

.var-tag {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-pink);
  margin-bottom: 4px;
}

.var-desc {
  font-size: 0.78rem;
  color: var(--text-description, #dcdee2);
  line-height: 1.35;
}

/* Formulaires */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.form-desc {
  font-size: 0.8rem;
  color: var(--text-description, #dcdee2);
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.switch-desc,
.module-desc,
.unsaved-modal-desc {
  color: var(--text-description, #dcdee2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(42, 44, 53, 0.65) !important;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--small-radius) !important;
  color: var(--foreground) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.875rem !important;
  padding: 10px 14px !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: rgba(255, 204, 255, 0.35) !important;
  background-color: rgba(42, 44, 53, 0.85) !important;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-pink) !important;
  background-color: rgba(30, 31, 38, 0.95) !important;
  box-shadow: 0 0 0 2px rgba(255, 204, 255, 0.22) !important;
}

.form-textarea {
  min-height: 95px;
  line-height: 1.5;
  resize: vertical;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.form-textarea::placeholder,
.form-input::placeholder {
  color: var(--muted-foreground) !important;
  opacity: 0.6;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23949ba4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.form-select option {
  background-color: #1e1f26;
  color: #f2f3f5;
  padding: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* Grille responsive pour l'ajout de paliers de sanctions */
.palier-builder-grid {
  display: grid;
  grid-template-columns: 120px 180px 180px minmax(160px, auto);
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .palier-builder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .palier-builder-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .palier-builder-grid button {
    width: 100% !important;
  }
}

/* Grille responsive pour l'ajout de rôles automatiques */
.autorole-builder-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 180px 1fr auto;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .autorole-builder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .autorole-builder-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .autorole-builder-grid button {
    width: 100% !important;
  }
  #new-ar-activity-fields {
    grid-template-columns: 1fr !important;
  }
}

/* Variables inline sous les messages */
.variables-inline-container {
  margin-top: 8px;
  margin-bottom: 16px;
}

.variables-inline-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.variables-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.var-inline-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 204, 255, 0.08);
  border: 1px solid rgba(255, 204, 255, 0.18);
  color: var(--brand-pink);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.var-inline-badge:hover {
  background: rgba(255, 204, 255, 0.16);
  border-color: rgba(255, 204, 255, 0.35);
  /* Pas de déplacement vertical au survol */
  box-shadow: 0 2px 6px rgba(255, 117, 187, 0.15);
}

.var-inline-badge:active {
  transform: translateY(0);
}

.var-inline-badge code {
  font-family: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

/* Touch targets améliorés pour les pills de suppression */
.exclusion-pill .remove-pill {
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted-foreground);
  transition: color 0.15s ease, background-color 0.15s ease;
  padding: 2px 6px;
  margin-left: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

.exclusion-pill .remove-pill:hover {
  color: var(--foreground);
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .exclusion-pill .remove-pill {
    min-width: 30px;
    min-height: 30px;
    font-size: 1.25rem;
    padding: 4px 6px;
  }
}

/* Suppression des fleches sur les champs numeriques */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Bouton Supprimer uniformise */
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--small-radius);
  background-color: transparent;
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.35);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.4;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-danger-outline:hover {
  background-color: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.6);
  color: #ff8585;
}

/* Apercu Discord simple message */
.discord-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background-color: #2b2d31;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  margin-top: 8px;
}

.discord-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.discord-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discord-chat-content {
  flex: 1;
  min-width: 0;
}

.discord-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.discord-chat-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.discord-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  background-color: #5865f2;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.discord-chat-time {
  font-size: 0.75rem;
  color: #949ba4;
}

.discord-chat-body {
  color: #dbdee1;
  line-height: 1.45;
  word-break: break-word;
}

.empty-exclusions-text {
  color: var(--muted-foreground);
  font-style: normal !important;
  font-size: 0.8rem;
  padding: 4px;
  display: inline-block;
  align-self: center;
}

.sublog-checkbox-card.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.sublog-checkbox-card.is-locked:hover {
  border-color: var(--border);
}

.sublog-checkbox-card.is-locked input[type="checkbox"],
.sublog-checkbox-card.is-locked .sublog-checkbox-label {
  cursor: not-allowed;
}


/* ==========================================================
   Éditeur d'historique (Réservé au propriétaire du site)
   ========================================================== */
.is-hidden {
  display: none !important;
}

.historique-top-bar {
  margin-bottom: 24px;
}

.owner-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.owner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.owner-btn-primary {
  background: var(--brand-pink, #ffccff);
  color: #121318;
}

.owner-btn-primary:hover {
  background: #ffd9ff;
  /* Pas de déplacement vertical au survol */
}

.owner-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  border-color: rgba(255, 255, 255, 0.14);
}

.owner-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 204, 255, 0.35);
}

.owner-btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border-color: rgba(255, 255, 255, 0.1);
}

.owner-btn-ghost:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.owner-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.owner-alert.is-success {
  background: rgba(87, 242, 135, 0.12);
  border: 1px solid rgba(87, 242, 135, 0.35);
  color: #8ef7ae;
}

.owner-alert.is-error {
  background: rgba(237, 66, 69, 0.14);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #ff9496;
}

.owner-panel,
.owner-inline-form {
  background: rgba(22, 24, 30, 0.92);
  border: 1px solid rgba(255, 204, 255, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-top: 14px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.owner-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.owner-panel-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
  border-bottom: none;
}

.owner-close-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.owner-close-btn:hover {
  color: #ffffff;
}

.owner-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 680px) {
  .owner-form-row {
    grid-template-columns: 1fr;
  }
}

.owner-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.owner-field label,
.owner-md-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e4e6eb;
}

.owner-field input[type="text"],
.owner-field select,
.owner-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(14, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  padding: 10px 12px;
  outline: none;
}

.owner-field textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
  resize: vertical;
}

.owner-field input[type="text"]:focus,
.owner-field select:focus,
.owner-field textarea:focus {
  border-color: var(--brand-pink, #ffccff);
}

.owner-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #d1d5db;
  margin-bottom: 14px;
  cursor: pointer;
}

.owner-md-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-md-Shortcuts {
  display: flex;
  gap: 6px;
}

.md-insert-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e6eb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
}

.md-insert-btn:hover {
  border-color: var(--brand-pink, #ffccff);
  color: #ffffff;
}

.owner-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.version-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-inline-edit-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted-foreground);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.owner-inline-edit-btn:hover {
  color: #ffffff;
  border-color: var(--brand-pink, #ffccff);
  background: rgba(255, 204, 255, 0.1);
}


.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
