
::selection {
  color: white;
  background: darkslateblue;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins" , sans-serif;
}

*:not(font) {
  color: var(--FontCouleur);
}

body {
  background: var(--FondCouleur);
}

.sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 78px;
  background: var(--FontCouleur);
  padding: 6px 14px;
  z-index: 99;
  transition: all 0.3s ease;
}
.sidebar.open{
  width: 275px;
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.5);
}

.sidebar .logo-details{
  height: 60px;
  display: flex;
  align-items: flex-start;
  position: relative;
}
.sidebar .logo-details .icon{
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar .logo-details .logo_name{
  color: #f1f1f1;
  font-size: 18px;
  font-weight: 600;
  position: absolute;
  left: -222px;
  transition: all 0.5s;
  cursor: default;
}
.logo_name span { color: var(--FondCouleur); font-size: 26px; white-space: nowrap; overflow: hidden; Text-overflow: ellipsis; }
.logo_name span b {
  color: #fe6900;
  border: 1px solid #fe6900;
  padding: 0px 10px;
  border-radius: 5px;
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name{
  left: 0;
}
.sidebar .logo-details #btn{
  color: var(--FondCouleur);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  transition: all 0.4s ease;
  font-size: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details #btn{
  text-align: right;
}
.sidebar i{
  color: var(--FondCouleur);
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}
.sidebar .nav-list{
  margin-top: 25px;
  height: 100%;
}
.sidebar li{
  position: relative;
  margin: 8px 0;
  list-style: none;
  /*height: 50px;
  width: 50px;*/
}
.sidebar li .tooltip{
  color: #11101d;
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}
.sidebar li:hover .tooltip{
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}
.sidebar.open li .tooltip{
  display: none;
}
.sidebar input{
  font-size: 15px;
  color: var(--FondCouleur);
  font-weight: 400;
  outline: none;
  height: 50px;
  width: 100%;
  width: 50px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  background: var(--FondSearch);
}
.sidebar input::placeholder {
  opacity: 1;
  color: var(--FondCouleur);
}
.sidebar.open input{
  padding: 0 20px 0 50px;
  width: 100%;
}
.sidebar .bx-search{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 22px;
  background: var(--FondSearch);
  color: var(--FondCouleur);
  cursor: pointer;
}
.sidebar.open .bx-search:hover{
  background: #1d1b31;
  color: #FFF;
}
.sidebar .bx-search:hover{
  background: var(--FondCouleur);
  color: var(--FontCouleur);
}
.sidebar li a{
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: var(--FontCouleur);
}
.sidebar li a:hover{
  background: var(--FondCouleur);
}

.sidebar li a:last-child {
  background: transparent;
}

.sidebar li a .links_name{
  color: var(--FondCouleur);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  display: none;
  pointer-events: none;
  transition: 0.4s;
}
.sidebar.open li a .links_name{
  opacity: 1;
  pointer-events: auto;
  display: block;
}
.sidebar li a:hover .links_name,
.sidebar li a:hover i{
  transition: all 0.5s ease;
  color: var(--FontCouleur);
}

.sidebar li a:hover #log_out {
  color: var(--FondCouleur);
}

.sidebar li i{
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
}
.sidebar li.profile{
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom: -8px;
  padding: 8px 14px;
  background: var(--FondSearch);
  transition: all 0.3s ease;
  overflow: hidden;
}
.sidebar.open li.profile{
  width: 275px;
}
.sidebar li .profile-details{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.sidebar li img{
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
  border: 0;
  box-shadow: 0px 0px 3px white;
  cursor: pointer;
  background: #e4e9f7;
}

.sidebar li.profile .name,
.sidebar li.profile .job{
  font-size: 15px;
  font-weight: 400;
  color: var(--FondCouleur);
  white-space: nowrap;
  width: calc(100% - 40px);
  text-overflow: ellipsis;
  overflow: hidden;
}
.sidebar li.profile .job{
  font-size: 12px;
}
.sidebar .profile #log_out{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--FondSearch);
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 0px;
  transition: all 0.5s ease;
  cursor: pointer;
}
#log_out:hover {
  color: white;
  background: indianred !important;
}
.sidebar.open .profile #log_out{
  width: 50px;
  background: none;
}
.home-section{
  position: relative;
  background: var(--FondCouleur);
  min-height: 100vh;
  top: 0;
  left: 78px;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
  z-index: 2;
  padding: 18px;
}
.sidebar.open ~ .home-section{
  left: 78px;
  /*width: calc(100% - 275px);*/
}
.home-section .text {
  display: flex;
  color: var(--FontCouleur);
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 18px;
  align-items: center;
}

