<?php
$blocs = $args['blocs'] ?? array();
$reverse = $args['reverse'] ?? false;
?>
<?php if (is_array($blocs) && sizeof($blocs) > 0) : ?>
	<div class="container">
		<div class="pages-list <?php echo $reverse ? 'reverse' : ''; ?> flex flex-col  gap-20  lg:gap-[170px]">

			<?php foreach ($blocs as $bloc) : ?>
				<?php get_template_part('template-parts/components/cards/card', 'page', array('data' => $bloc)); ?>
			<?php endforeach; ?>
		</div>
	</div>
<?php endif; ?>
