I need help calculating this limit:

$\underset{x\to \pi}{lim}\frac{\mathrm{cos}2x+2(\pi -x)\mathrm{sin}x-1}{{(\mathrm{cos}2x+\mathrm{cos}x)}^{2}}$

I tried to use L'Hospital's rule, but didn't get any result. Can you help me please?

I tried to use L'Hospital's rule, but didn't get any result. Can you help me please?