/* /css/contact.css */

/* Conteneur principal du formulaire */
.contact-container {
  display: flex;
  justify-content: center;
  /* Pour éviter le chevauchement avec le header, on ne centre pas verticalement */
  align-items: flex-start;
  
  /* Supprimez la hauteur forcée qui cause souvent le chevauchement :
     min-height: calc(100vh - 150px); */

  /* Ajoutez plutôt une marge en haut et en bas pour aérer entre header et footer */
  margin-top: 100px; /* Ajustez selon la hauteur du header */
  margin-bottom: 60px;
  
  /* On garde une bonne zone de padding */
  padding: 40px 20px;
}

/* Limiter la largeur du formulaire */
.contact-form-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Titre accrocheur pour le formulaire */
.contact-title {
  text-align: center;
  color: #E5A154;
  font-size: 36px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.snailmailorange-icon {
  width: 57px;
  height: auto;
}

/* Thème pour le formulaire de contact */
form.well {
  background-color: #1A1A1A;
  border: none; /* Bordure retirée */
  border-radius: 5px;
  padding: 2rem;
  color: #E5A154;
  margin-bottom: 40px;
}

form.well fieldset {
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

form.well legend {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #E5A154;
  text-align: center;
}

.inputGroupContainer .input-group-addon {
  background-color: #301910;
  color: #E5A154;
  border: none;
}

.form-control {
  background-color: #333;
  border: 1px solid #301910;
  color: #E5A154;
  padding: 10px;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #301910;
  border: 1px solid #301910;
  color: #E5A154;
  transition: background-color 0.3s;
  padding: 10px 20px;
}
.btn-primary:hover {
  background-color: #E5A154;
  color: #301910;
}

.alert {
  font-size: 16px;
  background-color: #333;
  border-color: #301910;
  color: #E5A154;
  margin-top: 20px;
  padding: 10px;
}

/* Ajustement du textarea */
textarea.form-control {
  min-height: 100px; 
  max-height: 500px; 
  height: auto;
  resize: both; 
}

@media (max-width: 768px) {
  textarea.form-control {
    min-height: 150px;
    font-size: 16px;
    padding: 12px;
    resize: vertical;
  }
}

/* Style des messages d'erreur en rouge */
.has-error .form-control {
  border-color: red !important;
  background-color: #440000 !important;
  color: white !important;
}
.has-error .input-group-addon {
  background-color: red !important;
  color: white !important;
}
.help-block {
  color: red !important;
  font-size: 14px;
  margin-top: 5px;
}
@media (max-width: 768px) {
  .help-block {
    font-size: 16px;
  }
}

/* Pour le volet de confirmation d'envoi */
#confirmation-volet {
  display: none; /* Caché par défaut */
  position: fixed;
  bottom: -100px; /* Caché initialement */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  background-color: #E5A154;
  color: #301910;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease-in-out;
}

/* Quand le volet est affiché */
.confirmation-visible {
  bottom: 20px; 
}

/* Bouton de fermeture */
.close-btn {
  background: #301910;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}
.close-btn:hover {
  background: white;
  color: #301910;
}

textarea.form-control {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  /* Optionnel : limiter le redimensionnement à la verticale */
  resize: vertical;
}

.form-control {
  background-color: #333;
  border: 1px solid #301910;
  color: #4CAF50; /* Texte saisi en #4CAF50 */
  padding: 10px;
  margin-bottom: 15px;
}