/* =========================================================
   SMH · Formulaire « blog » v1 (socle du formulaire de simulation)
   Charte digitale Homair Sweet mobil-home (oct. 2026)
   Bleu nuit #004A6A · Bleu canard #006187 · Turquoise #009B9A
   Jaune #F8AA00 (CTA uniquement) · Blanc cassé #FFFBF3
   La carte blanche autour du formulaire est gérée dans Elementor.
   ========================================================= */

._frm-bg-b22 { background: transparent !important; }

/* Grille Bitform (60 colonnes) : filet de sécurité si le fichier généré perd son sélecteur */
._frm-b22 { display: grid; grid-template-columns: repeat(60, minmax(1px, 1fr)); }
._frm-b22 { font-family: 'Averta', 'Helvetica Neue', Arial, sans-serif; color: #004A6A; }

/* ---------- En-tête d'étape ---------- */
._frm-b22 .smh-step {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 6px 16px; margin: 0 0 10px;
}
._frm-b22 .smh-step__titre {
    margin: 0; font-size: 14px; font-weight: 800; line-height: 1.3;
    letter-spacing: .06em; text-transform: uppercase; color: #004A6A;
}
._frm-b22 .smh-step__num {
    display: inline-block; margin-right: 10px; padding: 4px 10px; border-radius: 6px;
    background: #004A6A; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
._frm-b22 .smh-step__req { margin: 0; font-size: 12px; color: rgba(0, 74, 106, .72); }
._frm-b22 .smh-step__bar { height: 4px; border-radius: 4px; background: rgba(0, 97, 135, .15); overflow: hidden; }
._frm-b22 .smh-step__fill { display: block; height: 100%; border-radius: 4px; background: #009B9A; }

/* ---------- Mêmes marges pour tous les champs (colonnes alignées) ---------- */
._frm-b22 .b22-89-fld-wrp, ._frm-b22 .b22-90-fld-wrp, ._frm-b22 .b22-84-fld-wrp, ._frm-b22 .b22-36-fld-wrp,
._frm-b22 .b22-3-fld-wrp, ._frm-b22 .b22-2-fld-wrp, ._frm-b22 .b22-10-fld-wrp, ._frm-b22 .b22-81-fld-wrp,
._frm-b22 .b22-39-fld-wrp {
    padding: 6px 8px !important; margin: 0 !important;
}
._frm-b22 .b22-89-lbl-wrp, ._frm-b22 .b22-90-lbl-wrp, ._frm-b22 .b22-84-lbl-wrp, ._frm-b22 .b22-36-lbl-wrp,
._frm-b22 .b22-3-lbl-wrp, ._frm-b22 .b22-2-lbl-wrp, ._frm-b22 .b22-10-lbl-wrp, ._frm-b22 .b22-81-lbl-wrp,
._frm-b22 .b22-39-lbl-wrp {
    margin: 0 0 6px !important; padding: 0 !important;
}

/* ---------- Champs texte : même hauteur que les listes et les cases (52 px) ---------- */
._frm-b22 .b22-3-fld, ._frm-b22 .b22-2-fld, ._frm-b22 .b22-81-fld, ._frm-b22 .b22-39-fld { height: 52px !important; }
._frm-b22 .b22-10-phone-fld-container { display: block !important; height: 52px !important; }
._frm-b22 .b22-10-phone-fld-wrp { height: auto !important; } /* ne pas figer : ce bloc s'agrandit quand la liste des pays s'ouvre */
._frm-b22 .b22-10-phone-inner-wrp { height: 52px !important; }
._frm-b22 .b22-10-phone-inner-wrp { align-items: center; }
._frm-b22 .b22-10-phone-number-input { height: 100% !important; }
._frm-b22 .b22-fld:focus,
._frm-b22 .b22-10-phone-inner-wrp:focus-within {
    border-color: #009B9A !important;
    box-shadow: 0 0 0 3px rgba(0, 155, 154, .2) !important;
    background: #fff !important;
}
._frm-b22 .b22-fld:hover:not(:focus) { border-color: rgba(0, 97, 135, .6) !important; }

/* ---------- Listes déroulantes (destination + budget) ---------- */
._frm-b22 select.b22-89-fld, ._frm-b22 select.b22-90-fld,
._frm-b22 select.b22-89-fld:hover:not(:focus), ._frm-b22 select.b22-90-fld:hover:not(:focus),
._frm-b22 select.b22-89-fld:focus, ._frm-b22 select.b22-90-fld:focus {
    -webkit-appearance: none !important; appearance: none !important;
    height: 52px !important; padding: 0 42px 0 14px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006187' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px !important;
    font-size: 16px !important; color: #004A6A !important;
    cursor: pointer; white-space: nowrap; text-overflow: ellipsis;
}
._frm-b22 select.b22-89-fld:hover:not(:focus), ._frm-b22 select.b22-90-fld:hover:not(:focus) { border-color: rgba(0, 97, 135, .6) !important; }
._frm-b22 select.b22-89-fld:focus, ._frm-b22 select.b22-90-fld:focus {
    border-color: #009B9A !important; box-shadow: 0 0 0 3px rgba(0, 155, 154, .2) !important;
}
._frm-b22 select.b22-89-fld.smh-empty, ._frm-b22 select.b22-90-fld.smh-empty { color: rgba(0, 74, 106, .55) !important; }
._frm-b22 select.b22-89-fld option, ._frm-b22 select.b22-90-fld option { color: #004A6A; }

/* ---------- Cases (couchages + délai), sur une ligne ---------- */
._frm-b22 .b22-84-cc, ._frm-b22 .b22-36-cc {
    display: grid !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; width: 100% !important;
}
._frm-b22 .b22-84-cc { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
._frm-b22 .b22-36-cc { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
._frm-b22 .simulateur-radio { position: relative; width: auto !important; margin: 0 !important; }
._frm-b22 .simulateur-radio [data-bx] { display: none !important; }
._frm-b22 .simulateur-radio [data-cl] {
    display: flex !important; align-items: center; justify-content: center;
    width: 100%; height: 52px; margin: 0 !important; padding: 0 6px !important; box-sizing: border-box;
    border: 1.5px solid rgba(0, 97, 135, .35); border-radius: 10px;
    background: #fff; color: #004A6A; text-align: center; line-height: 1.15;
    cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
._frm-b22 .simulateur-radio [data-cl] * { font-size: 15px !important; font-weight: 700 !important; line-height: 1.15 !important; }
/* « D'ici » sur la 1re ligne, « 3 mois » sur la 2e (espaces insécables dans les libellés) */
._frm-b22 .b22-36-ct { width: min-content; }
._frm-b22 .simulateur-radio:hover [data-cl] { border-color: #006187; background: #FFFBF3; }
._frm-b22 .simulateur-radio input:checked ~ [data-cl] {
    border-color: #004A6A; background: #004A6A; color: #fff;
    box-shadow: 0 6px 14px -8px rgba(0, 74, 106, .6);
}
._frm-b22 .simulateur-radio input:checked ~ [data-cl] * { color: #fff !important; }
._frm-b22 .simulateur-radio input:focus-visible ~ [data-cl] { outline: 2px solid #009B9A; outline-offset: 2px; }

/* ---------- Récapitulatif (étape 2) ---------- */
._frm-b22 .smh-recap {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    padding: 10px 12px; border: 1px solid rgba(0, 97, 135, .15); border-radius: 10px;
    background: #FFFBF3; color: #004A6A; font-size: 14px;
}
._frm-b22 .smh-recap b { font-weight: 800; margin-right: 2px; }
._frm-b22 .smh-recap__tags { display: flex; flex-wrap: wrap; gap: 6px; }
._frm-b22 .smh-tag {
    padding: 4px 10px; border-radius: 6px; background: #fff; border: 1px solid rgba(0, 97, 135, .2);
    font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
._frm-b22 .smh-recap__edit {
    margin-left: auto; color: #006187; font-size: 13px; font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
._frm-b22 .smh-recap__edit:hover { color: #004A6A; }
._frm-b22 .smh-recap:has(.smh-recap__tags:empty) { display: none; }

/* ---------- Boutons ---------- */
/* CTA principal jaune : Continuer + Demander ma simulation */
._frm-b22 .b22-1-btn,
._frm-b22 ._frm-b22-next-step-btn {
    background: #F8AA00 !important;
    color: #004A6A !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 4px #F8AA00, inset 0 0 0 5px rgba(0, 74, 106, .45) !important;
    font-size: 16px !important; font-weight: 700 !important; text-transform: none !important;
    padding: 16px 28px !important; height: auto !important; min-height: 54px;
}
._frm-b22 .b22-1-btn:hover,
._frm-b22 ._frm-b22-next-step-btn:hover {
    background-color: #F8AA00 !important; filter: brightness(1.06);
}
._frm-b22 .b22-1-btn:focus-visible,
._frm-b22 ._frm-b22-next-step-btn:focus-visible { outline: 2px solid #009B9A !important; outline-offset: 3px; }
/* Flèche de la charte sur les CTA principaux (glisse légèrement au survol) */
._frm-b22 .b22-1-btn::after,
._frm-b22 ._frm-b22-next-step-btn::after {
    content: ""; display: inline-block; flex: none; width: 18px; height: 18px; margin-left: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004A6A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}
._frm-b22 .b22-1-btn:hover::after,
._frm-b22 ._frm-b22-next-step-btn:hover::after { transform: translateX(3px); }

/* Retour = lien (un seul CTA jaune par écran) */
._frm-b22 ._frm-b22-prev-step-btn {
    background: transparent !important; color: #006187 !important;
    box-shadow: none !important; border: 0 !important;
    font-size: 15px !important; font-weight: 700 !important;
    text-decoration: underline; text-underline-offset: 3px;
    padding: 16px 8px !important;
}
._frm-b22 ._frm-b22-prev-step-btn:hover { background: transparent !important; color: #004A6A !important; }

/* Retour remonté à gauche de « Demander ma simulation » : lien ajouté par le JS.
   La barre native de l'étape 2 n'est masquée que si le JS a bien tourné (classe smh-js). */
._frm-b22.smh-js [data-step="2"] ._frm-b22-stp-btn-wrpr { display: none !important; }
._frm-b22 .b22-1-inp-wrp { width: 100% !important; }
._frm-b22 .b22-1-inp-fld-wrp { align-items: center; gap: 12px; }
._frm-b22 .smh-retour {
    display: inline-flex; align-items: center; gap: 6px; margin-right: auto;
    padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important; cursor: pointer;
    color: #006187 !important; font-family: inherit; font-size: 15px; font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px;
}
._frm-b22 .smh-retour:hover, ._frm-b22 .smh-retour:focus { background: none !important; box-shadow: none !important; color: #004A6A !important; }
._frm-b22 .smh-retour:focus-visible { outline: 2px solid #009B9A; outline-offset: 3px; }

/* ---------- Case newsletter ---------- */
._frm-b22 .b22-9-ct { color: #004A6A; font-size: 14px; line-height: 1.4; }

/* ---------- Mobile ---------- */
@media (max-width: 570px) {
    ._frm-b22 .simulateur-radio [data-cl] * { font-size: 14px !important; }
    ._frm-b22 .b22-1-inp-fld-wrp, ._frm-b22 .b22-1-inp-wrp { width: 100% !important; }
    ._frm-b22 .b22-1-btn, ._frm-b22 ._frm-b22-next-step-btn { width: 100% !important; }
    ._frm-b22 .smh-step__req { width: 100%; }
    ._frm-b22 .b22-1-inp-fld-wrp { flex-direction: column-reverse; align-items: stretch; }
    ._frm-b22 .smh-retour { margin: 4px auto 0; }
}

/* ---------- Message de confirmation : dans la carte, à la place du formulaire ----------
   Réglages Bitform : Position « Sous le formulaire », Après envoi « Masquer le formulaire »,
   Masquage automatique désactivé. Le contenu du message utilise les classes .smh-ok */
/* Doublon caché que Bitform insère au-dessus (décalait le message vers le bas) */
._frm-bg-b22 [id^="bf-form-msg-wrp-"]:has(.smh-ok) { display: none !important; }
._frm-bg-b22 [class*="msg-container-"]:has(.smh-ok) { margin: 0 !important; padding: 0 !important; }
/* Style du message Bitform neutralisé : fond beige, bordure, padding et coupure des mots (break-all) */
._frm-bg-b22 [class*="msg-container-"]:has(.smh-ok) [class*="msg-background-"],
._frm-bg-b22 [class*="msg-container-"]:has(.smh-ok) .bf-msg-content {
    position: static !important; width: 100% !important; max-width: none !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; word-break: normal !important;
}
._frm-bg-b22 [class*="msg-container-"]:has(.smh-ok) .bf-msg-close { display: none !important; }
._frm-bg-b22 .smh-ok, ._frm-bg-b22 .smh-ok * { word-break: normal !important; overflow-wrap: normal !important; }
._frm-bg-b22 .smh-ok {
    padding: 8px 8px 4px; text-align: center; color: #004A6A;
    font-family: 'Averta', 'Helvetica Neue', Arial, sans-serif;
}
._frm-bg-b22 .smh-ok p { margin: 0; }
._frm-bg-b22 .smh-ok__ic {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin: 0 auto 16px !important; border-radius: 50%;
    background: rgba(0, 155, 154, .12); color: #009B9A; font-size: 30px; font-weight: 800; line-height: 1;
}
._frm-bg-b22 .smh-ok__titre {
    font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.2px;
    text-transform: uppercase; color: #004A6A;
}
._frm-bg-b22 .smh-ok__sign {
    margin-right: .1em; font-family: 'Dear Joe', 'Brush Script MT', cursive;
    font-size: 1.35em; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; /* même couleur que le titre (demande équipe com) */
}
._frm-bg-b22 .smh-ok__txt { max-width: 440px; margin: 12px auto 0 !important; font-size: 16px; line-height: 1.55; color: #004A6A; }

/* =========================================================
   CATALOGUE : ajouts au socle du formulaire de simulation
   Formulaire en une étape, posé dans la carte blanche de la page catalogue.
   ========================================================= */

/* ---------- Hauteur naturelle des champs ----------
   Bitform fixe à chaque champ une hauteur minimale calculée dans son éditeur (souvent trop grande :
   espaces irréguliers, bouton très bas). Les champs suivent ici l'ordre du formulaire, à leur hauteur réelle. */
._frm-b22 { grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: start; }
._frm-b22 > [class*="b22-"] { grid-row: auto !important; min-height: 0 !important; }

/* ---------- En-tête : seulement « *Champs obligatoires » (le titre est dans Elementor) ---------- */
._frm-b22 .smh-step--cat { justify-content: flex-end; margin: 0; }

/* ---------- Message (facultatif) ---------- */
._frm-b22 .b22-105-fld-wrp { padding: 6px 8px !important; margin: 0 !important; }
._frm-b22 .b22-105-lbl-wrp { margin: 0 0 6px !important; padding: 0 !important; }
._frm-b22 textarea.b22-105-fld {
    height: 96px !important; min-height: 96px; padding: 12px 14px !important;
    line-height: 1.45 !important; resize: vertical; font-size: 16px !important;
}

/* ---------- Bouton d'envoi centré ---------- */
._frm-b22 .b22-1-inp-fld-wrp { justify-content: center; }

/* ---------- Réassurance sous le bouton ---------- */
._frm-b22 .smh-rassure { margin: 0; padding: 0 8px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.4; color: #009B9A; }

/* ---------- Lien « sans informations complémentaires » : volontairement très discret ---------- */
._frm-b22 .smh-sans-infos { margin: 0; padding: 0 8px; text-align: center; line-height: 1.3; }
._frm-b22 .smh-sans-infos a,
._frm-b22 .smh-sans-infos a:hover {
    font-size: 11px !important; font-weight: 400 !important; color: rgba(0, 0, 0, .45) !important;
    text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- Confirmation : catalogue affiché dans la carte ---------- */
._frm-bg-b22 .smh-ok__cta {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; padding: 15px 26px;
    border-radius: 12px; background: #F8AA00; color: #004A6A !important; font-weight: 700; font-size: 16px;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 4px #F8AA00, inset 0 0 0 5px rgba(0, 74, 106, .45);
}
._frm-bg-b22 .smh-ok__cta::after {
    content: ""; display: inline-block; flex: none; width: 18px; height: 18px; margin-left: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004A6A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}
._frm-bg-b22 .smh-ok__cta:hover { filter: brightness(1.06); }
._frm-bg-b22 .smh-ok__cta:hover::after { transform: translateX(3px); }
._frm-bg-b22 .smh-ok__cta:focus-visible { outline: 2px solid #009B9A; outline-offset: 3px; }
._frm-bg-b22 .smh-ok__catalogue:empty { display: none; }
._frm-bg-b22 .smh-ok__catalogue iframe {
    display: block; width: 100%; height: 420px; margin: 22px 0 0; border: 0; border-radius: 12px; background: #FFFBF3;
}
._frm-bg-b22 .smh-ok__fin { margin-top: 14px !important; font-size: 15px; color: rgba(0, 74, 106, .8); }

@media (max-width: 570px) {
    ._frm-bg-b22 .smh-ok__cta { width: 100%; }
    ._frm-bg-b22 .smh-ok__catalogue iframe { height: 320px; }
}

/* =========================================================
   BLOG : formulaire compact de la colonne des articles (~400 px)
   Le bandeau bleu (accroche, catalogue, puces) est dans Elementor.
   ========================================================= */
._frm-b22 .b22-37 { height: 0; overflow: hidden; }

/* Libellés masqués visuellement (le texte est dans le champ), gardés pour les lecteurs d'écran */
._frm-b22 .b22-3-lbl-wrp, ._frm-b22 .b22-2-lbl-wrp, ._frm-b22 .b22-81-lbl-wrp, ._frm-b22 .b22-39-lbl-wrp, ._frm-b22 .b22-10-lbl-wrp {
    position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
    clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: 0 !important; padding: 0 !important;
}

/* Champs plus bas (44 px) et plus serrés */
._frm-b22 .b22-3-fld-wrp, ._frm-b22 .b22-2-fld-wrp, ._frm-b22 .b22-81-fld-wrp,
._frm-b22 .b22-39-fld-wrp, ._frm-b22 .b22-10-fld-wrp { padding: 4px !important; }
._frm-b22 .b22-3-fld, ._frm-b22 .b22-2-fld, ._frm-b22 .b22-81-fld, ._frm-b22 .b22-39-fld { height: 44px !important; padding: 0 12px !important; font-size: 15px !important; }
._frm-b22 .b22-10-phone-fld-container, ._frm-b22 .b22-10-phone-inner-wrp { height: 44px !important; }
._frm-b22 .b22-10-phone-number-input { font-size: 15px !important; }

/* Newsletter : une ligne, texte à gauche, interrupteur à droite */
._frm-b22 .b22-9-fld-wrp {
    margin: 6px 4px 0 !important; padding: 8px 12px !important; border: 1.5px dashed rgba(248, 170, 0, .9); border-radius: 12px;
    background: #FFF8EA; transition: background-color .2s, border-color .2s;
}
._frm-b22 .b22-9-fld-wrp:has(input:checked) { background: #FFF1D2; border-style: solid; border-color: #F8AA00; }
._frm-b22 .b22-9-cc, ._frm-b22 .b22-9-cw, ._frm-b22 .b22-9-cl { width: 100%; }
._frm-b22 .b22-9-cl { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
._frm-b22 .b22-9-ct, ._frm-b22 .b22-9-ct * { font-size: 13px !important; line-height: 1.3 !important; color: #004A6A !important; }
._frm-b22 .b22-9-ct b { font-size: 14px !important; font-weight: 800 !important; }
._frm-b22 .b22-9-bx {
    order: 2; flex: none; position: relative; width: 40px !important; height: 24px !important; margin: 0 !important;
    border: 0 !important; border-radius: 12px !important; background: rgba(0, 74, 106, .25) !important; transition: background-color .2s;
}
._frm-b22 .b22-9-bx > * { display: none !important; }
._frm-b22 .b22-9-bx::after { display: none !important; }
._frm-b22 .b22-9-bx::before {
    content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
._frm-b22 .b22-9-ci:checked ~ [data-cl] .b22-9-bx { background: #009B9A !important; }
._frm-b22 .b22-9-ci:checked ~ [data-cl] .b22-9-bx::before { transform: translateX(16px); }
._frm-b22 .b22-9-ci:focus-visible ~ [data-cl] .b22-9-bx { outline: 2px solid #009B9A; outline-offset: 2px; }

/* Bouton pleine largeur, mention RGPD resserrée */
._frm-b22 .b22-1-fld-wrp { padding: 8px 4px 0 !important; }
._frm-b22 .b22-1-inp-wrp, ._frm-b22 .b22-1-inp-fld-wrp, ._frm-b22 .b22-1-btn { width: 100% !important; }
._frm-b22 .b22-1-btn { padding: 13px 18px !important; min-height: 50px; }
._frm-b22 .b22-34-fld-wrp { padding: 6px 4px 0 !important; }
._frm-b22 .b22-34 p { font-size: 10.5px !important; line-height: 1.4 !important; }

/* Confirmation dans le bloc */
._frm-bg-b22 .smh-ok--blog { padding: 12px 6px 6px; }
._frm-bg-b22 .smh-ok--blog .smh-ok__titre { font-size: 22px; }
._frm-bg-b22 .smh-ok--blog .smh-ok__txt { font-size: 15px; }
