
/* Form styles */

form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

label {
  display: block;
  margin-bottom: 10px;
}

input, 
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;  
}

/* Form button */

button {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background-color: #0062cc;
}

/* other styles */

.text-black {
  color: #000; }

.content {
  padding: 7rem 0; }

.heading {
  font-size: 2.5rem;
  font-weight: 900; }

.form-control {
  border: none;
  background: #f3f3f3; 
  width: 80%;
 }
 
 .form-control:active, .form-control:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #000;
    background: #f3f3f3; 
}

.col-form-label {
  color: #000; }

.btn, .form-control, .custom-select {
  height: 50px; }

.custom-select:active, .custom-select:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #000; }

.btn {
  border: none;
  border-radius: 4px !important; }
  .btn.btn-primary {
    background: #54B849;
    color: #fff;
    padding: 15px 20px; }
  .btn:hover {
    color: #fff; }
  .btn:active, .btn:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none; }

.box {
  padding: 40px;
  background: #fff;
  -webkit-box-shadow: -30px 30px 0px 0 rgba(0, 0, 0, 0.08);
  box-shadow: -30px 30px 0px 0 rgba(0, 0, 0, 0.08); }
  .box h3 {
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center; }

label.error {
  font-size: 12px;
  color: red; }

#message {
  resize: vertical; }

#form-message-warning, #form-message-success {
  display: none; 
}

#form-message-warning {
  color: #B90B0B; 
}

#form-message-success {
  color: #55A44E;
  font-size: 18px;
  font-weight: bold; 
  }

input.form-control.error {
  background: #fcc9c9;
  border-color: #B90B0B;
  border: solid 1px #B90B0B;
}
textarea.form-control.error {
  background: #fcc9c9;
  border-color: #B90B0B;
  border: solid 1px #B90B0B;
}
select.form-control.error {
  background: #fcc9c9;
  border-color: #B90B0B;
  border: solid 1px #B90B0B;
}

textarea#comments {
  width: 80%;
  height: 150px;
  padding: 12px 20px;
}
.submitting {
  float: left;
  width: 100%;
  padding: 10px 0;
  display: none;
  font-weight: bold;
  font-size: 12px;
  color: #000; 
  }

/* Message de retour après soumission (alimenté par contact.js) */
.contact-status {
  float: left;
  width: 100%;
  margin: 12px 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  box-sizing: border-box;
}
.contact-status:empty {
  display: none;
}
.contact-status--pending {
  color: #555;
  background: #f0f0f0;
  border-left: 4px solid #999;
}
.contact-status--success {
  color: #1b5e20;
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
}
.contact-status--error {
  color: #b71c1c;
  background: #ffebee;
  border-left: 4px solid #c62828;
}

/* Piège à robots : hors écran plutôt que display:none, que certains robots
   détectent pour ignorer le champ. */
.hp-champ {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Widget ALTCHA ---------------------------------------------------------
   Le widget rend en LIGHT DOM : il n'a pas de Shadow DOM, donc le CSS de ce
   formulaire s'applique à ses éléments internes. Sans les règles ci-dessous,
   la règle `input { width:100%; padding:10px; border }` déforme sa case à
   cocher en barre. */
altcha-widget {
  /* Élément personnalisé, donc display:inline par défaut : sans cette ligne
     les marges verticales resteraient sans effet. */
  display: block;
  margin: 12px 0;
}

.altcha-hote input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  -webkit-appearance: auto !important;
  appearance: auto !important;
}
