{% set type = bloc.bloc_type_texte_image|default(0) %}
{% set adLiip = "" %}
{% if type == 0 %}
{% set adLiip = "_0" %}
{% endif %}
{% if medias[0].media_fichier is defined %}
{% set mediaTmp = medias[0].media_fichier %}
{% else %}
{% set mediaTmp = "" %}
{% endif %}
{% set mediaDefault = "default.jpg" %}
{% set mediaTmp = webp(webpSupported, mediaTmp) %}
{% set mediaDefault = webp(webpSupported, mediaDefault) %}
{% if type != 2 %}
<section data-bs-version="5.1"
class="image3 agencym4_image3 cid-sYtkRmM6mF {{ bloc.bloc_margin_top }} {{ bloc.bloc_margin_bottom }} type{{ type }}"
id="image3-33">
<div class="nuagesFondImage">
<div class="degraderBlancImageTop"></div>
<div class="degraderBlancImageBot"></div>
</div>
<figure class="mbr-figure container">
<a href="{{ asset('/medias_front/pages/' ~ mediaTmp) | imagine_filter('front_fancy') }}"
data-fancybox>
<div class="image-block {% if type == 0 %}w-75{% elseif type == 1 %}w-100{% endif %}" {% if type == 0 %} style="background-image: url('{{ asset('/medias_front/pages/' ~ mediaTmp) | imagine_filter('front_blocImage'~adLiip) }}')" {% endif %}>
{% if type != 0 %}
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
width="1400"
alt=""
loading="lazy" class="lazyload"
data-src="{{ asset('/medias_front/pages/' ~ mediaTmp) | imagine_filter('front_blocImage'~adLiip) }}">
{% endif %}
</div>
</a>
<figcaption
class="mbr-figure-caption mbr-figure-caption-over{% if (bloc.bloc_titre is null and bloc.bloc_sstitre is null) or (bloc.bloc_titre is empty and bloc.bloc_sstitre is empty) %} d-none{% endif %}">
<div class="titleBloc container mbr-white align-center mbr-fonts-style pt-3 display-1 ">
{% if bloc.bloc_titre %}
<h3 class="mbr-section-title mbr-fonts-style display-2">
<strong>{{ bloc.bloc_titre }}</strong>
</h3>
{% endif %}
{% if bloc.bloc_sstitre %}
<h4 class="flechebash4 mbr-section-subtitle mbr-fonts-style display-5">
{{ bloc.bloc_sstitre }}
</h4>
{% endif %}
</div>
</figcaption>
</figure>
</section>
{% endif %}
{% if type == 2 %}
<section data-bs-version="5.1" class="image1 woodm4_image1 cid-sYtkwjjoQl mbr-parallax-background" id="image01-31"
style="background-image: url('{{ asset('/medias_front/pages/' ~ mediaTmp) | imagine_filter('front_blocImage'~adLiip) }}')">
<div class="container">
</div>
</section>
{% endif %}