/* BLOXI Refonte — Diagnostic Connect (snippet 5215, /connect/questionnaire/).
   Habillage seulement : couleurs et typo de la charte, lisibilité, boutons au pouce sur mobile.
   Complété par diagnostic-auto.css (généré : polices, petites tailles, verts). La logique du snippet n'est pas touchée. */

/* ---- couleurs de la charte (jour = clair du site, nuit = sombre du site) ---- */
/* le snippet pose ses jetons --bg / --ink sur <html> et repeindrait toute la page (fond bleuté) : on remet ceux du site */
html[data-bxtheme="day"]:root{--bg:#f6f5f0;--ink:#0b1118}
html[data-bxtheme="night"]:root{--bg:#0a0e13;--ink:#eef3f6}
html[data-bxtheme="day"] body #bxq-root{
  --bg:#f6f5f0;--bg2:#ffffff;--bg3:#efeee8;--bg4:#e4e2d9;
  --ink:#0b1118;--muted:#56616d;--dim:#77818c;
  --border:rgba(11,17,24,.12);--border-strong:rgba(11,17,24,.24);
  --accent:#00774f;--green:#00774f;
}
html[data-bxtheme="night"] body #bxq-root{
  --bg:#0a0e13;--bg2:#131b24;--bg3:#121922;--bg4:#1c2530;
  --ink:#eef3f6;--muted:#a3afbb;--dim:#77818c;
  --border:rgba(238,243,246,.1);--border-strong:rgba(238,243,246,.2);
}
html body #bxq-root{background:transparent;font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
html body #bxq-root .bx-app{max-width:680px;margin:0 auto}

/* ---- bandeau « diagnostic en cours » ---- */
html body #bxq-root .bxq-resume{border-radius:16px;padding:14px 16px;background:var(--bg2);border:1.5px solid var(--accent)}
html body #bxq-root .bxq-resume-txt{font-size:15.5px;line-height:1.45}
html body #bxq-root .bxq-resume-txt span{color:var(--muted)}
html body #bxq-root .bxq-resume-act button{min-height:44px;border-radius:12px;padding:0 16px;font-size:15px;font-weight:600}

/* ---- en-tête : la page porte déjà le titre, on garde la barre de progression ---- */
html body #bxq-root .bx-logo{display:none}
html body #bxq-root .bx-top{gap:12px;padding-top:4px;padding-bottom:10px}
html body #bxq-root .bx-prog-wrap{gap:4px}
html body #bxq-root .bx-prog-seg{height:4px;border-radius:2px}
html body #bxq-root .bx-prog-count{font-size:13px;font-weight:600;color:var(--muted)}
html body #bxq-root .bx-screen-num{display:none}
html body #bxq-root .bx-phase-l{font-weight:600}

/* ---- titres et textes ---- */
html body #bxq-root .bx-screen-title{font-size:clamp(26px,6.6vw,34px);font-weight:700;line-height:1.15;letter-spacing:-.02em;color:var(--ink)}
html body #bxq-root .bx-screen-title :is(em,span,b,strong){color:var(--accent);font-style:normal}
html body #bxq-root .bx-screen-hint{font-size:16.5px;line-height:1.55;color:var(--muted);max-width:40ch}
html body #bxq-root .bxq-start-t{font-size:15px;font-weight:600;color:var(--ink);text-transform:none;letter-spacing:0}
html body #bxq-root .bxq-start-t span{font-weight:400;color:var(--muted)}

/* ---- choix : cartes ---- */
html body #bxq-root .bx-opt{border-radius:16px;border-width:1.5px;min-height:64px;background:var(--bg2)}
html body #bxq-root .bx-opt.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,var(--bg2))}
html body #bxq-root .bx-opt-title,html body #bxq-root .bx-opt b{font-size:16.5px;font-weight:600}
html body #bxq-root .bx-chip{min-height:42px;border-radius:999px;font-size:15px}
html body #bxq-root .bx-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
html[data-bxtheme="night"] body #bxq-root .bx-chip.on{color:#04140d}

/* ---- champs ---- */
html body #bxq-root :is(input[type=text],input[type=email],input[type=tel],input[type=number],select,textarea){font-size:16px;border-radius:12px;min-height:48px}
html body #bxq-root .bx-ibpt-sel{min-height:48px;border-radius:12px;font-size:16px;margin-top:8px;width:100%}
html body #bxq-root .bx-ibpt-hetero,html body #bxq-root .bx-ibpt-ok,html body #bxq-root .bx-ibpt-warn{font-size:14px;line-height:1.45;border-radius:12px;padding:10px 12px;margin-top:10px}

/* ---- boutons ---- */
html body #bxq-root .bx-nav-btn{min-height:52px;border-radius:14px;font-size:16.5px;font-weight:700}
html body #bxq-root .bx-nav-next{background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(0,119,79,.22)}
html[data-bxtheme="night"] body #bxq-root .bx-nav-next{color:#04140d;box-shadow:none}
html body #bxq-root .bx-nav-prev{border:1.5px solid var(--border-strong);min-width:52px}
html body #bxq-root .bx-nav-skip{font-size:15px}
html body #bxq-root .bx-stepper-btn{width:52px;height:52px}

/* ---- mobile : boutons Suivant / Retour au pouce ---- */
@media (max-width:760px){
  html body #bxq-root .bx-nav{position:sticky;bottom:var(--bxk-off,0px);z-index:30;margin-left:-16px;margin-right:-16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 78%,transparent);border-top:0}
  html body #bxq-root .bx-screen-title{margin-top:4px}
  html body #bxq-root .bx-phases{display:none}
}

/* ---- styles écrits en ligne par le snippet (résultats, compteurs) ---- */
html body #bxq-root [style*="JetBrains"],html body #bxq-root [style*="Syne"]{font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif!important;font-variant-numeric:tabular-nums}
html body #bxq-root :is([style*="font-size:9px"],[style*="font-size:9.5px"],[style*="font-size:10px"],[style*="font-size:10.5px"],[style*="font-size:11px"],[style*="font-size:11.5px"]){font-size:13px!important}
html body #bxq-root :is([style*="font-size:12px"],[style*="font-size:12.5px"]){font-size:13.5px!important}

/* ---- plus d'étiquettes en capitales ---- */
html body #bxq-root :is(.bx-input-lbl,.bx-lieu-pers-lbl,.bx-pie-title,.bx-recap-lbl,.bx-modal-eyebrow,.bx-bp-section,.bx-vol-section,.bxr-sec,.bx-rscore-title){text-transform:none;letter-spacing:0;font-size:14px;font-weight:600}
