Living in Casablanca/Working in Mohammedia

Hi! I've been offered in internship this summer in Mohammedia but am interested in living in Casablanca and commuting from there, since the internship will likely only be a few days a week at most. Is anyone familiar with the transport system who could give me a rough idea of how to plan that commute? The costs, would it be by bus or train?

I'd really appreciate it! Thanks.

It would be the train ...there's a train every 30 minutes linking Casablanca and Mohammedia !...it's probably 15dhs(1.5 Euros) per trip [not sure] , but you can buy a card instead , it's cheaper with the card if you know you're going to be making this trip very often.

you can't buy a card unless you have a residence permit. :(
i've been living in mohamedia and commuting to casablanca on the train for the last year.
pretty reliable. runs until 10ish in the evening. check out oncf website.
W