{% include 'inc/header.html.twig' %}

{{ projetby.titre }}

{{ projetby.emplacementprojet }} | {{ projetby.nomclient }}

{{ 'project_revamp.client'|trans }} {{ projetby.nomclient }}
{{ 'project_revamp.location'|trans }} {{ projetby.emplacementprojet }}
{{ 'project_revamp.country'|trans }} {{ projetby.payerprojet ? projetby.payerprojet.nompayers : 'Tunisie' }}
{{ 'project_revamp.service'|trans }} {{ projetby.serviceproject ? projetby.serviceproject.nomservice : 'Expertise' }}
{% if projetby.secteur %}
Secteur {{ projetby.secteur.nom }}
{% endif %}
{# ═══ SECTION 1 — CONTEXTE ═══════════════════════════════════════════════ #}
01. {{ 'project_revamp.context_title'|trans }}

{{ 'project_revamp.context_title'|trans }}

{% if app.request.locale == 'en' %} {{ projetby.contexteEn|default(projetby.descriptionEn)|raw }} {% else %} {{ projetby.contexte|default(projetby.description)|raw }} {% endif %}
{# Objectifs & enjeux #} {% set objText = app.request.locale == 'en' ? projetby.objectifsEn : projetby.objectifs %} {% if objText %}

🎯 Objectifs & enjeux

{{ objText|raw }}
{% endif %} {# Caractéristiques techniques #} {% set techniques = [projetby.technique1, projetby.technique2, projetby.technique3, projetby.technique4, projetby.technique5, projetby.technique6, projetby.technique7, projetby.technique8]|filter(t => t is not null and t != '') %} {% if techniques|length > 0 %}

📐 Caractéristiques techniques

    {% for tech in techniques %}
  • {{ tech }}
  • {% endfor %}
{% endif %}
Context Image
{# ═══ VIDÉO YOUTUBE ════════════════════════════════════════════════════ #} {% set videoId = projetby.youtubeLink|default(null) %} {% if app.request.locale == 'en' and projetby.youtubeLinkEn %} {% set videoId = projetby.youtubeLinkEn %} {% endif %} {% if videoId %}
{% endif %} {# ═══ SECTION 2 — PROBLÉMATIQUE & RISQUES ════════════════════════════ #} {% set probText = app.request.locale == 'en' ? projetby.problematiqueEn : projetby.problematique %} {% set riskText = app.request.locale == 'en' ? projetby.risquesEn : projetby.risques %} {% if probText or riskText %}
{% if probText %} 02. {{ 'project_revamp.challenges_title'|trans }}

{{ 'project_revamp.challenges_title'|trans }}

{{ probText|raw }}
{% endif %} {% if riskText %}

⚠️ Risques identifiés

{{ riskText|raw }}
{% endif %}
{% if projetby.brochureFilename2 %} Challenges Image {% else %} Default Challenge Image {% endif %}
{% endif %} {# ═══ SECTION 3 — SOLUTION & INNOVATIONS ════════════════════════════ #} {% set solText = app.request.locale == 'en' ? projetby.solutionEn : projetby.solution %} {% set innoText = app.request.locale == 'en' ? projetby.innovationsEn : projetby.innovations %} {% if solText or innoText %}
{% if solText %} 03. {{ 'project_revamp.solution_title'|trans }}

{{ 'project_revamp.solution_title'|trans }}

{{ solText|raw }}
{% endif %} {% if innoText %}

💡 Innovations & procédés spécifiques

{{ innoText|raw }}
{% endif %}
{% if projetby.brochureFilename3 %} Solution Image {% else %} Default Solution Image {% endif %}
{% endif %} {# ═══ SECTION 4 — RÔLE DE STRAM ══════════════════════════════════════ #} {% set roleText = app.request.locale == 'en' ? projetby.roleStramEn : projetby.roleStram %} {% if roleText %}
04. {{ 'project_revamp.role_title'|trans|default('Notre Rôle') }}

{{ 'project_revamp.role_title'|trans|default('Le Rôle de STRAM') }}

{{ roleText|raw }}
{% endif %} {# ═══ SECTION 5 — KPIs (3 CATÉGORIES) ═══════════════════════════════ #} {% set kpiT = app.request.locale == 'en' ? projetby.kpisTechniquesEn : projetby.kpisTechniques %} {% set kpiE = app.request.locale == 'en' ? projetby.kpisEconomiquesEn : projetby.kpisEconomiques %} {% set kpiN = app.request.locale == 'en' ? projetby.kpisEnvironnementauxEn : projetby.kpisEnvironnementaux %} {% set kpiOld = app.request.locale == 'en' ? projetby.kpisEn : projetby.kpis %} {% if kpiT or kpiE or kpiN or kpiOld %}
05. {{ 'project_revamp.kpis_title'|trans }}

{{ 'project_revamp.kpis_title'|trans }}

{% if kpiT %}
🔩

KPIs Techniques

{{ kpiT|raw }}
{% endif %} {% if kpiE %}
💰

KPIs Économiques

{{ kpiE|raw }}
{% endif %} {% if kpiN %}
🌿

KPIs Environnementaux

{{ kpiN|raw }}
{% endif %} {# Fallback ancien champ monolithique #} {% if not kpiT and not kpiE and not kpiN and kpiOld %}
{{ kpiOld|raw }}
{% endif %}
{% endif %} {# ═══ SECTION 6 — FILIALES IMPLIQUÉES ══════════════════════════════════ #} {% if projetby.filiares is not empty %}
06. Filiales impliquées

Nos filiales sur ce projet

{% for filiare in projetby.filiares %}
{% if filiare.brochureFilename %} {{ filiare.titresocieter }} {% else %}
{{ filiare.titresocieter|slice(0,2)|upper }}
{% endif %}

{{ app.request.locale == 'en' ? filiare.titresocieterEn|default(filiare.titresocieter) : filiare.titresocieter }}

{% endfor %}
{% endif %} {# ═══ SECTION 7 — SUPPORTS MÉDIAS (galerie + infographie) ══════════════ #} {% set hasGallery = projetby.brochureFilename2 or projetby.brochureFilename3 or projetby.infographieFilename %} {% if hasGallery %}
07. Supports médias

Photos, vidéos & infographie

{% if projetby.brochureFilename %} {% endif %} {% if projetby.brochureFilename2 %} {% endif %} {% if projetby.brochureFilename3 %} {% endif %} {% if projetby.infographieFilename %}

📊 Infographie du projet

Infographie
{% endif %}
{% endif %}