/* Concierge K, monochrome, aligné sur EKONA */
.ekona-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.ekona-chat-launcher-face {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0c3457;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ekona-chat-launcher-face::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: k-ring 2.8s ease-out infinite;
}

.ekona-chat-launcher-label {
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.ekona-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 102px;
  z-index: 1300;
  width: min(400px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 130px));
  background: #0a0a0a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: Poppins, sans-serif;
}

.ekona-chat-panel.is-open {
  display: flex;
}

.ekona-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ekona-chat-head-avatar {
  width: 52px;
  height: 52px;
  flex: none;
  background: #0c3457;
  border-radius: 14px;
}

.ekona-chat-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ekona-chat-head span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.ekona-chat-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  font-size: 18px;
}

.ekona-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ekona-chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ekona-chat-msg.is-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 16px 4px;
}

.ekona-chat-msg.is-user {
  align-self: flex-end;
  background: #fff;
  color: #111;
  border-radius: 16px 16px 4px 16px;
}

.ekona-chat-cta {
  align-self: flex-start;
  margin-top: -4px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.ekona-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 8px;
}

.ekona-chat-chips button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  min-height: 32px;
}

.ekona-chat-chips button:hover {
  background: #fff;
  color: #111;
}

.ekona-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ekona-chat-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
  font-size: 14px;
}

.ekona-chat-form input:focus {
  outline: 1px solid #fff;
}

.ekona-chat-form button[type="submit"] {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 16px;
  flex: none;
}

.ekona-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.ekona-chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: block;
  animation: k-dot 1s infinite;
}

.ekona-chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.ekona-chat-typing i:nth-child(3) { animation-delay: 0.3s; }

.k-mascot {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.k-mascot .k-letter {
  transform-box: fill-box;
  transform-origin: 42% 100%;
  animation: k-sway 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.k-mascot .arm {
  transform-box: fill-box;
}

.k-mascot .arm-up { transform-origin: 0% 100%; }
.k-mascot .arm-down { transform-origin: 0% 28%; }

.k-mascot .k-head {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: k-bob 3.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.k-mascot .arm-up { animation: k-idle-up 3.6s cubic-bezier(0.37, 0, 0.22, 1) infinite; }
.k-mascot .arm-down { animation: k-idle-down 3.6s cubic-bezier(0.37, 0, 0.22, 1) infinite; animation-delay: 0.18s; }

.k-mascot.is-talking .k-letter { animation-duration: 1.6s; }
.k-mascot.is-talking .k-head { animation: k-bob-talk 0.7s cubic-bezier(0.37, 0, 0.2, 1) infinite; }
.k-mascot.is-talking .arm-up { animation: k-arm-up 0.78s cubic-bezier(0.22, 0.7, 0.28, 1) infinite; }
.k-mascot.is-talking .arm-down {
  animation: k-arm-down 0.78s cubic-bezier(0.22, 0.7, 0.28, 1) infinite;
  animation-delay: 0.12s;
}
.k-mascot.is-talking .mouth-a { animation: k-mouth-a 0.36s ease-in-out infinite; }
.k-mascot.is-talking .mouth-b { animation: k-mouth-b 0.36s ease-in-out infinite; }
.k-mascot.is-talking .eye-l {
  transform-box: fill-box;
  transform-origin: center;
  animation: k-wink 2.4s ease-in-out infinite;
}

@keyframes k-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.6deg); }
}
@keyframes k-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(-1deg); }
}
@keyframes k-bob-talk {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-1.2px) rotate(-1.6deg); }
  72% { transform: translateY(0) rotate(1deg); }
}
@keyframes k-idle-up {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}
@keyframes k-idle-down {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3.5deg); }
}
@keyframes k-arm-up {
  0%, 100% { transform: rotate(1deg); }
  46% { transform: rotate(-8deg); }
  78% { transform: rotate(-2deg); }
}
@keyframes k-arm-down {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}
@keyframes k-mouth-a {
  0%, 42% { opacity: 1; }
  52%, 100% { opacity: 0; }
}
@keyframes k-mouth-b {
  0%, 42% { opacity: 0; }
  52%, 100% { opacity: 1; }
}
@keyframes k-wink {
  0%, 70%, 100% { transform: scaleY(1); }
  76%, 84% { transform: scaleY(0.15); }
}
@keyframes k-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@keyframes k-ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 0; }
}

@media (max-width: 640px) {
  .ekona-chat-launcher-label { display: none; }
  .ekona-chat-launcher-face { width: 64px; height: 64px; }
  .ekona-chat-panel { bottom: 92px; right: 12px; }
  .ekona-chat-launcher { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .k-mascot,
  .k-mascot *,
  .ekona-chat-launcher-face::after,
  .ekona-chat-typing i {
    animation: none !important;
  }
}
