/* === OVERLAY === */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 9998;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100%;
  background: #1e1e1e;
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  z-index: 9999;
  transition: right 0.4s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.4);
}

.sidebar.active {
  right: 0;
}

/* HEADER DU MENU */
.sidebar-header {
  position: absolute;
  top: 0;
  width: 90%;
  height: 60px;
  background: #1b1b1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 5%;
  margin-right: 5%;
}

/* BOUTONS SVG */
#openMenu, #closeMenu {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

#openMenu {
  z-index: 10;
}

#openMenu:hover, #closeMenu:hover {
  transform: scale(1.15);
}

/* Icônes SVG */
.icon-menu {
  width: 2rem;
  height: 2rem;
  fill: white;
  transition: fill 0.3s ease;
}

.icon-close {
  width: 2rem;
  height: 2rem;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

#closeMenu:hover .icon-close path {
  stroke: #b93632;
}

#closeMenu:hover .icon-close {
  transform: scale(1.15);
}


#openMenu:hover .icon-menu {
  fill: #b93632;
}

/* LIENS DU MENU */
.sidebar a {
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transform: translateX(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.sidebar.active a {
  transform: translateX(0);
  opacity: 1;
}

.sidebar a:hover {
  background: #2c2c2c;
  color: #b93632;
}
