@media (min-width: 768px) {
  body,
  #main,
  #content {
    min-height: 100%;
  }
  #sidebar {
    position: fixed;
    width: 300px;
    top: 0;
    right: 0;
    bottom: 0;
  }
  #content {
    padding: 0 300px 0 0;
  }
}
@media (max-width: 768px) {
  #sidebar img {
    display: none !important;
  }
}

@media (min-height: 740px) {
  #sidebar .footer {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
  }
}

.topheader {
  color: #6a6a6a;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-top: 0;
}

#header {
  overflow: hidden;
}

#sidebar {
  background: #614385; /* fallback for old browsers */
  background: linear-gradient(
    to left,
    #614385,
    #753881
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  box-shadow: -2px 0px 10px 0px rgba(0, 0, 0, 0.4);
  z-index: 2;
  color: #fafafa;
  padding: 20px;
  box-sizing: border-box;
  /* DKH 02/01/2025 */
  overflow-y: scroll;
}
/* DKH 02/01/2025 */
#sidebar::-webkit-scrollbar {
  width: 6px; /* Largeur de la barre */
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: #888; /* Couleur de la poignée */
  border-radius: 10px; /* Coins arrondis */
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Couleur au survol */
}

#sidebar::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Couleur de la piste */
}

/* Masquer complètement la barre si elle n'est pas nécessaire */
#sidebar::-webkit-scrollbar:horizontal {
  display: none;
}

/* Couleur de la piste (l'endroit où la poignée bouge) */
#sidebar::-webkit-scrollbar-track {
  background: #614385; 
}
/* FIN DKH 02/01/2025 */
#sidebar img {
  width: 150px;
  margin: 0 auto;
  display: block;
}

#sidebar a {
  color: #fafafa;
}

#sidebar .fa {
  text-align: center;
  margin-right: 10px;
  width: 20px;
}

#sidebar .footer p {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

#menu a:hover,
#menu a:active {
  color: #614385;
}

#menu a:focus {
  background-color: transparent !important;
  color: #fafafa !important;
}

#menu li {
  margin-top: 5px;
}

#menu li.active a {
  background: #eee;
  color: #614385;
}

#login h1,
#login label {
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

#content {
  background: #fafafa;
}

h1#header {
  font-family: "Baloo", cursive;
  font-size: 38px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  color: #5f4689;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
  padding: 0 15px;
  margin: 0;
  background: url("/img/bg_entete_clear.jpg") white no-repeat top right;
  height: 119px;
  line-height: 119px;
}

.panel-custom {
  background: #fff;
  margin: 30px 20px;
  box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.15);
  padding: 15px;
}

.nav-tabs a {
  color: #614385;
}

table a {
  color: #614385;
}

blockquote {
  margin: 0;
}

ul.no-bullet {
  margin: 20px 0;
  list-style-type: disc;
  padding-left: 10px;
}

ul.no-bullet li {
  margin: 2px 0;
}

.select2 {
  width: 100% !important;
}

.banner {
  margin: 10px;
  text-align: center;
}

.pagination {
  width: 100%;
  padding: 0 30px;
  margin: 0;
}

.pagination .previous {
  float: left;
}
.pagination .next {
  float: right;
}

.icone-personnalisee_lampe {
  display: inline-block;
  width: 20px;
  height: 20px; 
  background-image: url('/img/picto_lampe.png');
  background-size: cover;
  margin-right: 10px;
}

.icone-personnalisee_proxima {
  display: inline-block;
  width: 20px; 
  height: 20px; 
  background-image: url('/img/picto_proxima.png');
  background-size: cover;
  margin-right: 10px;
}

.footer {
  text-align: center; 
}

.footer-images {
  display: flex;
  justify-content: center; 
  margin-bottom: 10px; 
}

.footer img {
  width: 125px; 
  height: 125px; 
  object-fit: contain; 
  margin: 0 10px;
}

.footer p {
  margin-top: 0;
  text-align: center;
}

.tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip.show {
  opacity: 1;
}