{% set hero_classes = hero_classes ?? 'hero' %}
{% set categories_list_id = categories_list_id ?? 'category-list' %}
{% set hero_image = hero_image|default('') %}
{% set hero_image_label = hero_image_label|default('Banniere') %}
{% set hero_overlay = hero_overlay|default(false) %}
{% set search_action = search_action ?? '#' %}
{% set search_method = search_method is defined ? search_method : null %}
{% set search_placeholder = search_placeholder ?? 'De quel produit avez-vous besoin?' %}
{% set search_input_name = search_input_name is defined ? search_input_name : null %}
{% set search_label = search_label ?? 'Recherche' %}
{% set category_label_attr = category_label_attr ?? 'libelle' %}
{% set category_label_raw = category_label_raw ?? false %}
<section class="{{ hero_classes }}">
{% if page_title is defined %}
<h1 class="sr-only">{{ page_title }}</h1>
{% endif %}
<div class="container">
<div class="row hero__grid">
<div class="col-lg-3">
<div class="hero__categories" aria-label="{{ categories_aria_label ?? 'Categories' }}">
<button class="hero__categories__all" type="button" aria-expanded="true" aria-controls="{{ categories_list_id }}">
<i class="fa fa-bars" aria-hidden="true"></i>
<span>{{ categories_title ?? 'Categories' }}</span>
<span class="hero__categories__caret" aria-hidden="true"></span>
</button>
<ul id="{{ categories_list_id }}">
{% for item in categories ?? [] %}
<li>
<h6>
{% if category_route_prefix is defined %}
<a href="{{ path(category_route_prefix ~ item.id) }}">
{% if category_label_raw %}
{{ attribute(item, category_label_attr)|raw }}
{% else %}
{{ attribute(item, category_label_attr)|e }}
{% endif %}
</a>
{% else %}
<a href="{{ path(category_route, { id: item.id }) }}">
{% if category_label_raw %}
{{ attribute(item, category_label_attr)|raw }}
{% else %}
{{ attribute(item, category_label_attr)|e }}
{% endif %}
</a>
{% endif %}
</h6>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-lg-9">
<div class="hero__search">
<div class="hero__search__form">
<form action="{{ search_action }}"{% if search_method %} method="{{ search_method }}"{% endif %}>
<label class="ch-visually-hidden" for="{{ search_input_id ?? 'hero-search-input' }}">{{ search_label }}</label>
<div class="hero__search__categories">
{{ search_categories_label ?? 'Tous les Articles' }}
<span class="arrow_carrot-down"></span>
</div>
{% if partnership_cta_target is defined and partnership_cta_target %}
<a href="{{ partnership_cta_target }}" class="hero__partnership-btn"{% if partnership_cta_toggle is defined and partnership_cta_toggle %} data-toggle="{{ partnership_cta_toggle }}" data-target="{{ partnership_cta_target }}"{% endif %}>
<i class="fa fa-handshake-o" aria-hidden="true"></i>
<span>{{ partnership_cta_label ?? 'Demande de partenariat' }}</span>
</a>
{% endif %}
<input id="{{ search_input_id ?? 'hero-search-input' }}" type="text" placeholder="{{ search_placeholder }}"{% if search_input_name %} name="{{ search_input_name }}"{% endif %}>
<button type="submit" class="site-btn ch-btn ch-btn--primary">{{ search_button_label ?? 'RECHERCHE' }}</button>
</form>
</div>
<div class="hero__search__phone">
<div class="hero__search__phone__icon" aria-hidden="true">
<i class="fa fa-phone"></i>
</div>
<div class="hero__search__phone__text">
<h5>{{ phone_number ?? '+225 07 09 00 57 32' }}</h5>
<span>{{ phone_subtitle ?? 'support 24/7 time' }}</span>
</div>
</div>
</div>
<div class="hero__item set-bg" data-setbg="{{ hero_image }}" role="img" aria-label="{{ hero_image_label }}">
{% if hero_overlay is defined and hero_overlay %}
<div class="hero__overlay" aria-hidden="true"></div>
{% endif %}
{% if hero_content_template is defined and hero_content_template %}
<div class="hero__content">
{{ include(hero_content_template) }}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>