\def\modele@venus{venus}
\def\cv@h@venus{4}

% =============== FOND ===============
\newcommand*\fond@venus{%
	% dégradé haut
	\fill[top color=\cmdPAS@bg@bgcolor,bottom color=white] (0,0) rectangle +(\paperwidth,-\cv@h@venus);
	% dégradé bas
	\fill[bottom color=\cmdPAS@bg@bgcolor,top color=white] (0,-\paperheight*.97) rectangle +(\paperwidth,-1);
	% Rayures haut
	\foreach \x in {0.4,0.8,...,23}
	{
		\draw[white,very thick] (\x,0) -- (\x-.5,-\cv@h@venus+1);
		\draw[white,very thick] (\x,-28) -- (\x+.5,-27);
	}
	\fill[left color=\cmdPAS@bg@bordercolor,right color=white] (0,-\cv@h@venus) rectangle +(\paperwidth,-.25);
	\fill[right color=\cmdPAS@bg@bgcolor,left color=white] (0,-\cv@h@venus-.25) rectangle +(\paperwidth,-1);
	\ifx\cmdPAS@bg@pic\@empty%
	\else
		\ifx\cmdPAS@bg@borderpic\@empty
			\node[above] (photo) at (2,-\cv@h@venus-1) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\else
			\node[above,draw=\cmdPAS@bg@borderpic,very thick,inner sep=1pt] at (2,-1-\cv@h@venus) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\fi
	\fi
	\node[color=\cmdPAS@bg@postecolor,left] at (.98\paperwidth,-.75-\cv@h@venus) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste};
}

%=============== INFO GAUCHE ===============
\newcommand*\infoLeft@venus[1]{%
	\AddToShipoutPicture{%
		\ifx\cmdPAS@bg@pic\empty
			\put(\LenToUnit{1cm},\LenToUnit{.97\paperheight})
			{%
				\rlap{
					\begin{minipage}[t]{0.5\paperwidth}
						#1
					\end{minipage}
				}
			}
		\else
			\put(\LenToUnit{4.5cm},\LenToUnit{.97\paperheight})
			{%
				\rlap{
					\begin{minipage}[t]{0.5\paperwidth}
						#1
					\end{minipage}
				}
			}
		\fi
	}
}

%=============== INFO DROITE ===============
\newcommand*\infoRight@venus[1]{%
	\AddToShipoutPicture{%
		\put(\LenToUnit{.97\paperwidth},\LenToUnit{.97\paperheight}){%
			\llap{%
			\begin{minipage}[t]{.5\paperwidth}
				\begin{flushright}#1\end{flushright}
			\end{minipage}
			}
		}
	}
}

%=============== TITRE ===============
\newcommand*\title@venus[1]{%
	\noindent
	\begin{tikzpicture}
		\fill[\cmdPAS@title@color] (0,.1) rectangle+(.2,-.2);
		\draw[\cmdPAS@title@bordercolor,very thick] (.2,-.15) -- (-2,-.15);
		\node[right,text=\cmdPAS@title@color] at (.4,0) {\scshape\bfseries #1};
	\end{tikzpicture}
}

%=============== MARGES ===============
\newcommand*\margins@venus{%
\FPeval\result{clip(\cv@h@venus+2)}
\newgeometry{tmargin=\result cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm}
}

%=============== CLEARPAGE ===============
\newcommand*\clearpage@venus{%
	\fill[bottom color=\cmdPAS@bg@bgcolor,top color=white] (0,-\paperheight*.97) rectangle +(\paperwidth,-1);
	\foreach \x in {0.4,0.8,...,23}
	{
		\draw[white,very thick] (\x,-28) -- (\x+.5,-27);
	}
}
\newcommand*\clearmargins@venus{%
	\newgeometry{tmargin=2cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm}
}
