/* Permet d'avoir le focus avec tabulation sans l'avoir avec la souris */
body:not(.user-is-tabbing) #btn:focus {
  outline: none;
}

body.user-is-tabbing #btn:focus {
  outline: 2px solid #000;
}
/* --- */

/* Éléments de base */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Sidebar - configuration de base et états */
.sidebar {
  background-color: #484d7a;
  color: #fff;
  height: 100vh;
  width: 80px;
  position: fixed;
  top: 0;
  transition: width 0.1s ease;
  overflow-x: hidden;
  z-index: 1000;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.sidebar.active {
  width: 250px;
}

/* Contenu principal */
.home_content {
  transition: margin-left 0.1s ease;
}

.sidebar.active ~ .home_content {
  margin-left: 250px !important;
}

/* Navigation */
.nav_list {
  list-style: none;
  padding: 0;
}

.nav_list li {
  display: flex;
  align-items: center;
  height: 50px;
}

.nav_list li a {
  text-decoration: none;
  color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  position: relative;
  z-index: 10;
}

.nav_list li a .links_name {
  display: none;
  font-size: 14px;
  margin-left: 10px;
}

.links_name {
  font-size: 14px;
}

.sidebar.active .nav_list li a {
  justify-content: flex-start;
  padding-left: 20px;
}

.sidebar.active .nav_list li a .links_name {
  display: inline;
}

.nav_list li:hover a, .nav_list li a:hover {
  color: #CCD0FF;
}

/* Logo */
.logo_content {
  display: flex;
  align-items: center;
  padding: 20px;
  height: 60px;
}

.sidebar.active .logo_content {
  justify-content: flex-start;
}

.logo_text {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  left: 20px;
  top: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: none;
}

.sidebar.active .logo_text {
  display: block;
  white-space: normal;
}

#btn {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #fff;
  font-size: 24px;
  transition: transform 0.1s ease, right 0.1s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar:not(.active) #btn {
  right: 50%;
  transform: translateX(50%);
}

#btn:hover {
  color: #CCD0FF;
}
