{% extends 'base.html.twig' %}
{% block title %}{{ page.titre }}{% endblock %}
{% block style %}
<style>
.dynamiques-page .owl-carousel img { border-radius: 10px }
.dynamiques-page .owl-dots { display: flex; justify-content: center; position: relative; top: 20px; gap: 10px }
.dynamiques-page .owl-dot { width: 15px; height: 15px; border-radius: 50%; border:solid 1px #00b1ee; display:block; }
.dynamiques-page .owl-dot.active { background:#00b1ee }
@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="ban-section">
<div class="ban">
<img src="{{ asset(banniere ~ page.banniere) }}" alt="">
<div class="container">
<div class="sect-title text-center mb-0">
<div class="h1 text-white">
{{ page.getTextBanniere | raw }}
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% block contenu %}
<section class=" pb-50 pt-45 dynamiques-page">
<div class=" container clearfix ">
<div class="sect-title text-center no-deco">
<h1>
{{ page.titre }}
</h1>
</div>
<div class="bloc-text surf-text mb-55">
{{ page.contenu | raw }}
</div>
</div>
{% if page.section | length > 0 %}
<div class="container clearfix">
{% 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 pb-xl-5">
<div class="{% if (section.colonne is not null and section.colonne[0] is not empty) %}{{ section.colonne[0] }}{% else %}col-xl-6 col-12{% endif %} mb-50 order-xl-1 order-2" data-aos="fade-right" data-aos-delay="50" data-aos-duration="800" data-aos-easing="ease-in-out" data-aos-once="true">
<div class="img-cours">
{% for img in section.files %}
<img src="{{ asset(page_directory ~ img) }}" alt="">
{% endfor %}
</div>
</div>
<div class="{% if (section.colonne is not null and section.colonne[1] is not empty) %}{{ section.colonne[1] }}{% else %}col-xl-6 col-12{% endif %} mb-50 order-xl-2 order-1" data-aos="fade-left" data-aos-delay="50" data-aos-duration="800" data-aos-easing="ease-in-out" data-aos-once="true">
<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="text-center" data-aos="fade-up" data-aos-delay="50" data-aos-duration="800" data-aos-easing="ease-in-out" data-aos-once="true">
{% for img in section.files %}
<p><img src="{{ asset(page_directory ~ img) }}" alt="" style="border-radius: 10px 10px 0 0;"></p>
{% endfor %}
</div>
<div class="bloc-text mb-5" style="max-width: 100%;">
{{ section.contenu | raw }}
</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 a_voir %}
{% include 'front/formule.html.twig' %}
{% endblock %}