\usepackage{DUStyle}


\usepackage{fontspec}
\RequirePackage{fontawesome}
% Style pour les avertissements
\createIconifiedDUStyle{warning}{orangeColor}{\faExclamation}{CaviarDreamsFont}
% Style pour les notes
\createIconifiedDUStyle{note}{lightBlueColor}{\faComment}{CaviarDreamsFont}
% Style pour les exercices
\createIconifiedDUStyle{exercice}{greenColor}{\faPencil}{CaviarDreamsFont}

\newenvironment{DUCLASScode}{%
  \begin{mdframed}[topline=false,%
    bottomline=false,%
    rightline=false,%
    leftline=true,%
    linecolor=black,%
    linewidth=3pt,%
    skipabove=0.5cm,%
    backgroundcolor=black!5]
    %\small
}{%
  \end{mdframed}
}


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