/* Ali Gator v201 — chat MAX plus vivant (couche ajoutée, les fichiers de MAX ne sont pas modifiés) :
   · seuls les éléments nouveaux du suivi apparaissent en douceur (rien ne rejoue à chaque rafraîchissement) ;
   · « Voir les PDF à examiner » : flèche ronde qui pivote, déroulé progressif (max-anim-v201.js le poursuit
     même si MAX redessine la carte pendant l'animation) ;
   · barre d'activité plus visible et lumineuse ; point qui pulse à côté du titre pendant le travail. */
@keyframes agmx-in{from{opacity:0;transform:translateY(6px)}}
@keyframes agmx-fade{from{opacity:.25}}
@keyframes agmx-pulse{0%{box-shadow:0 0 0 0 rgba(127,191,42,.6)}70%{box-shadow:0 0 0 7px rgba(127,191,42,0)}100%{box-shadow:0 0 0 0 rgba(127,191,42,0)}}
html:root body .lxc .lxc-max-foot .agmx-new{animation:agmx-in .45s cubic-bezier(.22,1,.36,1) both}
html:root body .lxc .lxc-max-foot .agmx-soft{animation:agmx-fade .5s ease both}

/* titre : point vivant pendant le travail */
html:root body .lxc .lxc-max-foot:has(>.lxc-max-track) .lxc-max-heading>strong{display:inline-flex;align-items:center;gap:8px}
html:root body .lxc .lxc-max-foot:has(>.lxc-max-track) .lxc-max-heading>strong::before{content:'';flex:none;width:7px;height:7px;border-radius:50%;background:#7fbf2a;animation:agmx-pulse 1.8s ease-out infinite}

/* barre d'activité : plus épaisse, arrondie, lueur qui balaie */
html:root body .lxc.is-max .lxc-max-foot .lxc-max-track:not(#agmx-x){height:5px;border-radius:999px;background:linear-gradient(90deg,#e6f0dc,#d7e9c7)}
html:root body .lxc.is-max .lxc-max-foot .lxc-max-track:not(#agmx-x) i{border-radius:999px;box-shadow:0 0 12px rgba(127,191,42,.6)}

/* « Voir les PDF à examiner » : flèche ronde qui pivote */
html:root body .lxc .lxc-max-foot details>summary{list-style:none;display:inline-flex;align-items:center;gap:9px;cursor:pointer;user-select:none;-webkit-user-select:none;border-radius:999px;padding:2px 10px 2px 2px;margin-left:-2px;transition:background-color .2s ease}
html:root body .lxc .lxc-max-foot details>summary::-webkit-details-marker{display:none}
html:root body .lxc .lxc-max-foot details>summary::marker{content:''}
html:root body .lxc .lxc-max-foot details>summary::before{content:'';flex:none;width:22px;height:22px;border-radius:50%;background:rgba(29,97,65,.09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 6.5 15 12l-5.5 5.5' fill='none' stroke='%231d6141' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;transition:transform .42s cubic-bezier(.22,1,.36,1),background-color .2s ease}
html:root body .lxc .lxc-max-foot details[open]:not(.agz-closing)>summary::before{transform:rotate(90deg)}
html:root body .lxc .lxc-max-foot details>summary:hover{background:rgba(29,97,65,.05)}
html:root body .lxc .lxc-max-foot details>summary:hover::before{background-color:rgba(29,97,65,.16)}
html:root body .lxc .lxc-max-foot details>summary:focus{outline:0}
html:root body .lxc .lxc-max-foot details>summary:focus-visible{box-shadow:0 0 0 3px rgba(162,222,74,.4)}

@media (prefers-reduced-motion:reduce){
  html:root body .lxc .lxc-max-foot :is(.agmx-new,.agmx-soft),html:root body .lxc .lxc-max-foot .lxc-max-heading>strong::before{animation:none!important}
  html:root body .lxc .lxc-max-foot details>summary::before{transition:none}
}
