/*
 Theme Name:   FLAMBARD®
 Theme URI:    https://www.flambard.fr/
 Description:  Flambard Theme powered by Divi from Elegant Themes
 Author:       COMBOOSTION®
 Author URI:   https://www.comboostion.com
 Template:     Divi
 Version:      0.0.175
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  FLAMBARD
*/
:root {
    --boost-font-family-main: "Barlow Semi Condensed", Helvetica, Arial, Lucida,
        sans-serif;
    --boost-font-size-desktop: 21px;
    --boost-font-size-tablet: 19px;
    --boost-font-size-smartphone: 16px;
    --boost-font-size-footprint: 16px;
    --boost-font-weight-main: 400;
    --boost-font-weight-bold: 600;
    --boost-color-main: #3a3a3c; /* dark gray */
    --boost-color-standing-out: #c02b0a; /* red */
    --boost-color-placeholders: #a6a6a6; /* light gray */
    --boost-color-field-background: #f9f7f6; /* light pantone warm gray 1 UP */
    --boost-color-button-on-hover: rgba(0, 0, 0, 0.05); /* 95% black */
}

body {
    font-weight: var(--boost-font-weight-main);
}
/* --------------------------------------------------------
   GF 2.9+ theme framework overrides
   Override Gravity Forms CSS custom properties to align
   with the Flambard brand. This prevents GF updates from
   resetting colors, borders, and backgrounds.
   -------------------------------------------------------- */
.boost-gform .gform-theme.gform-theme--framework {
    --gf-color-primary: var(--boost-color-main);
    --gf-color-primary-rgb: 58, 58, 60;
    --gf-color-primary-darker: var(--boost-color-main);
    --gf-color-primary-contrast: #fff;
    --gf-ctrl-bg-color: var(--boost-color-field-background);
    --gf-ctrl-bg-color-hover: var(--boost-color-field-background);
    --gf-ctrl-bg-color-focus: var(--boost-color-field-background);
    --gf-ctrl-border-color: var(--boost-color-main);
    --gf-ctrl-border-color-hover: var(--boost-color-main);
    --gf-ctrl-border-color-focus: var(--boost-color-main);
    --gf-ctrl-label-color-primary: var(--boost-color-main);
    --gf-ctrl-input-font-size: var(--boost-font-size-desktop);
    --gf-ctrl-btn-bg-color-primary: #fff;
    --gf-ctrl-btn-bg-color-hover-primary: var(--boost-color-button-on-hover);
    --gf-ctrl-btn-border-color-primary: var(--boost-color-main);
    --gf-ctrl-btn-border-color-hover-primary: var(--boost-color-main);
    --gf-ctrl-btn-color-primary: var(--boost-color-main);
    --gf-ctrl-btn-color-hover-primary: var(--boost-color-main);
    --gf-ctrl-btn-radius: 0;
    --gf-ctrl-btn-font-size: 24px;
    --gf-ctrl-btn-font-size-md: 24px;
    --gf-ctrl-checkbox-check-size: 14px;
    --gf-ctrl-radius: 0;
    --gf-form-footer-margin-y-start: 40px;
}
/* gform header */
.boost-gform .gform_heading {
    color: var(--boost-color-main);
    font-size: 90%;
    margin-bottom: 20px;
}
.boost-gform .boost-asterisque {
    color: var(--boost-color-standing-out);
}
/* gform font sizes — boosted specificity to override GF framework */
.boost-gform .gfield_required_asterisk,
.boost-gform .gform-field-label,
.boost-gform .gform-theme.gform-theme--framework .gfield .gfield_label_before_complex,
.boost-gform .gform-theme.gform-theme--framework .gfield .gfield_consent_label,
.boost-gform .gform-theme.gform-theme--framework .gfield input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]),
.boost-gform .gform-theme.gform-theme--framework .gfield textarea {
    font-size: var(--boost-font-size-desktop);
}
.boost-gform .gfield_description {
    font-size: var(--boost-font-size-footprint);
}
.boost-gform .gform-theme.gform-theme--framework .gfield_consent_description {
    font-size: var(--boost-font-size-footprint);
}
@media all and (max-width: 980px) {
    .boost-gform .gfield_required_asterisk,
    .boost-gform .gform-field-label {
        font-size: var(--boost-font-size-tablet);
    }
}
@media all and (max-width: 479px) {
    .boost-gform .gfield_required_asterisk,
    .boost-gform .gform-field-label {
        font-size: var(--boost-font-size-smartphone);
    }
}
/* gform focus outlines — remove all focus rings within the form */
.boost-gform :focus,
.boost-gform :focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
/* gform fields */
.boost-gform .gfield_label,
.boost-gform .gform-theme.gform-theme--framework .gfield .gfield_label_before_complex,
.boost-gform .gform-theme.gform-theme--framework .gfield .gfield_consent_label {
    color: var(--boost-color-main);
}
.boost-gform .gfield_required_asterisk {
    color: var(--boost-color-standing-out);
    margin-left: -2px;
}
.boost-gform .gform-theme.gform-theme--framework .ginput_container input:not([type="checkbox"]),
.boost-gform .gform-theme.gform-theme--framework .ginput_container textarea {
    background-color: var(--boost-color-field-background);
    border: none;
    border-bottom: 1px solid var(--boost-color-main);
    border-radius: 0;
    box-shadow: none;
}
.boost-gform .gform-theme.gform-theme--framework input::placeholder,
.boost-gform .gform-theme.gform-theme--framework textarea::placeholder {
    color: var(--boost-color-placeholders);
}
/* gform button — matches the Divi preset--module--divi-button--default
   from the site's et-cache.  Hover expands padding symmetrically
   (50 → 70 px) and fades in the ETmodules arrow inline. */
