/* ---- Sidebar ---- */
.sidebar {
    width: 250px;
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.sidebar.closed {
    transform: translateX(-250px); /* Cache la sidebar */
}

/* ---- Navbar ---- */
.navbar {
    width: calc(100% - 250px); /* Par défaut, espace réservé à la sidebar */
    margin-left: 250px;
    transition: all 0.3s ease-in-out;
}

.navbar.navbar-full {
    width: 100%; /* Quand la sidebar est fermée */
    margin-left: 0;
}

/* ---- Contenu principal ---- */
.content {
    margin-left: 250px;
    transition: all 0.3s ease-in-out;
}

.content.content-full {
    margin-left: 0;
}



/* ---- pour les sous menus ---- */
.ml-menu li a.active-submenu,
.sidebar li > a.active-submenu {
    color: #e53935 !important; /* Rouge vif */
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease-in-out;
}


/* ---- pour les icônes des sous menus ---- */
/* Style par défaut de la flèche */
.menu-toggle .arrow {
    float: right;
    font-size: 16px;
    transition: transform 0.3s ease-in-out;
}

/* Quand le menu parent est ouvert */
li.open > a.menu-toggle .arrow {
    transform: rotate(180deg);
}

/*POUR LE LOGO*********************/
.img-fluide{
    max-width: 8rem;
}
.nav.nav-tabs {
    display: flex;
    justify-content: center;  /* Centre horizontalement */
    align-items: center;      /* Centre verticalement */
    border-bottom: none;      /* Supprime la bordure si tu veux */
    padding: 10px 0;
}

.nav.nav-tabs .nav-item {
    list-style: none;
}

.nav.nav-tabs img {
    width: auto;
}

/* couleur demandée pour le success (fond + bordure), texte blanc */
.alert-success {
  background-color: #292E5f !important;
  border-color: #292E5f !important;
  color: #ffffff !important;
}

/* animation d'apparition/disparition */
.alert-auto-hide {
  transition: opacity 0.6s ease, max-height 0.6s ease, padding 0.4s ease, margin 0.4s ease;
  opacity: 1;
  max-height: 200px; /* assez grand pour le contenu */
  overflow: hidden;
}

/* état caché (sera appliqué par JS) */
.alert-auto-hide.hide {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

