/* =========================================================
   SMH · Popin visite v1 (socle du formulaire contact) (socle du formulaire de simulation + ajouts en fin de fichier)
   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-b23 { background: transparent !important; }

/* Grille Bitform (60 colonnes) : filet de sécurité si le fichier généré perd son sélecteur */
._frm-b23 { display: grid; grid-template-columns: repeat(60, minmax(1px, 1fr)); }
._frm-b23 { font-family: 'Averta', 'Helvetica Neue', Arial, sans-serif; color: #004A6A; }

/* ---------- En-tête d'étape ---------- */
._frm-b23 .smh-step {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 6px 16px; margin: 0 0 10px;
}
._frm-b23 .smh-step__titre {
    margin: 0; font-size: 14px; font-weight: 800; line-height: 1.3;
    letter-spacing: .06em; text-transform: uppercase; color: #004A6A;
}
._frm-b23 .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-b23 .smh-step__req { margin: 0; font-size: 12px; color: rgba(0, 74, 106, .72); }
._frm-b23 .smh-step__bar { height: 4px; border-radius: 4px; background: rgba(0, 97, 135, .15); overflow: hidden; }
._frm-b23 .smh-step__fill { display: block; height: 100%; border-radius: 4px; background: #009B9A; }

/* ---------- Mêmes marges pour tous les champs (colonnes alignées) ---------- */
._frm-b23 .b23-89-fld-wrp, ._frm-b23 .b23-90-fld-wrp, ._frm-b23 .b23-84-fld-wrp, ._frm-b23 .b23-36-fld-wrp,
._frm-b23 .b23-3-fld-wrp, ._frm-b23 .b23-2-fld-wrp, ._frm-b23 .b23-10-fld-wrp, ._frm-b23 .b23-81-fld-wrp,
._frm-b23 .b23-39-fld-wrp {
    padding: 6px 8px !important; margin: 0 !important;
}
._frm-b23 .b23-89-lbl-wrp, ._frm-b23 .b23-90-lbl-wrp, ._frm-b23 .b23-84-lbl-wrp, ._frm-b23 .b23-36-lbl-wrp,
._frm-b23 .b23-3-lbl-wrp, ._frm-b23 .b23-2-lbl-wrp, ._frm-b23 .b23-10-lbl-wrp, ._frm-b23 .b23-81-lbl-wrp,
._frm-b23 .b23-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-b23 .b23-3-fld, ._frm-b23 .b23-2-fld, ._frm-b23 .b23-81-fld, ._frm-b23 .b23-39-fld { height: 52px !important; }
._frm-b23 .b23-10-phone-fld-container { display: block !important; height: 52px !important; }
._frm-b23 .b23-10-phone-fld-wrp { height: auto !important; } /* ne pas figer : ce bloc s'agrandit quand la liste des pays s'ouvre */
._frm-b23 .b23-10-phone-inner-wrp { height: 52px !important; }
._frm-b23 .b23-10-phone-inner-wrp { align-items: center; }
._frm-b23 .b23-10-phone-number-input { height: 100% !important; }
._frm-b23 .b23-fld:focus,
._frm-b23 .b23-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-b23 .b23-fld:hover:not(:focus) { border-color: rgba(0, 97, 135, .6) !important; }

/* ---------- Listes déroulantes (destination + budget) ---------- */
._frm-b23 select.b23-89-fld, ._frm-b23 select.b23-90-fld,
._frm-b23 select.b23-89-fld:hover:not(:focus), ._frm-b23 select.b23-90-fld:hover:not(:focus),
._frm-b23 select.b23-89-fld:focus, ._frm-b23 select.b23-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-b23 select.b23-89-fld:hover:not(:focus), ._frm-b23 select.b23-90-fld:hover:not(:focus) { border-color: rgba(0, 97, 135, .6) !important; }
._frm-b23 select.b23-89-fld:focus, ._frm-b23 select.b23-90-fld:focus {
    border-color: #009B9A !important; box-shadow: 0 0 0 3px rgba(0, 155, 154, .2) !important;
}
._frm-b23 select.b23-89-fld.smh-empty, ._frm-b23 select.b23-90-fld.smh-empty { color: rgba(0, 74, 106, .55) !important; }
._frm-b23 select.b23-89-fld option, ._frm-b23 select.b23-90-fld option { color: #004A6A; }

/* ---------- Cases (couchages + délai), sur une ligne ---------- */
._frm-b23 .b23-84-cc, ._frm-b23 .b23-36-cc {
    display: grid !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; width: 100% !important;
}
._frm-b23 .b23-84-cc { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
._frm-b23 .b23-36-cc { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
._frm-b23 .simulateur-radio { position: relative; width: auto !important; margin: 0 !important; }
._frm-b23 .simulateur-radio [data-bx] { display: none !important; }
._frm-b23 .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-b23 .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-b23 .b23-36-ct { width: min-content; }
._frm-b23 .simulateur-radio:hover [data-cl] { border-color: #006187; background: #FFFBF3; }
._frm-b23 .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-b23 .simulateur-radio input:checked ~ [data-cl] * { color: #fff !important; }
._frm-b23 .simulateur-radio input:focus-visible ~ [data-cl] { outline: 2px solid #009B9A; outline-offset: 2px; }

/* ---------- Récapitulatif (étape 2) ---------- */
._frm-b23 .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-b23 .smh-recap b { font-weight: 800; margin-right: 2px; }
._frm-b23 .smh-recap__tags { display: flex; flex-wrap: wrap; gap: 6px; }
._frm-b23 .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-b23 .smh-recap__edit {
    margin-left: auto; color: #006187; font-size: 13px; font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
._frm-b23 .smh-recap__edit:hover { color: #004A6A; }
._frm-b23 .smh-recap:has(.smh-recap__tags:empty) { display: none; }

/* ---------- Boutons ---------- */
/* CTA principal jaune : Continuer + Demander ma simulation */
._frm-b23 .b23-1-btn,
._frm-b23 ._frm-b23-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-b23 .b23-1-btn:hover,
._frm-b23 ._frm-b23-next-step-btn:hover {
    background-color: #F8AA00 !important; filter: brightness(1.06);
}
._frm-b23 .b23-1-btn:focus-visible,
._frm-b23 ._frm-b23-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-b23 .b23-1-btn::after,
._frm-b23 ._frm-b23-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-b23 .b23-1-btn:hover::after,
._frm-b23 ._frm-b23-next-step-btn:hover::after { transform: translateX(3px); }

/* Retour = lien (un seul CTA jaune par écran) */
._frm-b23 ._frm-b23-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-b23 ._frm-b23-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-b23.smh-js [data-step="2"] ._frm-b23-stp-btn-wrpr { display: none !important; }
._frm-b23 .b23-1-inp-wrp { width: 100% !important; }
._frm-b23 .b23-1-inp-fld-wrp { align-items: center; gap: 12px; }
._frm-b23 .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-b23 .smh-retour:hover, ._frm-b23 .smh-retour:focus { background: none !important; box-shadow: none !important; color: #004A6A !important; }
._frm-b23 .smh-retour:focus-visible { outline: 2px solid #009B9A; outline-offset: 3px; }

/* ---------- Case newsletter ---------- */
._frm-b23 .b23-9-ct { color: #004A6A; font-size: 14px; line-height: 1.4; }

/* ---------- Mobile ---------- */
@media (max-width: 570px) {
    ._frm-b23 .simulateur-radio [data-cl] * { font-size: 14px !important; }
    ._frm-b23 .b23-1-inp-fld-wrp, ._frm-b23 .b23-1-inp-wrp { width: 100% !important; }
    ._frm-b23 .b23-1-btn, ._frm-b23 ._frm-b23-next-step-btn { width: 100% !important; }
    ._frm-b23 .smh-step__req { width: 100%; }
    ._frm-b23 .b23-1-inp-fld-wrp { flex-direction: column-reverse; align-items: stretch; }
    ._frm-b23 .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-b23 [id^="bf-form-msg-wrp-"]:has(.smh-ok) { display: none !important; }
._frm-bg-b23 [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-b23 [class*="msg-container-"]:has(.smh-ok) [class*="msg-background-"],
._frm-bg-b23 [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-b23 [class*="msg-container-"]:has(.smh-ok) .bf-msg-close { display: none !important; }
._frm-bg-b23 .smh-ok, ._frm-bg-b23 .smh-ok * { word-break: normal !important; overflow-wrap: normal !important; }
._frm-bg-b23 .smh-ok {
    padding: 8px 8px 4px; text-align: center; color: #004A6A;
    font-family: 'Averta', 'Helvetica Neue', Arial, sans-serif;
}
._frm-bg-b23 .smh-ok p { margin: 0; }
._frm-bg-b23 .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-b23 .smh-ok__titre {
    font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.2px;
    text-transform: uppercase; color: #004A6A;
}
._frm-bg-b23 .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-b23 .smh-ok__txt { max-width: 440px; margin: 12px auto 0 !important; font-size: 16px; line-height: 1.55; color: #004A6A; }

/* =========================================================
   POPIN CONTACT : ajouts au socle du formulaire de simulation
   ========================================================= */

/* ---------- Motif : 3 grandes cases avec pictogramme, compactées une fois le choix fait ---------- */
._frm-b23 .b23-100-fld-wrp, ._frm-b23 .b23-101-fld-wrp, ._frm-b23 .b23-102-fld-wrp,
._frm-b23 .b23-104-fld-wrp, ._frm-b23 .b23-105-fld-wrp, ._frm-b23 .b23-109-fld-wrp {
    padding: 6px 8px !important; margin: 0 !important;
}
._frm-b23 .b23-100-lbl-wrp, ._frm-b23 .b23-101-lbl-wrp, ._frm-b23 .b23-102-lbl-wrp,
._frm-b23 .b23-104-lbl-wrp, ._frm-b23 .b23-105-lbl-wrp, ._frm-b23 .b23-109-lbl-wrp {
    margin: 0 0 6px !important; padding: 0 !important;
}
._frm-b23 .b23-100-cc, ._frm-b23 .b23-101-cc {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important; margin: 0 !important; padding: 0 !important; width: 100% !important;
}
._frm-b23 .b23-100-cc [data-cl] { flex-direction: column; gap: 6px; height: 76px !important; }
._frm-b23 .b23-100-cc [data-cl]::before {
    content: ""; flex: none; width: 24px; height: 24px; background: center / contain no-repeat;
}
._frm-b23 .b23-100-cc > :nth-child(1) [data-cl]::before {
    background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5L12 4l9 7.5'/%3E%3Cpath d='M5 10v9.5a.5.5 0 0 0 .5.5H10v-5.5h4V20h4.5a.5.5 0 0 0 .5-.5V10'/%3E%3C/svg%3E");
}
._frm-b23 .b23-100-cc > :nth-child(2) [data-cl]::before {
    background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 12a8.5 8.5 0 0 1-12.4 7.6L3.5 20.5l1-4.4A8.5 8.5 0 1 1 20.5 12z'/%3E%3Cpath d='M9.8 9.6a2.3 2.3 0 0 1 4.4.9c0 1.6-2.2 1.9-2.2 3.2M12 16.5v.3'/%3E%3C/svg%3E");
}
._frm-b23 .b23-100-cc > :nth-child(3) [data-cl]::before {
    background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4.5'/%3E%3Cpath d='M11.5 11.5L20 3M16.5 6.5l3 3M14 9l2 2'/%3E%3C/svg%3E");
}
._frm-b23 .b23-100-cc input:checked ~ [data-cl]::before { filter: brightness(0) invert(1); }
._frm-b23 .b23-100-cc:has(input:checked) [data-cl] { height: 46px !important; flex-direction: row; gap: 8px; }
._frm-b23 .b23-100-cc:has(input:checked) [data-cl]::before { width: 20px; height: 20px; }
/* « Apport » sur une ligne, « + crédit » sur la suivante (espace insécable dans le libellé) */
._frm-b23 .b23-101-ct { width: min-content; }

/* ---------- Zones de message ---------- */
._frm-b23 textarea.b23-104-fld, ._frm-b23 textarea.b23-105-fld {
    height: 96px !important; min-height: 96px; padding: 12px 14px !important;
    line-height: 1.45 !important; resize: vertical; font-size: 16px !important;
}

/* ---------- « ＋ Ajouter un message » / « ＋ Préciser mon projet » : cases à cocher présentées en liens ---------- */
._frm-b23 .b23-103-fld-wrp, ._frm-b23 .b23-106-fld-wrp { padding: 0 8px !important; margin: 0 !important; }
._frm-b23 .b23-103-bx, ._frm-b23 .b23-106-bx { display: none !important; }
._frm-b23 .b23-103-cl, ._frm-b23 .b23-106-cl {
    display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 0 !important;
    color: #006187 !important; cursor: pointer;
}
._frm-b23 .b23-103-ct, ._frm-b23 .b23-106-ct {
    font-size: 14px !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 3px;
}
._frm-b23 .b23-103-cl::before, ._frm-b23 .b23-106-cl::before {
    content: "+"; display: inline-block; font-size: 20px; font-weight: 700; line-height: 1;
}
._frm-b23 .b23-103-cl:hover, ._frm-b23 .b23-106-cl:hover { color: #004A6A !important; }
/* une fois cliqué, le lien disparaît : la zone correspondante s'affiche à sa place */
._frm-b23 .b23-103:has(input:checked), ._frm-b23 .b23-106:has(input:checked) { display: none !important; }

/* ---------- Encadrés (note résident, rappel résidence principale) ---------- */
._frm-b23 .smh-info {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
    font-size: 13px; line-height: 1.45; color: #004A6A;
}
._frm-b23 .smh-info p { margin: 0; }
._frm-b23 .smh-info::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: center / contain no-repeat; }
._frm-b23 .smh-info--sable { background: #FFFBF3; border: 1px solid rgba(248, 170, 0, .35); }
._frm-b23 .smh-info--sable::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98500' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
}
._frm-b23 .smh-info--turq { background: rgba(0, 155, 154, .08); }
._frm-b23 .smh-info--turq::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009B9A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4.5'/%3E%3Cpath d='M11.5 11.5L20 3M16.5 6.5l3 3M14 9l2 2'/%3E%3C/svg%3E");
}
._frm-b23 .smh-info a { color: #006187; font-weight: 700; }

/* ---------- Bouton toujours visible en bas (la page défile dans l'iframe) ---------- */
._frm-b23 ._frm-b23-stp-btn-wrpr,
._frm-b23 .b23-1 {
    position: sticky; bottom: 0; z-index: 5; background: #fff;
}
._frm-b23 ._frm-b23-stp-btn-wrpr { padding-top: 10px !important; padding-bottom: 12px !important; }

/* ---------- Confirmation : bouton Fermer (il ferme la popin) ---------- */
._frm-bg-b23 .smh-ok__fermer {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; padding: 15px 28px;
    border-radius: 12px; background: #004A6A; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer;
    box-shadow: inset 0 0 0 4px #004A6A, inset 0 0 0 5px rgba(255, 255, 255, .6);
}
._frm-bg-b23 .smh-ok__fermer:focus-visible { outline: 2px solid #009B9A; outline-offset: 3px; }

@media (max-width: 570px) {
    ._frm-b23 .b23-100-cc [data-cl] { height: 72px !important; }
    ._frm-b23 .b23-100-cc [data-cl] * { font-size: 13px !important; }
    ._frm-b23 .b23-100-cc:has(input:checked) [data-cl] { height: 44px !important; }
    ._frm-b23 .b23-100-cc:has(input:checked) [data-cl]::before { display: none; }
    ._frm-b23 ._frm-b23-stp-btn-wrpr, ._frm-b23 .b23-1 { box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .35); }
}

/* ---------- Mobile : « Continuer » centré (il passait sous la bulle du chat, en bas à droite) ---------- */
@media (max-width: 570px) {
    ._frm-b23 ._frm-b23-stp-btn-cntnt { position: relative; justify-content: center !important; }
    ._frm-b23 ._frm-b23-prev-step-btn { position: absolute; left: 0; }
    ._frm-b23 ._frm-b23-next-step-btn { width: auto !important; min-width: 190px; }
}

/* ---------- Encadré « Déjà propriétaire » : avertissement en tons chauds, au-dessus du message ---------- */
._frm-b23 .smh-info--alerte {
    background: #FFF4D6; border: 1px solid rgba(248, 170, 0, .55); border-left: 4px solid #F8AA00;
    font-size: 14px; line-height: 1.5;
}
._frm-b23 .smh-info--alerte::before {
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B87A00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
._frm-b23 .smh-info--alerte b { font-weight: 800; }
._frm-b23 .smh-info--alerte a { color: #004A6A; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }


/* =========================================================
   VISITE (fiches mobil-home) : ajouts au socle du formulaire contact
   Le formulaire vit dans la fenêtre <dialog id="smh-visite"> ajoutée aux fiches par smh-popin-visite.php (mu-plugin),
   ouverte par les boutons .popmake-visite. Le JS remplit le panneau du mobil-home (desktop) et la barre (mobile).
   ========================================================= */

/* Police Dear Joe (déjà dans la médiathèque) : les fiches produit ne la chargent pas d'elles-mêmes */
@font-face { font-family: 'Dear Joe'; src: url('/wp-content/uploads/2026/10/DearJoe.woff') format('woff'); font-weight: 400; font-display: swap; }

/* ---------- Hauteur naturelle des champs (Bitform fixe des hauteurs minimales trop grandes) ---------- */
._frm-b23 { grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: start; }
._frm-b23 > [class*="b23-"] { grid-row: auto !important; min-height: 0 !important; }

/* ---------- En-tête de l'étape 1 : titre, accroche, mini-carte (mobile), progression ---------- */
._frm-b23 .smh-step.smh-step--visite, ._frm-b23 .smh-step.smh-step--visite2 { display: block; margin: 0; }
._frm-b23 .smh-v-kick { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #009B9A; }
._frm-b23 .smh-v-titre { margin: 0; padding-right: 48px; font-size: 26px; font-weight: 800; line-height: 1.1; text-transform: uppercase; color: #004A6A; }
._frm-b23 .smh-v-titre--2 { font-size: 22px; }
/* Mot en Dear Joe : même couleur que le reste du titre */
._frm-b23 .smh-v-sign {
    display: inline-block; line-height: .9; font-family: 'Dear Joe', 'Brush Script MT', cursive;
    font-size: 1.35em; font-weight: 400; text-transform: none; letter-spacing: 0; color: inherit;
}
._frm-b23 .smh-v-sous { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(0, 74, 106, .72); }
._frm-b23 .smh-v-prog {
    display: flex; align-items: center; gap: 8px; margin: 14px 0 0;
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(0, 74, 106, .72);
}
._frm-b23 .smh-v-prog__bar { display: flex; gap: 4px; }
._frm-b23 .smh-v-prog__bar i { display: block; width: 26px; height: 5px; border-radius: 3px; background: rgba(0, 74, 106, .15); }
._frm-b23 .smh-v-prog__bar i.on { background: #009B9A; }

/* Mini-carte du mobil-home : seulement en mobile (en desktop, le panneau de gauche la remplace) */
._frm-b23 .smh-visite-mini { display: none; }
._frm-b23 .smh-visite-mini.est-rempli {
    grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 12px 0 0;
    padding: 8px; border: 1px solid rgba(0, 97, 135, .14); border-radius: 14px; background: #FFFBF3;
}
._frm-b23 .smh-visite-mini.sans-photo { grid-template-columns: minmax(0, 1fr) auto; }
._frm-b23 .smh-visite-mini img { display: block; width: 72px; height: 56px; border-radius: 10px; object-fit: cover; }
._frm-b23 .smh-visite-mini__nom { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; color: #004A6A; overflow-wrap: anywhere; }
._frm-b23 .smh-visite-mini__nom small { font-size: 12.5px; font-weight: 400; }
._frm-b23 .smh-visite-mini__lieu { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: rgba(0, 74, 106, .72); }
._frm-b23 .smh-visite-mini__prix { text-align: right; font-size: 15px; font-weight: 800; line-height: 1.15; white-space: nowrap; color: #004A6A; }
._frm-b23 .smh-visite-mini__prix s { display: block; font-size: 12px; font-weight: 400; color: rgba(0, 74, 106, .6); }

/* ---------- Questions de l'étape 1 ---------- */
._frm-b23 .b23-36-fld-wrp, ._frm-b23 .b23-84-fld-wrp, ._frm-b23 .b23-112-fld-wrp, ._frm-b23 .b23-105-fld-wrp {
    padding: 6px 8px !important; margin: 0 !important;
}
._frm-b23 .b23-36-lbl-wrp, ._frm-b23 .b23-84-lbl-wrp, ._frm-b23 .b23-105-lbl-wrp { margin: 8px 0 6px !important; padding: 0 !important; }
/* « Quand » : 2 × 2 cases avec pictogramme */
._frm-b23 .b23-36-cc { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
._frm-b23 .b23-36-ct { width: auto; }
._frm-b23 .b23-36-cc [data-cl] { gap: 8px; height: 48px !important; }
._frm-b23 .b23-36-cc [data-cl]::before { content: ""; flex: none; width: 18px; height: 18px; background: center / contain no-repeat; }
._frm-b23 .b23-36-cc > :nth-child(1) [data-cl]::before {
    background-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");
}
._frm-b23 .b23-36-cc > :nth-child(2) [data-cl]::before {
    background-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}
._frm-b23 .b23-36-cc > :nth-child(3) [data-cl]::before {
    background-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
._frm-b23 .b23-36-cc > :nth-child(4) [data-cl]::before {
    background-image: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E");
}
._frm-b23 .b23-36-cc input:checked ~ [data-cl]::before { filter: brightness(0) invert(1); }
/* Date précise : juste sous les cases, sans libellé visible (gardé pour les lecteurs d'écran) */
._frm-b23 .b23-112-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;
}
._frm-b23 .b23-112-fld-wrp { padding-top: 0 !important; }
/* Visiteurs : 4 cases sur une ligne */
._frm-b23 .b23-84-cc [data-cl] { height: 48px !important; }

/* ---------- Étape 2 ---------- */
._frm-b23 .b23-91-fld-wrp { padding: 10px 8px 4px !important; }
._frm-b23 .smh-recap b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgba(0, 74, 106, .72); }
._frm-b23 .smh-tag { white-space: normal; }
/* « ＋ Ajouter une question » : case à cocher présentée en lien */
._frm-b23 .b23-103-fld-wrp { padding: 0 8px !important; margin: 0 !important; }
._frm-b23 .b23-103-bx { display: none !important; }
._frm-b23 .b23-103-cl { display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 0 !important; color: #006187 !important; cursor: pointer; }
._frm-b23 .b23-103-ct { font-size: 14px !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 3px; }
._frm-b23 .b23-103-cl::before { content: "+"; display: inline-block; font-size: 20px; font-weight: 700; line-height: 1; }
._frm-b23 .b23-103:has(input:checked) { display: none !important; }
._frm-b23 textarea.b23-105-fld {
    height: 88px !important; min-height: 88px; padding: 12px 14px !important; line-height: 1.45 !important; resize: vertical; font-size: 16px !important;
}

/* Newsletter : cadeau à gauche, texte, interrupteur à droite */
._frm-b23 .b23-9-fld-wrp {
    margin: 6px 8px 0 !important; padding: 9px 12px !important; border: 1px solid rgba(0, 97, 135, .14); border-radius: 12px;
    background: #FFFBF3; transition: background-color .2s, border-color .2s;
}
._frm-b23 .b23-9-fld-wrp:has(input:checked) { background: #FFF1D2; border-color: #F8AA00; }
._frm-b23 .b23-9-cc, ._frm-b23 .b23-9-cw, ._frm-b23 .b23-9-cl { width: 100%; }
._frm-b23 .b23-9-cl { display: flex !important; align-items: center; gap: 12px; cursor: pointer; }
._frm-b23 .b23-9-cl::before {
    content: ""; order: 0; flex: none; width: 36px; height: 36px; border-radius: 50%;
    background: #F8AA00 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8v12M12 8S10.5 3.5 8 4.5 9 8 12 8zm0 0s1.5-4.5 4-3.5S15 8 12 8z'/%3E%3C/svg%3E") center / 20px no-repeat;
}
._frm-b23 .b23-9-ct { order: 1; flex: 1; }
._frm-b23 .b23-9-ct, ._frm-b23 .b23-9-ct * { font-size: 13px !important; line-height: 1.3 !important; color: #004A6A !important; }
._frm-b23 .b23-9-ct b { font-size: 14px !important; font-weight: 800 !important; }
._frm-b23 .b23-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-b23 .b23-9-bx > * { display: none !important; }
._frm-b23 .b23-9-bx::after { display: none !important; }
._frm-b23 .b23-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-b23 .b23-9-ci:checked ~ [data-cl] .b23-9-bx { background: #009B9A !important; }
._frm-b23 .b23-9-ci:checked ~ [data-cl] .b23-9-bx::before { transform: translateX(16px); }
._frm-b23 .b23-9-ci:focus-visible ~ [data-cl] .b23-9-bx { outline: 2px solid #009B9A; outline-offset: 2px; }

/* ---------- Confirmation ---------- */
._frm-bg-b23 .smh-ok--visite .smh-ok__titre { text-transform: uppercase; }
._frm-bg-b23 .smh-ok__prepa {
    max-width: 460px; margin: 18px auto 0; padding: 14px 16px; border: 1px solid rgba(0, 97, 135, .14); border-radius: 14px;
    background: #FFFBF3; text-align: left; color: #004A6A;
}
._frm-bg-b23 .smh-ok__prepa b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #009B9A; }
._frm-bg-b23 .smh-ok__prepa ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
._frm-bg-b23 .smh-ok__prepa li { margin: 3px 0; }
._frm-bg-b23 .smh-ok__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px !important; }
._frm-bg-b23 .smh-ok__btns .smh-ok__fermer { margin-top: 0; }
._frm-bg-b23 .smh-ok__camping {
    display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 1.5px solid #004A6A; border-radius: 12px;
    color: #004A6A !important; font-size: 15px; font-weight: 700; text-decoration: none !important;
}
._frm-bg-b23 .smh-ok__camping:hover { background: #FFFBF3; }

@media (max-width: 570px) {
    ._frm-b23 .smh-v-titre { font-size: 23px; }
    ._frm-b23 .smh-v-sous { font-size: 13.5px; }
    ._frm-b23 .smh-visite-mini.est-rempli { display: grid; }
    ._frm-b23 .b23-36-cc [data-cl] * { font-size: 13.5px !important; }
    ._frm-b23 .b23-36-cc [data-cl] { height: 46px !important; }
    ._frm-bg-b23 .smh-ok__btns { flex-direction: column; }
}

/* =========================================================
   LA FENÊTRE (<dialog id="smh-visite">, ajoutée par le fichier smh-popin-visite.php)
   Fenêtre native du navigateur : au-dessus de tout (chat, bandeau cookies), Échap et focus gérés.
   ========================================================= */
.smh-visite-dialog {
    width: 600px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: hidden;
    background: #fff; color: #004A6A; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    font-family: 'Averta', 'Helvetica Neue', Arial, sans-serif;
}
.smh-visite-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); animation: smh-visite-entree .22s ease; }
/* Fiche lue : panneau du mobil-home à gauche */
.smh-visite-dialog.avec-produit { width: 920px; }
.smh-visite-dialog.avec-produit[open] { grid-template-columns: 350px minmax(0, 1fr); }
.smh-visite-dialog::backdrop { background: rgba(0, 40, 58, .62); }
@keyframes smh-visite-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .smh-visite-dialog[open] { animation: none; } }
/* Navigateur très ancien sans fenêtre native : affichage simple, centré */
.smh-visite-dialog.smh-sans-modal[open] { position: fixed; inset: 0; z-index: 2147483000; height: max-content; }
html.smh-visite-ouverte, html.smh-visite-ouverte body { overflow: hidden !important; }

.smh-visite-contenu {
    min-width: 0; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow-y: auto; overscroll-behavior: contain; padding: 26px 26px 18px;
}
/* Croix : même gabarit sur toutes les popins (40 × 40, angles 12 px). Les réglages globaux des boutons
   d'Elementor s'appliquent à tout <button>, d'où les !important */
.smh-visite-dialog .smh-visite-fermer,
.smh-visite-dialog .smh-visite-fermer:hover,
.smh-visite-dialog .smh-visite-fermer:focus {
    position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; align-items: center; justify-content: center;
    width: 40px !important; height: 40px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 12px !important; background: rgba(0, 74, 106, .08) !important; color: #004A6A !important;
    box-shadow: none !important; line-height: 1 !important; cursor: pointer;
}
.smh-visite-dialog .smh-visite-fermer:hover { background: rgba(0, 74, 106, .16) !important; }
.smh-visite-dialog .smh-visite-fermer:focus-visible { outline: 2px solid #009B9A; outline-offset: 2px; }
.smh-visite-dialog .smh-visite-fermer svg { display: block; width: 18px; height: 18px; }
.smh-visite-dialog .smh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Panneau du mobil-home (desktop) */
.smh-visite-produit { display: flex; flex-direction: column; min-height: 100%; background: #004A6A; color: #fff; }
.smh-visite-produit__photo { position: relative; flex: none; height: 230px; background: #00557a center / cover no-repeat; }
.smh-visite-produit__stock {
    position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 8px; background: #009B9A;
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.smh-visite-produit__stock.est-rupture { background: #7D8B93; }
.smh-visite-produit__orig { position: absolute; right: 12px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 40, 58, .6); font-size: 11px; font-weight: 700; }
.smh-visite-produit__info {
    flex: 1; padding: 18px 22px 22px;
    background: radial-gradient(90% 70% at 100% 0%, rgba(0, 155, 154, .45) 0%, rgba(0, 155, 154, 0) 60%), #004A6A;
}
.smh-visite-produit.sans-photo .smh-visite-produit__info { padding-top: 26px; }
.smh-visite-produit__info small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.smh-visite-produit__nom { display: block; margin-top: 2px; font-size: 28px; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.smh-visite-produit__nom.est-long { font-size: 22px; line-height: 1.1; }
.smh-visite-produit__marque { display: block; font-size: 15px; color: rgba(255, 255, 255, .85); }
.smh-visite-produit__lieu { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.smh-visite-produit__lieu::before, .smh-visite-mini__lieu::before {
    content: ""; flex: none; display: inline-block; width: 10px; height: 13px; margin-top: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2333C2C1'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.smh-visite-mini__lieu::before { margin: 0 4px 0 0; vertical-align: -1px; filter: brightness(.75); }
.smh-visite-produit__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
.smh-visite-produit__prix b { font-size: 24px; font-weight: 800; }
.smh-visite-produit__prix b small { display: inline; margin-left: 3px; font-size: 12px; letter-spacing: 0; text-transform: none; color: #fff; }
.smh-visite-produit__prix s { font-size: 14px; color: rgba(255, 255, 255, .65); }
.smh-visite-produit__plus { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.smh-visite-produit__plus li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.3; }
.smh-visite-produit__plus li::before {
    content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
    background: #F8AA00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004A6A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* Barre du haut (mobile) */
.smh-visite-barre { display: none; }

@media (max-width: 767px) {
    .smh-visite-dialog, .smh-visite-dialog.avec-produit {
        width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0;
    }
    .smh-visite-dialog[open], .smh-visite-dialog.avec-produit[open] { display: flex; flex-direction: column; }
    .smh-visite-dialog .smh-visite-produit { display: none; }
    .smh-visite-dialog .smh-visite-barre:not(:empty) {
        flex: none; display: flex; align-items: center; height: 60px; padding: 0 64px 0 16px; color: #fff;
        background: radial-gradient(80% 160% at 0% 0%, rgba(0, 155, 154, .55) 0%, rgba(0, 155, 154, 0) 60%), #004A6A;
    }
    .smh-visite-barre b {
        min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
        font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    }
    .smh-visite-barre b span { margin-right: 4px; font-family: 'Dear Joe', 'Brush Script MT', cursive; font-size: 1.45em; font-weight: 400; letter-spacing: 0; text-transform: none; }
    .smh-visite-contenu { flex: 1; max-height: none; padding: 14px 8px 0; }
    /* Croix blanche sur la barre bleue */
    .smh-visite-dialog.avec-produit .smh-visite-fermer,
    .smh-visite-dialog.avec-produit .smh-visite-fermer:hover,
    .smh-visite-dialog.avec-produit .smh-visite-fermer:focus { top: 10px; right: 10px; background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
    ._frm-b23 .smh-v-titre { padding-right: 0; }
    .smh-visite-dialog:not(.avec-produit) ._frm-b23 .smh-v-titre { padding-right: 48px; }
}
/* ---------- Correctif du 20/10/2026 : pas de barre de défilement pour quelques pixels ----------
   Le conteneur (vide) du message de confirmation est replié mais son contenu invisible dépassait ;
   fenêtre un peu plus haute, marges un peu réduites, barre fine si l'écran est vraiment petit. */
._frm-bg-b23 [class*="msg-container-"].deactive { overflow: hidden !important; }
.smh-visite-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.smh-visite-contenu {
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 22px 26px 14px;
    scrollbar-width: thin; scrollbar-color: rgba(0, 74, 106, .25) transparent;
}
@media (max-width: 767px) {
    .smh-visite-dialog { max-height: none; }
    .smh-visite-contenu { max-height: none; padding: 14px 8px 0; }
}
