Reigning world champion Sebastien Ogier will take a 38-second lead into the final day of the Rally of Portugal.