{% extends 'base.twig' %}

{# --- METADATA & SCHEMA --- #}
{% block title %}Erreur 500 - {{ 'error.generic_title'|trans({}, 'messages') }}{% endblock %}
{% block meta_description %}{{ 'error.generic_description'|trans({}, 'messages') }}{% endblock %}

{# --- BODY --- #}
{% block body %}
    <div class="container mx-auto px-4 py-20 text-center">
        <h1 class="text-9xl font-extrabold text-red-700 mb-4">500</h1>

        <h2 class="text-3xl font-bold text-gray-800 mb-6">
            {{ 'error.generic_title'|trans({}, 'messages') }}
        </h2>

        <p class="text-lg text-gray-600 mb-8">
            {{ 'error.generic_description'|trans({}, 'messages') }}
        </p>

        {# Utiliser path('home') ou path('app_home') selon la convention de votre application #}
        <a href="{{ path('app_home') | default('/') }}" class="inline-block px-6 py-3 text-white bg-blue-600 hover:bg-blue-700 rounded-lg transition duration-150 shadow-md">
            Retourner à l'accueil
        </a>
    </div>
{% endblock %}
