Propagation and reflection of an electromagnetic wave in a hot inhomogeneous plasma