It was only the second time Spain have beaten France in their last 11 meetings, a victory that compensated for an otherwise unfortunate evening for the home side.