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

.module-formulaire{
  position: relative;
}

.module-formulaire > .container{
  border-radius: 24px;
  padding: clamp(50px, 7vw, 90px) 20px;
  position: relative;
  overflow: hidden;
}

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

.module-formulaire__content{
  position: relative;
  z-index: 2;
}

/* ===============================
MODE 1 COLONNE
=============================== */

.module-formulaire.is-one-column .module-formulaire__content{
  max-width: 900px;
}

.module-formulaire.is-one-column.is-centered .module-formulaire__content{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.module-formulaire.is-one-column:not(.is-centered) .module-formulaire__content{
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.module-formulaire.is-one-column.is-centered .module-formulaire__form{
  text-align: left;
}

/* ===============================
MODE 2 COLONNES
=============================== */

.module-formulaire.is-two-columns .module-formulaire__content{
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  text-align: left;
}

.module-formulaire.is-two-columns .module-formulaire__text-col{
  max-width: 620px;
}

.module-formulaire.is-two-columns .module-formulaire__form-col{
  width: 100%;
}

.module-formulaire.is-two-columns.form-right .module-formulaire__text-col{
  order: 1;
}

.module-formulaire.is-two-columns.form-right .module-formulaire__form-col{
  order: 2;
}

.module-formulaire.is-two-columns.form-left .module-formulaire__form-col{
  order: 1;
}

.module-formulaire.is-two-columns.form-left .module-formulaire__text-col{
  order: 2;
}

/* Carte du formulaire en mode 2 colonnes */
.module-formulaire.is-two-columns .module-formulaire__form{
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 18px 45px rgba(28, 31, 42, 0.08);
  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,
.module-formulaire .gform_page_footer{
  margin-top: 24px;
  padding: 0;
}

/* Boutons Gravity */
.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: 999px;
  padding: 14px 26px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.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);
}

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

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

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

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

.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-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
=============================== */

.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 > .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-light-2,
.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-accent-light-2,
.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{
  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
=============================== */

.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__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-accent-2,
.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{
  color: #fff !important;
}

/* En mode 2 colonnes, on garde la carte de formulaire lisible même sur fond foncé */
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form{
  background: #fff;
  color: var(--color-txt);
}

.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper,
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper form,
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper label,
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper legend,
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper .gfield_description,
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper .gfield_required,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper form,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper label,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper legend,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper .gfield_description,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper .gfield_required{
  color: var(--color-txt) !important;
}

.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_wrapper .gfield_label,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_wrapper .gfield_label{
  color: var(--color-main) !important;
}

/* Champs sur fonds foncés hors carte */
.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;
}

/* Bouton 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;
}

/* Mais dans la carte blanche du mode 2 colonnes, on remet le bouton principal */
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form input[type="submit"],
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form button[type="submit"],
.module-formulaire.is-two-columns > .container.bg-dark-2 .module-formulaire__form .gform_button,
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form input[type="submit"],
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form button[type="submit"],
.module-formulaire.is-two-columns > .container.bg-accent-2 .module-formulaire__form .gform_button{
  background: var(--color-main) !important;
  border-color: var(--color-main) !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: 980px){
  .module-formulaire.is-two-columns .module-formulaire__content{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .module-formulaire.is-two-columns .module-formulaire__text-col,
  .module-formulaire.is-two-columns .module-formulaire__form-col{
    order: initial;
  }

  .module-formulaire.is-two-columns .module-formulaire__text-col{
    max-width: 100%;
  }
}

@media (max-width: 767px){
  .module-formulaire > .container{
    padding: 40px 18px;
    border-radius: 18px;
  }

  .module-formulaire.is-two-columns .module-formulaire__form{
    padding: 24px 18px;
    border-radius: 18px;
  }
}