/* Aide en direct sur le site (public/help.js avec data-site). Les règles .hp sont celles de app.css (gardées identiques). */
.hp { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; animation: hpIn .2s cubic-bezier(.2,.7,.3,1); }
.hp[hidden] { display: none; }
@keyframes hpIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.hp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.hp-h > div { flex: 1; min-width: 0; } .hp-h b { display: block; font-size: 14px; } .hp-h small { display: block; font-size: 12px; color: var(--muted); }
.hp[data-state="claimed"] .hp-h small { color: #34d399; }
.hp-av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hp-x { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.hp-x:hover { background: var(--surface-2); color: var(--fg); }
.hp-new { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.hp-new p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hp-new label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hp-new input, .hp-new textarea, .hp-say textarea { font: inherit; font-size: 13.5px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: none; }
.hp-new input:focus, .hp-new textarea:focus, .hp-say textarea:focus { outline: none; border-color: var(--accent); }
.hp-go { height: 40px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); font: inherit; font-weight: 650; cursor: pointer; }
.hp-go:disabled { opacity: .6; cursor: wait; }
.hp-err { color: var(--danger, #ef4444); min-height: 1em; }
.hp-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hp-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hp-m { max-width: 82%; padding: 8px 11px; border-radius: 13px; font-size: 13.5px; line-height: 1.4; }
.hp-m p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.hp-m b { display: block; font-size: 11.5px; color: var(--accent); margin-bottom: 2px; }
.hp-m small { display: block; margin-top: 3px; font-size: 10.5px; opacity: .6; text-align: right; }
.hp-m.me { align-self: flex-end; background: var(--accent); color: var(--on-accent, #fff); border-bottom-right-radius: 4px; }
.hp-m.them { align-self: flex-start; background: var(--surface-2); color: var(--fg); border-bottom-left-radius: 4px; }
.hp-sys { align-self: center; max-width: 90%; margin: 2px 0; font-size: 12px; color: var(--muted); text-align: center; }
.hp-say { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.hp-say[hidden] { display: none; }
.hp-say textarea { flex: 1; min-height: 38px; max-height: 120px; }
.hp-say button { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); cursor: pointer; display: grid; place-items: center; }
.hp-foot { display: flex; justify-content: center; padding: 0 0 8px; }
.hp-end { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.hp-end[hidden] { display: none; }
.hp-rate { margin: 0 12px 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hp-rate[hidden] { display: none; }
.hp-rate b { font-size: 14px; }
.hp-stars { display: flex; gap: 6px; }
.hp-stars button { width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hp-stars svg { width: 30px; height: 30px; fill: transparent; stroke: var(--muted); stroke-width: 1.5; transition: transform .12s, fill .12s, stroke .12s; }
.hp-stars button.on svg { fill: #fbbf24; stroke: #fbbf24; filter: drop-shadow(0 0 6px rgba(251,191,36,.35)); }
.hp-stars button:hover svg { transform: scale(1.12); }
.hp-rate textarea { width: 100%; font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: none; }
.hp-rate textarea:focus { outline: none; border-color: var(--accent); }
.hp-rate-go { display: flex; align-items: center; gap: 12px; width: 100%; } .hp-rate-go .hp-go { flex: 1; height: 36px; }
.hp-chat .hp-say[hidden] + .hp-rate:not([hidden]) { margin-top: 8px; }
.hp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 890; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.hp-fab[hidden] { display: none; }
.hp-fab svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-fab i { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.hp-fab i[hidden] { display: none; }
.hp { font-family: var(--font, inherit); }
.hp-av { font: 700 15px var(--display, inherit); }
.hp svg { flex: none; }
/* le bouton du site : rond, au logo V, avec une bulle « Une question ? » */
.hp-fab.hp-fab-v { right: 22px; bottom: 22px; width: 58px; height: 58px; padding: 0; gap: 0; justify-content: center; border: 0; border-radius: 17px;
  background: url("/icon.svg?v=4") center / cover no-repeat; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .7); transition: transform .18s; } /* (14/11/2026) logo Sillage, sans halo violet */
.hp-fab.hp-fab-v:hover { transform: translateY(-2px) scale(1.04); }
.hp-fab-v .hp-v { font-size: 0; color: transparent; }
.hp-fab-v::before { content: none; } /* (14/11/2026) plus d anneau lumineux qui pulse */
@keyframes hpPulse { 0% { opacity: .9; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.hp-fab-v .hp-tip { position: absolute; right: 70px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 9px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font: 500 13px var(--font, inherit); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.hp-fab-v .hp-tip b { color: var(--accent); font-weight: 600; }
.hp-fab-v:hover .hp-tip, .hp-fab-v:focus-visible .hp-tip, .hp-fab-v.hint .hp-tip { opacity: 1; transform: translate(0, -50%); }
.hp-fab-v i { top: 2px; right: 2px; width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .hp-fab-v::before { animation: none; opacity: 0; } }
@media (max-width: 600px) { .hp-fab-v .hp-tip { display: none; } .hp-fab.hp-fab-v { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* (10/11/2026) Aide en direct : « display: flex » de .hp-new / .hp-chat passait devant l'attribut hidden, donc le formulaire
   « nouvelle demande » restait affiché par-dessus la conversation (on ne voyait pas la discussion) */
.hp [hidden] { display: none !important; }

/* (14/11/2026) Bulle d aide : le logo Sillage dans l en-tete de la fenetre */
.hp-av .hp-logo { width: 32px; height: 32px; display: block; border-radius: 9px; }
.hp-av:has(.hp-logo) { background: none; }
