/* BB Assistant 1.0.0 (préfixe .bbn-). Couleurs du site : encre #241E1A, os #FAF7F2, lin #F3ECE1, argile foncé #A44E24, sauge #5B6E5E, grenat #6E2F52. */
.bbn-root{--bbn-encre:var(--encre,#241E1A);--bbn-bone:var(--bone,#FAF7F2);--bbn-lin:var(--lin,#F3ECE1);--bbn-argile:var(--argile,#C4602F);--bbn-argile-f:var(--argile-fonce,#A44E24);--bbn-sauge:var(--sauge,#5B6E5E);--bbn-grenat:var(--grenat,#6E2F52);
  position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:9000;font:400 14.5px/1.5 var(--bb-police-texte,system-ui,sans-serif);color:var(--bbn-encre)}
.bbn-root[hidden]{display:none!important}
.bbn-root *{box-sizing:border-box}
.bbn-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bbn-fab{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 8px;border:0;border-radius:999px;background:var(--bbn-encre);color:var(--bbn-bone);font:600 14.5px/1 var(--bb-police-titre,system-ui,sans-serif);cursor:pointer;box-shadow:0 10px 30px rgba(36,30,26,.28);transition:background .2s}
.bbn-fab:hover{background:var(--bbn-argile-f)}
.bbn-fab-ia{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--bbn-bone);color:var(--bbn-encre);font:700 12px/1 var(--bb-police-titre,system-ui,sans-serif);letter-spacing:.04em}
.bbn-root button:focus-visible,.bbn-root a:focus-visible,.bbn-root input:focus-visible,.bbn-root textarea:focus-visible,.bbn-log:focus-visible{outline:2px solid var(--bbn-argile);outline-offset:2px}
.bbn-root.is-open .bbn-fab{display:none}
.bbn-panel{position:absolute;right:0;bottom:0;width:380px;max-width:calc(100vw - 32px);height:min(640px,calc(100vh - 32px));display:flex;flex-direction:column;background:var(--bbn-bone);border:1px solid rgba(36,30,26,.12);border-radius:14px;box-shadow:0 24px 60px rgba(36,30,26,.3);overflow:hidden}
.bbn-panel[hidden]{display:none}
.bbn-hd{display:flex;gap:10px;align-items:flex-start;padding:14px 10px 12px 18px;background:var(--bbn-encre);color:var(--bbn-bone)}
.bbn-hd-t{flex:1;min-width:0}
.bbn-titre{margin:0!important;padding:0!important;font:600 16px/1.25 var(--bb-police-titre,system-ui,sans-serif)!important;color:var(--bbn-bone)!important}
.bbn-sous{margin:3px 0 0!important;padding:0!important;font-size:12.5px;line-height:1.35;color:rgba(250,247,242,.78)}
.bbn-x{flex:none;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:400 26px/1 system-ui,sans-serif}
.bbn-x:hover{background:rgba(250,247,242,.12)}
.bbn-consent{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.bbn-consent[hidden],.bbn-chat[hidden]{display:none}
.bbn-consent p{margin:0!important;padding:0!important}
.bbn-consent-t{margin:0!important;padding:0!important;font:600 15px/1.3 var(--bb-police-titre,system-ui,sans-serif)!important;color:var(--bbn-encre)!important}
.bbn-consent a,.bbn-note a{color:var(--bbn-grenat);font-weight:600}
.bbn-case{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:10px;background:var(--bbn-lin);cursor:pointer}
.bbn-case input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--bbn-argile-f)}
.bbn-actions{display:flex;flex-wrap:wrap;gap:8px}
.bbn-btn{min-height:44px;padding:0 18px;border-radius:10px;font:600 14px/1 var(--bb-police-titre,system-ui,sans-serif);cursor:pointer}
.bbn-btn-p{border:0;background:var(--bbn-argile-f);color:#fff}
.bbn-btn-p:disabled{background:rgba(36,30,26,.25);color:rgba(36,30,26,.7);cursor:not-allowed}
.bbn-btn-s{border:1px solid rgba(36,30,26,.3);background:#fff;color:var(--bbn-encre)}
.bbn-chat{flex:1;min-height:0;display:flex;flex-direction:column}
.bbn-log{flex:1;overflow-y:auto;padding:14px 14px 6px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.bbn-msg{display:flex}
.bbn-user{justify-content:flex-end}
.bbn-bulle{max-width:92%;padding:10px 13px;border-radius:12px;background:#fff;border:1px solid rgba(36,30,26,.08);overflow-wrap:anywhere}
.bbn-user .bbn-bulle{background:var(--bbn-encre);color:var(--bbn-bone);border-color:transparent;border-bottom-right-radius:4px}
.bbn-bot .bbn-bulle{border-bottom-left-radius:4px}
.bbn-bulle p{margin:0 0 8px!important;padding:0!important}
.bbn-bulle p:last-child{margin-bottom:0!important}
.bbn-petit{font-size:13px;color:rgba(36,30,26,.78)}
.bbn-prefixe{margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed rgba(36,30,26,.2)}
.bbn-liens,.bbn-nums{list-style:none!important;margin:0 0 6px!important;padding:0!important;display:flex;flex-direction:column;gap:6px}
.bbn-liens li,.bbn-nums li{margin:0!important;padding:0!important}
.bbn-liens li::before,.bbn-nums li::before{content:none!important}
.bbn-lien{display:block;padding:8px 10px;border-radius:8px;background:var(--bbn-lin);color:var(--bbn-encre)!important;text-decoration:none!important;font-weight:600;line-height:1.3}
.bbn-lien:hover{background:#ecdfcc}
.bbn-nums li{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.bbn-num{font:700 15px/1.2 var(--bb-police-titre,system-ui,sans-serif);color:var(--bbn-grenat)!important;text-decoration:none!important;white-space:nowrap}
.bbn-num-n{font-size:12.5px;color:rgba(36,30,26,.78);flex:1;min-width:150px}
.bbn-relu{margin-top:8px!important;padding:6px 9px!important;border-radius:6px;background:rgba(196,96,47,.1);color:#8a3f1c;font-size:12.5px}
.bbn-ia{margin-top:6px!important;font-size:11.5px;color:var(--bbn-sauge)}
.bbn-attente{color:rgba(36,30,26,.6);font-style:italic}
.bbn-form{display:flex;gap:6px;align-items:flex-end;padding:8px 12px;border-top:1px solid rgba(36,30,26,.1);background:#fff;margin:0!important}
.bbn-in{flex:1;min-width:0;min-height:44px;max-height:120px;resize:none;border:1px solid rgba(36,30,26,.2);border-radius:10px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.35;color:var(--bbn-encre);background:var(--bbn-bone)}
.bbn-envoi{flex:none;width:44px;height:44px;border:0;border-radius:10px;background:var(--bbn-argile-f);color:#fff;cursor:pointer;font:700 20px/1 system-ui,sans-serif}
.bbn-envoi:disabled{opacity:.5;cursor:wait}
.bbn-ft{padding:4px 14px 10px;background:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px}
.bbn-compteur{font-size:12px;color:rgba(36,30,26,.65)}
.bbn-compteur.bbn-trop{color:#a3271b;font-weight:700}
.bbn-effacer{border:0;background:none;padding:4px 0;font:500 12.5px/1.3 var(--bb-police-texte,system-ui,sans-serif);color:var(--bbn-sauge);text-decoration:underline;cursor:pointer}
.bbn-note{flex-basis:100%;margin:0!important;padding:0!important;font-size:12px;color:rgba(36,30,26,.75)}
@media (max-width:480px){
  .bbn-root.is-open{inset:0;right:0;bottom:0}
  .bbn-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;border-radius:0;border:0;padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media (max-width:980px){
  .bbn-fab{padding:0 8px;gap:0;width:48px;justify-content:center}
  .bbn-fab-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){.bbn-fab{transition:none}}
