.np-assistant {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1050;
    font-family: inherit;
}

.np-assistant-bouton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.np-assistant-panneau {
    position: absolute;
    right: 0;
    bottom: 58px;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 32px));
    max-height: min(70vh, 560px);
    padding: 16px;
    background: #15212a;
    color: #e8eef3;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.np-assistant-panneau[hidden] {
    display: none;
}

.np-assistant-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.np-assistant-entete h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
}

.np-assistant-fermer {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.np-assistant-intro {
    margin: 10px 0 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #b7c3ce;
}

.np-assistant-intro a {
    color: #f9a8c4;
}

.np-assistant-fil {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 12px;
}

.np-assistant-msg {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.np-assistant-msg p {
    margin: 0 0 8px;
}

.np-assistant-msg p:last-child {
    margin-bottom: 0;
}

.np-assistant-msg a {
    color: #f9a8c4;
}

.np-assistant-visiteur {
    background: rgba(238, 85, 134, 0.16);
}

.np-assistant-reponse {
    background: rgba(255, 255, 255, 0.05);
}

.np-assistant-erreur {
    color: #fecaca;
    font-size: 0.88rem;
}

.np-assistant-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.np-assistant-sources a {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    text-decoration: none;
}

.np-assistant-champ {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: #b7c3ce;
}

.np-assistant-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 64px;
    max-height: 140px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: #0f1820;
    color: #fff;
    font: inherit;
}

.np-assistant-envoyer {
    margin-top: 8px;
}

.np-assistant-envoyer:disabled {
    opacity: 0.6;
    cursor: progress;
}

.np-assistant-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .np-assistant {
        bottom: 76px;
    }
}

@media print {
    .np-assistant {
        display: none;
    }
}
