PARIS—Vivendi SA said Thursday it has sold about half of its remaining stake in videogame maker Activision Blizzard Inc. as the group continues to pile up cash ahead of a leadership change next month, capping a shift into a media and content company.

Vivendi has agreed to sell 41.5 million shares, or 5.8%, in U.S.-based Activision for around $850 million.