Contour is the outline or shape of something. A shoe that fits well along the contours or shape of your foot is a good fit.
Contour comes from the Italian contorno meaning "to draw a line," which is precisely what you are doing when you trace the contour of something. A road that contours a mountain follows along its edge and a mattress that contours to your body, adjusts to your shape. You might buy the kind of shoes that are designed to contour or mold to the shape of your feet over time, in which case you'll have to break them in.