/*  
    ----------------------------------
    51. Menu Vertical
    ----------------------------------
*/
:root {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #f0f2f5;   
}

body1 {
  margin: 0;
  padding: 10px;
  min-height: 100vh;
  
}

.menu-card {
  position: relative; /* <- très important */
  z-index: 1; /* <- ou même 0 si pas nécessaire */
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 10px;
  width: 350px;
  transition: transform 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  margin: 10px 0;
  border-bottom: 1px solid #e5e5e5;
   opacity: 0; /* Important pour le fade in */
  animation: fadeIn 0.5s ease forwards;
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-list a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
  letter-spacing: 1px;
}

.menu-list a:hover {
  color: #2e73bb;
  transform: translateX(5px);
  letter-spacing: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-list a {
  position: relative;
  padding-left: 32px; /* espace pour laisser la barre à gauche */
}

.menu-list a::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15px; /* extrême gauche du lien, donc du .menu-card */
  height: 120%;
  width: 4px;
  background-color: #2e73bb;
/*  border-radius: 2px;  */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.menu-list a:hover::before {
  transform: scaleX(1); /* zoom horizontal */
}

@media (max-width: 768px) {
  .menu-card {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 15px;
    box-shadow: none;
    position: static; /* pour ne pas flotter ou sortir de l’écran */
    display: block;
    z-index: 10;
  }

  .menu-list a {
    padding-left: 28px;
  }

  .menu-list a::before {
    left: 8px;
  }
}

.menu-list li:nth-child(1) { animation-delay: 0.1s; }
.menu-list li:nth-child(2) { animation-delay: 0.2s; }
.menu-list li:nth-child(3) { animation-delay: 0.3s; }
.menu-list li:nth-child(4) { animation-delay: 0.4s; }
.menu-list li:nth-child(5) { animation-delay: 0.5s; }
.menu-list li:nth-child(6) { animation-delay: 0.6s; }
.menu-list li:nth-child(7) { animation-delay: 0.7s; }
.menu-list li:nth-child(8) { animation-delay: 0.8s; }
.menu-list li:nth-child(9) { animation-delay: 0.9s; }
.menu-list li:nth-child(10) { animation-delay: 1s; }
.menu-list li:nth-child(11) { animation-delay: 1.1s; }