<?php
$data = $args['data'] ?? array();
?>
<section class="section-cover h-screen overflow-hidden w-full relative  md:max-h-[600px] lg:max-h-none  ">
	<?php if (isset($data['image']) && $data['image'] > 0) : ?>
		<?php echo wp_get_attachment_image($data['image'], 'full', false, array('loading' => 'lazy', 'class' => ' scroll-appear absolute top-0 left-0 w-full h-full object-cover object-center')); ?>
	<?php endif; ?>
	<?php if (isset($data['titre']) && !empty($data['titre'])) : ?>
		<div class=" bloc tl-shadow tl-shadow-red bg-beige absolute right-0 bottom-36 px-8 md:pl-20 py-6 lg:py-14 basis-1/2 w-10/12 md:w-6/12 ">
			<h1 class="font-serif mb-1 leading-tight md:max-w-[300px] lg:max-w-none xl:max-w-[430px] 2xl:max-w-[450px] lg:text-2xl ">
				<?php echo $data['titre']; ?>
			</h1>
		</div>
	<?php endif; ?>
</section>