{% extends 'base.html.twig' %}
{% block title %}Portfolio — Raw Studio{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('assets/css/portfolio.css') }}">
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@600;800;900&family=Work+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
{% endblock %}
{% block body %}
<section class="hero">
<div class="eyebrow">NOS RÉALISATIONS</div>
<h1>Portfolio</h1>
<p>Chaque projet est une prise de vue brute, pensée pour raconter une histoire précise. Filtrez par service pour explorer nos réalisations.</p>
{# ---- Niveau 1 : catégories (Photo / Vidéographie...) ---- #}
</section>
<div class="filters-wrap">
<div class="cat-tabs" id="catTabs" data-preselect="{{ preselectCategory }}">
{% for category in categories %}
<button class="cat-tab {{ preselectCategory == category.slug ? 'active' }}" data-cat="{{ category.slug }}">
{{ category.name|upper }}
</button>
{% endfor %}
</div>
</div>
<div class="filters-wrap">
{# ---- Niveau 2 : services, filtrés selon la catégorie active ---- #}
<div class="filters" id="filters" data-preselect="{{ preselectService }}">
<button class="pill {{ preselectService == 'all' ? 'active' }}" data-filter="all">TOUT</button>
{% for service in services %}
<button class="pill {{ preselectService == service.slug ? 'active' }}"
data-filter="{{ service.slug }}"
data-category="{{ service.categoryService.slug }}">
{{ service.name|upper }}
</button>
{% endfor %}
<span class="count"><b id="countNum">{{ albums|length }}</b> projets</span>
</div>
</div>
<div class="grid" id="grid">
{% for album in albums %}
<div class="card" data-cat="{{ album.service.slug }}" data-category="{{ album.service.categoryService.slug }}">
<a href="{{ path('portfolio_albums', {serviceSlug:album.service.slug, id:album.id}) }}">
<img src="{{ asset('assets/img/portfolio/cover/' ~ album.cover) }}" alt="{{ album.title }}" loading="lazy">
<div class="corner tl"></div>
<div class="corner tr"></div>
<div class="corner bl"></div>
<div class="corner br"></div>
<div class="rec"><span class="dot"></span></div>
<div class="overlay">
<span class="tag">{{ album.service.name }}</span>
<div class="title">{{ album.title }}</div>
</div>
</a>
</div>
{% else %}
<p style="color:var(--muted)">Aucun album pour le moment.</p>
{% endfor %}
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('assets/js/portfolio.js') }}"></script>
{% endblock %}