France benefited from Croatia conceding a free-kick in the defence half for the first goal, while the second goal came via a penalty.