/* 🟠 Texte "Julie est en ligne" */
#chatbot-status {
    position: fixed;
    bottom: 75px;
    right: 30px;
    color: #FF8000; /* 🔥 Texte bien visible */
    font-size: 14px;
    font-weight: bold;
    display: none;
    white-space: nowrap; /* 🔥 Garde sur une seule ligne */
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999999;
}

/* 🟢 Bulle du chatbot */
#chatbot-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF8000; /* 🔥 ORANGE PAR DÉFAUT */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    z-index: 999999;
}

/* 🔥 Quand la bulle devient verte */
#chatbot-bubble.active {
    background: #28a745 !important; /* 🟢 PASSE EN VERT */
    color: white;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Icône bien centrée */
#chatbot-bubble span {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
	cursor: pointer;
}

/* 🟠 Animation de la bulle */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.pulse-animation {
    animation: pulse 1s infinite ease-in-out alternate;
}

/* 🟠 Style général du chatbot */
#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    display: none;
    flex-direction: column;
    z-index: 999998;
}

/* 🟠 En-tête du chatbot */
#chatbot-header {
    background: #FF8000;
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Avatar Julie */
#chatbot-header img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Bouton de fermeture */
#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* 🟠 Zone des messages */
#chatbot-box {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
}

/* Messages utilisateurs et Julie */
.chatbot-message {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 80%;
}

.chatbot-message.agent {
    background: #FFFFFF; /* Fond blanc */
    color: #000000; /* Texte noir */
    border: 2px solid #FF8000; /* Bordure fine orange */
    align-self: flex-start;
    padding: 8px 12px; /* Ajoute un peu d'espace autour du texte */
    border-radius: 6px; /* Coins légèrement arrondis */
    max-width: 80%; /* Pour éviter que le message soit trop large */
}

.chatbot-message.user {
    background: #e0e0e0;
    color: black;
    align-self: flex-end;
}

/* Animation "Julie est en train d'écrire..." */
.chatbot-message.typing {
    font-style: italic;
    color: #999;
}

/* Zone d'entrée de texte */
#chatbot-input-area {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

#chatbot-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 5px;
}

#chatbot-send {
    background: #FF8000;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}
