/* ══════════════════════════════════════════════════════════
   Contact — reprise de la page Elementor n° 361 et du formulaire
   WPForms (rendu « moderne » habillé par Blocksy).
   ══════════════════════════════════════════════════════════ */

.am-contact {
  padding-top: 130px;
  margin-bottom: 80px;
}
.am-contact a { color: inherit; text-decoration: none; }
.am-contact__row {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ── Coordonnées ────────────────────────────────────────── */
.am-contact__infos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: var(--beige);
}
.am-contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 10px 0 30px;
  text-align: center;
}
.am-contact__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--creme);
}
.am-contact__icon svg { width: 100%; height: 100%; fill: currentColor; }
.am-contact__label { font-size: 20px; line-height: 1.5; }
.am-contact__item a:hover { text-decoration: underline; }

/* Colonne en flex : comme les conteneurs Elementor, les marges du titre et
   du formulaire s'additionnent au lieu de fusionner. */
.am-contact__form { display: flex; flex-direction: column; }
.am-contact__title {
  margin-bottom: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .am-contact__item { gap: 20px; }
  .am-contact__icon { width: 60px; height: 60px; }
}
@media (min-width: 1025px) {
  .am-contact { margin-bottom: 130px; }
  .am-contact__row { flex-direction: row; gap: 0; }
  .am-contact__infos { width: 45%; padding: 70px; }
  .am-contact__form  { width: 55%; padding-left: 50px; }
  .am-contact__item {
    flex-direction: row;
    gap: 30px;
    margin: 10px 0 60px;
    text-align: left;
  }
  .am-contact__item > div { flex: 1; min-width: 0; }
  .am-contact__title { text-align: left; }
}

/* ── Formulaire ─────────────────────────────────────────── */
/* Marges du conteneur WPForms d'origine (24 px), moins la marge négative du widget */
.am-form { margin: 24px 0 -1px; }
.am-field { padding: 15px 0; }
.am-form input[type="text"],
.am-form input[type="tel"],
.am-form input[type="email"],
.am-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: rgba(0, 0, 0, .7);
  font-family: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.am-form input[type="text"],
.am-form input[type="tel"],
.am-form input[type="email"] { height: 43px; padding: 0 14px; }
.am-form textarea {
  height: 120px;
  padding: 14px;
  line-height: 1.3;
  resize: vertical;
}
.am-form ::placeholder { color: rgba(0, 0, 0, .4); opacity: 1; }
.am-form input:focus,
.am-form textarea:focus { outline: 2px solid var(--beige); outline-offset: 0; }
.am-form__label {
  display: block;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, .85);
  font-weight: 700;
  line-height: 19px;
}

/* Case de consentement (obligatoire, validée aussi côté serveur) */
.am-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.am-consent input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.am-consent__box {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--beige);
  border-radius: 3px;
  background: #fff;
  color: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.am-consent__box svg { opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; }
.am-consent input:checked + .am-consent__box { background: var(--beige); }
.am-consent input:checked + .am-consent__box svg { opacity: 1; transform: none; }
.am-consent input:focus-visible + .am-consent__box { outline: 2px solid var(--brun); outline-offset: 2px; }
.am-consent__text { font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, .75); }
.am-consent__text a { text-decoration: underline; text-underline-offset: 2px; }

.am-form__submit { margin-top: 10px; }
.am-form__button {
  height: 50px;
  padding: 0 15px;
  border: 0;
  border-radius: 3px;
  background: var(--beige);
  /* Noir comme le bouton d'appel de l'en-tête : le blanc d'origine
     plafonnait à 1,9:1 sur le beige. */
  color: #000;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .12s var(--ease);
}
.am-form__button:hover { background: var(--beige-fonce); color: #fff; }
.am-form__legal { margin-top: 12px; font-size: 13px; color: rgba(0, 0, 0, .6); }
.am-form__legal a { text-decoration: underline; }

/* Message après envoi */
.am-notice {
  margin: 0 0 10px;
  padding: 14px 18px;
  border-left: 4px solid var(--brun);
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.am-notice--err { border-left-color: #a33a2b; }
