/* === 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: black;
  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;
}

.menu-link {
    display: inline-flex; /* Permet de garder les éléments sur la même ligne */
    align-items: center; /* Centre verticalement */
    font-size: 1.17em;
    font-weight: bold;
}

.menu-title {
    margin: 0;
}

.menu-arrow::after {
    content: "\25bc"; /* Flèche vers le bas */
    display: inline-block;
    font-size: 1.17em;
    margin-left: 5px;
}

.menu-arrow.rotated::after {
  transform: rotate(180deg); /* Rotation de 180 degrés pour pointer vers le haut */
}

  a#cRetour {
  border-radius: 3px;
  padding: 10px;
  font-size: 15px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  position: fixed;
  right: 20px;
  opacity: 1;
  z-index: 99999;
  transition: all ease-in 0.2s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-decoration: none;
}

a#cRetour.cVisible {
  bottom: 10px;
  opacity: 1;
}

a#cRetour.cInvisible {
  bottom: -35px;
  opacity: 0;
  transition: all ease-in 0.5s;
}

a#cRetour:before { 
  content: "\25b2"; 
}

a#cRetour:hover{
background:rgba(0, 0, 0, 1);
transition:all ease-in 0.2s;
}