\usepackage{eso-pic}
\usetikzlibrary{calc}

\newlength{\notesep}

\newlength{\sideBottomMargin}
\setlength{\sideBottomMargin}{0.2cm}

\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist 

% Une commande dédiée pour les notes de marge
\setlength{\columnsep}{0.5cm}
\columnratio{0.29}

\ifdefinedcolor{backsidecolor}{%
  \backgroundcolor{c[0]}{backsidecolor}
}{}

\newcommand{\DUsidebar}[1]{%
	\switchcolumn[0]
	\begin{changemargin}{0.7cm}{0.7cm}
        \LibertineFont\selectfont
        \ifdefinedcolor{textsidecolor}{\color{textsidecolor}}{}
	#1
	\end{changemargin}
        \vspace{\notesep}
	\switchcolumn
}
\usepackage[many]{tcolorbox}

\newcommand{\DUtitletitle}[1]{%
    \begin{tcolorbox}[colback=sidecolor, sharp corners]%
    \begin{center}%
        \begin{CaviarDreamsBoldFont}%
        {\textbf\selectfont\color{white}{\scriptsize\uppercase{#1}}}%
        \end{CaviarDreamsBoldFont}%
  \end{center}
    \end{tcolorbox}
 }


\AtEndDocument{
  \flushpage
  \end{paracol}
}
\let\oldtitle\maketitle
\renewcommand{\maketitle}{{\oldtitle}\begin{paracol}{2}}
