/* Base moderne et joyeuse */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 700px;
  margin: auto;
  padding: 30px 20px;
  background-color: #f0f7ff;
  color: #333;
}

/* Titres */
h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

hr {
  border-top: 2px solid #ddd;
  margin: 10px 0;
}

/* Bouton menu */
.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 900;
}
.menu-button:hover{
  transform: scale(1.1);
}

/* Popup du menu */
#menu-popup {
  display:flex;
  position: fixed;
  top: 90px;
  left: 20px;
  transform: none;
  background: white;
  padding: 10px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1200;
  min-width: 100px;
  flex-direction: column;
  gap: 15px;
}
#menu-popup.hidden {
  display: none;
}

/* Masquer quand "hidden" */
.hidden {
  display: none;
}

/* Style des boutons dans le menu popup */
#menu-popup button {
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  transition: background-color 0.3s ease;
}

#menu-popup button:hover {
  background-color: #45a049;
}

#menu-popup hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}

/* A propos */
#about-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1300;
  min-width: 250px;
  max-width: 90%;
  display: none;
}

#about-popup:not(.hidden) {
  display: block;
}

.popup-content {
  text-align: center;
}

.popup-content {
  background: white;
  padding: 25px 30px;
  max-width: 400px;
  text-align: center;
}

.popup-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.popup-content button {
  margin-top: 20px;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Formulaire */
#note-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

#note-input {
  width: 100%;
  height: 100px;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

#note-input:focus {
  border-color: #4CAF50;
}

/* Boutons principaux */
button {
  margin-top: 10px;
  padding: 10px 18px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 8px;
}

/* Couleurs des boutons */
button:hover {
  opacity: 0.9;
}

button:nth-of-type(1) {
  background-color: #4CAF50;
  color: white;
}

button:nth-of-type(2) {
  background-color: #2196F3;
  color: white;
}

/* Conteneur des notes */
#notes-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Style des notes */
.note {
  background-color: #ffffff;
  padding: 20px;
  border-left: 6px solid #4CAF50;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.note:hover {
  transform: scale(1.01);
}

.note p {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
}

/* Boutons dans les notes */
.note button {
  position: relative;
  margin-top: 10px;
  margin-right: 8px;
  background-color: #e74c3c;
  color: white;
  font-size: 0.9em;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.note button:nth-of-type(1) {
  background-color: #f39c12; /* Modifier */
}

.note button:nth-of-type(2) {
  background-color: #e74c3c; /* Supprimer */
}


.btn-save {
  background-color: #28a745; /* vert bootstrap */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-save:hover {
  background-color: #218838;
}

/* Champ de modification */
.note textarea {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  box-sizing: border-box;
}

/* Responsive mobile */
@media (max-width: 600px) {
  #note-input {
    height: 80px;
  }

  button {
    width: 100%;
    margin-bottom: 10px;
  }

  .note {
    padding: 15px;
  }
}

/* Notification verte */

#notification-container {
  display: flex;
  flex-direction: column;
  gap: 3px; /* ou margin-bottom sur .notification */
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.notification {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 0.95em;
  min-width: 200px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25),
              0 2px 5px rgba(0, 0, 0, 0.2);

  transition: transform 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

/* Animations */

.notification.slide-in {
  animation: slide-in 0.6s ease-out forwards;
}

.notification.stay {
  animation: stay 2s ease forwards;
}

.notification.slide-out {
  animation: slide-out 0.6s ease-in forwards;
}

@keyframes slide-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes stay {
  from {
    transform: translateX(0%);
    opacity: 1;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0%);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* dossiers*/ 
#dossier-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#dossier-popup.hidden {
  display: none;
}

#dossier-popup .popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

#dossier-liste div {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  padding: 5px;
  background: #f0f0f0;
  border-radius: 6px;
}

#filtres-dossiers button,
.btn-filtre {
  background-color: #ddd;
  color: #333;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-right: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

/* Style du bouton sélectionné (dossier sélectionné) */
.filtre-actif {
  background-color: #4CAF50 !important; /* Couleur verte comme "Tous" */
  border-color: #2c8a3e !important; /* Bordure plus foncée */
  color: white !important;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

/* Effet au survol des boutons */
#filtres-dossiers button:hover {
  background-color: #9FC995;
  transform: scale(1.05);
}

/* Pour le bouton actif, empêcher de changer de couleur au survol */
.filtre-actif:hover {
  background-color: #4CAF50;
  transform: scale(1.05); /* Légère augmentation */
}

#overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999; /* derrière le popup */
}
