<?php
$subtitle = get_field('subtitle');
$renolution_datas = get_field('renolution_datas');
?>


<section id="block-aides-financieres" class="card-large-content-container">
	<div class="section_titling">
		<h2 class="section_titling__title"><?php echo __("Aides financières", 'homegrade-theme__texte-fonctionnel') ?></h2>
		<p class="section_titling__subtitle"><?php echo $subtitle ?></p>
	</div>
	<div class="card-large-content">
		<div class="card-large-content__renolution-details">
			<div class="renolution__logo">
				<img src='<?php echo get_template_directory_uri() ?>/resources/img/logos/logo-renolution-monochrome.svg' alt=''>
			</div>

			<h3 class="renolution__title"><?php echo $renolution_datas['title'] ?></h3>
			<p><?php echo $renolution_datas['description'] ?></p>
			<a class="cta cta--primary cta--button" href="<?php echo $renolution_datas['button']['url'] ?>" target="<?php echo $renolution_datas['button']['target'] ?>"><?php echo $renolution_datas['button']['title'] ?></a>
			<div class="renolution__guide-external-links">
				<div class="introduire-demande">
					<img src='<?php echo get_template_directory_uri() ?>/resources/img/pictogrammes/pictogramme-demande.svg' alt=''>
					<h4 class="question_title"><?php echo $renolution_datas['demande_title'] ?></h4>
					<p class="question_explanation"><?php echo $renolution_datas['demande_description'] ?></p>
					<a class="question_url" href="<?php echo $renolution_datas['demande_lien']['url'] ?>" target="<?php echo $renolution_datas['demande_lien']['target'] ?>">
						<?php echo $renolution_datas['demande_lien']['title'] ?>
						<img class="icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/icone-external-link.svg' alt="<?php echo __("(s'ouvre dans une nouvelle fenêtre)", "homegrade-theme__texte-fonctionnel") ?>">
					</a>

				</div>
				<div class=" estimation-prime">
					<img src='<?php echo get_template_directory_uri() ?>/resources/img/pictogrammes/pictogramme-formulaire.svg' alt=''>
					<h4 class="question_title"><?php echo $renolution_datas['prime_title'] ?></h4>
					<p class="question_explanation"><?php echo $renolution_datas['prime_description'] ?></p>
					<a class="question_url" href="<?php echo $renolution_datas['prime_lien']['url'] ?>" target="<?php echo $renolution_datas['prime_lien']['target'] ?>">
						<?php echo $renolution_datas['prime_lien']['title'] ?>
						<img class="icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/icone-external-link.svg' alt="<?php echo __("(s'ouvre dans une nouvelle fenêtre)", "homegrade-theme__texte-fonctionnel") ?>">

					</a>
				</div>
			</div>
		</div>

		<img class="card-large-content__renolution-illustration-picture" src='<?php echo get_template_directory_uri() ?>/resources/img/illustrations/illustration-aides-financieres-homepage.svg' alt=''>

	</div>

</section>