{% extends '/front/layout.html.twig' %}
{% trans_default_domain 'app' %}
{% block contenu %}
<!-- *********************** Carrousel *********************** -->
<section id="carousel-home" class="carousel slide slider-mobile hidden-xs hidden-sm" data-ride="carousel">
<!-- Wrapper for slides -->
{% if slider|length > 1%}
<!-- Indicators -->
<ol class="carousel-indicators hidden-xs">
{% for i in range(1, slider|length) %}
<li data-target="#carousel-home" data-slide-to="{{ i-1 }}"{% if loop.index == 1%} class="active"{% endif %}></li>
{% endfor %}
</ol>
{% endif %}
<div class="carousel-inner" role="listbox">
{% if slider is not null %}
{% for slide in slider %}
{% if slide.etat %}
<div class="item{% if loop.index == 1%} active{% endif %}">
<a href="{% if slide.url is not null %}{{ slide.url }}{% else %}#{% endif %}">
<h1><img
src="{{ asset(slide.media.webPath) }}"
srcset="{{ asset(slide.media.webPath | imagine_filter('full_width_320') ) }} 320w,
{{ asset(slide.media.webPath | imagine_filter('full_width_640') ) }} 640w,
{{ asset(slide.media.webPath | imagine_filter('full_width_640') ) }} 768w,
{{ asset(slide.media.webPath | imagine_filter('full_width_1024') ) }} 1024w,
{{ asset(slide.media.webPath | imagine_filter('full_width_1280') ) }} 1280w,
{{ asset(slide.media.webPath | imagine_filter('full_width_1366') ) }} 1366w,
{{ asset(slide.media.webPath | imagine_filter('full_width_1900') ) }} 1900w"
data-sizes="100vw"
alt="{{ slide.titre }}"
loading="lazy" /></h1>
</a>
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% if slider|length > 1%}
<a class="left carousel-control" href="#carousel-home" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-home" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
{% endif %}
</section>
<section class="mb-5">
<div class="container container-home padding-off margin-bottom-20">
<h2 class="text-center mt-5 pb-0 mb-0">{{ 'home.mea.titre' |trans({}, 'cms') |raw }}</h2>
<div class="col-md-12 padding-off mea-index-margin">
<!-- Partie blog -->
<div class="col-md-6 col-sm-12 col-xs-12 mea-index">
{% if MiseEnAvantMajeur is not empty %}
{% if MiseEnAvantMajeur.media.webPath is defined %}
{% set imgpath = MiseEnAvantMajeur.media.webPath %}
<div class="col-md-12 padding-off">
<img src="{{ asset( imgpath) }}" class="img-responsive" loading="lazy" alt="{{ MiseEnAvantMajeur.titre }}"/>
</div>
{% endif %}
<div class="block col-md-12 col-sm-12 col-xs-12{% if MiseEnAvantMajeur.colorFond is null %} rose{% endif %}"{% if MiseEnAvantMajeur.colorFond is not null %} style="background-color: {{ MiseEnAvantMajeur.colorFond }}"{% endif %}>
<a href="{{ MiseEnAvantMajeur.url }}">
<h3{% if MiseEnAvantMajeur.colorTexte is not null %} style="color: {{ MiseEnAvantMajeur.colorTexte }}"{% endif %}>{{ MiseEnAvantMajeur.titre |raw }}</h3>
<div{% if MiseEnAvantMajeur.colorTexte is not null %} style="color: {{ MiseEnAvantMajeur.colorTexte }}"{% endif %}>{{ MiseEnAvantMajeur.texte |raw }}</div>
</a>
</div>
{% endif %}
</div>
<div class="col-md-6 col-sm-12 col-xs-12 padding-off mea-index ">
{% for MiseEnAvantMineur in MisesEnAvantMineur %}
<div class="col-md-6 col-sm-6 margin-blog">
{% if MiseEnAvantMineur.media.webPath is defined %}
{% set imgpath = MiseEnAvantMineur.media.webPath %}
{% endif %}
<a href="{{ MiseEnAvantMineur.url }}"{% if MiseEnAvantMineur.target == 1%} target="_blank"{% endif %} title="{{ MiseEnAvantMineur.titre }}"><h3>{% if imgpath is defined %}<img class="img-responsive" loading="lazy" src="{{ asset(imgpath) }}" alt="{{ MiseEnAvantMineur.titre }}" />{% endif %}</h3></a>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% if promos|length > 0 %}
<section>
<div class="container container-home padding-off margin-bottom-20">
<div class="col-md-12 col-sm-12 col-xs-12 text-center">
<h2>{{ ('promos.bon-plans-du-moment.title')|trans({}, 'promos') | raw }}</h2>
<p class="sous-titre-page-hp">
{{ ('promos.bon-plans-du-moment.description')|trans({}, 'promos') | raw }}
</p>
</div>
{% include "/front/Promos/liste.html.twig" %}
</div>
</section>
{% endif %}
<section class="reassurance">
<div class="container container-home text-center">
<div class="col-md-12">
<div class="row mt-5">
<div class="col-md-2"></div>
<div class="col-md-8">
<h2>{{ 'home.reassurance.titre' |trans({}, 'cms') |raw }}</h2>
{{ 'home.reassurance.texte' |trans({}, 'cms') |raw }}
</div>
<div class="col-md-2"></div>
</div>
<div class="row mt-5">
<div class="col-md-3 text-center mb-5">
<i class="ico ico_trusted_shop"></i>
<p>
<strong>{{ 'home.reassurance.item_1.titre' |trans({}, 'cms') |raw }}</strong>
<br><a href="https://www.trstd.com/fr-fr/reviews/ateya-vacances-fr" target="_blank" class="external-link">{{ 'home.reassurance.item_1.texte' |trans({}, 'cms') |raw }}</a>
</p>
</div>
<div class="col-md-3 text-center">
<i class="ico ico_conseiller"></i>
<p>
<strong>{{ 'home.reassurance.item_2.titre' |trans({}, 'cms') |raw }}</strong>
<br>{{ 'home.reassurance.item_2.texte' |trans({}, 'cms') |raw }}
</p>
</div>
<div class="col-md-3 text-center">
<i class="ico ico_faq"></i>
<p>
<strong>{{ 'home.reassurance.item_3.titre' |trans({}, 'cms') |raw }}</strong>
<br><a href="https://smilebyateya.fr/faq-2/" target="_blank" class="external-link">{{ 'home.reassurance.item_3.texte' |trans({}, 'cms') |raw }}</a>
</p>
</div>
<div class="col-md-3 text-center">
<i class="ico ico_paiement"></i>
<p>
<strong>{{ 'home.reassurance.item_4.titre' |trans({}, 'cms') |raw }}</strong>
<br>{{ 'home.reassurance.item_4.texte' |trans({}, 'cms') |raw }}
</p>
</div>
</div>
</div>
</div>
</section>
{% endblock %}