/* ===============================
SECTION FORMULAIRE
=============================== */

/* container principal */
.module-formulaire > .container{
  border-radius: 24px;
  padding: 90px 20px;
  position: relative;
}

/* ===============================
CONTENU
=============================== */

.module-formulaire__content{
  max-width: 900px;
  position: relative;
  z-index: 2;
}

/* centré */
.module-formulaire.is-centered .module-formulaire__content{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* aligné gauche */
.module-formulaire:not(.is-centered) .module-formulaire__content{
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* évite que le formulaire soit centré */
.module-formulaire.is-centered .module-formulaire__form{
  text-align: left;
}

/* ===============================
TITRE / TEXTE
=============================== */

.module-formulaire__title{
  margin: 0 0 18px;
  line-height: 1.1;
  color: var(--color-main);
}

.module-formulaire__text{
  position: relative;
  margin-bottom: 24px;
  color: var(--color-txt);
}

.module-formulaire__text,
.module-formulaire__text p,
.module-formulaire__text li,
.module-formulaire__text a,
.module-formulaire__text strong,
.module-formulaire__text span{
  color: var(--color-txt);
}

.module-formulaire__text > *:first-child{
  margin-top: 0;
}

.module-formulaire__text > *:last-child{
  margin-bottom: 0;
}

.module-formulaire__cta{
  margin-top: 26px;
}

/* ===============================
FORMULAIRE
=============================== */

.module-formulaire__form{
  position: relative;
}

.module-formulaire .gform_wrapper{
  margin: 0;
  max-width: 100%;
  color: var(--color-txt);
}

.module-formulaire .gform_heading{
  display: none;
}

.module-formulaire .gform-body{
  margin-bottom: 20px;
}

.module-formulaire .gform_fields{
  row-gap: 16px;
}

.module-formulaire .gfield{
  margin-bottom: 16px;
}

.module-formulaire .gfield_label{
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-main);
}

.module-formulaire .gform_wrapper label,
.module-formulaire .gform_wrapper legend,
.module-formulaire .gform_wrapper .gfield_description,
.module-formulaire .gform_wrapper .gfield_required,
.module-formulaire .gform_wrapper .name_first label,
.module-formulaire .gform_wrapper .name_last label,
.module-formulaire .gform_wrapper .ginput_complex label,
.module-formulaire .gform_wrapper .gform_description,
.module-formulaire .gform_wrapper .validation_message,
.module-formulaire .gform_wrapper .instruction{
  color: var(--color-txt);
}

.module-formulaire .gform_wrapper .gfield_label{
  color: var(--color-main);
}

.module-formulaire input[type="text"],
.module-formulaire input[type="email"],
.module-formulaire input[type="tel"],
.module-formulaire input[type="url"],
.module-formulaire input[type="number"],
.module-formulaire input[type="date"],
.module-formulaire input[type="password"],
.module-formulaire textarea,
.module-formulaire select{
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fff;
  color: var(--color-txt);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.module-formulaire textarea{
  min-height: 140px;
  resize: vertical;
}

.module-formulaire input:focus,
.module-formulaire textarea:focus,
.module-formulaire select:focus{
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(28,31,42,0.08);
}

.module-formulaire input::placeholder,
.module-formulaire textarea::placeholder{
  color: var(--color-txt);
  opacity: 0.7;
}

/* Gravity footer */
.module-formulaire .gform_footer,
.module-formulaire .gform-page-footer{
  margin-top: 24px;
  padding: 0;
}

/* bouton par défaut sur fond pâle */
.module-formulaire .gform_button,
.module-formulaire input[type="submit"],
.module-formulaire button[type="submit"]{
  background: var(--color-main);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.module-formulaire .gform_button:hover,
.module-formulaire input[type="submit"]:hover,
.module-formulaire button[type="submit"]:hover{
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ===============================
IMAGE BACKGROUND
=============================== */

.module-formulaire.has-bg-image{
  color: #fff;
}

/* ===============================
OVERLAY
=============================== */

.module-formulaire__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.module-formulaire__overlay.overlay-fonce{ background:#000; }
.module-formulaire__overlay.overlay-clair{ background:#fff; }
.module-formulaire__overlay.overlay-accent{ background:#FD4A5C; }
.module-formulaire__overlay.overlay-accent-clair{ background:#ffe0b9; }

/* ===============================
COULEURS DU CONTAINER
=============================== */

.module-formulaire > .container.bg-white{
  background: #fff;
  color: var(--color-txt);
}

.module-formulaire > .container.bg-dark-2{
  background: var(--color-main);
  color: #fff;
}

.module-formulaire > .container.bg-light-2{
  background: var(--color-sec);
  color: var(--color-txt);
}

.module-formulaire > .container.bg-accent-2{
  background: var(--color-accent);
  color: #fff;
}

.module-formulaire > .container.bg-accent-light-2{
  background: var(--color-accent-light);
  color: var(--color-txt);
}

/* ===============================
COULEURS DE SECTION
=============================== */

.module-formulaire.bg-none{
  background: transparent;
}

.module-formulaire.bg-dark{
  background: var(--color-main);
  color: #fff;
}

.module-formulaire.bg-light{
  background: var(--color-sec);
  color: var(--color-txt);
}

.module-formulaire.bg-accent{
  background: var(--color-accent);
  color: #fff;
}

.module-formulaire.bg-accent-light{
  background: var(--color-accent-light);
  color: var(--color-txt);
}

/* ===============================
FONDS CLAIRS : TITRE MAIN / TEXTE TXT
=============================== */

.module-formulaire > .container.bg-white .module-formulaire__title,
.module-formulaire > .container.bg-light-2 .module-formulaire__title,
.module-formulaire > .container.bg-accent-light-2 .module-formulaire__title{
  color: var(--color-main) !important;
}

.module-formulaire > .container.bg-white .module-formulaire__text,
.module-formulaire > .container.bg-white .module-formulaire__text p,
.module-formulaire > .container.bg-white .module-formulaire__text li,
.module-formulaire > .container.bg-white .module-formulaire__text a,
.module-formulaire > .container.bg-white .gform_wrapper,
.module-formulaire > .container.bg-white .gform_wrapper form,
.module-formulaire > .container.bg-white .gform_wrapper label,
.module-formulaire > .container.bg-white .gform_wrapper legend,
.module-formulaire > .container.bg-white .gform_wrapper .gfield_description,
.module-formulaire > .container.bg-white .gform_wrapper .gfield_required,
.module-formulaire > .container.bg-white .gform_wrapper .name_first label,
.module-formulaire > .container.bg-white .gform_wrapper .name_last label,
.module-formulaire > .container.bg-white .gform_wrapper .ginput_complex label,
.module-formulaire > .container.bg-white .gform_wrapper .gform_description,
.module-formulaire > .container.bg-white .gform_wrapper .validation_message,
.module-formulaire > .container.bg-white .gform_wrapper .instruction,
.module-formulaire > .container.bg-light-2 .module-formulaire__text,
.module-formulaire > .container.bg-light-2 .module-formulaire__text p,
.module-formulaire > .container.bg-light-2 .module-formulaire__text li,
.module-formulaire > .container.bg-light-2 .module-formulaire__text a,
.module-formulaire > .container.bg-light-2 .gform_wrapper,
.module-formulaire > .container.bg-light-2 .gform_wrapper form,
.module-formulaire > .container.bg-light-2 .gform_wrapper label,
.module-formulaire > .container.bg-light-2 .gform_wrapper legend,
.module-formulaire > .container.bg-light-2 .gform_wrapper .gfield_description,
.module-formulaire > .container.bg-light-2 .gform_wrapper .gfield_required,
.module-formulaire > .container.bg-light-2 .gform_wrapper .name_first label,
.module-formulaire > .container.bg-light-2 .gform_wrapper .name_last label,
.module-formulaire > .container.bg-light-2 .gform_wrapper .ginput_complex label,
.module-formulaire > .container.bg-light-2 .gform_wrapper .gform_description,
.module-formulaire > .container.bg-light-2 .gform_wrapper .validation_message,
.module-formulaire > .container.bg-light-2 .gform_wrapper .instruction,
.module-formulaire > .container.bg-accent-light-2 .module-formulaire__text,
.module-formulaire > .container.bg-accent-light-2 .module-formulaire__text p,
.module-formulaire > .container.bg-accent-light-2 .module-formulaire__text li,
.module-formulaire > .container.bg-accent-light-2 .module-formulaire__text a,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper form,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper label,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper legend,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .gfield_description,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .gfield_required,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .name_first label,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .name_last label,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .ginput_complex label,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .gform_description,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .validation_message,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .instruction{
  color: var(--color-txt) !important;
}

.module-formulaire > .container.bg-white .gform_wrapper .gfield_label,
.module-formulaire > .container.bg-light-2 .gform_wrapper .gfield_label,
.module-formulaire > .container.bg-accent-light-2 .gform_wrapper .gfield_label{
  color: var(--color-main) !important;
}

/* ===============================
FONDS FONCÉS : TITRE ET TEXTE BLANCS
=============================== */

.module-formulaire > .container.bg-dark-2 .module-formulaire__title,
.module-formulaire > .container.bg-accent-2 .module-formulaire__title{
  color: #fff !important;
}

.module-formulaire > .container.bg-dark-2,
.module-formulaire > .container.bg-dark-2 .module-formulaire__content,
.module-formulaire > .container.bg-dark-2 .module-formulaire__text,
.module-formulaire > .container.bg-dark-2 .module-formulaire__text p,
.module-formulaire > .container.bg-dark-2 .module-formulaire__text li,
.module-formulaire > .container.bg-dark-2 .module-formulaire__text a,
.module-formulaire > .container.bg-dark-2 .gform_wrapper,
.module-formulaire > .container.bg-dark-2 .gform_wrapper form,
.module-formulaire > .container.bg-dark-2 .gform_wrapper label,
.module-formulaire > .container.bg-dark-2 .gform_wrapper legend,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gfield_label,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gfield_description,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gfield_required,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .name_first label,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .name_last label,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .ginput_complex label,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gform_description,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .validation_message,
.module-formulaire > .container.bg-dark-2 .gform_wrapper .instruction,
.module-formulaire > .container.bg-accent-2,
.module-formulaire > .container.bg-accent-2 .module-formulaire__content,
.module-formulaire > .container.bg-accent-2 .module-formulaire__text,
.module-formulaire > .container.bg-accent-2 .module-formulaire__text p,
.module-formulaire > .container.bg-accent-2 .module-formulaire__text li,
.module-formulaire > .container.bg-accent-2 .module-formulaire__text a,
.module-formulaire > .container.bg-accent-2 .gform_wrapper,
.module-formulaire > .container.bg-accent-2 .gform_wrapper form,
.module-formulaire > .container.bg-accent-2 .gform_wrapper label,
.module-formulaire > .container.bg-accent-2 .gform_wrapper legend,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gfield_label,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gfield_description,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gfield_required,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .name_first label,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .name_last label,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .ginput_complex label,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gform_description,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .validation_message,
.module-formulaire > .container.bg-accent-2 .gform_wrapper .instruction{
  color: #fff !important;
}

/* ===============================
CHAMPS SUR FOND FONCÉ
=============================== */

.module-formulaire > .container.bg-dark-2 input[type="text"],
.module-formulaire > .container.bg-dark-2 input[type="email"],
.module-formulaire > .container.bg-dark-2 input[type="tel"],
.module-formulaire > .container.bg-dark-2 input[type="url"],
.module-formulaire > .container.bg-dark-2 input[type="number"],
.module-formulaire > .container.bg-dark-2 input[type="date"],
.module-formulaire > .container.bg-dark-2 input[type="password"],
.module-formulaire > .container.bg-dark-2 textarea,
.module-formulaire > .container.bg-dark-2 select,
.module-formulaire > .container.bg-accent-2 input[type="text"],
.module-formulaire > .container.bg-accent-2 input[type="email"],
.module-formulaire > .container.bg-accent-2 input[type="tel"],
.module-formulaire > .container.bg-accent-2 input[type="url"],
.module-formulaire > .container.bg-accent-2 input[type="number"],
.module-formulaire > .container.bg-accent-2 input[type="date"],
.module-formulaire > .container.bg-accent-2 input[type="password"],
.module-formulaire > .container.bg-accent-2 textarea,
.module-formulaire > .container.bg-accent-2 select{
  background: #fff;
  color: var(--color-txt);
  border-color: transparent;
}

/* ===============================
BOUTONS
=============================== */

/* bouton par défaut sur fond pâle */
.module-formulaire .gform_wrapper .gform_footer input[type="submit"],
.module-formulaire .gform_wrapper .gform_page_footer input[type="submit"],
.module-formulaire .gform_wrapper .gform_button,
.module-formulaire input.gform_button,
.module-formulaire input[type="submit"],
.module-formulaire button[type="submit"]{
  background: var(--color-main) !important;
  border-color: var(--color-main) !important;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: 14px 26px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

/* hover */
.module-formulaire .gform_wrapper .gform_footer input[type="submit"]:hover,
.module-formulaire .gform_wrapper .gform_page_footer input[type="submit"]:hover,
.module-formulaire .gform_wrapper .gform_button:hover,
.module-formulaire input.gform_button:hover,
.module-formulaire input[type="submit"]:hover,
.module-formulaire button[type="submit"]:hover{
  opacity: 0.92;
  transform: translateY(-1px);
}

/* sur fond foncé */
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gform_footer input[type="submit"],
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gform_page_footer input[type="submit"],
.module-formulaire > .container.bg-dark-2 .gform_wrapper .gform_button,
.module-formulaire > .container.bg-dark-2 input.gform_button,
.module-formulaire > .container.bg-dark-2 input[type="submit"],
.module-formulaire > .container.bg-dark-2 button[type="submit"],
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gform_footer input[type="submit"],
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gform_page_footer input[type="submit"],
.module-formulaire > .container.bg-accent-2 .gform_wrapper .gform_button,
.module-formulaire > .container.bg-accent-2 input.gform_button,
.module-formulaire > .container.bg-accent-2 input[type="submit"],
.module-formulaire > .container.bg-accent-2 button[type="submit"]{
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #fff !important;
}

/* ===============================
MESSAGES GRAVITY
=============================== */

.module-formulaire .gform_confirmation_message{
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
}

.module-formulaire .validation_error,
.module-formulaire .gform_validation_errors{
  border-radius: 16px;
}

/* ===============================
RESPONSIVE
=============================== */

@media (max-width:768px){

  .module-formulaire > .container{
    padding: 60px 20px;
  }

  .module-formulaire__content{
    max-width: 100%;
  }

  .module-formulaire input[type="text"],
  .module-formulaire input[type="email"],
  .module-formulaire input[type="tel"],
  .module-formulaire input[type="url"],
  .module-formulaire input[type="number"],
  .module-formulaire input[type="date"],
  .module-formulaire input[type="password"],
  .module-formulaire textarea,
  .module-formulaire select{
    min-height: 50px;
    padding: 12px 14px;
  }

}