{% if content.heroSectionIsHidden is defined and content.heroSectionIsHidden %}{# Afficher search_bar_alone si heroSectionHidden est true #}<div class="search-bar-alone">{% include 'pages/_includes/base/search_bar/_search_bar_custom.html.twig' %}</div>{% else %}{# Afficher le snippet hero_section + barre de recherche si heroSectionHidden est false ou non défini #}{% if content.heroSectionSnippet is defined and content.heroSectionSnippet is not null and content.heroSectionSnippet is not empty %}{# Afficher le carousel hero_section #}<div class="container-fluid"><div class="row"><div class="col-lg-1 col-md-12 col-sm-12 col-xs-12"></div><div class="col-lg-10 col-md-12 col-sm-12 col-xs-12">{% include '_snippets/hero_section.html.twig' with {'heroSection': content.heroSectionSnippet} %}</div><div class="col-lg-1 col-md-12 col-sm-12 col-xs-12"></div></div></div>{% endif %}{# Afficher la barre de recherche personnalisée #}{% if content.heroSectionSnippet is defined and content.heroSectionSnippet is not null and content.heroSectionSnippet is not empty %}{# Si un hero section est défini, ajouter une classe pour la superposition #}<div class="search-bar-with-hero">{% include 'pages/_includes/base/search_bar/_search_bar_custom.html.twig' %}</div>{% elseif content.url is defined and content.url starts with '/espace-personnel' %}{# Ajouter une liste des page sans moteur de recherche, la personnalisation du moteur de recherche se fera quand via sulu et les snippets #}{% else %}<div class="search-bar-alone">{% include 'pages/_includes/base/search_bar/_search_bar_custom.html.twig' %}</div>{% endif %}{% endif %}