{% set title = item.name %}
{% set desc = item.description %}
{% set menu = 'professions' %}
{% if item.banner %}
{% set thumbnail = item.banner.thumbnail %}
{% set banner = asset(item.banner.file) %}
{% endif %}
{% extends 'Default/base.html.twig' %}
{% import "Default/macros.html.twig" as macros %}
{% block titlebox %}
<div class='relative white w100 {{desktop("vt-40-in")}} {{mobile("")}}'>
{% block title %}
<h1 class='h3 upper lh-1 text-center'>{{title is defined ? title}}</h1>
{% endblock title %}
</div>
{% endblock titlebox %}
{% block content %}
<div class='{{desktop("gpadding vt-40-in")}} {{mobile("gpadding vt-30-in")}} '>
<div class='{{desktop("gpadding flex col center top")}} {{mobile("")}}'>
<div id='article' class='w100 {{desktop("")}} {{mobile("vt-20-in")}}'>
<figure class="w100 {{desktop('')}}">
<img src="{{asset(item.banner)}}" class="block w100"/>
</figure>
<article class='p article black {{desktop("top-30")}}'>
{{ item.content|raw }}
</article>
</div>
{% set list = [] %}
{% set list = list|merge([{id:1,title:"LA CORRUPTION : DÉTECTION, PRÉVENTION, RÉPRESSION", slug:"article", date:"now"|date, banner:"images/formation-1.png"}]) %}
{% set list = list|merge([{id:1,title:"DÉPISTAGE, IDENTIFICATION, SAISIE ET CONFISCATION DES AVOIRS CRIMINELS", slug:"article", date:"now"|date, banner:"images/formation-2.png"}]) %}
{% set list = list|merge([{id:1,title:"PREUVE PÉNALE ET PROGRÈS SCIENTIFIQUE", slug:"article", date:"now"|date, banner:"images/formation-3.png"}]) %}
</div>
<div class="w100 {{desktop('top-60')}}{{mobile('top-20')}}">
<h2 class="h2 special-alt left-30-in extrabold {{desktop('half')}}">Formations liées à cette profession</h2>
<div class='list {{desktop("flex row space wrap")}} {{mobile("")}}'>
{% for o in list %}
{{macros.formation(o)}}
{% endfor %}
{% if isDesktop() and (list|length % 3) %}
{% for o in 1..(3 - list|length % 3) %}
<i class="third-20"></i>
{% endfor %}
{% endif %}
</div>
</div>
</div>
{% endblock %}