Phase transitions in the $q$-coloring of random hypergraphs