.stan { --stan-c: #1d3f6e; --stan-fond: #ffffff; --stan-texte: #1c2330; --stan-doux: #f2f4f8; --stan-trait: #dfe3ea;
  font: 15px/1.5 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--stan-texte); }
.stan *, .stan *::before, .stan *::after { box-sizing: border-box; }
.stan__bulle { position: fixed; right: 24px; bottom: 24px; z-index: 9998; display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px; border: 0; border-radius: 999px; background: var(--stan-c); color: #fff;
  font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 25, 45, .25); }
.stan__bulle:hover { filter: brightness(1.08); }
.stan__bulle:focus-visible, .stan button:focus-visible, .stan textarea:focus-visible, .stan a:focus-visible {
  outline: 3px solid #f2b705; outline-offset: 2px; }
.stan--ouvert .stan__bulle { display: none; }
.stan__panneau { position: fixed; right: 24px; bottom: 24px; z-index: 9999; width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 48px)); display: flex; flex-direction: column; background: var(--stan-fond);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(15, 25, 45, .28); overflow: hidden; }
.stan__panneau[hidden] { display: none; }
.stan__entete { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px;
  background: var(--stan-c); color: #fff; }
.stan__entete small { display: block; opacity: .85; font-size: 13px; }
.stan__titre { font-size: 17px; }
.stan__fermer { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.stan__fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--stan-doux); }
.stan__msg { max-width: 92%; min-width: 0; overflow-wrap: break-word; padding: 10px 14px; border-radius: 14px; background: #fff; }
.stan__msg p { margin: 0 0 10px; } .stan__msg p:last-child { margin-bottom: 0; }
.stan__msg--assistant { line-height: 1.55; }
.stan__msg ul, .stan__msg ol { margin: 2px 0 10px; padding-left: 20px; }
.stan__msg ul:last-child, .stan__msg ol:last-child { margin-bottom: 0; }
.stan__msg li { margin: 0 0 6px; padding-left: 2px; } .stan__msg li:last-child { margin-bottom: 0; }
.stan__msg li::marker { color: var(--stan-c); }
.stan__msg strong { font-weight: 600; }
.stan__msg--visiteur { align-self: flex-end; background: var(--stan-c); color: #fff; border-bottom-right-radius: 4px; }
.stan__msg--assistant { align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(15, 25, 45, .08); }
.stan__msg--attente { display: inline-flex; gap: 5px; align-items: center; min-height: 1.4em; color: #6b7385; }
.stan__point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .stan__point { animation: stan-rebond 1.2s ease-in-out infinite; }
  .stan__point:nth-child(2) { animation-delay: .15s; }
  .stan__point:nth-child(3) { animation-delay: .3s; }
}
/* Lu par les lecteurs d'écran, invisible à l'écran. */
.stan__lu { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
@keyframes stan-rebond { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
.stan__sources, .stan__contact { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--stan-doux); font-size: 14px; }
.stan__sources p, .stan__contact-titre { margin: 0 0 4px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4a5366; }
.stan__contact-titre { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--stan-texte); }
.stan__contact ul { margin: 0; padding-left: 18px; }
.stan__sources .stan__liens { margin: 0; padding: 0; list-style: none; }
.stan__liens li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; margin: 0; }
.stan__liens li + li { border-top: 1px solid var(--stan-trait); }
.stan__liens a { line-height: 1.35; min-width: 0; overflow-wrap: anywhere; } /* un nom de fichier « a_b_c » n'a aucun point de coupure */
.stan__genre { flex: none; font-size: 12px; color: #4a5366; background: #fff; border: 1px solid var(--stan-trait);
  border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.stan a { color: var(--stan-c); text-decoration: underline; text-underline-offset: 2px; }
.stan__exemples { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--stan-doux); }
.stan__exemples[hidden] { display: none; }
.stan__exemples button { border: 1px solid var(--stan-trait); background: #fff; color: var(--stan-texte); border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.stan__exemples button:hover { border-color: var(--stan-c); }
.stan__saisie { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--stan-trait); }
.stan__saisie textarea { flex: 1; resize: none; border: 1px solid var(--stan-trait); border-radius: 10px; padding: 10px 12px;
  font: inherit; box-sizing: border-box; height: 44px; min-height: 44px; max-height: 120px; margin: 0; } /* les thèmes (Blocksy : 170 px) fixent la hauteur des textarea */
.stan__saisie button { min-height: 0; margin: 0; border: 0; border-radius: 10px; padding: 0 16px; background: var(--stan-c); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.stan__avis { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.stan__invite { margin-right: 6px; font-size: 13px; color: #6b7385; }
.stan__avis--donne .stan__invite { display: none; }
.stan .stan__pouce { display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #6b7385; cursor: pointer; }
.stan .stan__pouce:hover:not(:disabled), .stan .stan__pouce[aria-pressed="true"] { background: var(--stan-doux); color: var(--stan-c); }
.stan .stan__pouce:focus-visible { outline: 2px solid var(--stan-c); outline-offset: 1px; }
.stan .stan__pouce:disabled { cursor: default; }
.stan .stan__pouce:disabled:not([aria-pressed="true"]) { opacity: .45; }
.stan__merci { margin-left: 6px; font-size: 13px; color: #6b7385; }
.stan__mention { margin: 0; padding: 0 14px 12px; font-size: 12px; color: #6b7385; }
.stan__masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 480px) { .stan__panneau { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } .stan__bulle { right: 16px; bottom: 16px; } }

/* Le site ouvre l'assistant autrement (filtre stan_bulle_lanceur). */
.stan--sans-lanceur .stan__bulle { display: none; }

/* Le code d'une réponse (version spéciale wp-apidae.io, 27/11/2026) : à chasse fixe, un bloc défile
   en largeur plutôt que d'élargir la bulle. */
.stan__msg code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: .05em .3em; border-radius: 4px; background: rgba(0, 0, 0, .06); overflow-wrap: anywhere; }
.stan__msg pre { margin: .5em 0; padding: .6em .75em; border-radius: 6px; background: rgba(0, 0, 0, .06); overflow-x: auto; max-width: 100%; }
.stan__msg pre code { padding: 0; background: none; font-size: .85em; white-space: pre; overflow-wrap: normal; }
