/* CONSEILLER_3011 · bouton et fenêtre de l'agent de vente. Autonome. */
.cv-bouton {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer;
  padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: #10141e; color: #f2f5fb;
  font: 600 .95rem/1 inherit; font-family: inherit; box-shadow: 0 18px 50px -12px #000, 0 0 40px -8px rgba(96, 165, 250, .7); transition: transform .25s;
}
.cv-bouton:hover { transform: translateY(-3px); }
.cv-bouton img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.cv-bouton i { position: absolute; left: 38px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid #10141e; }
.cv-bouton.est-ouvert span { display: none; }
.cv-bouton.est-ouvert { padding-right: 6px; }
.cv {
  position: fixed; right: 18px; bottom: 84px; z-index: 201; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 110px));
  display: grid; grid-template-rows: auto 1fr auto auto; border-radius: 22px; overflow: hidden; color: #f2f5fb; font-family: inherit;
  background: #0b0e16; border: 1px solid rgba(197, 212, 240, .28); box-shadow: 0 40px 100px -20px #000, 0 0 80px -20px rgba(96, 165, 250, .6);
  animation: cv-entre .3s cubic-bezier(.2, .9, .2, 1);
}
.cv[hidden] { display: none; }
@keyframes cv-entre { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.cv__tete { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: #10141e; border-bottom: 1px solid rgba(197, 212, 240, .12); }
.cv__tete img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.cv__tete b { display: block; font-size: 1rem; font-weight: 600; }
.cv__tete small { color: #4ade80; font-size: .76rem; }
.cv__fermer { margin-left: auto; background: none; border: 0; color: #93a0b8; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: .2rem .5rem; }
.cv__fil { overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.cv__fil p { margin: 0; max-width: 86%; padding: .7rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cv__lui { align-self: flex-start; background: #1a2130; border-bottom-left-radius: 5px; }
.cv__moi { align-self: flex-end; background: #2f5bff; border-bottom-right-radius: 5px; }
.cv__fil a { color: #93b4ff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cv__attente { display: inline-flex; gap: 5px; padding-block: .95rem !important; }
.cv__attente i { width: 7px; height: 7px; border-radius: 50%; background: #93a0b8; animation: cv-point 1s infinite; }
.cv__attente i:nth-child(2) { animation-delay: .15s; } .cv__attente i:nth-child(3) { animation-delay: .3s; }
@keyframes cv-point { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.cv__saisie { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid rgba(197, 212, 240, .12); }
.cv__saisie textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: .7rem .9rem; border-radius: 14px; border: 1px solid rgba(197, 212, 240, .28); background: #05070c; color: #f2f5fb; font: inherit; font-size: 16px; }
.cv__saisie textarea:focus { outline: 2px solid #93b4ff; outline-offset: 1px; }
.cv__saisie button { padding: 0 1.1rem; border-radius: 14px; border: 0; background: #f2f5fb; color: #06080d; font: inherit; font-weight: 600; cursor: pointer; }
.cv__saisie button:disabled { opacity: .5; cursor: wait; }
.cv__pied { margin: 0; padding: 0 .9rem .7rem; font-size: .7rem; line-height: 1.4; color: #93a0b8; }
.cv__pied a { color: #c3cbdb; }
@media (max-width: 560px) {
  .cv { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .cv-bouton.est-ouvert { display: none; }
  .cv-bouton span { display: none; } .cv-bouton { padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .cv, .cv__attente i { animation: none; } }
