/* Phénix Assistant — widget */
.pas-root{--pas-c:#245CAA;--pas-a:#51EBF6;--pas-d:#173E73;position:fixed;bottom:22px;z-index:9970;font-family:inherit;color:#17233B;line-height:1.5}
.pas-right{right:22px}.pas-left{left:22px}
.pas-root *{box-sizing:border-box}
.pas-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.pas-root [hidden]{display:none!important}

/* bouton */
.pas-launch{position:relative;display:grid;place-items:center;width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;color:#fff;
  background:linear-gradient(135deg,var(--pas-c),var(--pas-d));box-shadow:0 16px 34px -12px rgba(11,36,73,.7);transition:transform .25s}
.pas-launch:hover{transform:translateY(-2px) scale(1.04)}
.pas-launch svg{width:28px;height:28px}
.pas-launch .pas-dot{position:absolute;top:6px;right:6px;width:13px;height:13px;border-radius:50%;background:#22B573;border:2px solid #fff}
.pas-root.is-open .pas-launch .pas-dot{display:none}
.pas-launch:focus-visible{outline:3px solid var(--pas-a);outline-offset:3px}

/* bulle d'invitation */
.pas-teaser{position:absolute;bottom:72px;display:flex;align-items:center;gap:8px;max-width:260px;padding:11px 12px 11px 16px;border-radius:14px;background:#fff;border:1px solid #E1E6EE;
  box-shadow:0 18px 40px -18px rgba(11,36,73,.55);font-size:14px;font-weight:600;color:var(--pas-d);cursor:pointer;opacity:0;transform:translateY(8px);transition:opacity .3s,transform .3s}
.pas-right .pas-teaser{right:0}.pas-left .pas-teaser{left:0}
.pas-teaser.on{opacity:1;transform:none}
.pas-teaser button{flex:0 0 24px;width:24px;height:24px;border:0;border-radius:50%;background:#EEF3FA;color:#697386;cursor:pointer;display:grid;place-items:center;padding:0}
.pas-teaser button svg{width:12px;height:12px}

/* panneau */
.pas-panel{position:absolute;bottom:76px;display:flex;flex-direction:column;width:380px;height:min(600px,calc(100vh - 120px));background:#fff;border-radius:20px;overflow:hidden;
  box-shadow:0 30px 80px -24px rgba(11,36,73,.6);border:1px solid #E1E6EE;opacity:0;transform:translateY(12px) scale(.98);transform-origin:bottom right;transition:opacity .2s,transform .2s}
.pas-right .pas-panel{right:0}.pas-left .pas-panel{left:0;transform-origin:bottom left}
.pas-panel.on{opacity:1;transform:none}
.pas-head{display:flex;align-items:center;gap:10px;padding:14px 12px 14px 16px;color:#fff;background:linear-gradient(120deg,var(--pas-d),var(--pas-c));position:relative}
.pas-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--pas-a)}
.pas-av{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#fff;color:var(--pas-c);overflow:hidden}
.pas-av img{width:100%;height:100%;object-fit:contain;padding:4px}
.pas-av svg{width:22px;height:22px}
.pas-ht{flex:1;min-width:0;display:flex;flex-direction:column}
.pas-ht b{font-size:15.5px;line-height:1.25}
.pas-ht span{display:flex;align-items:center;gap:6px;font-size:12px;opacity:.85}
.pas-ht i{width:8px;height:8px;border-radius:50%;background:#3DDC84;box-shadow:0 0 0 3px rgba(61,220,132,.25)}
.pas-hb{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;padding:0}
.pas-hb:hover{background:rgba(255,255,255,.24)}
.pas-hb svg{width:17px;height:17px}

.pas-body{flex:1;overflow-y:auto;padding:16px 14px 8px;background:#F5F8FD;scroll-behavior:smooth}
.pas-msg{display:flex;flex-direction:column;margin-bottom:12px;max-width:88%}
.pas-user{margin-left:auto;align-self:flex-end;padding:10px 14px;border-radius:16px 16px 4px 16px;background:var(--pas-c);color:#fff;font-size:14px;white-space:pre-wrap;word-wrap:break-word}
.pas-bot{align-items:flex-start}
.pas-bubble{padding:11px 14px;border-radius:16px 16px 16px 4px;background:#fff;border:1px solid #E3EAF4;font-size:14px;color:#2b3445;box-shadow:0 6px 16px -14px rgba(11,36,73,.6)}
.pas-bubble p{margin:0 0 6px}.pas-bubble p:last-child{margin:0}
.pas-bubble .pas-from{font-size:12px;color:#697386}
.pas-bubble a{color:var(--pas-c);font-weight:600}
.pas-src{display:flex;flex-direction:column;gap:4px;margin-top:6px;padding-left:4px;font-size:12.5px}
.pas-src span{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#8A97AD}
.pas-src a{display:inline-flex;align-items:center;gap:6px;color:var(--pas-c);text-decoration:none;font-weight:600}
.pas-src a:hover{text-decoration:underline}
.pas-src svg{width:13px;height:13px;flex:0 0 13px}
.pas-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pas-act{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:100px;font-size:12.5px;font-weight:700;text-decoration:none;background:#fff;color:var(--pas-d);border:1px solid #CFDDF1}
.pas-act:hover{border-color:var(--pas-c)}
.pas-act svg{width:15px;height:15px}
.pas-act.pas-whatsapp{color:#128C4A;border-color:#BFE6D2}
.pas-act.pas-contact{background:var(--pas-c);color:#fff;border-color:var(--pas-c)}
.pas-fb{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:4px;font-size:11.5px;color:#8A97AD}
.pas-fb button{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;border:1px solid #E1E6EE;background:#fff;color:#8A97AD;cursor:pointer;padding:0}
.pas-fb button svg{width:14px;height:14px}
.pas-fb button:hover,.pas-fb button.on{color:var(--pas-c);border-color:var(--pas-c)}
.pas-fb.done button:not(.on){opacity:.35;pointer-events:none}
.pas-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 10px}
.pas-chips button{padding:7px 12px;border-radius:100px;border:1px solid #CFDDF1;background:#fff;color:var(--pas-d);font:600 12.5px/1.3 inherit;cursor:pointer;text-align:left}
.pas-chips button:hover{border-color:var(--pas-c);color:var(--pas-c);background:#EEF4FC}
.pas-typing .pas-bubble{display:flex;gap:4px;padding:14px 16px}
.pas-typing i{width:7px;height:7px;border-radius:50%;background:#9AACC7;animation:pasDot 1s infinite ease-in-out}
.pas-typing i:nth-child(2){animation-delay:.15s}.pas-typing i:nth-child(3){animation-delay:.3s}
@keyframes pasDot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}

.pas-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #E1E6EE;background:#fff}
.pas-form textarea{flex:1;min-height:42px;max-height:120px;resize:none;border:1px solid #D5DDE9;border-radius:12px;padding:10px 12px;font:inherit;font-size:14px;color:#17233B;outline:0;background:#fff}
.pas-form textarea:focus{border-color:var(--pas-c);box-shadow:0 0 0 3px rgba(36,92,170,.12)}
.pas-send{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:0;border-radius:12px;background:var(--pas-c);color:#fff;cursor:pointer}
.pas-send:hover{background:var(--pas-d)}
.pas-send svg{width:19px;height:19px}
.pas-note{margin:0;padding:0 14px 10px;background:#fff;font-size:10.5px;line-height:1.4;color:#8A97AD;text-align:center}

@media(max-width:560px){
  .pas-root{bottom:14px}.pas-right{right:14px}.pas-left{left:14px}
  .pas-launch{width:54px;height:54px}
  .pas-panel{position:fixed;inset:0;width:auto;height:auto;border-radius:0;border:0;bottom:0}
  .pas-root.is-open .pas-launch,.pas-root.is-open .pas-teaser{display:none}
  .pas-msg{max-width:92%}
}
@media (prefers-reduced-motion:reduce){.pas-panel,.pas-teaser,.pas-launch{transition:none}.pas-typing i{animation:none}}
.pas-bubble ul.pas-list{margin:6px 0 0;padding-left:18px}
.pas-bubble ul.pas-list li{margin:0 0 6px}
.pas-root.is-open{z-index:9985}
