.eca-accordion {
  font-family: inherit;
  font-size: 16px;
  border: none;
}

.eca-category {
  border-bottom: 1px solid #eee;
}

.eca-category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: normal;
  color: #333;
  transition: background 0.2s;
}

.eca-category-title:hover {
  background: #f5f5f5;
}

.eca-category-title::after {
  content: "›";
  font-size: 16px;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  color: #999;
}

/* Supprimer la flèche pour les catégories sans enfants */
a.eca-category-title::after {
  display: none;
}

.eca-category-title.open {
  color: #f97316;
  font-weight: bold;
}

.eca-category-title.open::after {
  transform: rotate(90deg);
  color: #f97316;
}

/* Sous-niveaux */
.eca-subcategories {
  display: none;
  flex-direction: column;
  padding: 5px 0 10px 20px;
  background: white;
}

/* Catégories sans enfants */
.eca-category.leaf {
  border-bottom: none; /* Pas de bordure pour les feuilles */
}

/* Liens simples */
.eca-category > a.eca-category-title {
  padding: 12px 10px;
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  transition: background 0.2s;
}

.eca-category > a.eca-category-title:hover {
  background: #f5f5f5;
}

.eca-category > a.eca-category-title.active {
  color: #f97316;
  font-weight: bold;
}

/* Liens dans sous-catégories */
.eca-subcategories a {
  display: block;
  text-decoration: none;
  color: #444;
  position: relative;
  transition: 0.2s;
  padding: 6px 0;
}

.eca-subcategories a:hover {
  color: #ef7102;
}

.eca-subcategories a.active {
  color: #f97316;
  font-weight: 400;
  position: relative;
}

/* Bouton par défaut (fermé) */
.eca-burger {
  display: none;
  background: #333333; /* fermé */
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

/* Bouton actif (filtres ouverts) */
.eca-burger.open {
  background: #81a58e; /* ouvert */
}

/* Mobile */
@media (max-width: 768px) {
  .eca-burger {
    display: block;
  }
  #eca-accordion {
    display: none;
  }
  #eca-accordion.open {
    display: block;
  }
}
