/* --- Structure générale --- */
h2 {
  text-align: center;
  font-size: 28px;
  color: #6c63ff; /* violet doux */
  margin-bottom: 20px;
  font-weight: bold;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: white;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar .logo img {
  height: 40px;
  width: auto;
  margin-right: 20px; /* espace entre logo et bouton retour */
}

.retour button {
  background: #f8bbd0;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.retour button:hover {
  background: #f48fb1;
}

.menu select {
  width: 200px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* --- Bloc ajout de membre --- */
.ajout-membre {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  background: #fce4ec; /* rose pastel */
  padding: 15px 20px;
  border-radius: 12px;
  max-width: 600px;
}

.ajout-membre input[type="text"],
.ajout-membre input[type="color"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.ajout-membre button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #6c63ff;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.ajout-membre button:hover {
  background: #574fd6;
}

/* --- Colonnes enfants --- */
.colonnes {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.rituel {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  width: 150px;
  text-align: center;
}

.rituel h3 {
  margin-bottom: 10px;
}

.rituel .liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Tâches --- */
.tache {
  background: #f3e5f5;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.tache:hover {
  background: #e1bee7;
}

.tache img {
  display: block;
  margin: 0 auto 5px;
}

.tache-faite span {
  text-decoration: line-through;
  color: #777;
}

/* --- Catalogue modal --- */
.modal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #ccc;
  padding: 20px;
  border-radius: 12px;
  display: none;
  z-index: 1000;
  width: 80%;
  max-width: 600px;
}

/* Croix de fermeture */
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close:hover {
  color: #000;
}

/* Barre de recherche */
#searchPicto {
  display: block;
  width: 80%;
  margin: 10px auto 20px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

/* --- Catalogue pictos --- */
.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  justify-items: center;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.catalogue .picto {
  background: #ede7f6;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  width: 80px;
  transition: 0.2s;
}

.catalogue .picto:hover {
  transform: scale(1.05);
  background: #d1c4e9;
}

.catalogue::-webkit-scrollbar {
  width: 8px;
}

.catalogue::-webkit-scrollbar-track {
  background: #f3e5f5;
  border-radius: 8px;
}

.catalogue::-webkit-scrollbar-thumb {
  background: #6c63ff;
  border-radius: 8px;
}

.catalogue::-webkit-scrollbar-thumb:hover {
  background: #574fd6;
}

.picto img {
  display: block;
  margin: 0 auto 5px;
  width: 40px;
  height: 40px;
}

/* --- Boutons reset --- */
.actions {
  text-align: center;
  margin: 20px;
}

.actions button {
  margin: 0 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #6c63ff;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.actions button:hover {
  background: #574fd6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .colonnes {
    flex-direction: column;
    align-items: center;
  }
  .rituel {
    width: 90%;
  }
}
