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

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

\usepackage{xcolor}

\usepackage{listings}

\usepackage{geometry}

\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
}

\usepackage{wallpaper}
\makeatletter
\ULCornerWallPaper{1}{./styles/pleineconfiance/instagram-carre/instagram-1080x1080.pdf}
\makeatother

% 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

\pagenumbering{gobble}
\AddToHook{cmd/section/before}{\clearpage}
\AddToHook{cmd/subsection/before}{\clearpage}

\usepackage{caption}
\DeclareCaptionLabelFormat{nolabel}{}
\captionsetup{labelformat=nolabel,textformat=empty}

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

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