Refactor architecture de l'application