/* FORMULAIRE CONTACT */

.contact-form {
  max-width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form p {
  margin: 0 0 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cacaca!important;
  background-color: #f5f5f5!important;
  /* color: var(--color-text); */
  font-family: var(--font-base);
  font-size: 0.9rem;
  transition: border-color 0.2s ease-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777777;
}

.contact-form button {
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--color-text);
  background-color: #ffffff;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}

.contact-form button:hover {
  background-color: #e5e5e5;
}

/* LARGEUR FORMULAIRE CONTACT */

form.contact-form {
  display: block;
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto;
  margin-right: auto;
}

section.text-content {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

form.contact-form input,
form.contact-form textarea {
  display: block;
  width: 100% !important;
  box-sizing: border-box;
}

/* MESSAGES DE SUCCÈS ET D'ERREUR */

.form-message {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 4px;
  text-align: center;
}

.form-message p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-message--success {
  background-color: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #6dd47e;
}

.form-message--error {
  background-color: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #bbbbbb;
  background-color: #1a1c20;
  color: var(--color-text-defaut); 
  font-family: var(--font-base);
  font-size: 0.9rem;
  transition: border-color 0.2s ease-out;
  border-radius: 5px;  /* ✅ Coins arrondis */
}

/* BORDER-RADIUS SUR BOUTON FORMULAIRE */

.contact-form button {
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--color-text);
  background-color: #000000;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
  border-radius: 5px;  /* ✅ Coins arrondis */
}



/* RESPONSIVE FORMULAIRE */

@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .contact-form button {
    width: 100%;
    padding: 0.9rem 1.2rem;
  }

  .form-message {
    font-size: 0.85rem;
    padding: 0.9rem 1rem;
  }
}
