#id-assistant-launcher {
    position: fixed;
    /* Position contrôlée par le style inline généré en PHP */
    bottom: auto;
    right: auto;
    left: auto;
    top: auto;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 26px;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
    opacity: 0.94;
}

#id-assistant-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.38);
    opacity: 1;
}

#id-assistant-widget {
    position: fixed;
    /* Position contrôlée par le style inline généré en PHP */
    bottom: auto;
    right: auto;
    left: auto;
    top: auto;
    width: 340px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.45);
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    overflow: hidden;
    z-index: 9999;
}

#id-assistant-widget.id-assistant-closed {
    display: none;
}

#id-assistant-widget.id-assistant-open {
    display: flex;
}

.id-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111827;
    color: #fff;
    padding: 10px 12px;
}

.id-assistant-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-assistant-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15,23,42,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 18px;
}

.id-assistant-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-assistant-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.id-assistant-title {
    font-size: 14px;
    font-weight: 600;
}

.id-assistant-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

.id-assistant-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 4px;
}

.id-assistant-messages {
    padding: 10px;
    max-height: 280px;
    overflow-y: auto;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}

.id-assistant-message {
    padding: 7px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 90%;
    word-wrap: break-word;
    line-height: 1.35;
}

.id-assistant-bot {
    background: #ffffff;
    align-self: flex-start;
    border: 1px solid #e5e7eb;
}

.id-assistant-user {
    background: #111827;
    color: #fff;
    align-self: flex-end;
}

.id-assistant-form {
    display: flex;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.id-assistant-input {
    flex: 1;
    border: none;
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.id-assistant-input::placeholder {
    color: #9ca3af;
}

.id-assistant-send {
    border: none;
    background: #111827;
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
}

.id-assistant-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 4px 0;
}

.id-assistant-link {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 8px;
    text-decoration: none;
    background: #e5e7eb;
    color: #111827;
    font-size: 13px;
    border: 1px solid #d1d5db;
}

.id-assistant-link:hover {
    background: #d1d5db;
}
