\fancypagestyle{main}{% 
	\fancyhf{}%
  	\fancyfoot[RO]{% pages impaires
		\ClearShipoutPicture
		\vskip0.1pt  	
		\begin{tikzpicture}
			\node[rounded corners=3pt,fill=titrecolor,inner ysep=5pt, inner xsep=2ex,text=main] (numpage) {\ECFWebster\thepage};
			\drawshadow{numpage}{titrecolor}
		\end{tikzpicture}
		\pagecolor{main}
  	}
  	\fancyfoot[LE]{% pages paires	
  		\ClearShipoutPicture
  		\vskip0.1pt
  		\begin{tikzpicture}
			\node[rounded corners=3pt,fill=titrecolor,inner ysep=5pt, inner xsep=2ex,text=main] (numpage) {\ECFWebster\thepage};
			\drawshadow{numpage}{titrecolor}
  		\end{tikzpicture}
		\pagecolor{main}
  	}
}