body {
  background-color: #23272A;
  color: #FFFFFF;
  line-height: 1.6;
}

.docs-section {
  padding: 10rem 0;
  padding-left: 25px;
  padding-right: 25px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: #1A1D21;
  box-shadow: 0 0 30px rgba(254, 194, 0, 0.4);
  border-radius: 10px;
  padding: 1.5rem;
}

.sidebar-header {
  margin-bottom: 1.5rem;
}

.sidebar-header h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #1A1D21;
}

.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
}

.sidebar-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
}

/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-category {
  background: #ffffff50;
  border-radius: 8px;
  padding: 0.8rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #fec20075;
  margin-bottom: 0.5rem;
}

.category-header i {
  font-size: 1.2rem;
}

.sidebar-category ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: block;
}

.sidebar-category li {
  margin: 0.3rem 0;
  display: block;
  padding: 0;
}

.sidebar-category li:last-child {
  margin-bottom: 0; /* éviter espace après le dernier */
}

.sidebar-category a.nav-link {
  text-decoration: none;
  color: #cfcfcf;
  display: block;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  border-left: 4px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.sidebar-category a.nav-link i {
  color: #fec20075;
  font-size: 0.85rem;
}

.sidebar-category a.nav-link:hover,
.sidebar-category a.nav-link.active {
  background-color: #fec20050;
  color: #23272A;
  border-left-color: #fec20075;
}

/* Content */
.docs-content {
  background: #1A1D21;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(254, 194, 0, 0.4);
  min-height: 600px;
}

.doc-article {
  display: none;
}

.doc-article.active {
  display: block;
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.article-header h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #fec20075;
}

.article-actions .btn-copy {
  background: transparent;
  border: none;
  color: #fec20075;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.article-actions .btn-copy:hover {
  background-color: #fff1b0;
  color: #23272A;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  background: #ffffff50;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 4px 20px rgba(254, 194, 0, 0.4);
}

.step-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fec20075;
  user-select: none;
  min-width: 35px;
  text-align: center;
}

.step-content h3 {
  margin-top: 0;
  color: #fec20075;
  font-weight: 700;
  font-size: 1.2rem;
}

.doc-image-containerdocs {
  margin-top: 1rem;
  text-align: center;
}

.doc-image-containerdocs img.doc-image {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(254, 194, 0, 0.5);
}

.image-caption {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.3rem;
}

/* Permissions */
.permissions-grid {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.permission-card {
  flex: 1 1 200px;
  background: #2c2f33;
  border-radius: 8px;
  padding: 1rem;
}

.permission-card h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #fec20075;
  font-weight: 700;
}

.permission-card ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  color: #ccc;
}

.permission-card ul li {
  margin: 0.25rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border: none;
  color: #ffffff;
  background-color: #fec20075;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #d4a700;
}

/* Commandes */
.command-containerdocs {
  margin-top: 1.5rem;
}

.command-card {
  background: #2c2f33;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fec20075;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.command-name {
  font-size: 1.3rem;
}

.command-category.configuration {
  background: #fec20075;
  color: #23272A;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  user-select: none;
}

.command-description p {
  color: #ccc;
  margin: 0 0 1rem;
}

.command-section {
  margin-top: 1rem;
}

.section-title {
  font-weight: 700;
  color: #fec20075;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Options */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.option-item {
  background: #1a1d21;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.option-name {
  font-weight: 700;
  color: #fec20075;
  margin-bottom: 0.3rem;
}

.option-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.option-example code {
  background: rgba(254, 194, 0, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
}

/* Code block */
.code-block {
  background: #1a1d21;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: monospace;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  user-select: text;
}

.code-block code {
  flex-grow: 1;
  overflow-x: auto;
}

.btn-copy {
  cursor: pointer;
  background: transparent;
  border: none;
  color: #fec20075;
  font-size: 1.2rem;
  padding: 0 0.5rem;
  user-select: none;
  transition: color 0.3s ease;
}

.btn-copy:hover {
  color: #fff;
}

/* Feedback copy success */
.text-green-500 {
  color: #48bb78;
  font-weight: 700;
}

.text-red-500 {
  color: #f56565;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  
  .docs-sidebar {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
}