\usepackage{titlesec} %\providecommand{\DUdocumentsubtitle}[1]{% % \begin{flushright}{\Huge#1}\end{flushright}% %} \providecommand*{\DUdocumentsubtitle}[1]{% \Large \CaviarDreamsFont\selectfont \color{black} \begin{flushright} #1 \end{flushright} } \makeatletter \usepackage{mdframed} \def\@maketitle{% \begin{mdframed}[ topline=false, leftline=false, rightline=false, innertopmargin=1cm, innerbottommargin=1cm ] \textcolor{sidecolor}{\fontsize{1.2cm}{2cm}\EBLigatures\selectfont \@title} \end{mdframed} } \makeatother \newcommand{\periodafter}[1]{#1.} % Titre de niveau 0 \titleformat{\section} {\EBLigatures\selectfont\em\LARGE} {\thesection} {0em} {\textcolor{sidecolor}} [{\vspace{1cm}}] % Titre de niveau 1 \titleformat{\subsection} {\CaviarDreamsFont\selectfont\Large} {\thesection} {0em} {} [] % Titre de niveau 2 \titleformat{\subsubsection} {\large} {\thesubsection} {} {\textcolor{black!69}} % Titre de niveau 3 \titleformat{\subsubsubsection} {\bfseries\normalsize} {\thesubsubsection} {2em} {} {}