<?php
$datas = $args['data'];
$titre = isset($datas['titre']) ? $datas['titre'] : '';
$texte = isset($datas['texte']) ? $datas['texte'] : '';
$image = isset($datas['image']) ? $datas['image'] : '';
$couleur_bandeau = isset($datas['couleur_bandeau']) ? $datas['couleur_bandeau'] : '#000000';


?>
<div class="pt-10 pb-5 md:py-20">
  <div class="container ">
    <h3 class="new-section-title text-left md:text-center"><?php echo $titre; ?></h3>
  </div>
  <div class="flex flex-col gap-5">
    <div class="relative">
      <div class="bg absolute top-[15%] h-[70%]  w-full" style="background-color: <?php echo $couleur_bandeau ?>;">
      </div>
      <div class=" container mb-10 md:mb-24 ">
        <img class=" w-full scroll-appear scroll-appear-image" <?php acf_responsive_image($image['id'], 'full', '100%') ?> />
      </div>
    </div>
    <div class="container">
      <div class=" max-w-5xl mx-auto wysiwyg">
        <?php echo $texte; ?>
      </div>
    </div>
  </div>
</div>