Integral constraints in multiple scales problems with a slowly varying microstructure. (European Journal of Applied Mathematics, 2026)