{# Valeurs de base #}{% set effectiveSectionSettings = showSectionSettings|default(true) ? sectionSettings|default({}) : {} %}{% set content = effectiveSectionSettings|merge(companiesSlide) %}{% set companies = partners_snippet_companies() %}{% set datas = {} %}{% if content is defined and content is not none and content is not empty %}{% set datas = datas|merge({'section': section(content)}) %}{% set datas = datas|merge({'title': title(content)}) %}{% set companiesSlideId = datas.section.id|default('companies-slide-' ~ random()) %}{% set isBlackAndWhite = content.isBlackAndWhite|default(false) %}<section id="{{ companiesSlideId }}" class="companies-slide-section">{% if showSectionSettings|default(true) and attribute(content, 'titleTextSection')|default('') is not empty %}{{ ('<'~attribute(content, 'typeTitleSection')|default('h2')~' class="companies-slide-title">')|raw }}{% if attribute(content, 'pictogramTitleSection')|default('') is not empty %}<span class="icon">{{ getLucidIcon(attribute(content, 'pictogramTitleSection')) }}</span>{% endif %}{{ attribute(content, 'titleTextSection')|raw }}{{ ('</'~attribute(content, 'typeTitleSection')|default('h2')~'>')|raw }}{% elseif datas.title.text is defined and datas.title.text is not empty %}{{ ('<'~datas.title.level|default('h2')~' class="companies-slide-title">')|raw }}{{ datas.title.text|raw }}{{ ('</'~datas.title.level|default('h2')~'>')|raw }}{% endif %}{% if companies is defined and companies is not empty %}<divclass="companies-slide"data-companies-slidestyle="margin-bottom: {{ content.slideLinesMarginBottom|default(22) }}{{ content.slideLinesMarginBottomUnit|default('px') }};"><buttontype="button"class="companies-slide__arrow companies-slide__arrow--prev"aria-label="{{ 'common.previous'|trans }}"aria-hidden="true"tabindex="-1">{{ getLucidIcon('chevron-left') }}</button><divclass="companies-slide__viewport"tabindex="0"role="region"aria-label="{{ 'common.companies'|trans|default('Compagnies') }}"><div class="companies-slide__track">{% for company in companies %}{% set media = crea_media_get_media(['logo'], company) %}{% if media is defined and media is not null %}{% set logoUrl = media.cdnUrl|default('/img/placeholder-company.svg') %}<div class="company-logo">{% if company.id is defined and company.id is not null and company.id is not empty %}<a href="/croisieres?companies[]={{ company.id }}"><img src="{{ logoUrl }}" alt="{{ company.name|default('Logo compagnie') }}" loading="lazy"></a>{% else %}<img src="{{ logoUrl }}" alt="{{ company.name|default('Logo compagnie') }}" loading="lazy">{% endif %}</div>{% endif %}{% endfor %}</div></div><buttontype="button"class="companies-slide__arrow companies-slide__arrow--next"aria-label="{{ 'common.next'|trans }}"aria-hidden="true"tabindex="-1">{{ getLucidIcon('chevron-right') }}</button></div>{% endif %}</section>{% endif %}<style>{% include '_snippets/components/_section.html.twig' %}{% include '_snippets/components/_title.html.twig' %}section#{{ companiesSlideId }} {--companies-slide-gap: {{ content.slideGap|default(40) }}{{ content.slideGapUnit|default('px') }};--companies-slide-logo-height: {{ content.slideHeight|default(90) }}{{ content.slideHeightUnit|default('px') }};--companies-slide-logo-filter: {{ isBlackAndWhite ? 'grayscale(100%)' : 'grayscale(0%)' }};--companies-slide-logo-filter-hover: {{ isBlackAndWhite ? 'grayscale(0%)' : 'unset' }};}</style>