{# ══════════════════════════════════════════════════════
2. TYPE DE COMPTE — Particulier / Professionnel
══════════════════════════════════════════════════════ #}
Type de compte
Vous êtes… *
{% for child in registrationForm.typeCompte %}
{% set val = child.vars.value %}
{% endfor %}
{% if registrationForm.typeCompte.vars.errors|length > 0 %}
{{ form_errors(registrationForm.typeCompte) }}
{% endif %}
{# Message droit de rétractation — particulier (visible par défaut) #}
✅ En tant que particulier, vous bénéficiez d'un
droit de rétractation de 14 jours à compter de votre commande
(Art. L221-18 Code conso).
{# Message B2B — professionnel (caché par défaut) #}
ℹ️ En tant que professionnel, le droit de rétractation ne
s'applique pas à votre commande (contrat B2B — Art. L221-3 Code conso).
La fabrication démarre dès validation du paiement.
{# Alerte facturation si champs pro non remplis #}
⚠️ Attention : sans raison sociale et numéro SIRET,
nous ne pourrons pas établir de facture au nom de votre entreprise.
Vous recevrez une facture à votre nom personnel.
{# ══════════════════════════════════════════════════════
4. MOT DE PASSE (avec toggle + indicateur de force)
══════════════════════════════════════════════════════ #}
{{ form_label(registrationForm.plainPassword.first, 'Mot de passe') }}
{# ══════════════════════════════════════════════════════
5. CONFIRMER LE MOT DE PASSE
══════════════════════════════════════════════════════ #}
{{ form_label(registrationForm.plainPassword.second, 'Confirmer le mot de passe') }}
{{ form_widget(registrationForm.plainPassword.second, {
'attr': {'placeholder': 'Répétez le mot de passe'}
}) }}
{% if registrationForm.plainPassword.vars.errors|length > 0 %}
{{ form_errors(registrationForm.plainPassword) }}
{% endif %}
{# ══════════════════════════════════════════════════════
6. CGV — obligatoire
══════════════════════════════════════════════════════ #}
{% if registrationForm.agreeTerms is defined %}
{{ form_widget(registrationForm.agreeTerms) }}
{% if registrationForm.agreeTerms.vars.errors|length > 0 %}
{{ form_errors(registrationForm.agreeTerms) }}
{% endif %}
{% endif %}
{# ══════════════════════════════════════════════════════
7. OPT-IN MARKETING — facultatif, RGPD Art. 7
══════════════════════════════════════════════════════ #}
{% if registrationForm.optinMarketing is defined %}