/* AB Conduite 94 · fenêtre de discussion WhatsApp */

.wbulle{position:fixed;right:24px;bottom:24px;z-index:70;display:flex;align-items:center;gap:10px;height:58px;padding:0 22px 0 16px;border:0;border-radius:999px;background:#25D366;color:#fff;font:600 15px var(--f);cursor:pointer;box-shadow:0 16px 36px -12px rgba(37,211,102,.75);transition:transform .25s,box-shadow .25s}
.wbulle svg{width:28px;height:28px;flex:none}
.wbulle:hover{transform:translateY(-3px);box-shadow:0 22px 40px -12px rgba(37,211,102,.8)}
.wbulle::before{content:"";position:absolute;inset:0;border-radius:inherit;animation:w-pouls 2.8s ease-out infinite;pointer-events:none}
@keyframes w-pouls{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)}70%{box-shadow:0 0 0 16px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
.wb-badge{position:absolute;top:-5px;right:-3px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--rose);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;border:2px solid #fff}
.wb-badge[hidden]{display:none}

.wchat{position:fixed;right:24px;bottom:98px;z-index:80;width:min(380px,calc(100vw - 32px));border-radius:18px;overflow:hidden;background:#EFEAE2;box-shadow:0 30px 70px -20px rgba(14,28,78,.55),0 0 0 1px rgba(14,28,78,.06);transform-origin:bottom right;animation:w-entree .32s cubic-bezier(.2,.8,.2,1)}
.wchat[hidden]{display:none}
@keyframes w-entree{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
.wc-head{display:flex;align-items:center;gap:12px;background:#075E54;color:#fff;padding:13px 12px 13px 14px}
.wc-av{width:42px;height:42px;border-radius:50%;background:#fff;padding:4px;flex:none}
.wc-nom{margin:0;font-weight:600;font-size:15.5px;line-height:1.25}
.wc-etat{margin:0;font-size:12.5px;color:rgba(255,255,255,.85)}
.wc-x{margin-left:auto;flex:none;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.wc-x:hover{background:rgba(255,255,255,.26)}
.wc-body{padding:16px 14px 14px;min-height:190px;max-height:min(440px,58vh);overflow-y:auto;display:flex;flex-direction:column;gap:8px;
  background-color:#EFEAE2;background-image:radial-gradient(rgba(7,94,84,.06) 1px,transparent 1px);background-size:14px 14px}
.wc-msg{align-self:flex-start;max-width:90%;background:#fff;color:#111B21;font-size:14.5px;line-height:1.45;padding:9px 12px;border-radius:2px 12px 12px 12px;box-shadow:0 1px 1px rgba(0,0,0,.08);animation:w-msg .3s ease}
@keyframes w-msg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.wc-frappe{display:flex;gap:4px;padding:12px 14px}
.wc-frappe span{width:7px;height:7px;border-radius:50%;background:#8696A0;animation:w-point 1s infinite}
.wc-frappe span:nth-child(2){animation-delay:.15s}
.wc-frappe span:nth-child(3){animation-delay:.3s}
@keyframes w-point{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.wc-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;animation:w-msg .35s ease}
.wc-chip{border:1.5px solid #25D366;background:#fff;color:#075E54;font:600 13.5px var(--f);padding:9px 14px;min-height:42px;border-radius:999px;cursor:pointer;transition:background-color .2s,color .2s,transform .15s}
.wc-chip:hover{background:#25D366;color:#fff}
.wc-chip:active{transform:scale(.96)}
.wc-form{display:flex;gap:8px;align-items:center;background:#F0F2F5;padding:10px}
.wc-form input{flex:1;min-width:0;border:0;border-radius:999px;background:#fff;padding:12px 16px;font:16px var(--f);color:#111B21}
.wc-form input:focus{outline:2px solid #25D366}
.wc-form button{flex:none;width:46px;height:46px;border:0;border-radius:50%;background:#25D366;color:#fff;cursor:pointer;display:grid;place-items:center}
.wc-form button svg{width:22px;height:22px}
.wc-note{margin:0;padding:0 14px 11px;background:#F0F2F5;font-size:12px;color:#667781;text-align:center}

.wteaser{position:fixed;right:24px;bottom:98px;z-index:75;display:flex;gap:11px;align-items:center;max-width:310px;background:#fff;border-radius:14px;padding:12px 40px 12px 12px;box-shadow:0 20px 44px -16px rgba(14,28,78,.5),0 0 0 1px rgba(14,28,78,.05);cursor:pointer;animation:w-entree .35s cubic-bezier(.2,.8,.2,1)}
.wteaser[hidden]{display:none}
.wteaser::after{content:"";position:absolute;right:26px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:3px 3px 5px -2px rgba(14,28,78,.12)}
.wteaser img{width:42px;height:42px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #25D366}
.wteaser p{margin:0;font-size:13.5px;line-height:1.4;color:var(--texte)}
.wteaser b{display:block;font-size:14px}
.wt-x{position:absolute;top:4px;right:4px;width:34px;height:34px;border:0;background:none;font-size:20px;color:var(--doux);cursor:pointer}

/* liens contextuels */
.p-wa,.faq-wa{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:13.5px;font-weight:600;color:#128C4A;text-decoration:none}
.p-wa{justify-content:center;margin-top:10px}
.price-hot .p-wa{color:#fff}
.faq-wa{margin:-4px 0 16px}
.p-wa svg,.faq-wa svg,.art-wa-btn svg{width:18px;height:18px;flex:none}
.p-wa:hover span,.faq-wa:hover span{text-decoration:underline;text-underline-offset:3px}
.art-wa{margin-top:34px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;background:#E9F8EF;border:1px solid #BDEBCD;border-radius:14px;padding:18px 20px}
.art-wa p{margin:0!important;color:var(--texte)!important}
.art-wa-btn{display:inline-flex;align-items:center;gap:8px;background:#25D366;color:#fff;font-weight:600;padding:12px 18px;border-radius:10px;text-decoration:none}

@media (max-width:760px){
  .wbulle{display:none}
  .wchat{left:10px;right:10px;width:auto;bottom:calc(84px + env(safe-area-inset-bottom))}
  .wc-body{max-height:calc(100dvh - 330px)}
  .wteaser{right:10px;left:auto;bottom:calc(86px + env(safe-area-inset-bottom));max-width:calc(100vw - 20px)}
  .wteaser::after{right:calc(50% - 7px)}
}
@media (prefers-reduced-motion:reduce){.wbulle::before,.wchat,.wteaser,.wc-msg,.wc-chips,.wc-frappe span{animation:none}}

/* ---------- bulle flottante v2 : avatar, pastille en ligne, message ---------- */
.wbulle{height:auto;padding:8px 20px 8px 8px;gap:12px;background:#fff;color:var(--texte);box-shadow:0 18px 40px -14px rgba(14,28,78,.45),0 0 0 1px rgba(14,28,78,.06)}
.wbulle::before{box-shadow:none;animation:none}
.wbulle:hover{box-shadow:0 24px 46px -14px rgba(14,28,78,.5),0 0 0 1px rgba(37,211,102,.5)}
.wb-av{position:relative;width:46px;height:46px;flex:none;border-radius:50%;background:#25D366;display:grid;place-items:center}
.wb-av::after{content:"";position:absolute;inset:0;border-radius:50%;animation:w-pouls 2.8s ease-out infinite}
.wb-av svg{width:26px;height:26px;color:#fff}
.wb-av img{position:absolute;right:-4px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#fff;padding:2px;box-shadow:0 0 0 2px #fff}
.wb-lignes{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;text-align:left}
.wb-lignes b{font-size:14.5px;font-weight:600}
.wb-lignes small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--doux)}
.wb-lignes small::before{content:"";width:7px;height:7px;border-radius:50%;background:#25D366}
.wbulle .wb-txt{display:none}

/* ---------- invitation v2 : notification façon WhatsApp ---------- */
.wteaser{display:block;width:320px;max-width:320px;padding:14px 14px 14px;border-radius:18px}
.wteaser::after{right:34px}
.wt-tete{display:flex;align-items:center;gap:10px;padding-right:26px}
.wt-av{position:relative;flex:none}
.wteaser .wt-av img{width:40px;height:40px;border-radius:50%;background:#fff;padding:3px;box-shadow:0 0 0 1px rgba(14,28,78,.1)}
.wt-av::after{content:"";position:absolute;right:0;bottom:1px;width:11px;height:11px;border-radius:50%;background:#25D366;border:2px solid #fff}
.wt-id{display:flex;flex-direction:column;line-height:1.2}
.wteaser .wt-id b{display:block;font-size:14.5px;font-weight:600;color:var(--texte)}
.wt-id small{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--doux)}
.wt-id small svg{width:13px;height:13px;color:#25D366}
.wteaser .wt-msg{position:relative;margin:12px 0 0;background:#E7FBEF;color:#111B21;font-size:14px;line-height:1.45;padding:10px 12px;border-radius:4px 14px 14px 14px}
.wt-cta{display:flex;align-items:center;justify-content:center;margin-top:10px;min-height:42px;border-radius:12px;background:#25D366;color:#fff;font-size:14px;font-weight:600;transition:background-color .2s}
.wteaser:hover .wt-cta{background:#1EBE5A}
.wt-x{top:8px;right:8px;border-radius:50%}
.wt-x:hover{background:var(--fond)}

/* messages de la fenêtre : petite pointe comme dans WhatsApp */
.wc-msg{position:relative}
.wc-body>.wc-msg:not(.wc-frappe):first-child::before{content:"";position:absolute;left:-6px;top:0;border-top:8px solid #fff;border-left:8px solid transparent}
@media (max-width:760px){
  .wteaser{width:auto;left:10px;right:10px;max-width:none}
}
@media (max-width:760px){.wteaser::after{right:auto;left:calc(44% - 7px)}}
/* invitation compacte sur smartphone : message court, pas de bouton (toute la carte est cliquable) */
@media (max-width:760px){
  .wteaser{padding:11px 12px}
  .wteaser .wt-msg{margin-top:8px;font-size:13.5px;padding:8px 10px}
  .wteaser .wt-cta{display:none}
}
