.favoris-menu {
  width: 100%;
  background-color: rgba(51,51,51,0.73);
  color: white;
  padding: 10px;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  font-family: 'Arial', sans-serif;
  height: 100%;
  right: 0px;
  position: absolute;
  z-index: 99999;
}

.favoris-header {
  margin-bottom: 15px;
}

.favoris-section-titre {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
  background-color: var(--bs-danger-text-emphasis);
  border-radius: 10px;
  padding-left: 10px;
  padding-top: 4px;
}

.favoris-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.favoris-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(177,177,177,0.16);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
  margin-bottom: 2px;
  cursor: pointer;
}

.favoris-item:hover {
  background-color: rgba(102,102,102,0.75);
}

.favoris-content {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.favoris-ref {
  font-weight: bold;
  font-size: 14px;
  font-family: 'Amiko';
}

.favoris-titre, .favoris-extrait {
  font-size: 13px;
  color: #cbd5e1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-family: 'Amiko';
}

.favoris-btn-supprimer {
  background: transparent;
  border: none;
  color: #a9a9a9;
  font-size: 15px;
  cursor: pointer;
}

.favoris-btn-supprimer:hover {
  color: #ef4444;
}

/* Styles pour cacher/afficher les icônes */

.btn-icon {
  display: none;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
}

.btn-icon.btn-active {
  display: block;
}

/* Style pour le texte */

#btn-add-to-favoris-text {
  transition: color 0.3s ease-in-out;
}

/* Optionnel: Ajoutez un style pour l'état actif du bouton */

#btn-add-to-favoris-btn.btn-favorited {
  /*background-color: rgba(255, 0, 0, 0.2);*/
}

/* Styles d'origine du bouton (pour référence) */

#btn-add-to-favoris-btn {
  position: absolute;
  right: 3px;
  top: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

