{% set position_texte = ({ 0: "text-center", 1: "text-start", 2: "text-end" }[widget.positiontext]|default("text-center")) %}
<div id="parallax-{{widget.id}}" class="bloc-parallax d-flex align-items-center justify-content-center {{position_texte}}" {% if widget.bgimage is defined and widget.bgimage != null %} style="background-image: url({{asset_image(widget.bgimage)}}) " {% elseif widget.bgcolor != null %}style="background-color:{{widget.bgcolor}}"{% endif %}>
{# {% if not is_mobile() and not is_tablet() %} #}
{# <img src="{{asset_image(widget.bgimage,'large')}}" data-speed="-1" class="img-parallax" alt="{{widget.subTitle}}">
{# {% endif %} #}
<div class="contenu-bloc">
<div class="container wrapper">
<div class="item-contenu-post d-flex flex-column flex-lg-row align-items-center justify-content-between">
<div class="content-text text-start">
{% if parametre.actiftitre == true %}
<div class="site-title">{{parametre.titre}}</div>
{% endif %}
{% if widget.Title != "" %}
<h2 class="title-2">{{widget.Title|raw}}</h2>
{% endif %}
{% if widget.subTitle != "" %}
<div class="title-2">{{widget.subTitle|raw}}</div>
{% endif %}
{% if widget.description is not empty %}
<div class="text-bloc">
{{widget.description|raw}}
</div>
{% endif %}
</div>
{% if widget.typelien is not empty and widget.typelien != 1 and widget.buttonlabel is not empty %}
<div class="cta-home d-flex justify-content-lg-end justify-content-center mt-3 mt-lg-0">
{% if widget.typelien == 2 %}
<button class="btn-theme" onclick="window.location.href = '{{resolveInternalSlugLink(widget.lieninterne)}}';">
{{widget.buttonlabel}}
</button>
{% elseif widget.typelien == 3 %}
<button class="btn-theme" onclick="window.open('{{widget.lienexterne}}','_blank');">
{{widget.buttonlabel}}
</button>
{% elseif widget.typelien == 4 %}
<a class="btn-theme" href="tel:{{widget.telephone}}">
{{widget.buttonlabel}}
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>