{% extends 'base.html.twig' %}{% block title %}{{ article.title }} - WA BENIN{% endblock %}{% block body %}<div class="page-header" style="height: 35vh; min-height: 250px; margin-bottom: 40px;"><div class="container fade-up" style="max-width: 800px; text-align: center;"><span style="background: var(--gold); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; margin-bottom: 20px; display: inline-block;">{{ article.category }}</span><h1 class="page-title" style="font-size: 2.5rem;">{{ article.title }}</h1><div style="color: #ccc; font-size: 1rem; margin-top: 20px; display: flex; justify-content: center; gap: 20px;"><span><i class="far fa-calendar-alt"></i> {{ article.createdAt|date('d M Y') }}</span><span><i class="far fa-user"></i> {{ article.author }}</span></div></div></div><section class="section-padding" style="padding-top: 0;"><div class="container" style="max-width: 800px;"><div class="fade-up" style="background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); overflow: hidden;">{% if article.image %}<div style="width: 100%; max-height: 500px; overflow: hidden;"><img src="{{ article.image }}" alt="{{ article.title }}" style="width: 100%; height: auto; object-fit: cover;"></div>{% endif %}<div style="padding: 40px; font-size: 1.1rem; line-height: 1.8; color: #444;">{{ article.content|nl2br }}<div style="margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;"><div><span style="font-weight: bold; color: var(--black-dark);">Partager cet article :</span><div class="social-links" style="display: inline-flex; margin-left: 15px; gap: 10px;"><a href="https://www.facebook.com/sharer/sharer.php?u={{ url('app_article_show', {id: article.id}) }}" target="_blank" rel="noopener noreferrer" style="background: #3b5998; color: #fff; width: 35px; height: 35px;"><i class="fab fa-facebook-f"></i></a><a href="https://twitter.com/intent/tweet?url={{ url('app_article_show', {id: article.id}) }}&text={{ article.title|url_encode }}" target="_blank" rel="noopener noreferrer" style="background: #1da1f2; color: #fff; width: 35px; height: 35px;"><i class="fab fa-twitter"></i></a><a href="https://api.whatsapp.com/send?text={{ article.title|url_encode }}%20{{ url('app_article_show', {id: article.id}) }}" target="_blank" rel="noopener noreferrer" style="background: #25d366; color: #fff; width: 35px; height: 35px;"><i class="fab fa-whatsapp"></i></a></div></div></div></div></div></div></div></section><!-- Articles Récents --><section class="section-padding bg-light"><div class="container"><h2 style="margin-bottom: 30px; text-align: center;">Articles Récents</h2><div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;">{% for recent in recent_articles %}{% if recent.id != article.id %}<div class="fade-up" style="background: #fff; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-soft);"><div style="height: 200px; overflow: hidden;"><img src="{{ recent.image }}" alt="{{ recent.title }}" style="width: 100%; height: 100%; object-fit: cover;"></div><div style="padding: 20px;"><span style="color: var(--gold); font-size: 0.8rem; font-weight: bold; text-transform: uppercase;">{{ recent.category }}</span><h3 style="margin: 10px 0; font-size: 1.2rem; line-height: 1.3;">{{ recent.title }}</h3><a href="{{ path('app_article_show', {id: recent.id}) }}" style="color: var(--black-dark); font-weight: 600;">Lire la suite <i class="fas fa-arrow-right" style="font-size: 0.8rem; margin-left: 5px;"></i></a></div></div>{% endif %}{% endfor %}</div></div></section>{% endblock %}