/* ==========================================================================
   Gravity Forms – Style de base commun à tous les formulaires

   Point d'accroche : la classe « sa-gf » est ajoutée automatiquement à tous
   les formulaires (inc/gravity-forms.php), sauf ceux exclus dans
   m1_gf_unstyled_form_ids() (Newsletter → css/components/newsletter.css).
     - wrapper      : .gform_wrapper.sa-gf_wrapper
     - confirmation : .gform_confirmation_wrapper.sa-gf

   Le thème GF « gravity-theme » est forcé pour tous les formulaires.
   Styles propres à un formulaire : fichier dédié (ex. form-devis.css).
   ========================================================================== */

html body .gform_wrapper.sa-gf_wrapper,
html body .gform_confirmation_wrapper.sa-gf {
    --sa-black: #111111;
    --sa-text: #1A1A1A;
    --sa-muted: #5C5C5C;
    --sa-yellow: #FFD100;
    --sa-yellow-hover: #F0C400;
    --sa-yellow-light: #FFF8D6;
    --sa-border: #CFCFC9;
    --sa-line: #E8E8E4;
    --sa-card-bg: #F8F8F5;
    --sa-error: #B42318;
    --sa-error-bg: #FEF3F2;
    --sa-success: #067647;
}

html body .gform_wrapper.sa-gf_wrapper {
    margin: 0 0 40px;
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper form {
    margin: 0;
}

/* --------------------------------------------------------------------------
   En-tête (titre / description du formulaire)
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gform_heading {
    margin: 0 0 24px;
}

html body .gform_wrapper.sa-gf_wrapper .gform_title {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gform_description {
    display: block;
    text-align: left;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #444444;
}

/* « * indique les champs nécessaires » : remplacé par la mention à côté du bouton */
html body .gform_wrapper.sa-gf_wrapper .gform_required_legend {
    display: none;
}

/* En-tête sans titre ni description (il ne contient alors que la légende masquée) */
html body .gform_wrapper.sa-gf_wrapper .gform_heading:not(:has(.gform_title, .gform_description)) {
    display: none;
}

/* --------------------------------------------------------------------------
   Grille des champs (12 colonnes)
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gform_fields {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px 20px;
    margin: 0;
    padding: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield--width-eleven-twelfths { grid-column: span 11; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-five-sixths     { grid-column: span 10; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-three-quarter   { grid-column: span 9; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-two-thirds      { grid-column: span 8; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-seven-twelfths  { grid-column: span 7; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-half            { grid-column: span 6; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-five-twelfths   { grid-column: span 5; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-third           { grid-column: span 4; }
html body .gform_wrapper.sa-gf_wrapper .gfield--width-quarter         { grid-column: span 3; }

/* Champs masqués par GF (honeypot, champs cachés, logique conditionnelle) */
html body .gform_wrapper.sa-gf_wrapper .gform_validation_container,
html body .gform_wrapper.sa-gf_wrapper .gfield--type-hidden,
html body .gform_wrapper.sa-gf_wrapper .gf_clear {
    display: none;
}

/* --------------------------------------------------------------------------
   Section (champ « Section »)
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gsection {
    margin-top: 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--sa-line);
}

html body .gform_wrapper.sa-gf_wrapper .gform_fields > .gsection:first-child {
    margin-top: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gsection_title {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gsection_title::before,
html body .gform_wrapper.sa-gf_wrapper .gsection_title::after {
    display: none;
}

html body .gform_wrapper.sa-gf_wrapper .gsection_description {
    margin: 4px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sa-muted);
}

/* --------------------------------------------------------------------------
   Libellés, sous-libellés, descriptions
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gfield_label,
html body .gform_wrapper.sa-gf_wrapper legend.gfield_label,
html body .gform_wrapper.sa-gf_wrapper .gfield_header_item {
    display: block;
    width: auto;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    color: var(--sa-text);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_required {
    margin-left: 3px;
    color: inherit;
    font-weight: inherit;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_required .gfield_required {
    margin-left: 0;
}

/* Mention « (facultatif) », « (si connue) »… en fin de libellé */
html body .gform_wrapper.sa-gf_wrapper .sa-opt {
    font-weight: 400;
    color: var(--sa-muted);
}

html body .gform_wrapper.sa-gf_wrapper .gform-field-label--type-sub {
    display: block;
    margin: 0 0 4px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sa-muted);
}

