/* QG+ — Aperçu PDF feuilletable (Vague 28, 10/10/2026) : la page suit le doigt, la voisine arrive du bord. */
#hermes-signature#hermes-signature .qg-pj-vue.qg-pg { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
#hermes-signature#hermes-signature .qg-pj-vue.qg-pg .qg-pj-feuille { overflow: hidden; }
#hermes-signature#hermes-signature .qg-pg-piste { position: absolute; inset: 0; display: block; will-change: transform; transform: translate3d(0, 0, 0); }
#hermes-signature#hermes-signature .qg-pg-page { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; display: block; background: #ffffff; }
#hermes-signature#hermes-signature .qg-pg-page[data-pos="1"] { left: calc(100% + 10px); }
#hermes-signature#hermes-signature .qg-pg-page[data-pos="-1"] { left: calc(-100% - 10px); }
#hermes-signature#hermes-signature .qg-pj-vue.qg-pg .qg-pg-page > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: top; }
/* page pas encore rendue : feuille blanche avec un reflet */
#hermes-signature#hermes-signature .qg-pg-page.est-attente { background: linear-gradient(100deg, #f1f1f1 30%, #fbfbfb 50%, #f1f1f1 70%); background-size: 300% 100%; animation: qg-pj-reflet 1.3s linear infinite; }
/* flèches au survol (souris seulement) */
#hermes-signature#hermes-signature .qg-pg-fl {
  position: absolute; top: 50%; z-index: 3; display: none; place-items: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: rgba(28, 28, 30, .66); color: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); cursor: pointer; opacity: 0; transition: opacity .2s ease, transform .15s ease;
}
#hermes-signature#hermes-signature .qg-pg-fl svg { width: 18px; height: 18px; }
#hermes-signature#hermes-signature .qg-pg-prec { left: 8px; } #hermes-signature#hermes-signature .qg-pg-suiv { right: 8px; }
@media (hover: hover) and (pointer: fine) {
  #hermes-signature#hermes-signature .qg-pj-vue.qg-pg .qg-pg-fl { display: grid; }
  #hermes-signature#hermes-signature .qg-pj-vue.qg-pg:hover .qg-pg-fl { opacity: 1; }
  #hermes-signature#hermes-signature .qg-pj-vue.qg-pg.qg-pg-debut .qg-pg-prec, #hermes-signature#hermes-signature .qg-pj-vue.qg-pg.qg-pg-fin .qg-pg-suiv { opacity: 0 !important; pointer-events: none; }
  #hermes-signature#hermes-signature .qg-pg-fl:active { transform: scale(.9); }
}
@media (prefers-reduced-motion: reduce) { #hermes-signature#hermes-signature .qg-pg-page.est-attente { animation: none; } }
