.noaWidget{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:2147483000;
}

.noaLauncher{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:62px;
  padding:8px 18px 8px 10px;
  border:1px solid rgba(203,216,232,.95);
  background:rgba(255,255,255,.96);
  color:#0b2b4a;
  border-radius:999px;
  font-weight:900;
  box-shadow:0 18px 38px rgba(15,23,42,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.noaLauncher:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 24px 48px rgba(15,23,42,.20);
  border-color:#bfd3ea;
  background:#fff;
}

.noaLauncher::after{
  content:"Posez votre question";
  position:absolute;
  right:14px;
  bottom:74px;
  padding:8px 18px 8px 10px;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  opacity:0;
  transform:translateY(6px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.noaLauncher:hover::after{
  opacity:1;
  transform:translateY(0);
}

.noaLauncherAvatar,
.noaPanelAvatar{
  width:44px;
  height:44px;
  border-radius:999px;
  overflow:hidden;
  flex:0 0 auto;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}

.noaLauncherAvatar{
  transition:transform .18s ease;
}

.noaLauncher:hover .noaLauncherAvatar{
  transform:scale(1.06);
}

.noaLauncherAvatar img,
.noaPanelAvatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 35%;
  display:block;
}

.noaPanel{
  position:absolute;
  right:0;
  bottom:78px;
  width:min(420px, calc(100vw - 24px));
  background:#fff;
  color:#0f172a;
  border:1px solid #dbe6f2;
  border-radius:24px;
  box-shadow:0 28px 70px rgba(15,23,42,.20);
  overflow:hidden;
}

.noaPanel[hidden]{display:none !important}

.noaPanelHeader{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:16px 18px 14px;
  border-bottom:1px solid #edf2f7;
  background:linear-gradient(180deg, #ffffff, #f8fbff);
}

.noaPanelIdentity{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.noaName{
  font-size:16px;
  font-weight:900;
  line-height:1.1;
  color:#0b2b4a;
}

.noaRole{
  font-size:12px;
  color:#64748b;
  line-height:1.25;
}

.noaClose{
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  background:#eff6ff;
  color:#1e3a8a;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease;
}

.noaClose:hover{
  transform:scale(1.05);
  background:#dbeafe;
}

.noaMessages{
  max-height:340px;
  overflow:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#f8fbff;
}

.noaMsg{
  max-width:88%;
  padding:12px 14px;
  border-radius:16px;
  line-height:1.55;
  font-size:14px;
}

.noaMsgBot{
  background:#fff;
  border:1px solid #e5edf7;
  align-self:flex-start;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
}

.noaMsgUser{
  background:linear-gradient(180deg, #2563eb, #1d4ed8);
  color:#fff;
  align-self:flex-end;
  box-shadow:0 8px 18px rgba(37,99,235,.18);
}

.noaMsgBot a{
  color:#1d4ed8;
  text-decoration:underline;
  font-weight:800;
}

.noaPanelFooter{
  padding:14px;
  border-top:1px solid #edf2f7;
  background:#fff;
}

.noaInput{
  width:100%;
  min-height:96px;
  border-radius:16px;
  border:1px solid #dbe6f2;
  padding:12px;
  resize:vertical;
  font:inherit;
  color:#0f172a;
  background:#fff;
}

.noaInput:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.noaSend{
  margin-top:10px;
  width:100%;
  min-height:48px;
  border:0;
  border-radius:14px;
  background:linear-gradient(180deg, #2563eb, #1d4ed8);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
  transition:transform .18s ease, box-shadow .18s ease;
}

.noaSend:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(37,99,235,.22);
}

.noaLegal{
  margin-top:10px;
  font-size:11px;
  line-height:1.5;
  color:#64748b;
}

@media (max-width:640px){
  .noaWidget{
    right:12px;
    bottom:12px;
  }

  .noaPanel{
    width:min(92vw, 420px);
    bottom:74px;
  }

  .noaLauncher{
    min-height:58px;
    padding:8px 16px 8px 10px;
  }

  .noaLauncher::after{
    display:none;
  }
}
.noaLauncher{
  transition:transform .18s ease, box-shadow .18s ease;
}

.noaLauncher:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 22px 40px rgba(29,78,216,.35);
}
.noaLauncherAvatar{
  border:3px solid #fff;
  box-shadow:0 8px 18px rgba(15,23,42,.15);
}
.noaLauncherAvatar{
  position:relative;
}

.noaLauncherAvatar::before{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:999px;
  background:rgba(29,78,216,.18);
  z-index:-1;
}
.noaLauncherAvatar{
  box-shadow:0 6px 14px rgba(15,23,42,.18);
}