.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chatbot-icon img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chatbot-icon img:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.chatbot-header {
    padding: 15px;
    background: #2a2a2a;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header .close-btn {
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s ease;
}

.chatbot-header .close-btn:hover {
    color: #00C8A4;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1a1a1a;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    color: #fff;
    animation: messageAppear 0.3s ease;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: #2a2a2a;
    margin-right: auto;
    border: 1px solid #333;
}

.user-message {
    background: #00C8A4;
    margin-left: auto;
    color: #fff;
}

.chatbot-input {
    padding: 10px;
    border-top: 1px solid #333;
    display: flex;
    background: #2a2a2a;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    align-items: center;
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 20px;
    background: #1a1a1a;
    color: #fff;
    height: 36px;
    min-width: 0;
}

.chatbot-input input::placeholder {
    color: #666;
}

.chatbot-input button {
    padding: 8px 16px;
    background: #00C8A4;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
}

.chatbot-input button:hover {
    background: #008f6b;
}

/* Style pour la barre de défilement */
.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: 90%;
        height: 60vh;
        bottom: 100px;
        right: 5%;
        left: 5%;
    }

    .chatbot-icon {
        bottom: 10px;
        right: 10px;
    }

    .chatbot-icon img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 95%;
        height: 70vh;
        bottom: 90px;
        right: 2.5%;
        left: 2.5%;
    }

    .chatbot-icon img {
        width: 70px;
        height: 70px;
    }

    .message {
        max-width: 90%;
    }
} 