French far-right makes gains in elections