
%\RequirePackage[utf8]{inputenc} % attention a l'UTF8, on peut choisir latin1...
%\RequirePackage[a4paper, top=3 cm, bottom=3 cm, left=2 cm, right=2 cm]{geometry}
\usepackage[a4paper, top=1.5cm, bottom=1.5cm, outer=5cm, inner=2cm, heightrounded, marginparwidth=3.5cm, marginparsep=0.9cm]{geometry}
%\renewcommand{\baselinestretch}{1.0}

\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Linux Libertine O}


\newfontfamily\LibertineFont[Mapping=tex-text]{Linux Libertine O}
\newfontfamily\CaviarDreamsFont[Path=resources/, Mapping=tex-text]{CaviarDreams}
\newfontfamily\DejaVuSansMono{DejaVu Sans Mono}

%\usepackage{lmodern}
%\setmonofont{Latin Modern Mono Light}

%\RequirePackage[linecolor=blueColor]{DUsidebar}
\RequirePackage{DUsidebar}

\definecolor{darkGray}{gray}{0.3}

%\newcommand{\DUrolecode}[1]{\colorBox{black}{#1}}

\newcommand{\DUtitletitle}[1]{%
    {\begin{flushleft}\normalsize\CaviarDreamsFont{#1}\end{flushleft}}
}

\usepackage{longtable}
\usepackage{tabu}
% alternate rowcolors for all long-tables
\newenvironment{mytable}[2][c]%
{\longtabu to \linewidth [#1]{#2}\tableHeaderStyle}%
{\endlongtabu}


% This red commes from a triad on the blue
\colorlet{tableHeader}{redColor}
\definecolor{tableLineOne}{RGB}{245, 245, 245}
\definecolor{tableLineTwo}{RGB}{224, 224, 224}

\newcommand{\tableHeaderStyle}{
    \rowfont{\leavevmode\color{white}\bfseries}
    \rowcolor{tableHeader}
}

\taburowcolors[2] 2{tableLineOne .. tableLineTwo}
\tabulinesep = ^4mm_3mm
\everyrow{\tabucline[.4mm  white]{}}

\usepackage{etoolbox}
\patchcmd{\quote}{\rightmargin}{\leftmargin 0em \rightmargin}{}{}
