While there are some differences in practice amongst Sephardic communities, if your custom is to recite the bracha before immersing, you should wash netilat yadayim, recite the bracha on the tevilah, and then immerse. We are not familiar with any specific Moroccan practices regarding tevilah.