/* Style spécifique pour le bouton */
.btnMentionStyle {
  position: fixed;
  width: 35px; /* Taille du bouton */
  height: 35px;
  border-radius: 50%; /* Bouton rond */
  border: 1px solid #0056b3;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
  left: 170px;
  top: 10px;
  background-color: rgba(0, 0, 255, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Style pour l'icône */
.btnMentionStyle img {
  width: 20px; /* Taille de l'icône */
  height: 20px;
}

/* Effets au survol */
.btnMentionStyle:hover {
  background-color: #339c36ff; /* Couleur au survol */
  transform: scale(1.1); /* Agrandir légèrement */
}

/* Effet en cliquant */
.btnMentionStyle:active {
  transform: scale(0.95); /* Réduction temporaire lors du clic */
}

@media (max-width: 600px) {
  .btnMentionStyle {
    left: 0px; /* Position ajustée pour mobile */
  }
}


/* Style de la fenêtre modale des mentions légales */
.modal-mention {
    display: none;
    position: fixed;
    z-index: 1; /* Au-dessus de tout le contenu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    overflow: auto;
    z-index: 9999;
}

/* Contenu de la fenêtre modale */
.modal-content-mention {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ajuster la largeur de la modale */
    max-width: 800px; /* Largeur maximale */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Style du bouton de fermeture */
.close-mention {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-mention:hover,
.close-mention:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style du titre */
.modal-content-mention h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #007BFF; /* Couleur bleu pour le titre */
}

/* Style du texte des mentions légales */
.modal-content-mention p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-family: Arial, sans-serif;
}

/* Style pour les liens */
.modal-content-mention a {
    color: #007BFF;
    text-decoration: none;
}

.modal-content-mention a:hover {
    text-decoration: underline;
}



/* Ajoute dans css/index.css ou css/style.css */
.theme-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.theme-selector input[type="radio"] {
  display: none;
}
.theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 25px;
  border: 2px solid #eee;
  background: #f7f7f7;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, border 0.2s;
  font-size: 1rem;
}
.theme-btn i {
  font-size: 1.2em;
}
.theme-selector input[type="radio"]:checked + .theme-btn {
  background: #0078d7;
  color: #fff;
  border-color: #0078d7;
}
.theme-poussiere { color: #b8860b; }
.theme-eau { color: #1e90ff; }
.theme-bruit { color: #ff6347; }
.theme-paysage { color: #228b22; }
.theme-circulation { color: #8b4513; }
.theme-biodiversite { color: #2e8b57; }
.theme-autre { color: #555; }
.theme-vibration { color: #800080; }     /* violet pour vibrations */
.theme-climat { color: #ff8c00; }        /* orange/soleil */
.theme-economie { color: #006400; }      /* vert foncé pour économie */
.theme-agriculture { color: #9acd32; }   /* vert clair/terre agricole */

.discussion-theme {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.95em;
  background: #f0f0f0;
  color: #333;
  font-weight: 500;
}
.theme-poussières { background: #ffe4b5; color: #b8860b; }
.theme-eau { background: #e0f7fa; color: #1e90ff; }
.theme-bruit { background: #ffe0e0; color: #ff6347; }
.theme-paysage { background: #e6ffe6; color: #228b22; }
.theme-circulation { background: #f5e6da; color: #8b4513; }
.theme-biodiversité { background: #e0ffe0; color: #2e8b57; }
.theme-autre { background: #f0f0f0; color: #555; }
.theme-vibration { background: #f3e6ff; color: #800080; }
.theme-climat { background: #fff3e0; color: #ff8c00; }
.theme-économie { background: #e6ffe6; color: #006400; }
.theme-agriculture { background: #f5ffe6; color: #9acd32; }

.theme-selector input[type="checkbox"] {
  display: none;
}
.theme-selector input[type="checkbox"]:checked + .theme-btn {
  background: #0078d7;
  color: #fff;
  border-color: #0078d7;
}
.theme-btn {
  /* déjà présent, mais tu peux accentuer le style si besoin */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.discussion-message { transition: opacity 0.2s; }
.discussion-message.hide { display: none !important; }
.discussion-filter {
  margin-bottom: 18px;
  font-size: 1.1em;
}
#theme-filter {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Style général pour le hr dans le groupe de boutons */
#buttons-group hr {
    height: 2px;
    background-color: #555555;
    border-radius: 2px;
    width: 100%;
}

/* === Styles pour les boutons 'Supprimer' chapitre / fichier === */
.existing-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 0.95rem;
}

.delete-existing-file-btn,
.delete-chapter-btn {
  background: #ff6b6b; /* rouge doux */
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.12s ease, transform 0.08s ease;
}

.delete-existing-file-btn::before,
.delete-chapter-btn::before {
  content: '🗑';
  display: inline-block;
  transform: translateY(1px);
}

.delete-existing-file-btn:hover,
.delete-chapter-btn:hover {
  background: #e04e4e;
  transform: translateY(-1px);
}

.delete-existing-file-btn:active,
.delete-chapter-btn:active {
  transform: translateY(0);
}

.delete-existing-file-btn:focus,
.delete-chapter-btn:focus {
  outline: 3px solid rgba(224,78,78,0.18);
  outline-offset: 2px;
}

.existing-file.deleted {
  opacity: 0.55;
  text-decoration: line-through;
}

/* Variante pour bouton supprimer chapitre (plus visible) */
.delete-chapter-btn {
  background: #d9534f;
  padding: 8px 12px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .delete-existing-file-btn,
  .delete-chapter-btn {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}

.nom_enquete {
  width: 350px;
}

#nom_enquete {
  width: 350px;
}

/* Styles pour la liste des registres */
.liste-registres-ouverts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.registre-carte { background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: hidden; display: flex; gap: 12px; padding: 12px; align-items: center; }
.registre-carte-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.registre-carte-infos { flex: 1; }
.registre-carte-titre { display:flex; align-items:center; gap:10px; justify-content:space-between; }
.etat-etiquette { display:inline-flex; align-items:center; gap:8px; padding:4px 8px; border-radius:12px; font-weight:600; font-size:0.85rem; }
.etat-etiquette.en-cours { background: #e6f7ea; color: #127a2b; }
.etat-etiquette.a-venir { background: #fff4e6; color: #976200; }
.etat-etiquette.terminee { background: #f3f6ff; color: #1e3a8a; }
.btn-registre-voir { display:inline-block; margin-top:8px; background:#0078d7; color:#fff; padding:8px 12px; border-radius:8px; text-decoration:none; font-weight:700; }
.btn-registre-voir:hover { background:#005ea6 }
.registre-dates { margin:6px 0 0 0; color:#444; font-size:0.95rem; }

/* === Modale d'ajout de compte === */
#addCompteModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 40px;
  min-width: 380px;
  max-width: 90vw;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  margin: 0 0 30px 0;
  text-align: center;
  color: #1e3a8a;
  font-size: 1.8em;
  font-weight: 600;
}

/* Override labels inside modal to avoid global floating-label styles */
.modal-content .form-group label {
  position: static !important;
  top: auto !important;
  left: auto !important;
  background: transparent !important;
  padding: 0 !important;
  pointer-events: auto !important;
  display: block !important;
  margin-bottom: 8px !important;
  color: #333 !important;
}

.modal-content .form-group {
  position: relative !important;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e7ff;
  border-radius: 8px;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[readonly] {
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  cursor: default;
  letter-spacing: 2px;
}

.checkboxes {
  background: #f0f4ff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkboxes label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
  gap: 8px;
}

.checkboxes label:last-child {
  margin-bottom: 0;
}

.checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

.button-group {
  display: flex;
  gap: 12px;
}

.button-group button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-cancel {
  background: #e5e7eb;
  color: #374151;
}

.btn-cancel:hover {
  background: #d1d5db;
}
