\usepackage[french]{babel} % Césure en français
\usepackage[autolanguage]{numprint}

\usepackage[
    type={CC},
    modifier={by-sa},
    version={4.0},
]{doclicense}

\usepackage{wallpaper}
\makeatletter
\ULCornerWallPaper{1}{./styles/pleineconfiance/a4paper_prive/fonds_a4.pdf}
\makeatother

\usepackage{listings}

\usepackage{xcolor}

\lstset{
    basicstyle=\ttfamily,
    numbers=left,
    numberstyle=\footnotesize,
    stepnumber=2,
    numbersep=5pt,
    backgroundcolor=\color{black!10},
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    tabsize=2,
    captionpos=b,
    breaklines=true,
    breakatwhitespace=true,
    breakautoindent=true,
    linewidth=\textwidth
}

% Override default figure placement To be within the flow of the text rather
% than on it's own page.
\usepackage{float}
\makeatletter
\def\fps@figure{H}
\makeatother

\usepackage{fontspec}
  \setmainfont[Path=font/ShortStack/]{ShortStack-Regular.ttf}
  \setsansfont[Path=font/ShortStack/]{ShortStack-Regular.ttf}
  \setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf}

\newcommand{\emoji}[1]{
  {\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}}
}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhf[rh]{\thepage}
\renewcommand\headrulewidth{0pt}
