<?php
$data = $args['data'] ?? array();
if (isset($data['membres']) && is_array($data['membres']) && sizeof($data['membres']) > 0) :
?>
	<div id="team-collapse" class="js-collapse collapsed  px-4 xl:px-0  max-w-[1050px] mx-auto">
		<button class="md:hidden btn-collapse js-toggle-element-class " data-dom="#team-collapse" data-class="collapsed">
			<span><?php echo lnj_load_inline_svg('circle-left.svg'); ?></span>
			<span>
				Découvrir toute l'équipe
			</span>
			<div class="icon">
				<?php echo lnj_load_inline_svg('arrow-down.svg'); ?>
			</div>
		</button>
		<div class="collapse-body md:max-h-none">
			<div class="team-list  md:grid md:grid-cols-3  gap-y-10  lg:gap-y-10 pb-8 md:py-20">
				<?php foreach ($data['membres'] as $membre) : ?>
					<?php get_template_part('template-parts/components/cards/card', 'team', array('data' => $membre)); ?>
				<?php endforeach; ?>
			</div>
		</div>
	</div>
<?php endif; ?>