{% set displayOption = view.image.displayOption|default('top') %}
{% set title = content.title|default %}
{# we write the image into a variable to and then place it at the correct position depending on displayOption #}
{% set image %}
{% set defaultFormat = '1380x' %}
{% set mobileFormat = '991x' %}
{% if displayOption in ['left', 'right'] %}
{% set defaultFormat = '400x' %}
{% set mobileFormat = '400x' %}
{% endif %}
<div class="block-image block-image__{{ displayOption }}">
{# @see https://github.com/sulu/web-twig/blob/v2.4.0/docs/image.md #}
{# {{ get_image(content.image|default, defaultFormat, {
'(max-width: 991px)': mobileFormat,
}) }}#}
</div>
{% endset %}
<div class="bloc-2zones block-{{content.type}} {{ content.class }}">
{% if content.titleG !="" and content.titleD =="" %}
<div class=" d-block d-md-none text-center px-3 show-br-mobile"><h2 class="title-big color-black-s line-h-100">{{ content.titleG }}</h2></div>
<div class="row no-gutters">
<div class="col-md-6 col-12 order-md-2 wow fadeInRight" data-wow-duration="0.8s" data-wow-delay="0.2s">
<div class="h-100 {{ content.classD }}">
<div class=" object-fit-img w-100 h-100 position-relative text-right">
{% if content.imageD %}
<img src="{{content.imageD.url}}" alt="" class=""/>
{% endif %}
</div>
</div>
</div>
<div class="col-md-6 col-12 pr-md-4 order-md-1 ">
<div class="max-container-txt px-md-4 mr-md-0 mx-auto position-relative bg-form-grey pb-lg-5 pt-md-0 pt-3 px-3 {{ content.classG }}">
{% if content.titleG %}
<h2 class="title-big color-black-s d-none d-md-block">{{ content.titleG }}</h2>
{% endif %}
{% if content.descriptionG %}
<div class="pt-md-4 text-grey font-16">
{{ content.descriptionG|raw }}
</div>
{% endif %}
</div>
</div>
</div>
{% elseif content.titleG =="" and content.titleD =="" and content.descriptionG !="" and content.descriptionD !="" %}{# bloc 2 textes#}
<div class="max-container-2 px-lg-0 px-2 wow fadeInDown" data-wow-duration="0.8s" data-wow-delay="0.2s">
<div class="row mx-n2 mx-lg-n5 pt-md-4 pt-2">
<div class="col-md-6 col-12 px-lg-5px-2 mb-lg-0 mb-3">
<div class=" text-grey font-16 {{ content.classG }}">
{% if content.descriptionG %}
{{ content.descriptionG|raw }}
{% endif %}
</div>
</div>
<div class="col-md-6 col-12 px-lg-5 px-2 ">
<div class=" text-grey font-16 {{ content.classD }}">
{% if content.descriptionD %}
{{ content.descriptionD|raw }}
{% endif %}
</div>
</div>
</div>
</div>
{% elseif content.titleD !="" and content.titleG =="" %}
<div class=" d-block d-md-none text-center px-3 show-br-mobile pb-2"><h2 class="title-big color-black-s line-h-100">{{ content.titleD }}</h2></div>
<div class="row no-gutters">
<div class="col-md-6 col-12 pr-md-5 wow fadeInLeft" data-wow-duration="0.8s" data-wow-delay="0.2s">
<div class="h-100 {{ content.classG }}">
<div class=" object-fit-img w-not-100 h-100 position-relative text-right">
{% if content.imageG %}
<img src="{{content.imageG.url}}" alt="" class=""/>
{% endif %}
</div>
</div>
</div>
<div class="col-md-6 col-12">
<div class="max-container-txt pl-md-0 ml-md-0 mx-auto position-relative bg-form-grey pb-lg-5 h-100 d-flex flex-column justify-content-center pt-md-0 pt-3 px-3 {{ content.classD }}">
{% if content.titleD %}
<h2 class="title-big color-black-s d-none d-md-block">{{ content.titleD }}</h2>
{% endif %}
{% if content.descriptionD %}
<div class="pt-md-4 text-grey font-16">
{{ content.descriptionD|raw }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>