#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
}

#send-button {
    background-color: #4487d3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#send-button:hover {
    background-color: #4487d3;
}

.chat-button {
    position: fixed;
    bottom: 15px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 900;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

#chat-container {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: Arial, sans-serif;
    z-index: 900;
    display: none;
}

.chat-container {
    bottom: 85px;
    right: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#chat-container.chat-visible {
    display: block;
}

.chat-header {
    background-color: #4487d3;
    color: white;
    text-align: center;
    padding: 2px;
}

.chat-messages {
    height: 30vh;
    width: 40vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: start;
}

#chat-messages_act {
    height: 20vh;
    width: 40vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: start;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    background-color: #fff;
}

.chat-input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
}

.chat-input-container button {
    background-color: #4487d3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.chat-input-container button:hover {
    background-color: #4487d3;
}

.chat-hidden {
    display: none;
}

/* Media queries pour petits écrans (moins de 768px) */
@media (max-width: 768px) {
    #chat-container {
        bottom: 15px;
        right: 5px;
        max-width: 90%;
        max-height: 60vh;
    }

    .chat-messages {
        height: 40vh;
    }

    .chat-input-container input {
        font-size: 12px;
        padding: 8px;
    }

    .chat-header {
        font-size: 16px;
    }
}

/* Media queries pour très petits écrans (moins de 480px) */
@media (max-width: 480px) {
    #chat-container {
        max-width: 95%;
        bottom: 10px;
        right: 2.5%;
    }

    .chat-messages {
        height: 35vh;
    }

    .chat-input-container input {
        font-size: 12px;
    }

    .chat-header {
        font-size: 14px;
    }
}