FC Lausanne-Sport
Margairaz was born in Rances. After beginning professionally with FC Lausanne-Sport and Neuchâtel Xamax, he was part of the 2005–06 and 2006–07 Super League-winning teams of Fussballclub Zürich.