body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', sans-serif;
}

a {
  text-decoration: none;
  color: #0d6e53;
}

.sidebar-header {
  position: sticky;
  top: 0;
  text-align: center;
  z-index: 101; /* supérieur au reste du sidebar */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: #0d6e53;
  color: white;
  padding-top: 1rem;
  transition: all 0.3s;
  z-index: 100;
  overflow-y: auto; /* ✅ Active le défilement vertical */
  scrollbar-width: thin; /* pour Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* couleurs scrollbar */
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-link {
  color: #dcdcdc;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.2rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: #198754;
  color: #fff;
}

.sidebar h4 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Navbar */
.navbar {
  margin-left: 250px;
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  position: fixed;
  top: 0;
  width: calc(100% - 250px);
  z-index: 99;
}

/* Contenu principal */
.content {
  margin-left: 250px;
  padding: 6rem 2rem 2rem 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {left: -250px;}
  .sidebar.active {left: 0;}
  .navbar { margin-left: 0;width: 100%; }
  .content {margin-left: 0;}
  #menu-toggle {display: inline-block;}
}

#menu-toggle {
  display: inline-block;
  z-index: 1050; /* au-dessus de tout */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #0d6e53;
}

.rotate-icon {
  transition: transform 0.3s ease;
}

/* Quand le menu est ouvert */
.nav-link[aria-expanded="true"] .rotate-icon {
  transform: rotate(180deg);
}

table.table tbody th {
    font-weight: normal;
}

/* Les en-têtes restent en gras */
table.table thead th {
    font-weight: bold;
}

.pagination {
    flex-wrap: wrap !important;
}
.pagination .page-link {
  color: #198754; /* vert Bootstrap */
  border-color: #198754;
  margin: 2px;
}

.pagination .page-link:hover {
  background-color: #198754;
  color: #fff;
}

.pagination .page-item.active .page-link {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 3px; /* rapproche label et checkbox */
  font-size: 18px;
}

/* Style du checkbox */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  margin: 0;
  accent-color: #198754; /* rend le coche vert sur navigateurs modernes */
}

/* Pour navigateurs plus anciens qui ne gèrent pas accent-color */
.form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

.small-box .icon {
    top: .7rem;
    right: 1rem;
    z-index: 0;
    opacity: 0.3;
}
.small-box-footer {
    display: block;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.1);
    text-decoration: none;
    transition: background .3s;
}
.small-box-footer:hover { background: rgba(0,0,0,0.2); }