
/* ── Chef Thomas Chatbot Widget ── */
#ct-chat-section {
  background: var(--cb-dark-400, #0F0907);
  padding: 0 24px 96px;
  position: relative;
}
#ct-chat-wrap {
  max-width: 760px;
  margin: 0 auto;
}
#ct-chat-label {
  text-align: center;
  font-family: var(--cb-font-mono, 'DM Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb-flame-600, #E89A24);
  margin-bottom: 16px;
}
#ct-chat-title {
  text-align: center;
  font-family: var(--cb-font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #F5EFE6;
  margin-bottom: 28px;
}
/* Boîte chat */
#ct-chat-box {
  background: rgba(245,239,230,0.04);
  border: 1px solid rgba(245,239,230,0.10);
  border-radius: 20px;
  overflow: hidden;
}
/* Header boîte */
#ct-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #1E1410;
  border-bottom: 1px solid rgba(245,239,230,0.07);
}
#ct-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #CA313F, #E89A24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
#ct-chat-info {
  flex: 1;
}
#ct-chat-name {
  font-family: var(--cb-font-display, 'Space Grotesk', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #F5EFE6;
  margin: 0;
}
#ct-chat-status {
  font-family: var(--cb-font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  color: rgba(245,239,230,0.88);
  display: flex;
  align-items: center;
  gap: 5px;
}
#ct-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
}
/* Messages */
#ct-chat-messages {
  padding: 20px;
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,239,230,0.1) transparent;
}
.ct-msg {
  display: flex;
  gap: 10px;
  animation: ct-fade-in 0.25s ease;
}
.ct-msg-bot { align-items: flex-start; }
.ct-msg-user { align-items: flex-start; flex-direction: row-reverse; }
.ct-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #CA313F, #E89A24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.ct-msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--cb-font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  line-height: 1.55;
}
.ct-msg-bot .ct-msg-bubble {
  background: #251810;
  color: rgba(245,239,230,0.90);
  border-radius: 4px 14px 14px 14px;
}
.ct-msg-user .ct-msg-bubble {
  background: linear-gradient(135deg, #CA313F, #E89A24);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}
/* Questions suggérées */
#ct-suggestions {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ct-suggestion {
  padding: 8px 14px;
  background: rgba(245,239,230,0.06);
  border: 1px solid rgba(245,239,230,0.12);
  border-radius: 20px;
  font-family: var(--cb-font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: rgba(245,239,230,0.88);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ct-suggestion:hover {
  background: rgba(232,154,36,0.12);
  border-color: rgba(232,154,36,0.30);
  color: #F5EFE6;
}
/* Input */
#ct-chat-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(245,239,230,0.07);
  background: #1E1410;
}
#ct-chat-input {
  flex: 1;
  background: rgba(245,239,230,0.07);
  border: 1px solid rgba(245,239,230,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--cb-font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: #F5EFE6;
  outline: none;
  transition: border-color 0.2s;
}
#ct-chat-input::placeholder { color: rgba(245,239,230,0.85); }
#ct-chat-input:focus { border-color: rgba(232,154,36,0.50); }
#ct-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #CA313F, #E89A24);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
#ct-chat-send:hover { opacity: 0.85; }
#ct-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
/* Typing dots */
.ct-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.ct-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(245,239,230,0.4);
  animation: ct-bounce 1.2s infinite;
}
.ct-typing span:nth-child(2) { animation-delay: 0.2s; }
.ct-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ct-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
@keyframes ct-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

