

.test{
  border:solid red 1px;
}

/* LIENS SOULIGNES */
a.souligne {

	font-weight:400;
    position: relative;
    text-decoration: none; /* Supprime le soulignement par dÃ©faut */
    color: var(--bs-link-color); /* Couleur du texte du lien */
}

a.souligne::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px; /* Epaisseur de la ligne */
    background-color: var(--bs-link-color); /* Couleur de la ligne */
    transition: width 0.3s ease; /* Animation de l'effet */
}

a.souligne:hover::after {
    width: 100%; /* Fait s'Ã©tendre la ligne sur toute la largeur du lien */
}
/* ///////////////////////// */

.left-side {
  background-color: var(--bs-primary);
  background-image:url('/assets/images/background.jpg');
  background-repeat: no-repeat ;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  align-items: center;
  text-align: center;
 
}

.left-side img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.right-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: white;
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.icons {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .icon {
            cursor: pointer;
            font-size: 20px;
            color: var(--bs-secondary);
            transition: var(--transition);
            position: relative;
        }
        
        .icon:hover {
            color: var(--bs-primary);
            transform: translateY(-2px);
        }
        
        .icon-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: var(--bs-warning);
            color: white;
            font-size: 10px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }

body {
  background-color: #f8f9fa;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar{
  width: 250px;
  height: 100vh;  
  min-height: 100vh;  
  position:fixed;          
  background-color: var(--bs-primary);    
  color:white;      
  overflow-y: scroll;         
  -webkit-overflow-scrolling: touch;
}
/* Scrollbar discrète en couleur primaire */
.sidebar::-webkit-scrollbar{ width:8px; }
.sidebar::-webkit-scrollbar-track{ background:transparent; }
.sidebar::-webkit-scrollbar-thumb{
  background-color: var(--bs-primary);
  border-radius: 8px;
  border: 2px solid transparent;
}

.sidebar{                       /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--bs-primary) var(--bs-primary);
}

/* Si tu as un mode “collapsed” en slide */
.sidebar.collapsed { transform: translateX(-100%); }

/* Le contenu principal doit laisser la place au menu fixe */
.main-content { margin-left: 250px; } /* adapte si besoin */

.sidebar .section-title {
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

.sidebar .nav-link {
  color: white;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #2f2750;
  color: #fff;
}

.sidebar-overlay {
  display: none;
}

.sidebar-overlay.show {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.accordion-button::after {

  height: var(--bs-accordion-btn-icon-width);
  margin-left: auto;
  background-size: 0;
  transition: transform 0.2s ease-in-out;
  background-image: none !important;   /* enlève l'icône Bootstrap */
  content: "\2b";                     /* chevron-down */
  font-family: "Font Awesome 6 Free","Font Awesome 5 Free"; /* fallback */
  font-weight: 900;                     /* solid */
  display: inline-block;
  width: auto; height: auto;
  line-height: 1;
  transition: transform .2s ease;
  transform: none;
}

.accordion-button:focus {
  z-index: 3;
  outline: 0;
  box-shadow: none;
}
.accordion-button:not(.collapsed)::after{
  transform: rotate(180deg);
  content: "\f068"; 
  background-image: none;
}

.main-content {
  width: 100%;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.navbar {
  border-bottom: 1px solid #dee2e6;
}

.table th,
.table td {
  vertical-align: middle;
}

body.sidebar-open {
  overflow: hidden;
}

/* Desktop ≥768px */
@media (min-width: 768px) {
  .sidebar {
    transform: none !important;
    /* Ignore .collapsed, always shown */
  }

  .main-content {
    margin-left: 250px;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Mobile <768px */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
    /* Hide by default */
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}