/* =========================
   STYLE DE BASE DES ITEMS
========================= */
#sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;

  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease both;
}

/* =========================
   ICÔNE
========================= */
.menu-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* =========================
   TEXTE
========================= */
.link-text {
  transition: color 0.3s ease;
}

/* =========================
   HOVER GLOBAL
========================= */
#sidebar a:hover {
  background-color: #3290c3;
  color: #fff;
  transform: translateX(5px);
}

/* icône animée au hover */
#sidebar a:hover .menu-icon {
  transform: scale(1.2) rotate(5deg);
  color: #fff;
}

/* texte hover */
#sidebar a:hover .link-text {
  color: #fff;
}

/* =========================
   RIPPLE
========================= */
#sidebar a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  top: 0;
  left: -100%;
  transition: all 0.4s ease;
}

#sidebar a:hover::after {
  left: 0;
}

/* =========================
   MENU HOME
========================= */
.menu-home {
  background: linear-gradient(135deg, #3888b2, #3290c3);
  color: white;
  font-weight: bold;
}

.menu-home:hover {
  transform: scale(1.05);
}

/* =========================
   ANIMATION LIENS
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BLOCS (CONTAINERS)
========================= */
#sidebar .block {
  border-radius: 10px;
  margin-bottom: 12px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: blockFadeIn 0.4s ease both;
}

/* animation apparition bloc */
@keyframes blockFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* hover bloc */
#sidebar .block:hover {
  transform: translateY(-2px);
}

/* =========================
   TITRE DU BLOC
========================= */
.collapsiblockTitle h5 {
  transition: all 0.25s ease;
}

.collapsiblockTitle h5:hover {
  transform: translateX(3px);
}

/* =========================
   CONTENU DU MENU
========================= */
.collapsiblockContent {
  animation: contentFade 0.3s ease;
}

@keyframes contentFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* animation ouverture */
.collapsiblockContent {
  overflow: hidden;
  transition: all 0.25s ease;
}

/* effet smooth */
.collapsiblockContent:not(.collapsiblockContentCollapsed) {
  display: block;
  opacity: 1;
  transform: translateY(0);
}