Macfarlanes wins work on £1bn French takeover