{#
Module partagé : liste d'offres spéciales avec popup au survol.
@param offers iterable d'offres (entités Offer ou tableaux)
@param wrapperClass classes additionnelles sur .special_offers-block
@param gridClass classes additionnelles sur .special_offers (ex: special_offers--single-column)
@param title titre optionnel au-dessus de la grille
@param titleIcon nom d'icône Lucide pour le titre
#}
{% if offers is defined and offers is iterable and offers is not empty %}
<div class="special_offers-block{{ wrapperClass is defined and wrapperClass ? ' ' ~ wrapperClass : '' }}">
{% if title is defined and title is not empty %}
<h2 class="text-sm-bd special_offers-block__title">
{% if titleIcon is defined and titleIcon is not empty %}
{{ getLucidIcon(titleIcon) }}
{% endif %}
{{ title }}
</h2>
{% endif %}
<div class="special_offers{{ gridClass is defined and gridClass ? ' ' ~ gridClass : '' }}">
{% for offer in offers %}
{% include 'pages/_includes/partials/_offer_with_popup.html.twig' with { offer: offer } only %}
{% endfor %}
</div>
</div>
{% endif %}