#fianar-chat-wrapper {
    max-width: 450px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #eaeaea;
}

#chat-header {
    background: #1a365d; /* Bleu sombre pro */
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

#chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ffffff;
}

#chat-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

#chat-header-info p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

#chat-box {
    height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: #f0f2f5; /* Gris léger type WhatsApp */
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user {
    background: #1a365d;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot {
    background: #ffffff;
    color: #333333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
}

#input-area {
    display: flex;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    align-items: center;
}

#user-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    background: #f8f9fa;
}

#user-input:focus {
    border-color: #1a365d;
    background: #ffffff;
}

#send-btn {
    margin-left: 10px;
    width: 45px;
    height: 45px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-btn:hover {
    background: #2a4a7f;
}
