/* Widget indépendant : aucune modification du dessin des pages. */
.faq-assistant-launcher { position: fixed; z-index: 85; right: 24px; bottom: 24px; display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #7a8568; border-radius: 50%; background: #3e4b34; color: #fcfaf5; box-shadow: 0 3px 12px #282d261c; font: 600 14px/1.4 var(--sans); cursor: pointer; }
.faq-assistant-launcher[hidden] { display: none; }
.faq-assistant-launcher:hover { background: #303d28; }
.faq-assistant-icon { position: relative; width: 19px; height: 16px; border: 1.5px solid currentColor; border-radius: 5px; }
.faq-assistant-icon::after { content: ""; position: absolute; bottom: -5px; left: 3px; width: 5px; height: 5px; background: inherit; border-left: 1.5px solid currentColor; transform: skewY(-35deg); }
.faq-assistant-dialog { position: fixed; z-index: 86; inset: auto 24px 84px auto; margin: 0; width: min(350px, calc(100vw - 32px)); max-width: none; height: min(450px, calc(100dvh - 108px)); max-height: none; padding: 0; border: 1px solid #bdb5a2; border-radius: 12px; background: #fcfaf5; color: #282d26; box-shadow: 0 8px 28px #282d2626; overflow: hidden; font: 400 14px/1.6 var(--sans); }
.faq-assistant-dialog[open] { display: flex; flex-direction: column; }
.faq-assistant-header { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #d9d2c3; background: #ece6d8; }
.faq-assistant-header h2 { margin: 0; font: 400 24px/1.12 var(--serif); letter-spacing: -.025em; }
.faq-assistant-header p { margin: 6px 0 0; color: #59624c; font-size: 11px; }
.faq-assistant-close { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid #b9b49f; border-radius: 50%; color: #39462e; background: transparent; cursor: pointer; font: 400 26px/1 var(--sans); }
.faq-assistant-content { min-height: 0; flex: 1; padding: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.faq-assistant-intro { margin: 0 0 16px; color: #535b4c; }
.faq-assistant-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.faq-assistant-topics button { min-height: 42px; padding: 10px 12px; border: 1px solid #c5c6b5; border-radius: 7px; text-align: left; color: #39462e; background: #f2f0e6; cursor: pointer; font-size: 13px; line-height: 1.4; }
.faq-assistant-topics button:hover { background: #e8eadc; border-color: #7a8568; }
.faq-assistant-turn { margin-top: 20px; overflow-wrap: anywhere; }
.faq-assistant-question { width: fit-content; max-width: 92%; margin: 0 0 10px auto; padding: 9px 12px; border-radius: 10px 10px 2px 10px; background: #3e4b34; color: #fcfaf5; font-size: 13px; }
.faq-assistant-answer { margin: 0; padding: 12px 14px; border: 1px solid #ded8c9; border-radius: 2px 10px 10px 10px; background: #f2eee5; color: #343d2d; font-size: 14px; }
.faq-assistant-answer p { margin: 0; }
.faq-assistant-answer-link { display: inline-block; margin-top: 10px; color: #394c2d; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 13px; }
.faq-assistant-form { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #d9d2c3; }
.faq-assistant-form input { min-width: 0; flex: 1; width: 100%; padding: 11px 10px; border: 1px solid #a8af97; border-radius: 7px; background: #fffefa; color: #282d26; font: 400 16px/1.3 var(--sans); }
.faq-assistant-form input::placeholder { color: #626858; opacity: 1; }
.faq-assistant-send { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: #3e4b34; color: #fcfaf5; cursor: pointer; font-size: 22px; }
.faq-assistant-send:disabled { background: #e6e4d9; color: #626858; cursor: default; }
.faq-assistant-footer { flex: none; padding: 0 16px 12px; color: #626458; font-size: 11px; }
.faq-assistant-footer p { margin: 0 0 8px; line-height: 1.5; }
.faq-assistant-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.faq-assistant-footer a, .faq-assistant-footer button { display: inline-block; padding: 4px 0; border: 0; background: transparent; color: #414f35; text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.faq-assistant :focus-visible { outline: 3px solid #8b793f; outline-offset: 2px; }
@media (max-width: 760px) {
  .faq-assistant-launcher { right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .faq-assistant-dialog { inset: auto 12px calc(132px + env(safe-area-inset-bottom)) auto; width: min(340px, calc(100vw - 24px)); height: min(420px, calc(100dvh - 156px - env(safe-area-inset-bottom))); }
  .faq-assistant-content { padding: 16px; }
  .faq-assistant-footer { padding-inline: 16px; }
}
@media (max-height: 450px) {
  .faq-assistant-dialog { inset: auto 76px 72px auto; width: min(340px, calc(100vw - 88px)); height: calc(100dvh - 84px); }
  .faq-assistant-header { padding: 10px 16px; }
  .faq-assistant-header h2 { font-size: 22px; }
  .faq-assistant-footer { padding-bottom: 8px; }
}
