Use this link and you are forwarded to the right place: rail.shop/oncf
Please activate AdobeFlash as ONCF has a advertising banner above the fields where to select the connection. If Flash is not active, you can not remove the banner and can not book. Not that friendly, but ...
Have a nice trip - and if you like, post some photos or a short text about your experiences. They are always welcome!