Phase transitions in ferro–antiferromagnetic bilayers with a stepped interface