{# templates/components/quote/multistep_form.html.twig #}
{# Barre de progression horizontale pour mobile #}
Étape {{ currentStep }}/3 {{ currentStep == 1 ? 'Informations' : (currentStep == 2 ? 'Produit' : 'Devis') }}
{% if currentStep == 1 %} {# Étape 1: Formulaire client #}

Étape 1: Vos informations personnelles

Commençons par recueillir vos informations de contact

{{ component('customer_form', { userId: this.userId, parentComponentName: 'multistep_quote_form' }) }}
{% elseif currentStep == 2 %} {# Étape 2: Sélection du produit d'assurance #}

Étape 2: Choisissez votre produit d'assurance

Sélectionnez le type d'assurance qui correspond à vos besoins

{% include 'components/quote/_list_products_insurance.html.twig' with { products: this.availableProducts, showBackButton: true } %}
{% elseif currentStep == 3 %} {# Étape 3: Formulaire spécifique au produit #}

Étape 3: Détails de votre devis

{{ this.selectedProduct ? this.selectedProduct.name : 'Votre devis personnalisé' }}

{% if this.isProfessionalClient %} {% include 'components/quote/_professional_request_message.html.twig' with { professionalRequestSent: this.professionalRequestSent }%} {% elseif this.selectedProduct %} {% include 'components/quote/_product_forms.html.twig' with { selectedProduct: this.selectedProduct, userId: this.userId }%} {% else %}

Veuillez d'abord sélectionner un produit d'assurance

{% endif %}
{# Bouton Précédent - affiché uniquement si le formulaire n'est pas encore soumis #} {% if not isSubmitted %}
{% endif %} {% endif %}
{# Colonne vide à droite pour l'équilibre #}
{% include 'components/quote/_spinner.html.twig' %}