body {
  background-color: #b9ffc1;
  font-family: system-ui, Verdana, Arial, sans-serif;
  color: #000;
  line-height: 1.5;
}

/* Mode Debug 
body {
  background: Yellow !important;
}*/

/* Conteneur principal */
#forum {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  color: #222;
}

/* Titre */
#forum h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 600;
}

/* Formulaire */
#formMessage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

#formMessage label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Champs du formulaire : largeur 100% */
#formMessage input,
#formMessage textarea,
#formMessage select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafafa;
}

#formMessage input:focus-visible,
#formMessage textarea:focus-visible,
#formMessage select:focus-visible {
  outline: 2px solid #4a90e2;
  background: #fff;
}

#formMessage textarea {
  min-height: 90px;
  resize: vertical;
}

/* Bouton centré */
#formMessage button {
  padding: 10px 18px;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  margin: 0 auto; /* Centre parfaitement le bouton */
}

#formMessage button:hover {
  background: #444;
}

/* Mode Debug : pour test chargement bon fichier forum.css
body {
  background: red !important;
}
*/

#formMessage button:focus-visible {
  outline: 2px solid #4a90e2;
}

/* Messages */
#messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.msg {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg strong {
  font-size: 1rem;
  color: #111;
}

.msg em {
  font-size: 0.8rem;
  color: #666;
  margin-left: 6px;
}

/* Positionnement du bouton "Envoyer" au centre du bloc => neutralise la règle par défaut dans styles.css */
#formMessage button {
  position: static !important;
  right: auto !important;
  margin: 0 auto !important;
  width: auto !important;
  display: block !important;
}

/* Debug => Bordure du bloc en rouge 
#formMessage {
  border: 2px dashed red;
}
*/
