/* Habillage du formulaire de contact ALB Strategies.
   Charge quel que soit le theme actif, pour couvrir l'ancienne et la nouvelle version. */

/* Variables du theme Orbital de Gravity Forms */
.gform_wrapper,
.gform_wrapper[data-form-theme] {
    --gf-ctrl-btn-bg-color-primary: #f6635b;
    --gf-ctrl-btn-bg-color-hover-primary: #e04a42;
    --gf-ctrl-btn-border-color-primary: #f6635b;
    --gf-ctrl-btn-border-color-hover-primary: #e04a42;
    --gf-ctrl-btn-color-primary: #ffffff;
    --gf-ctrl-btn-color-hover-primary: #ffffff;
    --gf-ctrl-btn-radius: 50px;
    --gf-ctrl-btn-font-size: 14px;
    --gf-ctrl-btn-padding-x: 46px;
    --gf-ctrl-btn-padding-y: 18px;
}

/* Bouton d'envoi : corail, arrondi. Selecteurs suffisamment specifiques
   pour passer devant ceux de Gravity Forms. */
.gform_wrapper .gform_footer input[type=submit],
.gform_wrapper.gravity-theme .gform_footer input[type=submit],
.gform_wrapper.gform-theme .gform_footer input[type=submit],
.gform_wrapper .gform_footer button,
.gform_wrapper button.gform_button,
.gform_wrapper input.gform_button,
body .gform_wrapper .gform-footer .gform_button {
    width: auto !important;
    background-color: #f6635b !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 18px 46px !important;
    font-family: Poppins, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease;
}

.gform_wrapper .gform_footer input[type=submit]:hover,
.gform_wrapper.gravity-theme .gform_footer input[type=submit]:hover,
.gform_wrapper .gform_footer button:hover,
.gform_wrapper button.gform_button:hover,
.gform_wrapper input.gform_button:hover {
    background-color: #e04a42 !important;
    transform: translateY(-2px);
}

.gform_wrapper .gform_footer {
    justify-content: flex-start;
    padding-top: 10px;
}

/* Champs arrondis */
.gform_wrapper .gform_fields input[type=text],
.gform_wrapper .gform_fields input[type=email],
.gform_wrapper .gform_fields input[type=tel],
.gform_wrapper .gform_fields textarea {
    border-radius: 6px;
}

/* Case de consentement ramenee a une taille normale */
.gform_wrapper .gfield--type-consent .gchoice,
.gform_wrapper .gfield_consent .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gform_wrapper .gfield--type-consent input[type=checkbox],
.gform_wrapper .gfield_consent input[type=checkbox] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex: 0 0 18px !important;
    margin: 3px 0 0 0 !important;
}

.gform_wrapper .gfield--type-consent label,
.gform_wrapper .gfield_consent label {
    margin: 0;
}

/* Mention de confidentialite : juste sous la case, sans cadre */
.gform_wrapper .gfield--type-consent .gfield_description,
.gform_wrapper .gfield_consent .gfield_description,
.gform_wrapper .gfield_consent_description {
    border: 0 !important;
    padding: 0 !important;
    margin: 6px 0 0 28px !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    font-size: 13px !important;
}

.gform_wrapper .gfield_consent_description a,
.gform_wrapper .gfield--type-consent .gfield_description a {
    color: #f6635b;
}
/* Variables du theme Orbital : memes selecteurs que Gravity Forms, pour les surcharger */
.gform_wrapper.gform-theme--framework,
.gform_wrapper.gform-theme--orbital,
.gform_wrapper.gform-theme,
.gform_wrapper[data-form-theme="orbital"],
body .gform_wrapper.gform-theme--framework {
    --gf-ctrl-btn-bg-color-primary: #f6635b;
    --gf-ctrl-btn-bg-color-hover-primary: #e04a42;
    --gf-ctrl-btn-bg-color-focus-primary: #e04a42;
    --gf-ctrl-btn-border-color-primary: #f6635b;
    --gf-ctrl-btn-border-color-hover-primary: #e04a42;
    --gf-ctrl-btn-border-color-focus-primary: #e04a42;
    --gf-ctrl-btn-color-primary: #ffffff;
    --gf-ctrl-btn-color-hover-primary: #ffffff;
    --gf-ctrl-btn-radius: 50px;
}

/* Le bouton lui-meme, au cas ou les variables ne suffiraient pas */
body .gform_wrapper .gform_footer button.gform_button,
body .gform_wrapper.gform-theme--framework .gform_footer button.gform_button,
body .gform_wrapper.gform-theme--orbital .gform_footer button.gform_button {
    background-color: #f6635b !important;
    background-image: none !important;
    border-color: #f6635b !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    width: auto !important;
    padding: 18px 46px !important;
}
body .gform_wrapper .gform_footer button.gform_button.gform-button--width-full { width: auto !important; }
body .gform_wrapper .gform_footer button.gform_button:hover { background-color: #e04a42 !important; border-color: #e04a42 !important; }

/* --- Harmonisation des champs --- */
/* Tous les champs a la hauteur du selecteur de pays, avec le meme arrondi */
body .gform_wrapper .gform_fields input[type=text],
body .gform_wrapper .gform_fields input[type=email],
body .gform_wrapper .gform_fields input[type=tel],
body .gform_wrapper .gform_fields input[type=url],
body .gform_wrapper .gform_fields input[type=number] {
    height: 58px !important;
    border-radius: 50px !important;
    padding: 0 22px !important;
    border: 1px solid #e3e6ea !important;
}

body .gform_wrapper .gform_fields textarea {
    border-radius: 24px !important;
    padding: 18px 22px !important;
    border: 1px solid #e3e6ea !important;
    min-height: 130px;
}

/* Le selecteur de pays et le champ forment un seul bloc */
body .gform_wrapper .gform-phone__country-selector {
    height: 58px !important;
    border: 1px solid #e3e6ea !important;
    border-right: 0 !important;
    border-radius: 50px 0 0 50px !important;
    background-color: #f7f8fa !important;
}
body .gform_wrapper .gform-phone .gform-phone__input,
body .gform_wrapper .gform-phone input[type=tel] {
    border-radius: 0 50px 50px 0 !important;
    border-left: 0 !important;
}

/* Sous-titres « Pays » et « Numero de telephone » : inutiles */
body .gform_wrapper .gform-field-label--type-sub { display: none !important; }

/* Mention « (Necessaire) » remplacee par les asterisques des champs */
body .gform_wrapper .gfield_required,
body .gform_wrapper .gfield_required_text { display: none !important; }

/* Case de consentement : plus d'air avant le texte */
body .gform_wrapper .gfield--type-consent .ginput_container_consent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
body .gform_wrapper .gfield--type-consent .gfield_consent_label { margin: 0; }

/* Mention de confidentialite : alignee sous « J'accepte », sans cadre ni fond */
body .gform_wrapper .gfield--type-consent .gfield_description,
body .gform_wrapper .gfield_consent_description {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 6px 0 0 32px !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 13px !important;
}

/* --- Cadre interne de la mention --- */
body .gform_wrapper .gfield_consent_description_text,
body .gform_wrapper .gfield_consent_description .gfield_consent_description_text {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* --- Defilement et animations --- */
/* L'en-tete est fixe : on reserve sa hauteur quand on saute a une ancre */
html { scroll-padding-top: 124px; }

/* Respect des preferences de mouvement reduit */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .brx-animated, [data-interactions] { animation: none !important; opacity: 1 !important; transform: none !important; }
}
