{% extends "base.html" %} {% block title %}Tableau de bord — OpenCare{% endblock %} {% block content %}

Bonjour {% if profile.first_name %}{{ profile.first_name }}{% else %}!{% endif %}

{{ total }} recommandations personnalisées pour votre profil

{{ (profile.first_name or 'U')[0].upper() }}
{{ profile.first_name or '' }} {{ profile.last_name or '' }}
{{ current_user.email }}
{% if profile.age %} {{ profile.age }} ans {% endif %} {% if profile.bmi %} IMC {{ profile.bmi }} — {{ profile.bmi_category[0] }} {% endif %} {% if profile.blood_type %} Groupe {{ profile.blood_type }} {% endif %} {% if profile.diet_type %} {% set diet_icons = {'omnivore':'🥩','flexitarian':'🥗','vegetarian':'🌿','vegan':'🌱','keto':'🥑','paleo':'🍖','mediterranean':'🫒'} %} {{ diet_icons.get(profile.diet_type, '🍽️') }} {{ {'omnivore':'Omnivore','flexitarian':'Flexitarien','vegetarian':'Végétarien','vegan':'Vegan','keto':'Keto','paleo':'Paléo','mediterranean':'Méditerranéen'}.get(profile.diet_type, profile.diet_type) }} {% endif %} {% if profile.activity_level %} {% set act_icons = {'sedentary':'🪑','light':'🚶','moderate':'🚴','intense':'🏋️','athlete':'🏆'} %} {{ act_icons.get(profile.activity_level, '🏃') }} {{ {'sedentary':'Sédentaire','light':'Actif léger','moderate':'Actif modéré','intense':'Très actif','athlete':'Athlète'}.get(profile.activity_level, profile.activity_level) }} {% endif %}
Profil complété {{ completeness }}%
{% if completeness < 70 %} Compléter pour plus de recommandations {% endif %}
Niveau de preuve : A — Fort (méta-analyse / RCT) B — Modéré (observationnel) C — Expert consensus
{% for domain_key, (domain_label, domain_icon), recs in ordered_domains %}
{{ domain_icon }}

{{ domain_label }}

{{ recs|length }} recommandation{{ 's' if recs|length > 1 else '' }}
{% for rec in recs %}
{{ rec.icon }} {{ rec.evidence_level }}
{{ rec.title }}

{{ rec.summary }}

{% for tag in rec.tags[:3] %} {{ tag }} {% endfor %}
{% endfor %}
{% endfor %} {% if not ordered_domains %}
🔍

Aucune recommandation pour l'instant

Complétez votre profil de santé pour recevoir des conseils personnalisés.

Compléter mon profil
{% endif %}
{% endblock %}