Nicolas Sarkozy's lawyer and two magistrates were detained in custody on Monday for questioning in relation to a corruption probe embroiling the former president of France, judicial sources told AFP.