<?php
$__cdaPath=parse_url($_SERVER['REQUEST_URI'] ?? '/',PHP_URL_PATH) ?: '/';
?>
<style>
.cda-admin-addon{margin:6px 10px 12px}
.cda-admin-addon a{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:10px;color:inherit;text-decoration:none}
.cda-admin-addon a:hover,.cda-admin-addon a.active{background:rgba(255,255,255,.08)}
</style>
<div class="cda-admin-addon">
    <a href="/public/administration/comptes"
       class="<?= str_contains($__cdaPath,'/administration/comptes') ? 'active' : '' ?>">
        <span>👤</span><span>Comptes utilisateurs</span>
    </a>
</div>
<script>
document.addEventListener('DOMContentLoaded',function(){
  document.querySelectorAll('a').forEach(function(a){
    const t=(a.textContent||'').trim();
    if(t==='Professeurs PRO'){
      a.innerHTML=a.innerHTML.replace('Professeurs PRO','Contrats & dossiers professeurs');
      a.setAttribute('title','Contrats, documents, disciplines et suivi RH des professeurs');
    }
  });
});
</script>
