.chat-bot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color:  var(--primary);/* Couleur principale - ajustez selon votre palette */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.chat-bot-button:hover {
    transform: scale(1.1);
    background-color: var(--soft-primary); /* Version légèrement plus foncée */
}

.chat-bot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chat-bot-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-bot-header {
    background-color: var(--primary); /* Même couleur que le bouton */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-bot-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-bot-close {
    cursor: pointer;
    font-size: 20px;
}

.chat-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-bot-message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
}

.chat-bot-message.bot {
    background-color: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-bot-message.user {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-bot-input-container {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-bot-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-bot-send {
    margin-left: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-bot-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.chat-bot-typing {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f1f1f1;
    padding: 10px 15px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    font-size: 14px;
}

.typing-animation {
    display: flex;
    margin-left: 5px;
}

.typing-dot {
    background-color: #777;
    border-radius: 50%;
    width: 5px;
    height: 5px;
    margin: 0 2px;
    animation: typing-animation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Options prédéfinies pour le bot */
.chat-bot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.chat-bot-option {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-bot-option:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chat-bot-image {
    margin-right: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-bot-product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    margin-bottom: 15px;
}

.chat-bot-product {
    flex: 0 0 auto;
    width: 150px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.chat-bot-product img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.chat-bot-product h4 {
    font-size: 14px;
    margin: 5px 0;
}

.chat-bot-product p {
    font-size: 12px;
    color: #555;
}

.chat-bot-product a {
    display: inline-block;
    margin-top: 5px;
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
}

.chat-bot-product a:hover {
    text-decoration: underline;
}

.chat-bot-message.image {
    max-width: 150px;
}

.chat-bot-message.image img {
    width: 100%;
    border-radius: 10px;
}