/* Styles pour le tag ovale et la suppression */
.tag-item {
    display: inline-block;
    margin-right: 10px;
    /* margin-bottom: 10px; */
  }
  
  .tag-content {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9999px; /* Ovale */
    background-color: var(--tag-color, #8b5cf6);
    color: white;
    font-size: 14px;
  }
  
  .tag-name {
    font-weight: bold;
    margin-right: 8px;
  }
  
  .tag-delete {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
    font-weight: bold;
  }
  
  .tag-delete:hover {
    color: #ff3333;
  }
  
  select option {
    display: flex;
    align-items: center;
    padding-left: 25px; /* Leave space for the circle */
    background-color: white; /* Reset background */
    color: black; /* Reset text color */
  }
  
  select option::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    position: absolute;
    left: 5px; /* Adjust position for the circle */
  }

  #tagCloud {
    display: flex;
    flex-wrap: wrap; /* Les éléments sautent à la ligne si nécessaire */
    gap: 10px; /* Espacement entre les éléments */
    max-height: 300px; /* Si tu veux ajouter une limite en hauteur */
    overflow-y: auto; /* Pour permettre le défilement vertical s'il y a trop d'éléments */
  }
  
  .modal-box {
    width: auto; /* Pour rendre la boîte modale flexible selon son contenu */
    max-width: 90%; /* Limite la largeur pour les grands écrans */
  }
  
  .suggestion-item {
    padding: 8px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #f1f1f1;
}

#imageGallery {
  position: relative;
  z-index: 1; /* Assure-toi que le z-index des images est bas */
}

.toast {
  position: fixed;
  z-index: 99999; /* Très élevé pour s'assurer qu'il soit visible au-dessus de tout */
  bottom: 20px;
  right: 20px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
}


/* Exemple d'animation personnalisée */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.toast-appear {
  animation: fadeIn 0.5s ease-out forwards;
}

.toast-disappear {
  animation: fadeOut 0.5s ease-out forwards;
}

/* Pour les petits écrans (téléphones) */
@media (max-width: 768px) {
  aside {
    width: 100%;
  }

  main {
    width: 100%;
  }
}

/* Pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  aside {
    width: 30%;
  }

  main {
    width: 70%;
  }
}

/* Pour les écrans de bureau */
@media (min-width: 1025px) {
  aside {
    width: 15%;
  }

  main {
    width: 85%;
  }
}


/* Cacher la barre latérale par défaut sur mobile */
@media (max-width: 1024px) {
  #sidebar {
    transform: translateX(-100%);
  }

  /* Quand la classe `translate-x-0` est ajoutée, la barre s'affiche */
  #sidebar.show {
    transform: translateX(0);
  }
}
