{% extends 'base.html.twig' %}
{% block title %}{{ page.titre }}{% endblock %}
{% block style %}
<style>
@media (max-width: 768px) {
.bannier-blog { height:400px }
}
@media (max-width: 550px) {
.bannier-blog { height:300px }
}
@media (max-width: 400px) {
.bannier-blog { height:250px }
}
</style>
{% endblock %}
{% block banniere %}
<section class="bannier-blog">
<img src="{{ asset(banniere ~ page.banniere) }}" class="img" alt="">
</section>
{% endblock %}
{% block contenu %}
<section class="pt-75 pb-35 dynamiques-page">
<div class="container clearfix">
<div class="sect-title text-center wow fadeInDown" data-wow-delay="1s">
<h1>
{{ page.titre }}
</h1>
</div>
<div class="bloc-text blog-detail mb-50" style="max-width: 100%">
{{ page.contenu | raw }}
</div>
</div>
{% if page.section | length > 0 %}
<div class="container-fluid px-xl-5">
{% for section in page.section %}
{% if section.type == 1 %}
<div class="row align-items-center ">
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[0] }}{% else %}col-xl-5{% endif %} mb-50 wow slideInLeft">
<div class="bloc-text">
{{ section.contenu | raw }}
</div>
</div>
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[1] }}{% else %}col-xl-7{% endif %} mb-50 wow slideInRight">
<div class="img-box-slide owl-carousel">
{% for img in section.files %}
<div><img src="{{ asset(page_directory ~ img) }}" alt=""></div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% if section.type == 2 %}
<div class="row align-items-center ">
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[0] }}{% else %}col-xl-7{% endif %} mb-50 wow slideInLeft">
<div class="img-box-slide owl-carousel">
{% for img in section.files %}
<div><img src="{{ asset(page_directory ~ img) }}" alt=""></div>
{% endfor %}
</div>
</div>
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[1] }}{% else %}col-xl-5{% endif %} mb-50 wow slideInRight">
<div class="bloc-text">
{{ section.contenu | raw }}
</div>
</div>
</div>
{% endif %}
{% if section.type == 3 %}
<div class="row align-items-center ">
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[0] }}{% else %}col-xl-4{% endif %} mb-50 wow slideInLeft">
<div class="img-intern" style="max-width: 100%;">
{% for img in section.files %}
<div><img src="{{ asset(page_directory ~ img) }}" alt="" style="width: 100%"></div>
{% endfor %}
</div>
</div>
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[1] }}{% else %}col-xl-8{% endif %} mb-50 wow slideInRight">
<div class="bloc-text">
{{ section.contenu | raw }}
</div>
</div>
</div>
{% endif %}
{% if section.type == 4 %}
<div class="row align-items-center ">
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[0] }}{% else %}col-xl-8{% endif %} mb-50 wow slideInLeft">
<div class="bloc-text ml-auto">
{{ section.contenu | raw }}
</div>
</div>
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[1] }}{% else %}col-xl-4{% endif %} mb-50 wow slideInRight">
<div class="img-intern" style="max-width: 100%;">
{% for img in section.files %}
<div><img src="{{ asset(page_directory ~ img) }}" alt="" style="width: 100%"></div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% if section.type == 5 %}
<div class="row align-items-center ">
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[0] }}{% else %}col-xl-8{% endif %} mb-50 wow slideInLeft">
<div class="bloc-text iframe-hidden ml-auto">
{{ section.contenu |replace({'sandbox=""': ""}) | raw }}
</div>
</div>
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[1] }}{% else %}col-xl-4{% endif %} mb-50 wow slideInRight">
{% if not (section.files is empty) %}
<div class="img-video">
<video width="100%" height="100%" controls>
<source src="{{ asset(page_directory ~ section.files[0]) }}" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
{% endif %}
{% if not (section.getIframe() is empty) %}
<div class="img-video">
{{ section.getIframe() |replace({'sandbox=""': ""}) | raw }}
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if section.type == 6 %}
<div class="row align-items-center ">
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[0] }}{% else %}col-xl-4{% endif %} mb-50 wow slideInLeft">
{% if not(section.files is empty) %}
<div class="img-video">
<video width="100%" height="100%" controls>
<source src="{{ asset(page_directory ~ section.files[0]) }}" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
{% endif %}
{% if not(section.getIframe() is empty) %}
<div class="img-video mb-4">
{{ section.getIframe() |replace({'sandbox=""': ""}) | raw }}
</div>
{% endif %}
</div>
<div class="{% if (section.colonne is not null and section.colonne | length >1) %}{{ section.colonne[1] }}{% else %}col-xl-8{% endif %} mb-50 wow slideInRight">
<div class="bloc-text iframe-hidden mr-auto">
{{ section.contenu |replace({'sandbox=""': ""}) | raw }}
</div>
</div>
</div>
{% endif %}
{% if section.type == 7 %}
<div class="container wow fadeInUp">
<div class="bloc-text blog-detail mb-5" style="max-width: 100%;">
{% for img in section.files %}
<p><img src="{{ asset(page_directory ~ img) }}" alt=""></p>
{% endfor %}
{{ section.contenu | raw }}
</div>
</div>
{% endif %}
{% if section.type == 8 %}
<div class="container wow fadeInUp">
<div class="bloc-text blog-detail mb-5" style="max-width: 100%;">
<!--<div class="img-video mb-4">
<iframe width="420" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY?autoplay=0&mute=1">
</iframe>
</div>-->
{% if not(section.files is empty) %}
<div class="img-video text-center mb-4">
<video width="900" height="100%" controls>
<source src="{{ asset(page_directory ~ section.files[0]) }}" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
{% endif %}
{% if not(section.getIframe() is empty) %}
<div class="img-video text-center mb-4">
{{ section.getIframe() |replace({'sandbox=""': ""}) | raw }}
</div>
{% endif %}
<div class="iframe-hidden">
{{ section.contenu |replace({'sandbox=""': ""}) | raw }}
</div>
</div>
</div>
{% endif %}
{% if section.type == 9 %}
<div class="container wow fadeInUp">
<div class="img-box-slide owl-carousel mb-4">
{% for img in section.files %}
<div><img src="{{ asset(page_directory ~ img) }}" alt=""></div>
{% endfor %}
</div>
<div class="bloc-text blog-detail mb-5" style="max-width: 100%;">
{{ section.contenu | raw }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
</section>
{% endblock %}
{% block formule %}
{% include 'front/formule.html.twig' %}
{% endblock %}