/* =========================================================
   SMH · Formulaire « brochure » v1 (socle du formulaire catalogue) (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-b24 { background: transparent !important; }

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

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

/* ---------- Mêmes marges pour tous les champs (colonnes alignées) ---------- */
._frm-b24 .b24-89-fld-wrp, ._frm-b24 .b24-90-fld-wrp, ._frm-b24 .b24-84-fld-wrp, ._frm-b24 .b24-36-fld-wrp,
._frm-b24 .b24-3-fld-wrp, ._frm-b24 .b24-2-fld-wrp, ._frm-b24 .b24-10-fld-wrp, ._frm-b24 .b24-81-fld-wrp,
._frm-b24 .b24-39-fld-wrp {
    padding: 6px 8px !important; margin: 0 !important;
}
._frm-b24 .b24-89-lbl-wrp, ._frm-b24 .b24-90-lbl-wrp, ._frm-b24 .b24-84-lbl-wrp, ._frm-b24 .b24-36-lbl-wrp,
._frm-b24 .b24-3-lbl-wrp, ._frm-b24 .b24-2-lbl-wrp, ._frm-b24 .b24-10-lbl-wrp, ._frm-b24 .b24-81-lbl-wrp,
._frm-b24 .b24-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-b24 .b24-3-fld, ._frm-b24 .b24-2-fld, ._frm-b24 .b24-81-fld, ._frm-b24 .b24-39-fld { height: 52px !important; }
._frm-b24 .b24-10-phone-fld-container { display: block !important; height: 52px !important; }
._frm-b24 .b24-10-phone-fld-wrp { height: auto !important; } /* ne pas figer : ce bloc s'agrandit quand la liste des pays s'ouvre */
._frm-b24 .b24-10-phone-inner-wrp { height: 52px !important; }
._frm-b24 .b24-10-phone-inner-wrp { align-items: center; }
._frm-b24 .b24-10-phone-number-input { height: 100% !important; }
._frm-b24 .b24-fld:focus,
._frm-b24 .b24-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-b24 .b24-fld:hover:not(:focus) { border-color: rgba(0, 97, 135, .6) !important; }

