/* QG+ 14/10/2026 · Curseur d'écriture DANS la bulle (qg-terminal.js v10). Le Général : « y'a toujours ce fameux curseur
   collant ». Le curseur (::after) et sa traînée (::before) sont dessinés par la bulle qui s'écrit, à la position donnée en
   variables CSS : ils défilent avec le texte à l'image près (même sur iPhone) et ce qui recouvre le texte (en-tête, saisie,
   feuilles) les recouvre aussi. L'ancien calque fixe par-dessus tout l'écran (.qgt-cur) n'est plus jamais affiché.
   Retour arrière : voir RETOUR-ARRIERE.txt (14/10/2026 — tremblements et curseur collant). */
#hermes-signature .qgt-cur { display: none !important; }
#hermes-signature #hs-feed .hs-bubble[data-qgt-cur]::after {
  content: ""; position: absolute; left: 0; top: 0; pointer-events: none;
  width: .56em; height: var(--qgt-h, 1.2em); border-radius: 2px;
  transform: translate(var(--qgt-x, 0px), var(--qgt-y, 0px));
  background: var(--qgt-encre, #1c1c1e); opacity: 0; transition: opacity .16s ease;
}
#hermes-signature #hs-feed .hs-bubble[data-qgt-cur="1"]::after { opacity: .78; }
#hermes-signature #hs-feed .hs-bubble[data-qgt-cur="fin"]::after { opacity: .78; animation: qgt-clin 1.05s steps(1, end) 2, qgt-part .3s ease 2s forwards; }
/* La traînée : les dernières lettres écrites brillent un instant */
#hermes-signature #hs-feed .hs-bubble[data-qgt-cur]::before {
  content: ""; position: absolute; top: calc(var(--qgt-y, 0px) - 1px); right: calc(100% - var(--qgt-x, 0px) + 1px); pointer-events: none;
  width: 2.8em; height: calc(var(--qgt-h, 1.2em) + 2px); border-radius: 4px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0), rgba(10, 132, 255, .2));
  opacity: 0; transition: opacity .3s ease, width .35s cubic-bezier(.2, .8, .2, 1);
}
#hermes-signature #hs-feed .hs-bubble[data-qgt-cur="1"]::before { opacity: 1; }
#hermes-signature #hs-feed .hs-bubble[data-qgt-cur][data-qgt-turbo]::before { width: 6.5em; background: linear-gradient(90deg, rgba(10, 132, 255, 0), rgba(10, 132, 255, .34)); }
/* Sombre : curseur cyan lumineux, traînée cyan */
#hermes-signature[data-theme]:not([data-theme="light"]) #hs-feed .hs-bubble[data-qgt-cur]::after {
  background: rgb(var(--nx, 77 255 216)); box-shadow: 0 0 12px rgb(var(--nx, 77 255 216) / .85), 0 0 3px rgb(var(--nx, 77 255 216));
}
#hermes-signature[data-theme]:not([data-theme="light"]) #hs-feed .hs-bubble[data-qgt-cur="1"]::after { opacity: .92; }
#hermes-signature[data-theme]:not([data-theme="light"]) #hs-feed .hs-bubble[data-qgt-cur]::before {
  background: linear-gradient(90deg, rgb(var(--nx, 77 255 216) / 0), rgb(var(--nx, 77 255 216) / .26)); box-shadow: 8px 0 16px -6px rgb(var(--nx, 77 255 216) / .55);
}
#hermes-signature[data-theme]:not([data-theme="light"]) #hs-feed .hs-bubble[data-qgt-cur][data-qgt-turbo]::before {
  background: linear-gradient(90deg, rgb(var(--nx, 77 255 216) / 0), rgb(var(--nx, 77 255 216) / .44));
}
@media (prefers-reduced-motion: reduce) {
  #hermes-signature #hs-feed .hs-bubble[data-qgt-cur]::after, #hermes-signature #hs-feed .hs-bubble[data-qgt-cur]::before { display: none; }
}
