/* Ali Gator — « Vos documents » : espacement, affichage mobile, pagination (v147). Couche additive. */
html:root body .library-selection:not(#agl-x){margin-bottom:12px;scroll-margin-top:var(--agp-head,90px)}
@media (max-width:1000px){
  /* « Reprendre » devient une flèche sur mobile/tablette (le texte reste lu par les lecteurs d'écran) */
  html:root body .document-tile-footer:not(#agl-x){font-size:0;line-height:0}
  html:root body .document-tile-footer:not(#agl-x) svg{width:16px;height:16px}
}

.agp{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;margin:16px 4px 0}
.agp-count{margin:0;font-size:12.5px;line-height:1.3;color:var(--home-muted,#66755f);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.agp-pages{display:flex;align-items:center;gap:6px}
.agp-btn{box-sizing:border-box;min-width:40px;height:40px;padding:0 10px;border:1px solid rgba(255,255,255,.8);border-radius:13px;cursor:pointer;
  display:inline-grid;place-items:center;font:inherit;font-size:13.5px;font-weight:620;line-height:1;color:#1f3a2a;font-variant-numeric:tabular-nums;
  background:linear-gradient(150deg,rgba(255,255,255,.92),rgba(255,255,255,.68));
  box-shadow:0 6px 16px -10px rgba(10,40,24,.35),inset 0 1px 0 #fff;
  transition:transform .25s cubic-bezier(.22,1,.36,1),background .2s,box-shadow .25s,color .2s;-webkit-tap-highlight-color:transparent}
.agp-btn:hover:not(:disabled):not([aria-current="page"]){background:#fff;box-shadow:0 10px 22px -12px rgba(10,40,24,.45),inset 0 1px 0 #fff}
.agp-btn:active:not(:disabled){transform:scale(.93)}
.agp-btn[aria-current="page"]{color:#fff;border-color:transparent;cursor:default;background:linear-gradient(180deg,#2fa463,#1c7c4a);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 22px -12px rgba(28,124,74,.9)}
.agp-btn:disabled{opacity:.36;cursor:default;box-shadow:none}
.agp-btn svg{width:18px;height:18px;display:block}
.agp-btn:focus-visible{outline:2px solid #2c9a5c;outline-offset:2px}
.agp-gap{min-width:16px;text-align:center;color:var(--home-muted,#66755f);font-size:13px;user-select:none}
@media (max-width:560px){
  .agp{justify-content:center;margin-top:14px}
  .agp-count{order:2;width:100%;text-align:center}
  .agp-pages{gap:5px}
  .agp-btn{min-width:38px;height:38px;border-radius:12px;padding:0 8px}
}
@media (prefers-reduced-motion:reduce){.agp-btn{transition:none}}
