\begin{titlepage}
\setcounter{page}{0}
% Or set 0 to 270
\newlength{\siderulewidth}\setlength{\siderulewidth}{25pt}
\definecolor{siderulecolor}{RGB}{205,85,85}

\AddToShipoutPictureBG*{% %%Only to the first page => * 
  \AtPageCenter{%
	\rotatebox{130}{\colorbox{siderulecolor}{\makebox[\dimexpr900-20\fboxsep]{%
	  \Large
	  \rule[5\baselineskip]{0pt}{-3\baselineskip}% strut
	  \textcolor{white}{}%
	}}}
  }
}

\AddToShipoutPictureBG*{%
  \AtTextLowerCenter{\makebox[\textwidth][r]{%
			% \includegraphics[width=2cm,height=2cm,keepaspectratio]{logo.png}
			\\
			\includegraphics[scale=.5]{./img/logomarg_op.png} 
		}
	
	}

}


\newcommand{\HRulefill}{\noindent\makebox[\linewidth]{\rule{\paperwidth}{.1}}} % Defines a new command for the horizontal lines, change thickness here
\newcommand{\HRule}{\rule{\linewidth}{0.4pt}} % Defines a new command for the horizontal lines, change thickness here

\center % Center everything on the page
 
%----------------------------------------------------------------------------------------
%	HEADING SECTIONS
%----------------------------------------------------------------------------------------
\VRulefill
\textsc{\LARGE \uppercase{\doctitle}}\\[1.5cm] % Name of your university/college
% \HRulefill \\[5cm]
\ \\[5cm]
\textsc{ \huge \LARGE Magistère Banque Finance - I} \\[0.4cm] % Title of your document
\textsc{\Large Université Paris II}\\[0.2cm] % Major heading such as course name
\textsc{\large Panthéon-Assas}\\[0.2cm] % Minor heading such as course title

 
%----------------------------------------------------------------------------------------
%	AUTHOR SECTION
%----------------------------------------------------------------------------------------

\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Auteur :}\\
\docauthname\ \textsc{\docauthsurname} % Your name
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Professeur:} \\
\docprofname\ \textsc{\docprofsurname} % Supervisor's Name
\end{flushright}
\end{minipage}\\[5.5cm]

% If you don't want a supervisor, uncomment the two lines below and remove the section above
%\Large \emph{Author:}\\
%John \textsc{Smith}\\[3cm] % Your name

%----------------------------------------------------------------------------------------
%	DATE SECTION
%----------------------------------------------------------------------------------------

% {\large \today}\\[.5cm] % Date, change the \today to a set date if you want to be precise
%----------------------------------------------------------------------------------------
%	LOGO SECTION
%----------------------------------------------------------------------------------------


% \includegraphics[scale=0.10]{logo.png} % Include a department/university logo - this will require the graphicx package
\vspace*{\fill}
%----------------------------------------------------------------------------------------

% \vfill % Fill the rest of the page with whitespace

\end{titlepage}
