{% set level = chunk.section_level or chunk.sectionLevel or 1 %}
{% if chunk.chapter_title and chunk.chapter_title != chunk.section %}
📚 {{ chunk.chapter_title }}
›
{% endif %}
{% if chunk.section %}
{% if level == 1 %}📖{% elif level == 2 %}📄{% else %}📃{% endif %} {{ chunk.section }}
{% endif %}
{% if chunk.type %}
{% set type_info = chunk_types.get(chunk.type, {'label': chunk.type, 'icon': '📝', 'desc': 'Type de contenu', 'color': 'rgba(125, 110, 88, 0.15)'}) %}
{{ type_info.icon }} {{ type_info.label }}
{% endif %}
Niv. {{ level }}
{% if chunk.paragraph_number %}
§ {{ chunk.paragraph_number }}
{% endif %}
{% if chunk.concepts and chunk.concepts|length > 0 %}
{% for concept in chunk.concepts %}
{{ concept }}
{% endfor %}
{% endif %}
{{ chunk.text }}