:root {
--adai-primary-color: #667eea;
--adai-text-color: #333;
--adai-bg-light: #f8f9fa;
--adai-border: #e0e0e0;
--adai-shadow: 0 5px 40px rgba(0,0,0,0.16);
} .adai-chat-bubble {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background: var(--adai-primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
transition: transform 0.3s ease, box-shadow 0.3s ease;
z-index: 999999;
}
.adai-chat-bubble:hover {
transform: scale(1.1);
box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}
.adai-bubble-icon svg {
width: 28px;
height: 28px;
}
.adai-bubble-notification {
position: absolute;
top: -5px;
right: -5px;
background: #ff4757;
color: white;
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.adai-chat-bubble.adai-hidden {
display: none;
} .adai-chat-window {
position: fixed;
bottom: 90px;
right: 20px;
width: 380px;
height: 600px;
background: white;
border-radius: 16px;
box-shadow: var(--adai-shadow);
display: flex;
flex-direction: column;
z-index: 999999;
opacity: 0;
transform: translateY(20px) scale(0.95);
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: none;
}
.adai-chat-window.adai-open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: all;
}
.adai-chat-window-header {
background: var(--adai-primary-color);
color: white;
padding: 20px;
border-radius: 16px 16px 0 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.adai-header-info {
display: flex;
align-items: center;
gap: 12px;
}
.adai-bot-avatar {
width: 40px;
height: 40px;
background: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.adai-header-text h4 {
margin: 0;
font-size: 16px;
font-weight: 600;
}
.adai-status {
font-size: 12px;
opacity: 0.9;
}
.adai-minimize-btn {
background: transparent;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background 0.2s;
}
.adai-minimize-btn:hover {
background: rgba(255,255,255,0.1);
}
.adai-chat-window-messages {
flex: 1;
overflow-y: auto;
padding: 20px;
background: #fafafa;
}
.adai-chat-message {
margin-bottom: 16px;
display: flex;
gap: 10px;
animation: messageSlideIn 0.3s ease-out;
}
@keyframes messageSlideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.adai-chat-message.adai-bot {
flex-direction: row;
}
.adai-chat-message.adai-user {
flex-direction: row-reverse;
}
.adai-msg-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--adai-primary-color);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.adai-msg-content {
max-width: 70%;
padding: 12px 16px;
border-radius: 16px;
line-height: 1.5;
font-size: 14px;
}
.adai-chat-message.adai-bot .adai-msg-content {
background: white;
color: var(--adai-text-color);
border-bottom-left-radius: 4px;
}
.adai-chat-message.adai-user .adai-msg-content {
background: var(--adai-primary-color);
color: white;
border-bottom-right-radius: 4px;
}
.adai-quick-replies {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.adai-quick-reply-btn {
background: white;
border: 1px solid var(--adai-border);
padding: 8px 16px;
border-radius: 20px;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.adai-quick-reply-btn:hover {
background: var(--adai-primary-color);
color: white;
border-color: var(--adai-primary-color);
}
.adai-typing {
display: flex;
gap: 4px;
padding: 10px;
}
.adai-typing span {
width: 8px;
height: 8px;
background: #999;
border-radius: 50%;
animation: typing 1.4s infinite;
}
.adai-typing span:nth-child(2) { animation-delay: 0.2s; }
.adai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
30% { transform: translateY(-10px); opacity: 1; }
}
.adai-chat-window-input {
padding: 16px;
background: white;
border-top: 1px solid var(--adai-border);
display: flex;
gap: 10px;
}
.adai-chat-window-input input {
flex: 1;
padding: 12px 16px;
border: 1px solid var(--adai-border);
border-radius: 24px;
outline: none;
font-size: 14px;
}
.adai-chat-window-input input:focus {
border-color: var(--adai-primary-color);
}
.adai-chat-window-send {
width: 44px;
height: 44px;
background: var(--adai-primary-color);
color: white;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.2s;
}
.adai-chat-window-send:hover {
transform: scale(1.05);
} .adai-form-panel {
position: fixed;
top: 0;
right: -450px;
width: 420px;
height: 100vh;
background: white;
box-shadow: -5px 0 40px rgba(0,0,0,0.15);
z-index: 1000000;
transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
}
.adai-form-panel.adai-open {
right: 0;
}
.adai-form-panel-header {
background: var(--adai-primary-color);
color: white;
padding: 20px 24px;
display: flex;
justify-content: space-between;
align-items: center;
}
.adai-form-panel-header h3 {
margin: 0;
font-size: 18px;
}
.adai-close-btn {
background: transparent;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background 0.2s;
}
.adai-close-btn:hover {
background: rgba(255,255,255,0.1);
}
.adai-form-panel-content {
flex: 1;
overflow-y: auto;
padding: 24px;
}
.adai-progress-bar {
background: #e0e0e0;
height: 6px;
border-radius: 10px;
margin-bottom: 24px;
overflow: hidden;
}
.adai-progress-fill {
background: var(--adai-primary-color);
height: 100%;
transition: width 0.5s ease;
}
.adai-form-group {
margin-bottom: 20px;
}
.adai-form-group label {
display: block;
margin-bottom: 8px;
color: #333;
font-weight: 500;
font-size: 14px;
}
.adai-form-group input[type="text"],
.adai-form-group input[type="email"],
.adai-form-group input[type="tel"],
.adai-form-group input[type="date"] {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--adai-border);
border-radius: 8px;
outline: none;
font-size: 14px;
transition: border-color 0.2s;
}
.adai-form-group input:focus {
border-color: var(--adai-primary-color);
}
.adai-button-group {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.adai-button-group.adai-grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.adai-button-group.adai-grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
.adai-option-btn {
padding: 10px;
border: 2px solid var(--adai-border);
border-radius: 8px;
background: white;
cursor: pointer;
transition: all 0.2s;
font-size: 13px;
text-align: center;
}
.adai-option-btn:hover {
border-color: var(--adai-primary-color);
background: #f0f4ff;
}
.adai-option-btn.active {
border-color: var(--adai-primary-color);
background: var(--adai-primary-color);
color: white;
}
.adai-devis-card {
background: var(--adai-primary-color);
color: white;
padding: 20px;
border-radius: 12px;
text-align: center;
margin: 20px 0;
}
.adai-devis-card h4 {
margin: 0 0 10px 0;
font-size: 16px;
}
.adai-devis-card .adai-price {
font-size: 36px;
font-weight: bold;
margin: 10px 0;
}
.adai-devis-card p {
margin: 10px 0 0 0;
font-size: 13px;
opacity: 0.9;
}
.adai-submit-btn {
width: 100%;
padding: 16px;
background: var(--adai-primary-color);
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s;
}
.adai-submit-btn:hover {
transform: translateY(-2px);
}
.adai-note {
text-align: center;
font-size: 12px;
color: #999;
margin-top: 12px;
} @media (max-width: 768px) {
.adai-chat-window {
width: calc(100vw - 40px);
height: calc(100vh - 110px);
bottom: 90px;
right: 20px;
}
.adai-form-panel {
width: 100vw;
right: -100vw;
}
.adai-form-panel.adai-open {
right: 0;
}
} .adai-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 999999;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.adai-overlay.adai-visible {
opacity: 1;
pointer-events: all;
} #adai-mic-btn {
display: flex !important;
}
#adai-mic-btn.adai-mic-active {
background: #fee2e2 !important;
border-color: #ef4444 !important;
animation: mic-pulse 1s infinite;
}
@keyframes mic-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
} .adai-chat-message.adai-user .adai-msg-content {
background: var(--adai-primary-color);
color: white;
border-radius: 16px 16px 4px 16px;
margin-left: auto;
}
.adai-chat-message.adai-bot .adai-msg-content {
background: white;
border: 1px solid #e0e0e0;
border-radius: 16px 16px 16px 4px;
} .adai-quick-replies {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 4px 0 12px 42px;
}
.adai-quick-reply-btn {
padding: 8px 14px;
background: white;
border: 1.5px solid var(--adai-primary-color);
border-radius: 20px;
color: var(--adai-primary-color);
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.adai-quick-reply-btn:hover,
.adai-quick-reply-btn:active {
background: var(--adai-primary-color);
color: white;
}
.adai-quick-reply-btn:disabled {
opacity: 0.5;
pointer-events: none;
} .adai-typing {
display: flex;
gap: 4px;
align-items: center;
padding: 4px 0;
}
.adai-typing span {
width: 8px;
height: 8px;
background: var(--adai-primary-color);
border-radius: 50%;
animation: typing-bounce 1.2s infinite;
}
.adai-typing span:nth-child(2) { animation-delay: 0.2s; }
.adai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
30%            { transform: translateY(-6px); opacity: 1; }
} @media (max-width: 480px) {
#adai-chat-window {
width: 100vw !important;
height: 100vh !important;
bottom: 0 !important;
right: 0 !important;
border-radius: 0 !important;
}
#adai-chat-bubble {
bottom: 16px !important;
right: 16px !important;
}
.adai-quick-reply-btn {
font-size: 12px;
padding: 7px 12px;
}
.adai-chat-window-input {
padding: 10px !important;
}
}