{# <section id="hero">
<div id="heroCarousel" data-bs-interval="5000" class="carousel slide carousel-fade" data-bs-ride="carousel">
<ol class="carousel-indicators" id="hero-carousel-indicators"></ol>
<div class="carousel-inner" role="listbox">
{% for pub in publications %}
<div class="carousel-item {% if loop.index == 1 %}active{% endif %}" style="background-image: url({% if pub.nomImage %}{{ asset('uploads/pub_' ~ pub.id ~ '/' ~ pub.nomImage ) }}{% endif %})">
<div class="carousel-container">
<div class="container">
<h2 class="animate__animated animate__fadeInDown"> {{ pub.titre }} </h2>
<p class="animate__animated animate__fadeInUp"> {{ pub.sousTitre }}</p>
<a href="#about" class="btn-get-started animate__animated animate__fadeInUp scrollto">Voir plus</a>
</div>
</div>
</div>
{% endfor %}
</div>
<a class="carousel-control-prev" href="#heroCarousel" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon bi bi-chevron-left" aria-hidden="true"></span>
</a>
<a class="carousel-control-next" href="#heroCarousel" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon bi bi-chevron-right" aria-hidden="true"></span>
</a>
</div>
</section> #}
<section id="hero" class="hero section">
<div id="hero-carousel" class="carousel slide" data-bs-ride="carousel" data-bs-interval="5000">
{% for pub in publications %}
<div class="carousel-item {% if loop.index == 1 %}active{% endif %}"
style="background-image: url({% if pub.nomImage %}{{ asset('uploads/pub_' ~ pub.id ~ '/' ~ pub.nomImage ) }}{% endif %})"
>
{# <img src="assets/img/hero-carousel/hero-carousel-1.jpg" alt=""> #}
<div class="info d-flex align-items-left">
<div class="container">
<div class="row justify-content-left" data-aos="fade-up" data-aos-delay="100">
<div class="col-lg-6 text-left">
<h2>{{ pub.titre }}</h2>
<p style="font-size: 22px !important;">{{ pub.description }}</p>
<a href="#" class="btn-get-started" style="margin-left: 0px !important;">Lire plus</a>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
<a class="carousel-control-prev" href="#hero-carousel" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon bi bi-chevron-left" aria-hidden="true"></span>
</a>
<a class="carousel-control-next" href="#hero-carousel" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon bi bi-chevron-right" aria-hidden="true"></span>
</a>
</div>
</section>