.fchat{position:fixed;right:22px;bottom:22px;z-index:80;font-family:var(--sans);color:var(--ink)}
.fchat__dot img{width:100%;height:100%;border-radius:50%;display:block}
.fchat__dot{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#fff;color:var(--green);font-family:var(--serif);font-weight:700;font-size:1.05rem}
.fchat__launch{display:flex;align-items:center;gap:.6rem;padding:.45rem 1.1rem .45rem .45rem;border:0;border-radius:999px;background:var(--green);color:var(--cream);font:700 .92rem var(--sans);cursor:pointer;box-shadow:0 18px 34px -14px rgba(10,30,25,.65);transition:transform .25s,background .25s}
.fchat__launch:hover{transform:translateY(-2px);background:var(--green-2)}
.fchat.is-open .fchat__launch{display:none}
.fchat__panel{position:absolute;right:0;bottom:0;width:min(370px,calc(100vw - 24px));height:min(560px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 30px 60px -20px rgba(10,30,25,.45);animation:fchatIn .35s cubic-bezier(.22,.61,.36,1)}
.fchat__panel[hidden]{display:none}
@keyframes fchatIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.fchat__head{display:flex;align-items:center;gap:.7rem;padding:.9rem 1rem;background:var(--green);color:var(--cream)}
.fchat__head div{flex:1;line-height:1.2}
.fchat__head strong{display:block;font-family:var(--serif);font-size:1.05rem}
.fchat__head small{opacity:.75;font-size:.78rem}
.fchat__close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:var(--cream);font-size:1.4rem;line-height:1;cursor:pointer}
.fchat__close:hover{background:rgba(255,255,255,.2)}
.fchat__log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;scroll-behavior:smooth}
.fchat__msg{max-width:86%;padding:.65rem .85rem;border-radius:14px;font-size:.9rem;line-height:1.5;animation:fchatMsg .3s ease}
@keyframes fchatMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.fchat__msg.is-bot{align-self:flex-start;background:var(--cream);border-bottom-left-radius:4px}
.fchat__msg.is-user{align-self:flex-end;background:var(--green);color:var(--cream);border-bottom-right-radius:4px}
.fchat__msg ul{margin:.35rem 0;padding-left:1.1rem}
.fchat__msg a{color:var(--clay);font-weight:700}
.fchat__msg .fchat__wa{display:block;margin:.6rem 0;padding:.6rem .9rem;border-radius:999px;background:#1f7a4d;color:#fff;text-align:center;text-decoration:none}
.fchat__msg .fchat__wa:hover{background:#17623d}
.fchat__msg.is-typing{display:flex;gap:4px;padding:.8rem .9rem}
.fchat__msg.is-typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:fchatDot 1s infinite}
.fchat__msg.is-typing i:nth-child(2){animation-delay:.15s}.fchat__msg.is-typing i:nth-child(3){animation-delay:.3s}
@keyframes fchatDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.fchat__chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem}
.fchat__chips:not(:empty){padding-bottom:.7rem}
.fchat__chips button{padding:.4rem .75rem;border:1px solid var(--green);border-radius:999px;background:transparent;color:var(--green);font:600 .8rem var(--sans);cursor:pointer}
.fchat__chips button:hover{background:var(--green);color:var(--cream)}
.fchat__form{display:flex;gap:.5rem;padding:.7rem;border-top:1px solid var(--line);background:#fff}
.fchat__form input{flex:1;min-width:0;padding:.65rem .9rem;border:1px solid var(--line);border-radius:999px;font:500 .9rem var(--sans);background:var(--paper)}
.fchat__form input:focus{outline:2px solid var(--sun);outline-offset:1px}
.fchat__form button{width:42px;height:42px;flex:none;border:0;border-radius:50%;background:var(--clay);cursor:pointer}
.fchat__form svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:720px){
  .fchat{right:12px;bottom:84px}
  .fchat__launch-txt{display:none}
  .fchat__launch{padding:.45rem}
  .fchat.is-open{left:12px;bottom:12px}
  .fchat__panel{width:100%;height:calc(100svh - 24px)}
}

/* Animations du bouton */
.fchat__launch{position:relative;animation:fchatEnter .7s cubic-bezier(.34,1.56,.64,1) .8s both}
.fchat__launch::before,.fchat__launch::after{content:"";position:absolute;inset:0;border-radius:inherit;border:2px solid var(--sun);opacity:0;pointer-events:none;animation:fchatRing 2.6s cubic-bezier(.22,.61,.36,1) 1.6s infinite}
.fchat__launch::after{animation-delay:2.9s}
.fchat__launch:hover::before,.fchat__launch:hover::after{animation-play-state:paused;opacity:0}
.fchat__launch .fchat__dot{position:relative;animation:fchatWiggle 6s ease-in-out 2.5s infinite}
.fchat__online{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#3fcf7f;border:2px solid var(--green)}
.fchat__online::after{content:"";position:absolute;inset:-2px;border-radius:50%;background:#3fcf7f;animation:fchatBlink 1.8s ease-out infinite}
.fchat__launch:hover{transform:translateY(-3px) scale(1.04)}
@keyframes fchatEnter{from{opacity:0;transform:translateY(40px) scale(.6)}to{opacity:1;transform:none}}
@keyframes fchatRing{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.35,1.7)}}
@keyframes fchatWiggle{0%,82%,100%{transform:none}85%{transform:rotate(-14deg) scale(1.1)}88%{transform:rotate(12deg) scale(1.1)}91%{transform:rotate(-8deg)}94%{transform:rotate(5deg)}97%{transform:none}}
@keyframes fchatBlink{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(2.4)}}

/* Bulle d'invitation */
.fchat__teaser{position:absolute;right:0;bottom:calc(100% + 14px);width:250px;opacity:0;transform:translateY(10px) scale(.95);transform-origin:bottom right;transition:opacity .35s,transform .45s cubic-bezier(.34,1.56,.64,1)}
.fchat__teaser.is-on{opacity:1;transform:none}
.fchat__teaser[hidden]{display:none}
.fchat__teaser-msg{display:block;width:100%;padding:.85rem 1rem;border:1px solid var(--line);border-radius:16px 16px 4px 16px;background:#fff;color:var(--ink);font:500 .86rem/1.45 var(--sans);text-align:left;cursor:pointer;box-shadow:0 18px 36px -16px rgba(10,30,25,.45)}
.fchat__teaser-msg b{display:block;font-family:var(--serif);font-size:1rem;color:var(--green);margin-bottom:.15rem}
.fchat__teaser-msg:hover{border-color:var(--sun)}
.fchat__teaser-x{position:absolute;top:-9px;left:-9px;width:24px;height:24px;border:0;border-radius:50%;background:var(--ink);color:#fff;font-size:.95rem;line-height:1;cursor:pointer}
.fchat.is-open .fchat__teaser{display:none}
@media (max-width:720px){
  .fchat__teaser{width:min(240px,calc(100vw - 80px))}
  .fchat__launch::before,.fchat__launch::after{border-radius:50%}
  @keyframes fchatRing{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.8)}}
}
@media (prefers-reduced-motion:reduce){
  .fchat__launch,.fchat__launch::before,.fchat__launch::after,.fchat__launch .fchat__dot,.fchat__online::after{animation:none}
}
.fchat__reset{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.1);cursor:pointer}
.fchat__reset:hover{background:rgba(255,255,255,.2)}
.fchat__reset svg{width:17px;height:17px;fill:none;stroke:var(--cream);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .5s}
.fchat__reset:hover svg{transform:rotate(-180deg)}