.boost-gform .gform_footer {
    justify-content: center;
}
.boost-gform
    .gform-theme.gform-theme--framework.gform_wrapper
    button[type="submit"].boost-gf-button {
    background-color: transparent;
    border: 1px solid var(--boost-color-main);
    border-radius: 0;
    color: var(--boost-color-main);
    cursor: pointer;
    display: inline-block;
    font-family: var(--boost-font-family-main);
    font-size: 24px;
    justify-self: center;
    line-height: 1.7em !important;
    padding: 0.3em 50px;
    position: relative;
    transition-property: all !important;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}
.boost-gform
    .gform-theme.gform-theme--framework.gform_wrapper
    button[type="submit"].boost-gf-button:hover {
    background-color: var(--boost-color-button-on-hover);
    padding: 0.3em 70px;
}
.boost-gform
    .gform-theme.gform-theme--framework.gform_wrapper
    button[type="submit"].boost-gf-button::after {
    content: "E";
    font-family: ETmodules !important;
    font-weight: 400;
    font-size: inherit;
    line-height: 1em;
    display: inline-block;
    margin-left: 0.3em;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s !important;
    text-transform: none;
    font-style: normal;
    text-shadow: none;
    color: var(--boost-color-main);
}
.boost-gform
    .gform-theme.gform-theme--framework.gform_wrapper
    button[type="submit"].boost-gf-button:hover::after {
    opacity: 1;
}
/* gform checkbox */
.boost-gform .gform-theme.gform-theme--framework input[type="checkbox"] {
    border-radius: 0;
    margin-top: 8px;
}
/* gform error messages */
.boost-gform .gform-theme--framework .gform_validation_errors {
    margin-left: -16px;
    margin-right: -16px;
}
.boost-gform
    .gform-theme--framework
    .gform_validation_errors
    .gform_submission_error {
    font-size: 90%;
}
/* gform field validation messages */
.boost-gform .gform-theme.gform-theme--framework .gfield_validation_message {
    font-size: var(--boost-font-size-footprint);
}
/* gform tweaks */
.boost-gform .boost-gform-remove-counter .ginput_counter {
    display: none;
}
.boost-gform
    .boost-validation-msg
    .gfield_validation_message.gfield_description {
    margin-block-start: 2px;
}
