Transition temperature of a superconductor-ferromagnet superlattice