<divclass="custom-search-bar"data-context="auto"data-cruise-search-dynamic-options-url="{{ path('api_cruise_get_cruise_serach_dynamic_options') }}"data-cruise-list-url="/croisieres"{# Onglets Top / Autres — désactivés (cf. custom-search/engine.js)data-cruise-tab-top-destinations="{{ 'list.filters.top_destinations'|trans|e('html_attr') }}"data-cruise-tab-other-destinations="{{ 'search.custom.tab_other_destinations'|trans|e('html_attr') }}"data-cruise-tab-top-companies="{{ 'search.custom.tab_top_companies'|trans|e('html_attr') }}"data-cruise-tab-other-companies="{{ 'search.custom.tab_other_companies'|trans|e('html_attr') }}"data-cruise-tab-top-ports="{{ 'search.custom.tab_top_ports'|trans|e('html_attr') }}"data-cruise-tab-other-ports="{{ 'search.custom.tab_other_ports'|trans|e('html_attr') }}"data-cruise-tab-panel-empty="{{ 'search.custom.tab_panel_empty'|trans|e('html_attr') }}"#}data-cruise-search-placeholder-destinations="{{ 'search.custom.search_destinations'|trans|e('html_attr') }}"data-cruise-search-placeholder-companies="{{ 'search.custom.search_companies'|trans|e('html_attr') }}"data-cruise-search-placeholder-ports="{{ 'search.custom.search_ports'|trans|e('html_attr') }}"><!-- Header mobile --><div class="custom-search-header"><div class="header-icon">{{ getLucidIcon('search') }}</div> {# .header-icon #}<div class="header-title">{{ 'search.custom.header_title'|trans }}</div> {# .header-title #}</div> {# .custom-search-header #}<form class="custom-search-form"><!-- Section Destination --><div class="custom-search-field custom-search-destination"><div class="field-content"><div class="field-icon">{{ getLucidIcon('map-pin') }}</div><div class="field-label">{{ 'search.bar.destination'|trans }}</div><div class="field-dropdown-icon">{{ getLucidIcon('chevron-down') }}</div></div><div class="field-separator"></div><!-- Dropdown pour ce champ --><div class="custom-dropdown custom-dropdown-destination"><div class="dropdown-content"><!-- Les options seront chargées dynamiquement --></div></div></div><!-- Section Dates (premier en mobile) --><div class="custom-search-field custom-search-dates"><div class="field-content"><div class="field-icon">{{ getLucidIcon('calendar') }}</div><div class="field-label">{{ 'search.custom.dates'|trans }}</div><div class="field-dropdown-icon">{{ getLucidIcon('chevron-down') }}</div></div><div class="field-separator"></div><div class="custom-dropdown custom-dropdown-dates"><div class="dropdown-content custom-search-dates-panel">{% set currentYear = "now"|date("Y") + 0 %}{% set currentMonth = "now"|date("n") + 0 %}{% set monthLabels = ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] %}<div class="custom-search-dates-year-slider"><button type="button" class="custom-search-dates-year-nav custom-search-dates-year-nav--prev" aria-label="{{ 'common.previous'|trans }}" disabled>{{ getLucidIcon('chevron-left') }}</button><div class="custom-search-dates-year-viewport"><div class="custom-search-dates-year-track">{% for year in currentYear..(currentYear + 2) %}<span class="custom-search-dates-year{% if year == currentYear %} is-current{% endif %}" data-year="{{ year }}">{{ year }}</span>{% endfor %}</div></div><button type="button" class="custom-search-dates-year-nav custom-search-dates-year-nav--next" aria-label="{{ 'common.next'|trans }}">{{ getLucidIcon('chevron-right') }}</button></div><div class="custom-search-dates-months">{% for label in monthLabels %}{% set month = loop.index %}{% set monthPad = "%02d"|format(month) %}{% set firstDay = currentYear ~ "-" ~ monthPad ~ "-01" %}{% set lastDay = firstDay|date_modify("last day of this month")|date("d") %}{% set isPast = month < currentMonth %}<buttontype="button"class="custom-search-dates-month{% if isPast %} is-past{% endif %}"value="01{{ monthPad }}-{{ lastDay }}{{ monthPad }}"data-month="{{ month }}"aria-pressed="false"{% if isPast %}disabled{% endif %}>{{ label }}</button>{% endfor %}</div></div></div></div><!-- Section Port de départ --><div class="custom-search-field custom-search-departure"><div class="field-content"><div class="field-icon">{{ getLucidIcon('anchor') }}</div><div class="field-label">{{ 'search.bar.departure_port'|trans }}</div><div class="field-dropdown-icon">{{ getLucidIcon('chevron-down') }}</div></div><div class="field-separator"></div><!-- Dropdown pour ce champ --><div class="custom-dropdown custom-dropdown-departure"><div class="dropdown-content"><!-- Les ports seront chargés dynamiquement --></div></div></div><!-- Section Compagnie --><div class="custom-search-field custom-search-company"><div class="field-content"><div class="field-icon">{{ getLucidIcon('ship') }}</div><div class="field-label">{{ 'search.bar.company'|trans }}</div><div class="field-dropdown-icon">{{ getLucidIcon('chevron-down') }}</div></div><div class="field-separator"></div><!-- Dropdown pour ce champ --><div class="custom-dropdown custom-dropdown-company"><div class="dropdown-content"><!-- Les compagnies seront chargées dynamiquement --></div></div></div><!-- Bouton de recherche --><div class="custom-search-submit"><button type="submit" class="search-submit-btn"><div class="submit-icon">{{ getLucidIcon('search') }}</div></button></div> {# .custom-search-submit #}</form> {# .custom-search-form #}</div> {# #search-bar-custom #}