{% extends 'base.html.twig' %}{% block title %}{{ article.title }} - {{ site_setting('site_name', 'ActuFake') }}{% endblock %}{% block description %}{{ article.excerpt }}{% endblock %}{% block body %}<article class="container my-5"> {% if is_preview|default(false) %} <div class="alert alert-info shadow-sm"> <i class="fas fa-eye"></i> Mode prévisualisation - Article non publié </div> {% endif %} <div class="row"> <div class="col-lg-10 mx-auto"> <div class="alert alert-warning border-warning border-2 mb-4"> <i class="fas fa-exclamation-triangle"></i> <strong>ARTICLE SATIRIQUE</strong> — Cette information est FICTIVE et à but humoristique uniquement. </div> <header class="article-header mb-5"> <div class="mb-3"> <span class="category-badge">{{ article.category.name }}</span> </div> <h1 class="display-3 fw-bold mb-3" style="line-height: 1.1; letter-spacing: -1px;"> {{ article.title }} </h1> {% if article.subtitle %} <h2 class="h3 text-muted fw-normal mb-4" style="line-height: 1.4;">{{ article.subtitle }}</h2> {% endif %} <div class="d-flex flex-wrap align-items-center gap-3 mb-4 pb-4 border-bottom"> <div class="text-muted"> <i class="fas fa-user me-1"></i> <strong>{{ article.author ?? 'Rédaction ActuFake' }}</strong> </div> <div class="text-muted"> <i class="fas fa-clock me-1"></i> {{ article.publishedAt|date('d M Y à H:i') }} </div> <div class="text-muted"> <i class="fas fa-eye me-1"></i> {{ article.viewCount }} vues </div> </div> <div class="d-flex gap-2 mb-4"> <a href="https://twitter.com/intent/tweet?text={{ article.title|url_encode }}&url={{ url('article_show', {slug: article.slug}) }}" target="_blank" class="btn btn-outline-dark"> <i class="fab fa-twitter"></i> Twitter </a> <a href="https://www.facebook.com/sharer/sharer.php?u={{ url('article_show', {slug: article.slug}) }}" target="_blank" class="btn btn-outline-dark"> <i class="fab fa-facebook"></i> Facebook </a> </div> </header> {% if article.featuredImage %} <figure class="mb-5"> {% set image_path = article.featuredImage.path starts with '/' ? article.featuredImage.path|slice(1) : article.featuredImage.path %} <img src="{{ base_path }}/{{ image_path }}" alt="{{ article.featuredImage.alt }}" class="img-fluid w-100" style="max-height: 600px; object-fit: cover;"> {% if article.featuredImage.alt %} <figcaption class="text-muted small mt-2 fst-italic">{{ article.featuredImage.alt }}</figcaption> {% endif %} </figure> {% endif %} <div class="article-excerpt lead mb-5 p-4 bg-light border-start border-4 border-danger" style="line-height: 1.7;"> {{ article.excerpt }} </div> <div class="article-body" style="font-size: 1.125rem; line-height: 1.8;"> {{ article.body|raw }} </div> {% if article.tags|length > 0 %} <div class="article-tags mt-5 pt-4 border-top"> <div class="mb-2 text-muted small text-uppercase fw-bold" style="letter-spacing: 1px;">Tags</div> {% for tag in article.tags %} <a href="{{ path('search', {q: tag.name}) }}" class="badge bg-dark text-decoration-none me-2 mb-2 px-3 py-2" style="font-size: 0.85rem;"> #{{ tag.name }} </a> {% endfor %} </div> {% endif %} <div class="alert alert-warning border-warning border-2 mt-5 shadow-sm"> <h6 class="fw-bold" style="color: #856404;"> <i class="fas fa-info-circle"></i> Rappel important </h6> <p class="mb-0" style="line-height: 1.7;"> Cet article est une <strong>parodie satirique</strong>. Les faits, citations et informations mentionnés sont <strong>totalement fictifs</strong>. {% if article.isAiGenerated %} Ce contenu a été généré avec l'assistance d'une intelligence artificielle. {% endif %} </p> </div> {% if related_articles|length > 0 %} <section class="related-articles mt-5 pt-5 border-top"> <h3 class="section-title">Vous aimerez aussi</h3> <div class="row g-4"> {% for related in related_articles %} <div class="col-md-4"> <article class="card article-card h-100 border-0 shadow-sm"> {% if related.featuredImage %} <img src="/{{ related.featuredImage.path }}" class="card-img-top" alt="{{ related.title }}" style="height: 200px;"> {% else %} <div class="bg-secondary d-flex align-items-center justify-content-center" style="height: 200px;"> <i class="fas fa-newspaper fa-3x text-white opacity-25"></i> </div> {% endif %} <div class="card-body"> <span class="category-badge mb-2">{{ related.category.name }}</span> <h6 class="card-title mt-2" style="line-height: 1.3;"> <a href="{{ path('article_show', {slug: related.slug}) }}" class="text-decoration-none"> {{ related.title }} </a> </h6> <small class="text-muted d-block mt-2"> <i class="fas fa-clock"></i> {{ related.publishedAt|date('d M Y') }} </small> </div> </article> </div> {% endfor %} </div> </section> {% endif %} </div> </div></article>{% endblock %}