.bot-section {
  position: relative;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 6rem 2rem;
  overflow: hidden;
  text-align: center;
}

#particlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Derrière tout */
}

.container { position: relative; z-index: 2; max-width: 1200px; margin: auto; }

h1 { font-size: 2.7rem; margin-bottom: 1rem; text-shadow: 0 0 20px #ff8c00; }
.intro { max-width: 750px; margin: auto; color: #d8d8ff; margin-bottom: 3rem; }

/* Statut */
.bot-status { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-bottom: 2rem; }
.status-light { width: 14px; height: 14px; border-radius: 50%; background: #00ff7f; box-shadow: 0 0 12px #00ff7f; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.8;} 50%{transform:scale(1.4);opacity:1;} }

/* Stats */
.bot-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem 2rem;
  min-width: 160px;
  transition: all .3s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.15); }
.stat-card h3 { color: #ffd369; margin-bottom: .3rem; }
.stat-card p { font-size: 1.5rem; font-weight: bold; }

/* Features */
.bot-features { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-bottom: 3rem; }
.feature {
  flex: 1 1 220px;
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all .3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}
.feature:hover { transform: translateY(-6px) scale(1.03); background: rgba(255,255,255,0.15); }
.feature h3 { color: #ffd369; margin-bottom: .5rem; }

/* Badges */
.bot-badges { margin-bottom: 3rem; }
.badge {
  display: inline-block;
  background: #ff8c00;
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin: .3rem;
  font-size: .9rem;
  box-shadow: 0 0 10px #ff8c00;
  transition: transform .3s;
}
.badge:hover { transform: scale(1.1); }

/* Patch Notes */
.patch-notes {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 1rem;
  text-align: left;
  margin-bottom: 3rem;
}
.patch-notes h2 { text-align: center; color: #ffd369; margin-bottom: 1.5rem; }
.timeline { border-left: 3px solid #ffd369; padding-left: 1.2rem; }
.update { margin-bottom: 1rem; position: relative; }
.update::before { content: "★"; position: absolute; left: -1.4rem; color: #ffd369; }
.version {
  display: inline-block;
  background: #ff8c00;
  color: #fff;
  border-radius: 8px;
  padding: .2rem .6rem;
  font-weight: bold;
  margin-bottom: .3rem;
}

/* Roadmap */
.next-features {
  background: rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  margin-bottom: 3rem;
}
.next-features h2 { text-align: center; color: #ffd369; margin-bottom: 1rem; }
.next-features li { margin: .6rem 0; position: relative; padding-left: 1.3rem; }
.next-features li::before { content: "🚀"; position: absolute; left: 0; }

/* Actions */
.bot-actions { margin-top: 2rem; }
.btn {
  display: inline-block;
  background: #fff;
  color: #1e1f22;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  margin: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.btn:hover { background: #ffd369; color: #1e1f22; transform: scale(1.05); }

/* Image */
.bot-image {
  margin-top: 3rem;
  max-width: 320px;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  transition: transform .3s;
}
.bot-image:hover { transform: scale(1.05); }

/* Responsive */
@media (max-width: 900px) { .feature, .stat-card { width: 45%; } }
@media (max-width: 600px) { .feature, .stat-card { width: 90%; } }

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  .intro {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .bot-stats, .bot-features {
    flex-direction: column;
    align-items: center;
  }
  .feature, .stat-card {
    width: 100%;
  }
}

/* --- WIKI DES COMMANDES --- */
.command-wiki {
  background: rgba(20, 20, 25, 0.75);
  border: 1px solid rgba(255, 140, 0, 0.4);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  text-align: left;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.15);
}

.command-wiki h2 {
  text-align: center;
  color: #ffd369;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

/* Retrait TOTAL des ronds */
.command-category ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Catégories */
.command-category {
  margin-bottom: 2rem;
  padding: 1.4rem;
  background: rgba(30, 30, 35, 0.9);
  border-radius: 1rem;
  border-left: 4px solid #ff8c00;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.command-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.25);
}

.command-category h3 {
  color: #ffb84c;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

/* Liste */
.command-category ul li {
  margin: .5rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: #e6e6e6;
  line-height: 1.7rem;
}

/* Flèches oranges à la place des anciens ronds */
.command-category ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 2px;
  color: #ff8c00;
  font-weight: bold;
}

/* Code stylé */
code {
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.4);
  padding: .25rem .4rem;
  border-radius: 6px;
  color: #ffd369;
  font-size: 0.95rem;
  font-family: "Consolas", monospace;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

/* Conteneur global */
.command-item {
  margin-bottom: 1rem;
  background: rgba(30, 30, 35, 0.9);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 140, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.15);
}

/* Ligne cliquable */
.command-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* Groupe commande + description */
.cmd-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cmd-left code {
  font-size: 1rem;
}

.cmd-desc {
  font-size: 0.85rem;
  color: #d0d0d0;
}

/* Flèche */
.command-title .arrow {
  font-size: 1.3rem;
  transition: transform 0.25s ease;
  color: #ff8c00;
  margin-left: 1rem;
}

/* Contenu déplié */
.command-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.3s ease;
  margin-top: 0;
}

/* État ouvert */
.command-item.open .command-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.command-item.open .arrow {
  transform: rotate(180deg);
}

.patch-type {
    display:inline-block;
    margin-left:10px;
    padding:2px 8px;
    border-radius:6px;
    font-size:0.75rem;
    font-weight:600;
    color:#fff;
}

/* Couleurs selon le type */
.patch-type.site-web { background:#4CAF50; }
.patch-type.script-fivem { background:#2196F3; }
.patch-type.discord-bot { background:#7289DA; }
.patch-type.inconnu { background:#777; }

/* ================================
   Sous-commandes (subcmd)
================================ */
.subcmd {
  background: rgba(255, 140, 0, 0.05);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.subcmd:hover {
  background: rgba(255, 140, 0, 0.12);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.subcmd strong code {
  color: #ffd369;
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font-size: 0.95rem;
}

/* Paragraphes des subcmd */
.subcmd p {
  margin: 0.5rem 0 1rem 0;
  color: #d8d8ff;
  font-size: 0.95rem;
  line-height: 1.5rem;
}

/* Listes à l'intérieur des subcmd */
.subcmd ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0.5rem;
}

.subcmd ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.6rem;
  color: #e6e6e6;
  line-height: 1.5rem;
}

.subcmd ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #ff8c00;
  font-weight: bold;
}

/* Exemple de code dans liste */
.subcmd ul li code {
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.35);
  color: #ffd369;
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  font-size: 0.9rem;
}

/* Lignes de séparation */
.subcmd + hr {
  border: none;
  border-top: 1px solid rgba(255, 140, 0, 0.25);
  margin: 1.5rem 0;
}

/* Harmonisation hover global des command-items ouverts */
.command-item.open .subcmd {
  background: rgba(255, 140, 0, 0.08);
}

/* ================================
   Responsive subcmd
================================ */
@media (max-width: 600px) {
  .subcmd {
    padding: 0.8rem 1rem;
  }

  .subcmd p, .subcmd ul li {
    font-size: 0.9rem;
  }
}