html body .gform_wrapper.sa-gf_wrapper .field_sublabel_below .gform-field-label--type-sub {
    margin: 4px 0 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_description,
html body .gform_wrapper.sa-gf_wrapper .gform_fileupload_rules {
    display: block;
    text-align: left;
    margin: 4px 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--sa-muted);
}

html body .gform_wrapper.sa-gf_wrapper .field_description_above .gfield_description:not(.validation_message):not(.instruction) {
    margin: 0 0 6px;
}

html body .gform_wrapper.sa-gf_wrapper .screen-reader-text,
html body .gform_wrapper.sa-gf_wrapper .hidden_label > .gfield_label,
html body .gform_wrapper.sa-gf_wrapper .hidden_sub_label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Champs de saisie
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper input[type="text"],
html body .gform_wrapper.sa-gf_wrapper input[type="email"],
html body .gform_wrapper.sa-gf_wrapper input[type="tel"],
html body .gform_wrapper.sa-gf_wrapper input[type="url"],
html body .gform_wrapper.sa-gf_wrapper input[type="number"],
html body .gform_wrapper.sa-gf_wrapper input[type="password"],
html body .gform_wrapper.sa-gf_wrapper select,
html body .gform_wrapper.sa-gf_wrapper textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--sa-border);
    border-radius: 6px;
    background-color: #FFFFFF;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    line-height: normal;
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper select[multiple] {
    height: auto;
    min-height: 120px;
    padding: 6px;
    background-image: none;
}

html body .gform_wrapper.sa-gf_wrapper select[multiple] option {
    padding: 6px 8px;
    border-radius: 4px;
}

