<?php get_header(); ?>

<div class="search-results-page container mx-auto my-8">

	<section class="block-content-page-header">
		<div class="block-content-page-header__content">
			<div class="section_titling section_titling--left">
				<h1 class="section_titling__title"><?php echo __("Résultat de recherche  ", "homegrade-theme__texte-fonctionnel") ?></h1>
				<h2 class="section_titling__subtitle">
					<?php echo __("Résultats de la recherche pour : ", "homegrade-theme__texte-fonctionnel")  ?>
					<span class="search-results-page__current-term">« <?php echo get_search_query(); ?> »</span>
				</h2>
			</div>
		</div>

		<img decoding="async" class="block-content-page-header__page-icon" src="<?php echo get_template_directory_uri() . "/resources/img/illustrations/homegrade_rechercher.svg" ?>" alt="">

	</section>


	<div class="search-results-page__results-container">
		<?php if (have_posts()) : ?>
			<?php
			while (have_posts()) :
				the_post();
			?>
				<?php get_template_part('template-components/content', get_post_format()); ?>
			<?php endwhile; ?>
		<?php endif; ?>
	</div>
</div>

<?php
get_footer();
