/* --- Fenêtre --- */
.ybrf-chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 360px;
    max-height: 560px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
}

/* Ouvrir */
.ybrf-open { display: flex !important; }

/* Header */
.ybrf-chatbot-header {
    background: #0d2b52;
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ybrf-header-left { display: flex; align-items: center; gap: 10px; }

.ybrf-header-logo {
    width: 32px;
    height: 32px;
    background-image: url('https://www.yachtbroker-rf.com/wp-content/uploads/elementor/thumbs/logo-YBRF_fond_blanc-rfdyhg3ulqs61hc8a56chaooq3969zezxw23rrah0u.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    background-color: white;
}

.ybrf-btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* Chat zone */
.ybrf-chat-area {
    flex: 1;
    background: #f4f6fa;
    padding: 12px;
    overflow-y: auto;
}

.ybrf-message { margin-bottom: 10px; max-width: 90%; }

.ybrf-message-bot p {
    background: white;
    padding: 10px 12px;
    border-radius: 14px;
    color: #0d2b52;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.ybrf-message-user p {
    background: #0d2b52;
    color: white;
    padding: 10px 12px;
    border-radius: 14px;
    margin-left: auto;
}

/* Footer */
.ybrf-chat-footer {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}

.ybrf-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 8px 10px;
}

/* Envoyer */
.ybrf-send {
    padding: 8px 16px;
    background: #0d2b52;
    border-radius: 12px;
    border: none;
    color: white;
    font-weight: 600;
}

/* --- Lanceur --- */
.ybrf-chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0d2b52;
    height: 62px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    cursor: pointer;
}

.ybrf-launcher-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-image: url('https://www.yachtbroker-rf.com/wp-content/uploads/elementor/thumbs/logo-YBRF_fond_blanc-rfdyhg3ulqs61hc8a56chaooq3969zezxw23rrah0u.png');
    background-size: cover;
    background-position: center;
}

.ybrf-launcher-text {
    font-size: 17px;
    font-weight: 600;
}
