{% set currentRoute = app.request.attributes.get('_route')|default('') %} {% set isAuthPage = currentRoute in ['app_login', 'app_register', 'app_forgot_password_request', 'app_check_email', 'app_reset_password', 'app_team_invitation_accept'] %} {% set isAppShellPage = (not isAuthPage) %} {% set show_cotisation_banner = isAppShellPage and app.user and not app.user.cotisationPayee %} {% set lpf_css_v = '11' %} {% set hero_banner_routes = ['app_homepage', 'app_homepage_v2_preview', 'app_matches', 'app_knockout', 'app_ranking', 'app_jokers', 'app_buteurs'] %} {% block title %}LPF 2026{% endblock %} {% if not isAuthPage %} {% endif %} {% block stylesheets %} {% endblock %} {% block javascripts %} {% if not isAuthPage %} {{ importmap('app') }} {% endif %} {% endblock %} {% if isAuthPage %} {# Auth : chargé en dernier (bat anciennes surcharges claires) #} {% else %} {# Shell connecté : dark en fichiers séparés (évite @import sans ?v=, cache navigateur) #} {% endif %} {% if not isAuthPage %} {% if app.user and badges_active_for(app.user) %} {% endif %} {# Dernier : surcharges dark ciblées (priorité sur tailadmin / thèmes) #} {% endif %} {% set frankenphpHotReload = app.request.server.get('FRANKENPHP_HOT_RELOAD') %} {% if frankenphpHotReload %} {% endif %} {% include '_mourning_banner.html.twig' %}
{% include '_flash_messages.html.twig' %}
{% if isAuthPage %}
{% include '_site_theme_toggle.html.twig' %}
{{ block('body') }}
{% else %} {% if show_cotisation_banner %} {% include '_cotisation_banner.html.twig' %} {% endif %} {% if app.user %} {% set forum_unread = unread_forum_messages_count() %} {% endif %}
{% include '_lpf_brand_logo.html.twig' with { img_class: 'ta-mobile-bar__logo', front_logo: true } %}
{% if app.user %} {% include 'forum/_mobile_bar_button.html.twig' with { forum_unread: forum_unread } only %} {% endif %}
{% include '_sidebar.html.twig' %}
{% if currentRoute in hero_banner_routes and currentRoute != 'app_homepage' and currentRoute != 'app_homepage_v2_preview' %} {% include '_page_hero_banner.html.twig' %} {% endif %} {{ block('body') }}
{% if app.user %} {% include 'forum/_shell.html.twig' with { forum_unread: forum_unread } only %} {% if site_intro_slides()|length > 0 %} {% include '_site_intro_dialog.html.twig' %} {% endif %} {% endif %}
{% endif %} {% if isAppShellPage %} {% include 'shared/_lpf_image_lightbox.html.twig' with { turbo_permanent: true } only %} {% endif %} {% if isAppShellPage %} {% endif %} {% if currentRoute in hero_banner_routes %} {% endif %} {% if isAppShellPage and app.user and badges_active_for(app.user) %} {% endif %} {% if isAppShellPage and app.user and site_intro_slides()|length > 0 %} {% endif %}