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

% =============== FOND ===============
\newcommand*\fond@jupiter{%
	\fill[left color=\cmdPAS@bg@bgcolor!20, right color=\cmdPAS@bg@bgcolor] (0,-\cv@h@jupiter) rectangle +(.3\paperwidth,-2);
	\fill[pattern=crosshatch dots,pattern color=\cmdPAS@bg@bgcolor!50] (0,-\cv@h@jupiter) rectangle +(.3\paperwidth,-2);
	\draw[color=\cmdPAS@bg@bgcolor,double,very thick] (9,0) arc (120:220:15cm and 23cm);
	\fill[left color=\cmdPAS@bg@bordercolor,right color=white] (0,-\cv@h@jupiter-2.2) rectangle +(\paperwidth,-.3);
	\ifx\cmdPAS@bg@pic\@empty%
	\else
		\ifx\cmdPAS@bg@borderpic\@empty
			\node[below,rectangle,thick,inner sep=1pt] at (2,-\cv@h@jupiter-1) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\else
			\node[below,rectangle,draw=\cmdPAS@bg@borderpic,thick,inner sep=1pt] at (2,-\cv@h@jupiter-1) {\includegraphics[scale=\cmdPAS@bg@scalepic]{\cmdPAS@bg@pic}};
		\fi
	\fi
	\clip (\paperwidth,-\paperheight) -- (\paperwidth,0) -- (9,0) arc (120:220:14.6cm and 22.6cm) -- cycle;
	\fill[left color=\cmdPAS@bg@bgcolor!50, right color=white] (.1\paperwidth,-\cv@h@jupiter) rectangle +(.9\paperwidth,-2);
	\fill[pattern=crosshatch dots,pattern color=\cmdPAS@bg@bgcolor!50] (.1\paperwidth,-\cv@h@jupiter) rectangle +(.9\paperwidth,-2);
	\draw[color=\cmdPAS@bg@bgcolor!10,double,very thick] (9.5,0) arc (120:220:15cm and 23cm);
	\node[above right,color=\cmdPAS@bg@postecolor] (poste) at (.5\textwidth,-\cv@h@jupiter-1.5) {\scshape\cmdPAS@bg@postesize\bfseries\cmdPAS@bg@poste};
	\draw[very thick,color=\cmdPAS@bg@postecolor] ($(poste.south east)+(0,.1)$) -- ($(poste.south west)+(-5,.1)$);
}

%=============== INFO GAUCHE ===============
\newcommand*\infoLeft@jupiter[1]{%
	\AddToShipoutPicture{%
		\put(\LenToUnit{0.5cm},\LenToUnit{.97\paperheight})
			{%
				\rlap{
					\begin{minipage}[t]{0.5\paperwidth}
						#1
					\end{minipage}
				}
			}
	}
}

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

%=============== TITRE ===============
\newcommand*\title@jupiter[1]{%
	\tikzfading[name=fade out,inner color=transparent!0,outer color=transparent!100]
	\begin{tikzpicture}
		\fill[\cmdPAS@title@color] (0,0) circle (1mm);
		\node[right,text=\cmdPAS@title@color] (title) at (0.3,0) {\bfseries\scshape #1};
		\fill[path fading=fade out,\cmdPAS@title@bordercolor] ($(title.south west)+(-.8,0)$) rectangle ($(title.south east)+(0.3,-.1)$);
	\end{tikzpicture}
}

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

%=============== CLEARPAGE ===============
\newcommand*\clearpage@jupiter{%
	\draw[color=\cmdPAS@bg@bgcolor,double,very thick] (9,0) arc (120:220:15cm and 23cm);
	\draw[color=\cmdPAS@bg@bgcolor!10,double,very thick] (9.5,0) arc (120:220:15cm and 23cm);
	
}
\newcommand*\clearmargins@jupiter{%
	\newgeometry{tmargin=2cm,bmargin=1.5cm,lmargin=1.5cm,rmargin=1.5cm}
}
