{# Project card — full-bleed photo with a bottom gradient, up to two tag badges and the project title sitting inside the image, and a small two-line mark bottom-left. Auto-populated from real project_detail pages (see HomePageEnricher::resolveRecentProjectsByCategory()) — read-only, not admin-editable here; editing happens on the project's own page. Params: - imagePath (string): project's featured image URL - imageDarkPath (string, default ''): Hiver variant, falls back to imagePath when empty - imageFrame / imageDarkFrame (array, optional): source page's Été / Hiver cadrage (ratio never applied on cards) - title (string): project title - subtitle (string, default: ''): project subtitle - tags (string[], default []): project's tag labels, shown as badges - href (string): project detail page URL - attrs (string, default ''): raw HTML attributes appended to the link (e.g. `data-category="haute-altitude"` for client-side filtering) #}
{% include 'components/_themed_img.html.twig' with {light: imagePath|default(''), dark: imageDarkPath|default(''), alt: title|default(''), class: 'project-card__img', loading: 'lazy'} only %}
{% if tags|default([]) is not empty %}
{% for tag in tags %} {% include 'components/_tag.html.twig' with { label: tag, disabled: true, class: 'project-card__badge tag--light' } %} {% endfor %}
{% endif %}

{{ title|default('') }}

{{ subtitle|default('') }}