Hello,
You can't mix both Word and CSS styles using the same replace method. You need to do it using CSS styles or Word styles.
To mix both styles, you need to change the library, please check this post:
http://www.phpdocx.com/en/forum/default/topic/1115
That explains how to do that.
Regards.