{% extends 'base.html.twig' %}
{% block title %}{{ company.software_name|default('Plateforme immobiliere') }}{% endblock %}
{% block body %}
<section class="hero">
<nav class="public-nav">
<a class="brand" href="{{ path('public_home') }}">
{% if company.logo_path|default(null) %}
<img class="brand-logo" src="{{ asset(company.logo_path) }}" alt="">
{% else %}
<span class="brand-mark">{{ company.acronym|default('WI') }}</span>
{% endif %}
<span><strong>{{ company.commercial_name|default('Agence immobiliere') }}</strong><small>Suivi immobilier</small></span>
</a>
<div class="links">
<a href="{{ path('public_about') }}">Entreprise</a>
<a href="{{ path('public_projects') }}">Projets</a>
<a href="{{ path('public_contact') }}">Contact</a>
<a class="primary-button compact" href="{{ path('app_login') }}">Connexion</a>
</div>
</nav>
<div>
<p class="eyebrow" style="color:#fbd38d">{{ company.country|default('Cote d Ivoire') }}</p>
<h1>{{ company.software_name|default('Plateforme immobiliere') }}</h1>
<p>{{ company.slogan|default('Une plateforme professionnelle pour centraliser clients, acquisitions, documents, paiements et travaux immobiliers.') }}</p>
<div class="metric-row" style="margin-top:22px">
<a class="primary-button" href="{{ path('public_projects') }}"><i data-lucide="building-2"></i>Voir les projets</a>
<a class="ghost-button" href="{{ path('app_login') }}"><i data-lucide="lock"></i>Espace sécurisé</a>
</div>
</div>
</section>
<section class="section">
<div class="page-header">
<div>
<p class="eyebrow">Programmes publiés</p>
<h1>Projets immobiliers</h1>
<p>Une vitrine claire pour présenter les programmes suivis dans le back-office.</p>
</div>
</div>
<div class="grid three">
{% for project in projects %}
<article class="card">
<span class="badge {{ project.status|status_class }}">{{ project.status|status_label }}</span>
<h2>{{ project.name }}</h2>
<p>{{ project.city }}{% if project.commune %}, {{ project.commune }}{% endif %}</p>
<p>{{ project.description|slice(0, 140) }}{% if project.description|length > 140 %}...{% endif %}</p>
<a class="ghost-button" href="{{ path('public_project_show', {id: project.id}) }}"><i data-lucide="arrow-right"></i>Détails</a>
</article>
{% else %}
<div class="empty-state">Aucun projet publié pour le moment.</div>
{% endfor %}
</div>
</section>
{% endblock %}