Contact mechanics with a multiscale approach