/* Chat principal */
#ofin-chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    height: 500px;
    max-height: 80vh;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

/* Header du chat */
#ofin-chat-header {
    background: #0073aa;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

/* Messages du chat */
#ofin-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
    font-size: 16px;
}

/* Input du chat */
#ofin-chat-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-top: 1px solid #ccc;
    outline: none;
    font-size: 16px;
}

/* Bouton chat avec image et animation */
#ofin-chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: url('image/ofin.webp') no-repeat center center;
    background-size: cover;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
}

#ofin-chat-bubble:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Messages OFIN */
.ofin-msg, .ofin-message {
    background: #e6f2ff;
    border-left: 4px solid #0073aa;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
}

.ofin-msg a, .ofin-message a {
    color: #2b7de9;
    text-decoration: none;
}

.ofin-msg a:hover, .ofin-message a:hover {
    text-decoration: underline;
}

/* Messages utilisateur */
.user-msg {
    background: #DCF8C6;
    text-align: right;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive mobile */
@media (max-width: 480px) {
    #ofin-chat-window {
        width: 95%;
        right: 2.5%;
        bottom: 10px;
    }

    #ofin-chat-bubble {
        width: 50px;
        height: 50px;
    }
}