html body .gform_wrapper.sa-gf_wrapper select[multiple] option:checked {
    background: var(--sa-yellow-light);
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper textarea {
    height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

html body .gform_wrapper.sa-gf_wrapper textarea.large {
    height: 200px;
}

html body .gform_wrapper.sa-gf_wrapper input::placeholder,
html body .gform_wrapper.sa-gf_wrapper textarea::placeholder {
    color: #757570;
    opacity: 1;
}

html body .gform_wrapper.sa-gf_wrapper input[type="text"]:focus,
html body .gform_wrapper.sa-gf_wrapper input[type="email"]:focus,
html body .gform_wrapper.sa-gf_wrapper input[type="tel"]:focus,
html body .gform_wrapper.sa-gf_wrapper input[type="url"]:focus,
html body .gform_wrapper.sa-gf_wrapper input[type="number"]:focus,
html body .gform_wrapper.sa-gf_wrapper input[type="password"]:focus,
html body .gform_wrapper.sa-gf_wrapper select:focus,
html body .gform_wrapper.sa-gf_wrapper textarea:focus {
    outline: 2px solid var(--sa-black);
    outline-offset: 1px;
    border-color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper input:disabled,
html body .gform_wrapper.sa-gf_wrapper select:disabled,
html body .gform_wrapper.sa-gf_wrapper textarea:disabled {
    background-color: #F1F1EE;
    color: var(--sa-muted);
    cursor: not-allowed;
}

/* Compteur de caractères */
html body .gform_wrapper.sa-gf_wrapper .ginput_counter,
html body .gform_wrapper.sa-gf_wrapper .charleft {
    margin-top: 2px;
    text-align: right;
    font-size: 12px;
    color: var(--sa-muted);
}

/* --------------------------------------------------------------------------
   Champs composés (nom, adresse, e-mail + confirmation, date, heure…)
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .ginput_complex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    margin: 0;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_complex > .gform-grid-col,
html body .gform_wrapper.sa-gf_wrapper .ginput_complex > span,
html body .gform_wrapper.sa-gf_wrapper .ginput_complex > div:not(.gf_clear) {
    flex: 1 1 200px;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_complex > .ginput_full {
    flex-basis: 100%;
}

/* Nom : civilité étroite */
html body .gform_wrapper.sa-gf_wrapper .ginput_complex > .name_prefix,
html body .gform_wrapper.sa-gf_wrapper .ginput_complex > .name_suffix {
    flex: 0 0 110px;
}

/* Date en champs / listes : jour, mois, année côte à côte */
html body .gform_wrapper.sa-gf_wrapper .gfield--type-date .ginput_complex {
    flex-wrap: nowrap;
    gap: 8px;
}

html body .gform_wrapper.sa-gf_wrapper .gfield--type-date .ginput_complex > div:not(.gf_clear) {
    flex: 1 1 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield--type-date .ginput_complex > .gfield_date_year,
html body .gform_wrapper.sa-gf_wrapper .gfield--type-date .ginput_complex > .gfield_date_dropdown_year {
    flex-grow: 1.4;
}

/* Heure : HH : MM (AM/PM) */
html body .gform_wrapper.sa-gf_wrapper .gfield--type-time .ginput_complex {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

html body .gform_wrapper.sa-gf_wrapper .gfield--type-time .ginput_complex > div:not(.gf_clear) {
    flex: 0 0 84px;
    max-width: none;
    min-width: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield--type-time .ginput_complex > div.hour_minute_colon {
    flex: 0 0 auto;
    align-self: center;
    padding: 0;
    font-weight: 700;
}

html body .gform_wrapper.sa-gf_wrapper .gfield--type-time .ginput_complex > div.gfield_time_ampm {
    flex: 0 0 96px;
}

/* Date avec calendrier : icône dans le champ */
html body .gform_wrapper.sa-gf_wrapper .ginput_container_date:has(.gform-datepicker-toggle),
html body .gform_wrapper.sa-gf_wrapper .ginput_container_date:has(.ui-datepicker-trigger) {
    position: relative;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_container_date input.datepicker {
    padding-right: 46px;
}

html body .gform_wrapper.sa-gf_wrapper .gform-datepicker-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: -18px 0 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    box-shadow: none;
    color: var(--sa-black);
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper .gform-datepicker-toggle:hover {
    background: var(--sa-yellow-light);
}

/* Mot de passe : indicateur de robustesse */
html body .gform_wrapper.sa-gf_wrapper .password_input_container {
    position: relative;
    display: block;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_password_strength {
    box-sizing: border-box;
    margin: 10px 0 0;
    padding: 8px 12px;
    border: 1px solid var(--sa-border);
    border-radius: 6px;
    background: var(--sa-card-bg);
    font-size: 13px;
    color: var(--sa-muted);
    text-align: center;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_password_strength.short,
html body .gform_wrapper.sa-gf_wrapper .gfield_password_strength.bad,
html body .gform_wrapper.sa-gf_wrapper .gfield_password_strength.mismatch {
    border-color: #F5B5AE;
    background: var(--sa-error-bg);
    color: var(--sa-error);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_password_strength.good {
    border-color: #F0DE80;
    background: var(--sa-yellow-light);
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_password_strength.strong {
    border-color: #A6E3C3;
    background: #ECFDF3;
    color: var(--sa-success);
}

/* --------------------------------------------------------------------------
   Boutons radio et cases à cocher : puces
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gfield_radio,
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice,
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox .gchoice {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    background: #FFFFFF;
    transition: border-color .15s, background-color .15s;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice:hover,
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox .gchoice:hover {
    border-color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice:has(input:checked),
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox .gchoice:has(input:checked) {
    border-color: var(--sa-black);
    background: var(--sa-yellow-light);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice:has(input:focus-visible),
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox .gchoice:has(input:focus-visible) {
    outline: 2px solid var(--sa-black);
    outline-offset: 2px;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice input.gfield-choice-input,
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox .gchoice input.gfield-choice-input {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 16px;
    height: 16px;
    margin: -8px 0 0;
    accent-color: var(--sa-black);
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice label,
html body .gform_wrapper.sa-gf_wrapper .gfield_checkbox .gchoice label {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 16px 0 40px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--sa-text);
    cursor: pointer;
}

/* Choix « Autre » : champ texte dans la puce */
html body .gform_wrapper.sa-gf_wrapper .gfield_radio .gchoice input.gchoice_other_control {
    width: 160px;
    max-width: calc(100% - 52px);
    height: 34px;
    margin: 0 6px 0 40px;
    padding: 0 10px;
    font-size: 14px;
}

/* Bouton « Tout sélectionner » */
html body .gform_wrapper.sa-gf_wrapper .gfield-choice-toggle-all {
    display: flex;
    align-items: center;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_choice_all_toggle {
    min-height: 44px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    background: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-transform: none;
    color: var(--sa-black);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Liste (tableau de lignes)
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gfield_list_header,
html body .gform_wrapper.sa-gf_wrapper .gfield_list_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_header > .gfield_header_item,
html body .gform_wrapper.sa-gf_wrapper .gfield_list_group > .gfield_list_cell {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_header > .gfield_header_item--icons,
html body .gform_wrapper.sa-gf_wrapper .gfield_list_group > .gfield_list_icons {
    display: flex;
    flex: 0 0 76px;
    gap: 4px;
    margin: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_icons button {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--sa-border);
    border-radius: 50%;
    background: #FFFFFF center / 16px no-repeat;
    box-shadow: none;
    font-size: 0;
    color: transparent;
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_icons button:hover {
    border-color: var(--sa-black);
    background-color: var(--sa-yellow-light);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_icons .add_list_item {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

html body .gform_wrapper.sa-gf_wrapper .gfield_list_icons .delete_list_item {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Envoi de fichiers
   -------------------------------------------------------------------------- */
/* Fichier unique */
html body .gform_wrapper.sa-gf_wrapper input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    padding: 6px;
    border: 2px dashed var(--sa-border);
    border-radius: 8px;
    background: #FAFAF8;
    font-family: inherit;
    font-size: 14px;
    color: var(--sa-muted);
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--sa-black);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--sa-black);
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper input[type="file"]:hover::file-selector-button {
    background: var(--sa-yellow-light);
}

/* Fichiers multiples : zone de dépôt */
html body .gform_wrapper.sa-gf_wrapper .gform_drop_area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 5px;
    box-sizing: border-box;
    min-height: 48px;
    margin: 0;
    padding: 8px 16px;
    border: 2px dashed var(--sa-border);
    border-radius: 8px;
    background: #FAFAF8;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

html body .gform_wrapper.sa-gf_wrapper .gform_drop_area:hover,
html body .gform_wrapper.sa-gf_wrapper .gform_drop_area.hover {
    border-color: var(--sa-black);
    background: var(--sa-yellow-light);
}

html body .gform_wrapper.sa-gf_wrapper .gform_drop_area::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body .gform_wrapper.sa-gf_wrapper .gform_drop_instructions {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gform_button_select_files {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: var(--sa-black);
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper .gform_button_select_files:hover,
html body .gform_wrapper.sa-gf_wrapper .gform_button_select_files:focus-visible {
    text-decoration: underline;
}

/* Fichiers ajoutés */
html body .gform_wrapper.sa-gf_wrapper .ginput_preview_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview_list:not(:empty) {
    margin-top: 8px;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 6px 4px 12px;
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 13px;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gfield_fileupload_filesize,
html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gfield_fileupload_percent {
    color: var(--sa-muted);
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gfield_fileupload_progress {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gfield_fileupload_progressbar {
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 999px;
    background: #EDEDE8;
    overflow: hidden;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gfield_fileupload_progressbar_progress {
    display: block;
    height: 100%;
    background: var(--sa-yellow);
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gfield_fileupload_cancel {
    font-size: 13px;
    color: var(--sa-black);
    text-decoration: underline;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_preview .gform_delete_file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #EDEDE8;
    box-shadow: none;
    color: var(--sa-black);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Consentement
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .ginput_container_consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_container_consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--sa-black);
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_container_consent label {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    color: #333333;
    cursor: pointer;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_container_consent .gfield_required {
    display: none;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_container_consent a,
html body .gform_wrapper.sa-gf_wrapper .gfield_html a {
    color: var(--sa-black);
    text-decoration: underline;
}

html body .gform_wrapper.sa-gf_wrapper .ginput_container_consent a:hover,
html body .gform_wrapper.sa-gf_wrapper .gfield_html a:hover {
    color: #444444;
}

/* Texte complet des conditions : encadré défilant */
html body .gform_wrapper.sa-gf_wrapper .gfield_consent_description {
    box-sizing: border-box;
    max-height: 160px;
    margin: 10px 0 0;
    padding: 12px 14px;
    overflow-y: auto;
    border: 1px solid var(--sa-line);
    border-radius: 6px;
    background: var(--sa-card-bg);
    font-size: 13px;
    line-height: 1.5;
    color: #444444;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_consent_description_text {
    max-height: none;
    padding: 0;
    border: 0;
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   Bloc HTML
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gfield_html {
    font-size: 14px;
    line-height: 1.55;
    color: #333333;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_html > :first-child {
    margin-top: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_html > :last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Formulaires en plusieurs étapes
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gf_page_steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0 0 24px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--sa-line);
}

html body .gform_wrapper.sa-gf_wrapper .gf_step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--sa-muted);
    opacity: 1;
}

html body .gform_wrapper.sa-gf_wrapper .gf_step_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border: 2px solid var(--sa-border);
    border-radius: 50%;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    color: var(--sa-muted);
}

html body .gform_wrapper.sa-gf_wrapper .gf_step_active {
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gf_step_active .gf_step_number {
    border-color: var(--sa-yellow);
    background: var(--sa-yellow);
    color: var(--sa-black);
}

html body .gform_wrapper.sa-gf_wrapper .gf_step_completed .gf_step_number {
    border-color: var(--sa-black);
    background: var(--sa-black);
    color: #FFFFFF;
}

html body .gform_wrapper.sa-gf_wrapper .gf_step_completed .gf_step_number::before,
html body .gform_wrapper.sa-gf_wrapper .gf_step_completed .gf_step_number::after {
    display: none;
}

/* Barre de progression */
html body .gform_wrapper.sa-gf_wrapper .gf_progressbar_wrapper {
    margin: 0 0 24px;
}

html body .gform_wrapper.sa-gf_wrapper .gf_progressbar_title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sa-text);
}

html body .gform_wrapper.sa-gf_wrapper .gf_progressbar {
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: #EDEDE8;
    overflow: hidden;
}

html body .gform_wrapper.sa-gf_wrapper .gf_progressbar_percentage {
    height: 100%;
    border-radius: 999px;
    background: var(--sa-yellow);
    color: transparent;
    font-size: 0;
}

/* --------------------------------------------------------------------------
   Boutons (envoi, suivant, précédent)
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gform_footer,
html body .gform_wrapper.sa-gf_wrapper .gform_page_footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

html body .gform_wrapper.sa-gf_wrapper .gform_button,
html body .gform_wrapper.sa-gf_wrapper .gform_next_button,
html body .gform_wrapper.sa-gf_wrapper .gform_previous_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    margin: 0;
    padding: 0 32px;
    border: 0;
    border-radius: 8px;
    background: var(--sa-yellow);
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--sa-black);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

html body .gform_wrapper.sa-gf_wrapper .gform_button:hover,
html body .gform_wrapper.sa-gf_wrapper .gform_next_button:hover {
    background: var(--sa-yellow-hover);
}

html body .gform_wrapper.sa-gf_wrapper .gform_previous_button {
    box-shadow: inset 0 0 0 1px var(--sa-black);
    background: #FFFFFF;
}

html body .gform_wrapper.sa-gf_wrapper .gform_previous_button:hover {
    background: var(--sa-yellow-light);
}

html body .gform_wrapper.sa-gf_wrapper .gform_button:focus-visible,
html body .gform_wrapper.sa-gf_wrapper .gform_next_button:focus-visible,
html body .gform_wrapper.sa-gf_wrapper .gform_previous_button:focus-visible {
    outline: 2px solid var(--sa-black);
    outline-offset: 2px;
}

html body .gform_wrapper.sa-gf_wrapper .gform_button svg,
html body .gform_wrapper.sa-gf_wrapper .gform_next_button svg {
    flex: 0 0 auto;
    transition: transform .15s;
}

html body .gform_wrapper.sa-gf_wrapper .gform_button:hover svg,
html body .gform_wrapper.sa-gf_wrapper .gform_next_button:hover svg {
    transform: translateX(3px);
}

html body .gform_wrapper.sa-gf_wrapper .sa-gf-required-note {
    font-size: 13px;
    color: var(--sa-muted);
}

html body .gform_wrapper.sa-gf_wrapper .gform_ajax_spinner {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Erreurs de validation
   -------------------------------------------------------------------------- */
html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors {
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 0;
    border-left: 4px solid var(--sa-error);
    border-radius: 6px;
    background: var(--sa-error-bg);
    box-shadow: none;
}

html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors:focus {
    outline: none;
}

html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors:focus-visible {
    outline: 2px solid var(--sa-error);
    outline-offset: 2px;
}

html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors .gform_submission_error {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sa-error);
}

html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors .gform-icon {
    display: none;
}

html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors ol {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 13px;
}

html body .gform_wrapper.sa-gf_wrapper .gform_validation_errors ol a {
    color: var(--sa-error);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_error .gfield_label,
html body .gform_wrapper.sa-gf_wrapper .gfield_error legend {
    color: var(--sa-text);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_error input[type="text"],
html body .gform_wrapper.sa-gf_wrapper .gfield_error input[type="email"],
html body .gform_wrapper.sa-gf_wrapper .gfield_error input[type="tel"],
html body .gform_wrapper.sa-gf_wrapper .gfield_error input[type="url"],
html body .gform_wrapper.sa-gf_wrapper .gfield_error input[type="number"],
html body .gform_wrapper.sa-gf_wrapper .gfield_error input[type="password"],
html body .gform_wrapper.sa-gf_wrapper .gfield_error select,
html body .gform_wrapper.sa-gf_wrapper .gfield_error textarea {
    border-color: var(--sa-error);
}

html body .gform_wrapper.sa-gf_wrapper .gfield_error .gchoice {
    border-color: #F5B5AE;
}

html body .gform_wrapper.sa-gf_wrapper .gfield_validation_message,
html body .gform_wrapper.sa-gf_wrapper .validation_message {
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--sa-error);
}

html body .gform_wrapper.sa-gf_wrapper .field_validation_above .gfield_validation_message {
    margin: 0 0 6px;
}

/* --------------------------------------------------------------------------
   Message de confirmation
   -------------------------------------------------------------------------- */
html body .gform_confirmation_wrapper.sa-gf {
    margin: 0 0 40px;
}

html body .gform_confirmation_wrapper.sa-gf .gform_confirmation_message {
    box-sizing: border-box;
    padding: 40px;
    border-top: 4px solid var(--sa-yellow);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    color: #444444;
}

html body .gform_confirmation_wrapper.sa-gf .gform_confirmation_message::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--sa-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 28px no-repeat;
}

html body .gform_confirmation_wrapper.sa-gf .gform_confirmation_message h2,
html body .gform_confirmation_wrapper.sa-gf .gform_confirmation_message h3 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    color: var(--sa-black);
}

html body .gform_confirmation_wrapper.sa-gf .gform_confirmation_message p {
    margin: 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    html body .gform_wrapper.sa-gf_wrapper .gform_fields > .gfield {
        grid-column: 1 / -1;
    }

    html body .gform_wrapper.sa-gf_wrapper .gform_button,
    html body .gform_wrapper.sa-gf_wrapper .gform_next_button,
    html body .gform_wrapper.sa-gf_wrapper .gform_previous_button {
        width: 100%;
        padding: 0 20px;
    }

    html body .gform_wrapper.sa-gf_wrapper .gfield_list_header {
        display: none;
    }

    html body .gform_wrapper.sa-gf_wrapper .gfield_list_group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--sa-line);
        border-radius: 8px;
        background: var(--sa-card-bg);
    }

    html body .gform_wrapper.sa-gf_wrapper .gfield_list_group > .gfield_list_cell {
        width: auto;
        margin: 0;
    }

    html body .gform_wrapper.sa-gf_wrapper .gfield_list_group > .gfield_list_icons {
        flex: 0 0 auto;
        justify-content: flex-end;
        width: auto;
        margin: 0;
        padding: 0;
        background: none;
    }

    html body .gform_wrapper.sa-gf_wrapper .gfield_list_group > .gfield_list_cell {
        flex-basis: 100%;
    }

    html body .gform_wrapper.sa-gf_wrapper .gfield_list_group > .gfield_list_cell::before {
        content: attr(data-label);
        display: block;
        margin: 0 0 4px;
        font-size: 13px;
        font-weight: 600;
    }

    html body .gform_confirmation_wrapper.sa-gf .gform_confirmation_message {
        padding: 32px 20px;
    }
}
