{% extends 'base.html.twig' %}
{% block title %}Hello HomeController!{% endblock %}
{% block body %}
<style>
body {
font-family: 'Segoe UI', sans-serif;
}
.hero {
/* background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat; */
/* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url(https://images.unsplash.com/photo-1600585154340-be6161a56a0c) center / cover no-repeat;
min-height: 90vh;
display: flex;
align-items: center;
color: white;
text-shadow: 1px 1px 4px rgba(0,0,0,0.6); */
min-height: 80vh;
display: flex;
align-items: center;
}
.service-card {
transition: all 0.3s ease;
}
.service-card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.cta-section {
background: #0170ba;
color: white;
padding: 60px 0;
text-align: center;
}
</style>
</section>
<!-- Services -->
<section id="services" class="py-5">
<div class="container py-5">
<div class="text-center mb-5">
<h2 class="fw-bold">Choisir votre besoin</h2>
<p class="text-muted">Des diagnostics complets pour vos biens immobiliers</p>
</div>
<div class="row g-4">
{% for service in services %}
<div class="col-md-4">
<div class="card service-card h-100 text-center p-4">
<div class="mb-3">
<img src="{{asset('img/pro.png')}}" width="100" alt="Amiante">
</div>
<a href="{{ path('devis_step2', {id: service.id}) }}" class="btn btn-primary">{{ service.nom }}</a>
{% if service.nom == "Pack vente" %}
<p class="text-muted">Le pack vente contient les diagnostiques : <b> Plomb, Amiante, DPE, Électricité, Gaz, ERP, Termites, Loi Carrez</b></p>
{% elseif service.nom == "Pack location" %}
<p class="text-muted">Le pack vente contient les diagnostiques : <b> Plomb, DPE, Électricité, Gaz, ERP, Amiante</b></p>
{% endif %}
</div>
</div>
{% endfor %}
{# <form action="{{ path('devis_step2') }}" method="get">
<select name="service">
{% for s in services %}
<option value="{{ s.nom }}">{{ s.nom }}</option>
{% endfor %}
</select>
<button type="submit">Suivant</button>
</form> #}
</div>
</div>
</section>
{% endblock %}