#btn-assistant-planif {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    padding: 3px;
    border: 2px solid #126b78;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 16px #19394b38;
    cursor: pointer;
}
#btn-assistant-planif img, .assistant-entete img {
    display: block;
    border-radius: 50%;
}
#btn-assistant-planif:focus-visible {
    outline: 3px solid #126b78;
    outline-offset: 4px;
}
#assistant-planif {
    position: fixed;
    inset: auto 24px 108px auto;
    margin: 0;
    width: min(520px, calc(100vw - 48px));
    max-height: calc(100vh - 132px);
    overflow: auto;
}
.assistant-entete {
    display: flex;
    align-items: center;
    gap: 10px;
}
#assistant-demande {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 6px 0 10px;
    padding: 9px 10px;
    font: inherit;
    resize: vertical;
    border: 1px solid #a8bac6;
    border-radius: 8px;
}
#assistant-planif button {
    background: #e6f2f4;
    color: #163f49;
    border: 1px solid #bfd9df;
    border-radius: 12px;
    padding: 8px 13px;
    min-height: 34px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
#assistant-planif button:hover { background: #d9ecef; }
#assistant-planif button:focus-visible, #assistant-planif a:focus-visible {
    outline: 2px solid #126b78;
    outline-offset: 2px;
}
#assistant-planif button:disabled { opacity: .65; cursor: wait; }
#assistant-form button::before { content: "➤"; margin-right: .45em; }
#assistant-planif form[method="dialog"] button::before { content: "×"; margin-right: .45em; }
#assistant-resultats a {
    display: inline-block;
    border-radius: 12px;
    padding: 6px 10px;
    background: #e6f2f4;
    color: #163f49;
}
.assistant-avertissement {
    padding: 5px 8px;
    border-radius: 7px;
    background: #fff0d7;
    color: #69470e;
}
#assistant-reponse:not(:empty) {
    padding: 9px 12px;
    border-radius: 8px;
    background: #eaf4f6;
}
#assistant-resultats button {
    text-align: left;
    max-width: 100%;
    cursor: pointer;
}
#assistant-resultats p { margin: 6px 0; }
#assistant-resultats .assistant-rdv {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d5e1e8;
    border-radius: 8px;
    background: #f8fbfc;
    color: #172e40;
}
#assistant-resultats .assistant-rdv:hover { background: #eaf4f6; }
#assistant-resultats button:not(.assistant-rdv)::before { content: "›"; margin-right: .45em; }
.assistant-rdv strong::before { content: "▦"; margin-right: .45em; color: #126b78; }
#assistant-resultats a::before { content: "↗"; margin-right: .45em; }
.assistant-rdv small { color: #405a6b; }
#assistant-perimetre { color: #405a6b; font-weight: 600; }
#assistant-perimetre:empty { display: none; }
.assistant-note-route { white-space: pre-wrap; padding-top: 4px; }
@media (max-width: 800px) {
    #btn-assistant-planif { display: none; }
}