.home-section .text .bx {
  text-decoration: none;
  line-height: 32px;
  font-size: 32px;
  height: 32px;
  margin-right: 10px;
  color: darkslateblue;
}

#icones {
  position: absolute;
  top: 18px;
  right: 18px;
}

#icones .bx {
  font-size: 32px;
  color: darkslateblue;
  cursor: pointer;
  margin-right: 10px;
  text-decoration: none;
}

/* POINT DE NOTIFICATION STYLE */

.sidebar li:hover .point_notification {
  opacity: 0;
}

.point_notification {
  height: 12px;
  width: 12px;
  border-radius: 50px;
  background: #6156a4;
  box-shadow: 0 0 12px 2px #6156a4;
  position: absolute;
  right: 5px;
  top: 5px;
  opacity: 1;
}

@media only screen and (max-height: 600px) {
  .sidebar li {
    margin: 4px 0;
  }
}

@media (max-width: 700px) {
  .sidebar {
    padding: 6px 4px;
    width: 58px;
  }
  .sidebar.open {
    padding: 6px 14px;
  }
  .sidebar li.profile {
    width: 58px;
  }
  .home-section {
    padding: 9px;
    left: 58px;
    width: calc(100% - 58px);
  }
  .home-section .text {
    margin-bottom: 9px;
  }
  .sidebar li .tooltip{
    display: none;
  }
  .sidebar.open ~ .home-section {
    left: 58px;
  }
  .sidebar .nav-list li.recherche {
    height: 40px;
    width: 40px;
    margin: 0 auto;
  }
  .sidebar.open .nav-list li.recherche {
    height: unset;
    width: unset;
    margin: unset;
  }
  .sidebar .bx-search {
    min-width: 40px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .sidebar.open .bx-search {
    padding-left: 10px;
  }
  .sidebar input {
    width: 40px;
    height: 40px;
  }
  .point_notification {
    width: 10px;
    height: 10px;
    top: 7px;
    right: 7px;
  }
}

/* POP UP STYLE */

.popup-container {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: scale(1.3);
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 17, 17, 0.61);
  display: flex;
  align-items: center;
}

.popup-content {
  display: inline-table;
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 25%;
  color: darkslategrey;
  border-radius: 10px;
}

/*.popup-content p {
  font-size: 17px;
  padding: 10px;
  line-height: 20px;
}*/

.popup-content b {
  font-weight: 600;
}

.popup-content .close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  background: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  transition: all .3s;
  color: darkslategrey;
  cursor: pointer;
}

.popup-content .close:hover{
  color:indianred;
}

.popup-container.animatePopup {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.popup-container.hidePopup {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.3);
  transition: none; /* Pas de transition pour éviter les conflits */
}

.popup-container h3 {
  margin-bottom: 20px;
  line-height: 20px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.popup-container .bx-power-off {
  font-size: 22px;
  font-weight: bold;
  color: indianred;
  vertical-align: middle;
  padding-right: 10px;
}

.popup-container .confirmButton {
  user-select: none;
  display: inline-block;
  color: #fff;
  border: 0;
  padding: 10px 15px;
  transition: all .5s;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  margin-bottom: 10px;
  width: calc(50% - 5px);
  text-align: center;
  text-decoration: none;
}

.popup-container  button[disabled] {
  background: #ECEFF1 !important;
  border: 1px solid #CFD8DC !important;
  transition: all 0.2s ease-in-out;
  cursor: not-allowed;
  color: #B0BEC5;
}

.popup-container button[disabled] i {
  color: #B0BEC5;
  font-size: 18px;
  margin-right: 8px;
}

.popup-container button i {
  font-size: 18px;
  margin-right: 8px;
  color: white;
}

.annuler {
  padding: 10px 5px;
  margin-left: 20px;
  text-decoration: none;
  color: indianred;
  font-size: 14px;
  cursor: pointer;
}

/*End popup styles*/