{% extends "base.html.twig" %}
{# extension.excerpt #}
{% block style %}
{{ parent() }}
{% include "css/article-critical-css.html.twig" %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'articles_css'} %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'sns_icons_css'} %}
{% if content.adresse is defined and content.adresse is not empty %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'map_css'} %}
{% endif %}
{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
{% for data in content.main_content %}
{% set block = data %}
{% if data.type == "triple_frame" or
data.type == "text_pic" or
data.type == "solution_frame" or
data.type == "block_wrap" or
data.type == "block_blue_back" %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'frame_css'} %}
{% endif %}
{% if data.type == "youtube" %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'youtube_css'} %}
{% endif %}
{% if data.type == "linked_with" or data.type == "see_more" %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'splide_css'} %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'previews_css'} %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'preview_thematique_css'} %}
{% endif %}
{% if data.type == "citation" %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'citation_css'} %}
{% endif %}
{% if data.type == "text" %}
{% include "pages/headers/encore-entry-css-files.html.twig" with {file: 'freetext_css'} %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block content %}
{% set values = "" %}
{% set values = ['Acteurs & territoires', 'Expériences'] %}
{% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
<div class="main-container w100 plr-1em single-article-container">
<article>
<div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} br8 dflex aic jcc">
{% if content.header_img is defined and content.header_img is not empty %}
<img loading="lazy" src="{{ content.header_img.formats['1000x.webp'] }}" srcset="{{ content.header_img.formats['300x.webp'] }} 300w, {{ content.header_img.formats['600x.webp'] }} 600w, {{ content.header_img.formats['1000x.webp'] }} 1000w" sizes="1000px" alt="{{ content.header_img | copyright_or_description_or_title }}" width="{{ content.header_img.fileVersion.properties.width }}" height="{{ content.header_img.fileVersion.properties.height }}">
{% endif %}
<div class="zi1 prelative team-project-head dflex jcc aic fdc">
<div class="center">
<h1 class="{% if content.header_img is defined and content.header_img is not empty %}cwhite{% else %}cblue{% endif %}">{{ content.title }}</h1>
</div>
</div>
{% if content.header_img is defined and content.header_img is not empty %}
<div class="background-color-blue"></div>
{% endif %}
</div>
{% if content.header_img is defined and content.header_img is not empty %}
{% if content.header_img.credits and content.header_img.credits is not empty %}
<div class="cgrey fs12 lh16 credit mt-8px">© CrĂ©dit Photo
{{ content.header_img.credits }}</div>
{% endif %}
{% endif %}
{% include "articles/blocks/article-under-header.html.twig" %}
{% if content.departement is defined and content.departement is not empty %}
<div class="dflex fwwrap">
<div class="departement-tag cwhite fw600 departement-exp mb-2em mt-40px">{{ content.departement }}</div>
</div>
{% endif %}
{% if content.desc is defined and content.desc is not empty %}
<div class="actualites-PQNA mb-16px fs20 lh28 f500 cgrey">
{{ content.desc|raw }}
</div>
{% endif %}
<div class="mb-2em dflex w100">
{% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
<div class="small-thematique-container">
{% set categories = extension.excerpt.categories %}
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
</div>
{% endif %}
</div>
<div class="structure-class">
{% if content.societe_porteuse.name is defined and content.societe_porteuse.name is not empty %}
<h2 class="mb-20px structure-class-title">
Structure Porteuse :
{{ content.societe_porteuse.name }}
</h2>
{% endif %}
{% if content.structure_img is defined and content.structure_img is not empty %}
<div class="br8 dflex aic jcc structure-class-image">
<img loading="lazy" src="{{ content.structure_img.formats['1000x.webp'] }}" srcset="{{ content.structure_img.formats['300x.webp'] }} 300w, {{ content.structure_img.formats['600x.webp'] }} 600w, {{ content.structure_img.formats['1000x.webp'] }} 1000w" sizes="1000px" alt="{{ content.structure_img | copyright_or_description_or_title }}" width="{{ content.structure_img.fileVersion.properties.width }}" height="{{ content.structure_img.fileVersion.properties.height }}">
</div>
{% endif %}
</div>
{% if content.adresse is defined and content.adresse is not empty %}
{% set map = content.adresse %}
{% set display_map = true %}
{% endif %}
{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
{% for data in content.main_content %}
{% if data.type =="text" %}
{% include "articles-blocks/freetext.html.twig" %}
{% endif %}
{% if data.type == "triple_frame" %}
{% include "articles-blocks/triple-frame-block.html.twig" %}
{% endif %}
{% if data.type == "text_pic" %}
{% include "blocks/text-pic.html.twig" with {block: data} %}
{% endif %}
{% if data.type == "citation" %}
{% include "articles-blocks/citation.html.twig" %}
{% endif %}
{% if data.type == "solution_frame" %}
{% include "blocks/block-picbkg-frame.html.twig" with {block: data} %}
{% endif %}
{% if data.type == "block_wrap" %}
{% include "articles-blocks/block-wrap.html.twig" %}
{% endif %}
{% if data.type == "block_blue_back" %}
{% include "articles-blocks/block-blue-background.html.twig" %}
{% endif %}
{% if data.type == "youtube" %}
{% set embed_link = data.video_link|replace({'watch?v=' : 'embed/'}) %}
{% set embed_link_splitted = embed_link|split('/') %}
{% set videoID = embed_link_splitted|last %}
{# <div class="youtube_player" videoid="{{ videoID }}" width="560" height="315" theme="theme light" rel="rel 1" controls="controls 1" showinfo="showinfo 1 " autoplay="autoplay 0" mute="mute 1" loop="loop 0" loading="loading 0"></div> TAC #}
<div class="video-responsive mt-1em">
<lite-youtube videoid="{{ videoID }}" class="br8" params="controls=1&start={{ data.timestamp }}&modestbranding=2&rel=0&enablejsapi=1"></lite-youtube>
</div>
{% endif %}
{% if data.type == 'file' %}
{% set block = data %}
{% include "blocks/file.html.twig" %}
{% endif %}
{% endfor %}
{% endif %}
{% if display_map is defined and display_map is not empty %}
{% include "articles-blocks/simple-map.html.twig" %}
{% endif %}
{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
{% for data in content.main_content %}
{% if data.type == "linked_with" %}
{% include "articles-blocks/linked-with.html.twig" %}
{% endif %}
{% if data.type == "see_more" %}
{% include "articles-blocks/see-more.html.twig" %}
{% endif %}
{% endfor %}
{% endif %}
</article>
</div>
{% endblock %}
{% block javascripts %}
{% if content.adresse is defined and content.adresse is not empty %}
{{ encore_entry_script_tags('map') }}
{% endif %}
{% if content.main_content|length > 0 %}
{% for content in content.main_content %}
{% if content.type == "youtube" %}
{{ encore_entry_script_tags('youtube_defer') }}
{{ encore_entry_script_tags('lite-youtube') }}
{% endif %}
{% endfor %}
{% endif %}
{% include "articles/javascripts/base-article-js.html.twig" %}
{{ parent() }}
{% endblock %}