Normal and lateral critical Casimir forces between colloids and patterned substrates