<section class="page-heading"><div><span class="section-kicker">Base des personnes</span><h2>Adhérents</h2><p><?=count($persons)?> adhérent(s).</p></div><a class="primary-button button-link" href="/public/adherents/nouveau">+ Nouvel adhérent</a></section><section class="panel"><form class="person-search-bar" method="get" action="/public/adherents"><div class="table-search"><span>⌕</span><input type="search" name="q" value="<?=htmlspecialchars($query)?>" placeholder="Nom, prénom, e-mail, téléphone ou code…"></div><button class="secondary-button">Rechercher</button></form><div class="person-list"><?php foreach($persons as $p):?><a class="person-card" href="/public/adherents/voir?id=<?=(int)$p['id']?>"><div class="person-avatar"><?=htmlspecialchars(mb_substr($p['prenom'],0,1).mb_substr($p['nom'],0,1))?></div><div><strong><?=htmlspecialchars($p['nom'].' '.$p['prenom'])?></strong><div class="person-details"><span><?=htmlspecialchars($p['code_personne'])?></span><span><?=(int)$p['age']?> ans</span><span><?=(int)$p['nb_responsables']?> responsable(s)</span></div></div><span class="person-arrow">›</span></a><?php endforeach;?></div></section>