/* YORU — chatbot (bulle, panneau, plein écran glissant sur mobile) */
/* Chatbot (repris v1, couleurs v3) */
.chat-bulle{position:fixed;right:28px;bottom:28px;z-index:60;display:flex;align-items:center;gap:12px;padding:10px 24px 10px 10px;border-radius:999px;background:var(--abysse);color:#fff;font-size:17px;font-weight:700;border:1px solid #3fd7ff80;box-shadow:0 0 30px #3fd7ff55;cursor:pointer;transition:opacity .4s,transform .4s}
.chat-bulle .rond{width:44px;height:44px;border-radius:50%;background:#fff url(/assets/img/logo.png) center/40px no-repeat}
.chat-bulle.cachee{opacity:0;transform:scale(.6);pointer-events:none}
.chat-bulle--club{background:var(--elec);color:#06070a}
.chat{position:fixed;right:28px;bottom:28px;z-index:61;width:410px;height:620px;max-height:calc(100vh - 56px);display:none;flex-direction:column;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 30px 80px #12151d59}
.chat.ouvert{display:flex;animation:chat-entre .4s cubic-bezier(.2,.8,.2,1)}
@keyframes chat-entre{from{opacity:0;transform:translateY(20px) scale(.97)}}
.chat-tete{display:flex;align-items:center;gap:14px;padding:18px 20px;color:#fff;background:linear-gradient(120deg,var(--abysse),var(--cobalt));border-bottom:2px solid var(--elec)}
.chat-tete div{min-width:0}
.chat-tete .rond{width:46px;height:46px;border-radius:50%;background:#fff url(/assets/img/logo.png) center/42px no-repeat;flex:none}
.chat-tete b{font-family:var(--display);font-weight:400;font-size:22px;display:block;line-height:1.1}
.chat-tete small{font-size:14px;opacity:.9}
.chat-tete button{margin-left:auto;background:#ffffff26;border:0;color:#fff;width:38px;height:38px;border-radius:50%;font-size:20px;cursor:pointer}
.chat-fil{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:var(--porcelaine)}
.msg{max-width:84%;padding:12px 16px;border-radius:18px;font-size:16px;line-height:1.5}
.msg--bot{background:#fff;border:1px solid var(--trait);border-bottom-left-radius:6px}
.msg--moi{align-self:flex-end;background:var(--cobalt);color:#fff;border-bottom-right-radius:6px}
.puces{display:flex;flex-wrap:wrap;gap:8px}
.puces button{font:inherit;font-size:15px;padding:8px 14px;border-radius:999px;border:1.5px solid var(--cobalt);color:var(--cobalt);background:#fff;cursor:pointer}
.chat-saisie{display:flex;gap:10px;padding:14px;border-top:1px solid var(--trait);background:#fff}
.chat-saisie input{flex:1;font:inherit;font-size:16px;padding:12px 16px;border-radius:999px;border:1.5px solid var(--trait)}
.chat-saisie button{width:48px;height:48px;border-radius:50%;border:0;background:var(--cobalt);color:#fff;font-size:20px;cursor:pointer}
.chat-mention{font-size:13px;color:var(--gris);text-align:center;padding:0 14px 10px;background:#fff}

.chat-bulle--club,.chat-racine[data-univers="club"] .chat-bulle{background:var(--elec);color:#06070a}
.chat-racine[data-univers="club"] .chat-tete{background:linear-gradient(120deg,#000,#0e1117)}
.chat-fil a{color:var(--cobalt);font-weight:700;text-decoration:underline}
.msg--moi a{color:#fff}
.badge-demo{display:none}
.chat-racine.demo .badge-demo{display:inline}
.ecrit{display:inline-flex;gap:4px}
.ecrit i{width:7px;height:7px;border-radius:50%;background:var(--cobalt);opacity:.3;animation:ecrit 1s infinite}
.ecrit i:nth-child(2){animation-delay:.15s}.ecrit i:nth-child(3){animation-delay:.3s}
@keyframes ecrit{50%{opacity:1;transform:translateY(-3px)}}
.puces button:hover{background:var(--cobalt);color:#fff}
@media (max-width:900px){
  .chat-bulle{right:16px;bottom:16px;padding:8px}
  .chat-bulle .txt{display:none}
  /* mobile : petite fenêtre flottante centrée en bas (comme Pacific), étroite et haute (22/10), plus de plein écran */
  .chat{inset:auto auto 14px 50%;margin-left:calc(min(330px,100vw - 28px) / -2);width:min(330px,calc(100vw - 28px));height:min(580px,calc(100svh - 120px));max-height:none;border-radius:18px;display:flex;opacity:0;transform:translateY(16px) scale(.98);transform-origin:bottom center;visibility:hidden;box-shadow:0 24px 70px #000a;transition:opacity .25s,transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s .3s}
  .chat.ouvert{opacity:1;transform:none;visibility:visible;animation:none;transition:opacity .25s,transform .3s cubic-bezier(.2,.8,.2,1)}
  .chat-fil{flex:1 1 auto;min-height:0;padding:16px;gap:10px}
  .chat-tete{padding:14px 16px}
  .chat-tete .rond{width:38px;height:38px;background-size:34px}
  .chat-tete b{font-size:19px}
  .chat-tete small{font-size:12.5px}
  .msg{font-size:15px;padding:10px 14px}
  .puces button{font-size:14px;padding:7px 12px}
  .chat-saisie{padding:10px}
  .chat-saisie button{width:44px;height:44px}
  .chat-mention{font-size:12px;padding-bottom:8px}
  .chat-saisie input{font-size:16px}
}

/* icône du chat (22/10) : un petit robot doré sur rond noir, à la place du logo */
.chat-bulle .rond.robot,.chat-tete .rond.robot{display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#1c1c1c,#050505)!important;color:#e7c873;box-shadow:inset 0 0 0 1.5px #c9a24a99,0 0 14px #c9a24a33}
.rond.robot svg{width:62%;height:62%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rond.robot svg circle{fill:currentColor;stroke:none}
.rond.robot svg circle:first-of-type{fill:none;stroke:currentColor}