/* ---------- Listes déroulantes (destination + budget) ---------- */
._frm-b24 select.b24-89-fld, ._frm-b24 select.b24-90-fld,
._frm-b24 select.b24-89-fld:hover:not(:focus), ._frm-b24 select.b24-90-fld:hover:not(:focus),
._frm-b24 select.b24-89-fld:focus, ._frm-b24 select.b24-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-b24 select.b24-89-fld:hover:not(:focus), ._frm-b24 select.b24-90-fld:hover:not(:focus) { border-color: rgba(0, 97, 135, .6) !important; }
._frm-b24 select.b24-89-fld:focus, ._frm-b24 select.b24-90-fld:focus {
    border-color: #009B9A !important; box-shadow: 0 0 0 3px rgba(0, 155, 154, .2) !important;
}
._frm-b24 select.b24-89-fld.smh-empty, ._frm-b24 select.b24-90-fld.smh-empty { color: rgba(0, 74, 106, .55) !important; }
._frm-b24 select.b24-89-fld option, ._frm-b24 select.b24-90-fld option { color: #004A6A; }

/* ---------- Cases (couchages + délai), sur une ligne ---------- */
._frm-b24 .b24-84-cc, ._frm-b24 .b24-36-cc {
    display: grid !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; width: 100% !important;
}
._frm-b24 .b24-84-cc { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
._frm-b24 .b24-36-cc { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
._frm-b24 .simulateur-radio { position: relative; width: auto !important; margin: 0 !important; }
._frm-b24 .simulateur-radio [data-bx] { display: none !important; }
._frm-b24 .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-b24 .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-b24 .b24-36-ct { width: min-content; }
._frm-b24 .simulateur-radio:hover [data-cl] { border-color: #006187; background: #FFFBF3; }
._frm-b24 .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-b24 .simulateur-radio input:checked ~ [data-cl] * { color: #fff !important; }
._frm-b24 .simulateur-radio input:focus-visible ~ [data-cl] { outline: 2px solid #009B9A; outline-offset: 2px; }

/* ---------- Récapitulatif (étape 2) ---------- */
._frm-b24 .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-b24 .smh-recap b { font-weight: 800; margin-right: 2px; }
._frm-b24 .smh-recap__tags { display: flex; flex-wrap: wrap; gap: 6px; }
._frm-b24 .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-b24 .smh-recap__edit {
    margin-left: auto; color: #006187; font-size: 13px; font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
._frm-b24 .smh-recap__edit:hover { color: #004A6A; }
._frm-b24 .smh-recap:has(.smh-recap__tags:empty) { display: none; }

/* ---------- Boutons ---------- */
/* CTA principal jaune : Continuer + Demander ma simulation */
._frm-b24 .b24-1-btn,
._frm-b24 ._frm-b24-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-b24 .b24-1-btn:hover,
._frm-b24 ._frm-b24-next-step-btn:hover {
    background-color: #F8AA00 !important; filter: brightness(1.06);
}
._frm-b24 .b24-1-btn:focus-visible,
._frm-b24 ._frm-b24-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-b24 .b24-1-btn::after,
._frm-b24 ._frm-b24-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-b24 .b24-1-btn:hover::after,
._frm-b24 ._frm-b24-next-step-btn:hover::after { transform: translateX(3px); }

/* Retour = lien (un seul CTA jaune par écran) */
._frm-b24 ._frm-b24-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-b24 ._frm-b24-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-b24.smh-js [data-step="2"] ._frm-b24-stp-btn-wrpr { display: none !important; }
._frm-b24 .b24-1-inp-wrp { width: 100% !important; }
._frm-b24 .b24-1-inp-fld-wrp { align-items: center; gap: 12px; }
._frm-b24 .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-b24 .smh-retour:hover, ._frm-b24 .smh-retour:focus { background: none !important; box-shadow: none !important; color: #004A6A !important; }
._frm-b24 .smh-retour:focus-visible { outline: 2px solid #009B9A; outline-offset: 3px; }

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

/* ---------- Mobile ---------- */
@media (max-width: 570px) {
    ._frm-b24 .simulateur-radio [data-cl] * { font-size: 14px !important; }
    ._frm-b24 .b24-1-inp-fld-wrp, ._frm-b24 .b24-1-inp-wrp { width: 100% !important; }
    ._frm-b24 .b24-1-btn, ._frm-b24 ._frm-b24-next-step-btn { width: 100% !important; }
    ._frm-b24 .smh-step__req { width: 100%; }
    ._frm-b24 .b24-1-inp-fld-wrp { flex-direction: column-reverse; align-items: stretch; }
    ._frm-b24 .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-b24 [id^="bf-form-msg-wrp-"]:has(.smh-ok) { display: none !important; }
._frm-bg-b24 [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-b24 [class*="msg-container-"]:has(.smh-ok) [class*="msg-background-"],
._frm-bg-b24 [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-b24 [class*="msg-container-"]:has(.smh-ok) .bf-msg-close { display: none !important; }
._frm-bg-b24 .smh-ok, ._frm-bg-b24 .smh-ok * { word-break: normal !important; overflow-wrap: normal !important; }
._frm-bg-b24 .smh-ok {
    padding: 8px 8px 4px; text-align: center; color: #004A6A;
    font-family: 'Averta', 'Helvetica Neue', Arial, sans-serif;
}
._frm-bg-b24 .smh-ok p { margin: 0; }
._frm-bg-b24 .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-b24 .smh-ok__titre {
    font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.2px;
    text-transform: uppercase; color: #004A6A;
}
._frm-bg-b24 .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-b24 .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-b24 { grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: start; }
._frm-b24 > [class*="b24-"] { grid-row: auto !important; min-height: 0 !important; }

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

/* ---------- Message (facultatif) ---------- */
._frm-b24 .b24-105-fld-wrp { padding: 6px 8px !important; margin: 0 !important; }
._frm-b24 .b24-105-lbl-wrp { margin: 0 0 6px !important; padding: 0 !important; }
._frm-b24 textarea.b24-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-b24 .b24-1-inp-fld-wrp { justify-content: center; }

/* ---------- Réassurance sous le bouton ---------- */
._frm-b24 .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-b24 .smh-sans-infos { margin: 0; padding: 0 8px; text-align: center; line-height: 1.3; }
._frm-b24 .smh-sans-infos a,
._frm-b24 .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-b24 .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-b24 .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-b24 .smh-ok__cta:hover { filter: brightness(1.06); }
._frm-bg-b24 .smh-ok__cta:hover::after { transform: translateX(3px); }
._frm-bg-b24 .smh-ok__cta:focus-visible { outline: 2px solid #009B9A; outline-offset: 3px; }
._frm-bg-b24 .smh-ok__catalogue:empty { display: none; }
._frm-bg-b24 .smh-ok__catalogue iframe {
    display: block; width: 100%; height: 420px; margin: 22px 0 0; border: 0; border-radius: 12px; background: #FFFBF3;
}
._frm-bg-b24 .smh-ok__fin { margin-top: 14px !important; font-size: 15px; color: rgba(0, 74, 106, .8); }

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


/* =========================================================
   BROCHURE (pages camping) : ajouts au socle du formulaire catalogue
   Le formulaire vit dans la fenêtre <dialog id="smh-brochure"> ajoutée aux pages camping par smh-popin-brochure.php
   (mu-plugin), ouverte par les boutons .popmake-doc. Le JS remplit le panneau du camping (desktop) et la barre (mobile).
   ========================================================= */

/* Police Dear Joe (déjà dans la médiathèque) */
@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 ---------- */
._frm-b24 { grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: start; }
._frm-b24 > [class*="b24-"] { grid-row: auto !important; min-height: 0 !important; }

/* ---------- En-tête : titre, accroche, mini-carte (mobile) ---------- */
._frm-b24 .smh-step.smh-step--brochure { display: block; margin: 0; }
._frm-b24 .smh-v-kick { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #009B9A; }
._frm-b24 .smh-v-titre { margin: 0; padding-right: 48px; font-size: 26px; font-weight: 800; line-height: 1.1; text-transform: uppercase; color: #004A6A; }
/* Mot en Dear Joe : même couleur que le reste du titre */
._frm-b24 .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-b24 .smh-v-sous { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(0, 74, 106, .72); }
._frm-b24 .smh-v-sous b { color: #004A6A; }
._frm-b24 .smh-brochure-mini { display: none; }
._frm-b24 .smh-brochure-mini.est-rempli {
    grid-template-columns: 86px minmax(0, 1fr); 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-b24 .smh-brochure-mini.sans-photo { grid-template-columns: minmax(0, 1fr); }
._frm-b24 .smh-brochure-mini__photo { width: 86px; height: 64px; border-radius: 10px; background: #00557a center / cover no-repeat; }
._frm-b24 .smh-brochure-mini b { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; color: #004A6A; overflow-wrap: anywhere; }
._frm-b24 .smh-brochure-mini span { display: block; font-size: 12.5px; line-height: 1.35; color: rgba(0, 74, 106, .72); }
._frm-b24 .smh-brochure-etoiles, .smh-brochure-etoiles { color: #F8AA00; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }

/* ---------- Délai : 3 cases sur une ligne ---------- */
._frm-b24 .b24-36-fld-wrp { padding: 6px 8px !important; margin: 0 !important; }
._frm-b24 .b24-36-lbl-wrp { margin: 8px 0 6px !important; padding: 0 !important; }
._frm-b24 .b24-36-cc { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
._frm-b24 .b24-36-ct { width: auto; }
._frm-b24 .b24-36-cc [data-cl] { height: 46px !important; }

/* ---------- Coordonnées : texte dans le champ, libellés masqués visuellement (gardés pour les lecteurs d'écran) ---------- */
._frm-b24 .b24-3-lbl-wrp, ._frm-b24 .b24-2-lbl-wrp, ._frm-b24 .b24-81-lbl-wrp, ._frm-b24 .b24-39-lbl-wrp, ._frm-b24 .b24-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;
}
._frm-b24 .b24-3-fld-wrp, ._frm-b24 .b24-2-fld-wrp, ._frm-b24 .b24-81-fld-wrp,
._frm-b24 .b24-39-fld-wrp, ._frm-b24 .b24-10-fld-wrp { padding: 4px 8px !important; margin: 0 !important; }
._frm-b24 .b24-3-fld, ._frm-b24 .b24-2-fld, ._frm-b24 .b24-81-fld, ._frm-b24 .b24-39-fld { height: 46px !important; padding: 0 12px !important; font-size: 15px !important; }
._frm-b24 .b24-10-phone-fld-container, ._frm-b24 .b24-10-phone-inner-wrp { height: 46px !important; }
._frm-b24 .b24-10-phone-number-input { font-size: 15px !important; }

/* ---------- « + Une question ? » : case à cocher présentée en lien ---------- */
._frm-b24 .b24-103-fld-wrp { padding: 2px 8px !important; margin: 0 !important; }
._frm-b24 .b24-103-bx { display: none !important; }
._frm-b24 .b24-103-cl { display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 0 !important; color: #006187 !important; cursor: pointer; }
._frm-b24 .b24-103-ct { font-size: 14px !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 3px; }
._frm-b24 .b24-103-cl::before { content: "+"; display: inline-block; font-size: 20px; font-weight: 700; line-height: 1; }
._frm-b24 .b24-103:has(input:checked) { display: none !important; }
._frm-b24 .b24-105-fld-wrp { padding: 6px 8px !important; margin: 0 !important; }
._frm-b24 textarea.b24-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-b24 .b24-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-b24 .b24-9-fld-wrp:has(input:checked) { background: #FFF1D2; border-color: #F8AA00; }
._frm-b24 .b24-9-cc, ._frm-b24 .b24-9-cw, ._frm-b24 .b24-9-cl { width: 100%; }
._frm-b24 .b24-9-cl { display: flex !important; align-items: center; gap: 12px; cursor: pointer; }
._frm-b24 .b24-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-b24 .b24-9-ct { order: 1; flex: 1; }
._frm-b24 .b24-9-ct, ._frm-b24 .b24-9-ct * { font-size: 13px !important; line-height: 1.3 !important; color: #004A6A !important; }
._frm-b24 .b24-9-ct b { font-size: 14px !important; font-weight: 800 !important; }
._frm-b24 .b24-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-b24 .b24-9-bx > * { display: none !important; }
._frm-b24 .b24-9-bx::after { display: none !important; }
._frm-b24 .b24-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-b24 .b24-9-ci:checked ~ [data-cl] .b24-9-bx { background: #009B9A !important; }
._frm-b24 .b24-9-ci:checked ~ [data-cl] .b24-9-bx::before { transform: translateX(16px); }
._frm-b24 .b24-9-ci:focus-visible ~ [data-cl] .b24-9-bx { outline: 2px solid #009B9A; outline-offset: 2px; }

/* ---------- Bouton et mention ---------- */
._frm-b24 .b24-1-fld-wrp { padding: 10px 8px 0 !important; }
._frm-b24 .b24-1-inp-wrp, ._frm-b24 .b24-1-inp-fld-wrp, ._frm-b24 .b24-1-btn { width: 100% !important; }
._frm-b24 .b24-34-fld-wrp { padding: 8px 8px 0 !important; }
._frm-b24 .b24-34 p { font-size: 10.5px !important; line-height: 1.4 !important; }

/* ---------- Confirmation ---------- */
._frm-bg-b24 .smh-ok--brochure .smh-ok__titre { text-transform: uppercase; }
._frm-bg-b24 .smh-ok__appel {
    display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 16px auto 0; padding: 14px 16px;
    border-radius: 14px; border-left: 4px solid #F8AA00; background: #FFF4D6; text-align: left; color: #004A6A;
}
._frm-bg-b24 .smh-ok__appel p { flex: 1; margin: 0; font-size: 13px; line-height: 1.4; }
._frm-bg-b24 .smh-ok__appel p b { display: block; font-size: 14px; }
._frm-bg-b24 .smh-ok__tel {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
    background: #F8AA00; color: #004A6A !important; font-size: 16px; font-weight: 800; white-space: nowrap; text-decoration: none !important;
    box-shadow: inset 0 0 0 3px #F8AA00, inset 0 0 0 4px rgba(0, 74, 106, .45);
}
._frm-bg-b24 .smh-ok__tel::before {
    content: ""; width: 18px; height: 18px;
    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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
}
._frm-bg-b24 .smh-ok__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px !important; }
._frm-bg-b24 .smh-ok__btns .smh-ok__fermer { margin-top: 0; background: #fff; color: #004A6A; box-shadow: inset 0 0 0 1.5px #004A6A; }
._frm-bg-b24 .smh-ok__cata {
    display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 12px;
    background: #004A6A; color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none !important;
}

@media (max-width: 570px) {
    ._frm-b24 .smh-v-titre { font-size: 23px; padding-right: 0; }
    ._frm-b24 .smh-v-sous { font-size: 13.5px; }
    ._frm-b24 .smh-brochure-mini.est-rempli { display: grid; }
    ._frm-b24 .b24-36-cc [data-cl] * { font-size: 13.5px !important; }
    ._frm-bg-b24 .smh-ok__appel { flex-direction: column; align-items: stretch; }
    ._frm-bg-b24 .smh-ok__tel { justify-content: center; }
    ._frm-bg-b24 .smh-ok__btns { flex-direction: column; }
}

/* =========================================================
   LA FENÊTRE (<dialog id="smh-brochure">, ajoutée par smh-popin-brochure.php)
   ========================================================= */
.smh-brochure-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-brochure-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); animation: smh-brochure-entree .22s ease; }
.smh-brochure-dialog.avec-camping { width: 920px; }
.smh-brochure-dialog.avec-camping[open] { grid-template-columns: 350px minmax(0, 1fr); }
.smh-brochure-dialog::backdrop { background: rgba(0, 40, 58, .62); }
@keyframes smh-brochure-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .smh-brochure-dialog[open] { animation: none; } }
.smh-brochure-dialog.smh-sans-modal[open] { position: fixed; inset: 0; z-index: 2147483000; height: max-content; }
html.smh-brochure-ouverte, html.smh-brochure-ouverte body { overflow: hidden !important; }
.smh-brochure-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) ; !important contre le style global des boutons Elementor */
.smh-brochure-dialog .smh-brochure-fermer,
.smh-brochure-dialog .smh-brochure-fermer:hover,
.smh-brochure-dialog .smh-brochure-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-brochure-dialog .smh-brochure-fermer:hover { background: rgba(0, 74, 106, .16) !important; }
.smh-brochure-dialog .smh-brochure-fermer:focus-visible { outline: 2px solid #009B9A; outline-offset: 2px; }
.smh-brochure-dialog .smh-brochure-fermer svg { display: block; width: 18px; height: 18px; }
.smh-brochure-dialog .smh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Panneau du camping (desktop) : photo, nom, étoiles, lieu, prix, cadeaux */
.smh-brochure-camping { display: flex; flex-direction: column; min-height: 100%; background: #004A6A; color: #fff; }
.smh-brochure-camping__photo { position: relative; flex: none; height: 250px; background: #00557a center / cover no-repeat; }
.smh-brochure-camping__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(transparent, rgba(0, 40, 58, .88)); }
.smh-brochure-camping__nom { position: absolute; left: 20px; right: 20px; bottom: 14px; z-index: 1; }
.smh-brochure-camping__nom b { display: block; font-size: 24px; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.smh-brochure-camping.sans-photo .smh-brochure-camping__photo { height: 120px; background: radial-gradient(90% 120% at 0% 0%, rgba(0, 155, 154, .55) 0%, rgba(0, 155, 154, 0) 60%), #004A6A; }
.smh-brochure-camping__info {
    flex: 1; padding: 16px 22px 22px;
    background: radial-gradient(90% 70% at 100% 0%, rgba(0, 155, 154, .45) 0%, rgba(0, 155, 154, 0) 60%), #004A6A;
}
.smh-brochure-camping__lieu { display: block; font-size: 14px; font-weight: 700; }
.smh-brochure-camping__prix { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.smh-brochure-camping__prix b { font-size: 20px; color: #fff; white-space: nowrap; }
.smh-brochure-camping__tt { display: block; margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.smh-brochure-cadeaux { list-style: none; display: grid; gap: 8px; margin: 8px 0 0; padding: 0; }
.smh-brochure-cadeaux li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; margin: 0; font-size: 14px; line-height: 1.25; }
.smh-brochure-cadeaux .ic { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.smh-brochure-cadeaux .ic svg { width: 18px; height: 18px; }
.smh-brochure-cadeaux .ic img { width: 22px; height: auto; transform: rotate(-6deg); }
.smh-brochure-cadeaux small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
/* Barre du haut (mobile) */
.smh-brochure-barre { display: none; }

@media (max-width: 767px) {
    .smh-brochure-dialog, .smh-brochure-dialog.avec-camping { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
    .smh-brochure-dialog[open], .smh-brochure-dialog.avec-camping[open] { display: flex; flex-direction: column; }
    .smh-brochure-dialog .smh-brochure-camping { display: none; }
    .smh-brochure-dialog .smh-brochure-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-brochure-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-brochure-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-brochure-contenu { flex: 1; max-height: none; padding: 14px 8px 0; }
    .smh-brochure-dialog.avec-camping .smh-brochure-fermer,
    .smh-brochure-dialog.avec-camping .smh-brochure-fermer:hover,
    .smh-brochure-dialog.avec-camping .smh-brochure-fermer:focus { top: 10px; right: 10px; background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
    .smh-brochure-dialog:not(.avec-camping) ._frm-b24 .smh-v-titre { padding-right: 48px; }
    /* Bouton d'envoi toujours visible en bas */
    .smh-brochure-dialog ._frm-b24 .b24-1 { position: sticky; bottom: 0; z-index: 5; padding-bottom: 12px; background: #fff; box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .35); }
}

/* ---------- 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-b24 [class*="msg-container-"].deactive { overflow: hidden !important; }
.smh-brochure-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.smh-brochure-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;
}
/* Dégradé plus haut sous le nom du camping (noms sur 2 lignes) */
.smh-brochure-camping__photo::after {
    top: 30%; height: auto;
    background: linear-gradient(rgba(0, 40, 58, 0) 0%, rgba(0, 40, 58, .55) 45%, rgba(0, 40, 58, .92) 100%);
}
@media (max-width: 767px) {
    .smh-brochure-dialog { max-height: none; }
    .smh-brochure-contenu { max-height: none; padding: 14px 8px 0; }
}

