#chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 90px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#chatbot-toggle {
    background: #FFCF56;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* important pour que l'image reste dans le rond */
}

#chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

#chatbot-box {
    width: 420px;
    max-height: 520px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#chat-header {
    padding: 16px;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

#chat-header strong {
    font-size: 16px;
    color: #333;
}

#clear-chat {
    background: none;
    border: none;
    font-size: 16px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

#clear-chat:hover {
    color: #333;
}

#chat-log {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    background: #fff;
    scroll-behavior: smooth;
}

.msg {
    margin-bottom: 12px;
    display: flex;
}

.msg.user {
    justify-content: flex-end;
}

.msg.bot {
    justify-content: flex-start;
}

.bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    word-wrap: break-word;
}

.bubble.user {
    background: #007bff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bubble.bot {
    background: #f1f1f1;
    color: #111;
    border-bottom-left-radius: 4px;
}

#chat-form {
    display: flex;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #eee;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#chat-input:focus {
    border-color: #007bff;
    outline: none;
}

#send-btn {
    background: #FFCF56;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

#send-btn:hover {
    transform: scale(1.1);
}
#chat-float-text {
    position: relative;
    height: 30px;
    width: 280px;
    overflow: hidden;
    background-color: #FFCF56;
    border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.scrolling-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: floatText 15s linear infinite;
}

@keyframes floatText {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}

