</main>

<?php do_action('tailpress_content_end'); ?>


<?php do_action('tailpress_content_after'); ?>

<footer id="main_footer" class="site-footer bg-gray-50 py-12" role="contentinfo">

	<div class="site-footer__informative-message">
		<?php $footer_superior_info_message = get_field('footer_superior_info_message', 'menu_' . 53); ?>

		<img src='<?php echo get_template_directory_uri() ?>/resources/img/pictogrammes/icone-info.svg' alt=''>
		<p class=""><?php echo $footer_superior_info_message['message'] ?></p>
	</div>

	<div class="site-footer__infos-contact">
		<?php $infos_contact = 	get_field('footer_infos_contact_datagroup', 'menu_' . 53); ?>
		<div class="point-info">
			<h4 class="content-intertitle"><?php echo $infos_contact['point_info']['title'] ?></h4>
			<p><?php echo $infos_contact['point_info']['text'] ?></p>
		</div>
		<div class="permanenc-telephonique">
			<?php $footer_superior_info_message = get_field('footer_superior_info_message', 'menu_' . 53);	?>

			<h4 class="content-intertitle"><?php echo $infos_contact['permanence_telephonique']['title'] ?></h4>
			<p><?php echo $infos_contact['permanence_telephonique']['text'] ?></p>
		</div>
		<div class="en-ligne">
			<h4 class="content-intertitle"><?php echo $infos_contact['en_ligne']['title'] ?></h4>
			<p><?php echo $infos_contact['en_ligne']['text'] ?></p>
			<a class="external-link" href="<?php echo $infos_contact['en_ligne']['form_url'] ?>" target="blank"><?php echo $infos_contact['en_ligne']['form_btn_text'] ?></a>

		</div>
	</div>


	<div class="site-footer__navigation-menu">

		<div class="menu-renovateur--footer menu-renovateur">


			<?php
			get_template_part('template-components/header/menu-renovateur-footer');
			// wp_nav_menu(
			// 	array(
			// 		'container'    => 'false',
			// 		'theme_location'  => 'renovateur',
			// 		'li_class'        => 'menu-navlink',
			// 		'fallback_cb'     => false,
			// 		'menu_class' => 'menu-renovateur__navlist',
			// 	)
			// );
			?>
		</div>
		<?php



		wp_nav_menu(
			array(
				'container'    => 'false',
				'theme_location'  => 'homegrade',
				'li_class'        => 'menu-navlink',
				'fallback_cb'     => false,
				'menu_class' => 'menu-homegrade--footer',

			)
		);
		?>
		<div class="extra_details">
			<?php
			$social_networks = get_field('social_networks_profiles', "option");

			?>
			<a class="cta cta--button cta--outline" href="">Plan du site</a>
			<div class="social-networks">
				<a class="cta cta--circular cta--secondary" title="<?php echo __('Facebook', "homegrade-theme__texte-fonctionnel") ?>" href="<?php echo $social_networks['facebook_profile_url'] ?>">
					<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icone-social-facebook.svg' ?>" alt="">
				</a>
				<a class="cta cta--circular cta--secondary" title="<?php echo __('Youtube', "homegrade-theme__texte-fonctionnel") ?>" href="<?php echo $social_networks['youtube_profile_url'] ?>">
					<img src=" <?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icone-social-youtube.svg' ?>" alt="">
				</a>

			</div>

		</div>


	</div>

	<ul class="site-footer__partenaires">
		<?php $partenaires = 	get_field('footer_partenaires', 'menu_' . 53)['partenaires']; ?>
		<?php foreach ($partenaires as $partenaire) : ?>
			<li>
				<a href=" <?php echo $partenaire['url'] ?>" target="_blank">
					<img src='<?php echo $partenaire['logo']['url'] ?>' alt='<?php echo $partenaire['name'] ?>'>
				</a>
			</li>
		<?php endforeach; ?>
	</ul>

	<div class="site-footer__metiers-patrimoine">
		<?php $metiers_patrimoine = 	get_field('footer_metiers_du_patirmoine', 'menu_' . 53); ?>

		<h4 class="content-intertitle"><?php echo $metiers_patrimoine['title'] ?> </h4>
		<p><?php echo $metiers_patrimoine['text'] ?> </p>
		<a class="cta cta cta--primary cta--button" href="<?php echo $metiers_patrimoine['cta_url'] ?> " target="_blank"><?php echo $metiers_patrimoine['cta_text'] ?></a>
	</div>




	<?php do_action('tailpress_footer'); ?>

	<div class=" container mx-auto text-center text-gray-500">
		&copy; <?php echo date_i18n('Y'); ?> - <?php echo get_bloginfo('name'); ?>
	</div>
</footer>

</div>

<?php wp_footer(); ?>



</body>

</html>