<section class="person-profile-header"><div><span class="section-kicker"><?=htmlspecialchars($person['code_personne'])?></span><h2><?=htmlspecialchars($person['nom'].' '.$person['prenom'])?></h2><p>Né(e) le <?=date('d/m/Y',strtotime($person['date_naissance']))?> · <?=(int)$person['age']?> ans</p></div><a class="secondary-button button-link" href="/public/adherents">Retour</a></section><?php if(!empty($_SESSION['success'])):?><div class="alert alert-success"><?=htmlspecialchars($_SESSION['success'])?></div><?php unset($_SESSION['success']);endif;?><section class="person-summary-grid"><article class="summary-card"><span>Statut</span><strong><?=(int)$person['age']>=18?'Adhérent majeur':'Adhérent mineur'?></strong></article><article class="summary-card"><span>Téléphone</span><strong><?=htmlspecialchars($person['telephone_principal']?:'Non renseigné')?></strong></article><article class="summary-card"><span>E-mail</span><strong><?=htmlspecialchars($person['email']?:'Non renseigné')?></strong></article><article class="summary-card"><span>Responsables</span><strong><?=count($guardians)?></strong></article></section><section class="panel"><h3>Parents et responsables</h3><?php if(!$guardians):?><p>Aucun responsable rattaché.</p><?php else:?><?php foreach($guardians as $g):?><div class="guardian-card"><strong><?=htmlspecialchars($g['prenom'].' '.$g['nom'])?></strong><span><?=htmlspecialchars($g['type_lien'])?></span><p><?=htmlspecialchars($g['telephone_principal']?:'Téléphone non renseigné')?> · <?=htmlspecialchars($g['email']?:'E-mail non renseigné')?></p></div><?php endforeach;?><?php endif;?></section>