:root {
      --color-primary: #00C49F;
      --color-secondary: #FFD700;
      --color-nav-bg: #343A40;
      --color-text-light: #F8F9FA;
  }
  
  .text-secondary{color: var(--color-secondary) !important;}
  
  .btn-bento {
      text-decoration: none !important;
      box-shadow: none !important;
      color: var(--color-nav-bg) !important;
  }
  
  .btn-bento:hover {
      background-color: rgba(0, 0, 0, 0.05);
      border-radius: 50%;
  }
  
  .menu-app-launcher {
      width: 300px;
  }
  
  .app-link {
      padding: 10px 5px;
      border-radius: 5px;
  }
  .app-link:hover {
      background-color: #f8f9fa;
  }
  .app-link i {
      margin-bottom: 5px;
  }
    
  /* Ajoutez ceci au bloc <style> existant */
.bg-primary-light {
    background-color: #efe7fb; /* Violet très clair */
}
.bg-secondary-light {
    background-color: #fffaf0; /* Jaune très clair */
}
.bg-info-light {
    background-color: #e8f7ff; 
}
.bg-success-light {
    background-color: #edf7e8; 
}
.bg-danger-light {
    background-color: #fce8e8; 
}
.bg-warning-light {
    background-color: #fffbe5; 
}
/* Définir les couleurs Bootstrap par défaut pour les classes text-* */
.text-primary { color: var(--color-primary) !important; } /* Violet Acheteur */
.text-secondary { color: var(--color-secondary) !important; } /* Jaune Doré */
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }

  /* Masquer l'offcanvas sur les écrans LG et plus (taille 992px) */
  @media (min-width: 992px) { 
      .offcanvas-lg {
          display: none !important;
      }
      .sidebar-desktop {
          display: block !important;
      }
  }

  /* ------------------- SIDEBAR STATIQUE (BUREAU) ------------------- */
  .sidebar-desktop {
      width: 250px;
      background-color: var(--color-nav-bg);
      color: var(--color-text-light);
      position: fixed; 
      height: 100%; /* Défini la hauteur à 100% de l'élément parent (viewport) */
      max-height: 100vh; /* Limite la hauteur à la taille de la fenêtre */
      overflow-y: auto; /* Permet le défilement vertical si le contenu dépasse */
      padding-top: 20px;
      z-index: 1000; 
  }

  /* ------------------- STYLES TOPNAV ------------------- */
  .custom-topnav {
      margin-left: 250px; 
      z-index: 999; 
  }
  @media (max-width: 991.98px) {
      .custom-topnav {
          margin-left: 0;
      }
  }

  /* ------------------- STYLES DE CONTENU (Offcanvas/Sidebar) ------------------- */
  .sidebar-logo {
    display: block;
    text-decoration: none;
      text-align: center;
      padding: 10px 0 30px 0;
      font-size: 1.5em;
      font-weight: bold;
      color: var(--color-primary); 
  }
  .nav-section-title {
      color: var(--color-secondary); 
      padding: 10px 20px 5px 20px;
      font-size: 0.8em;
      font-weight: bold;
      margin-top: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .sidebar-content ul {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  .sidebar-content li a {
      display: block;
      padding: 12px 20px;
      text-decoration: none;
      color: var(--color-text-light);
      font-size: 0.95em;
      transition: background-color 0.3s;
  }
  .sidebar-content li a:hover {
      background-color: var(--color-primary); 
      color: var(--color-nav-bg); 
  }
  .sidebar-content li a.active {
      background-color: var(--color-primary);
      color: var(--color-nav-bg);
      font-weight: bold;
      border-left: 5px solid var(--color-secondary); 
  }

  /* ------------------- CONTENU PRINCIPAL ------------------- */
  main {
      margin-left: 250px; 
      padding: 20px;
      padding-top: 70px; 
  }
  @media (max-width: 991.98px) {
      main {
          margin-left: 0;
          padding-top: 70px; 
      }
  }

  /* Ajustements du titre dans la TopNav */
  .navbar-brand h1 {
    font-size: 1.1rem;
    line-height: 1.1;
    margin: 0;
  }
  .navbar-brand h1 span {
    display: block;
    font-size: 0.7rem;
    font-weight: normal;
    color: #6c757d;
  }
