% Packages
\RequirePackage[left=4cm, right=3cm, top=2cm, bottom=3cm]{geometry}
\RequirePackage{fontawesome}
\RequirePackage{xcolor}
\usepackage{float}
\usepackage[french]{babel}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{array}
\usepackage{pdfpages}
\usepackage{titlesec}
\usepackage{soul}
\usepackage[
    labelfont={small,bf,color=LightGrey},
    textfont={small,color=SlateGrey}
]{caption}
\usepackage{listings}
\lstset{
    basicstyle=\ttfamily\footnotesize,
    breaklines=true
}

\renewcommand{\FrenchLabelItem}{\textbullet}
\pagestyle{fancy}

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\arraystretch}{1.4}
% OPTIONS

% Captions
\captionsetup[table]{name=tableau}
\captionsetup[figure]{name=figure}

% Graphx
\graphicspath{ {./images/} }

% Colors and fonts
\definecolor{ElectricMagenta}{HTML}{F268B3}
\definecolor{ElectricGreen}{HTML}{1CD180}
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{CCCCCC}
\definecolor{UltraLightGrey}{HTML}{EFEFEF}
\definecolor{Black}{HTML}{000000}
\setulcolor{ElectricMagenta}

% Fonts
\setmainfont{Lato}
\setmonofont{Fira Code}
\newfontfamily\quotefont{Linux Libertine O}
\newcommand*\openquote{\makebox(15,-30){\scalebox{3}{\flqq{}}}}
\newcommand*\closequote{\makebox(30,0){\scalebox{3}{\frqq{}}}}

% Quote
\AtBeginEnvironment{quote}{\color{LightGrey}\large\quotefont\openquote\color{SlateGrey}}
\AtEndEnvironment{quote}{\color{LightGrey}\closequote}

% figures
\AtEndEnvironment{figure}{%
    \color{ElectricMagenta}\noindent\rule{\textwidth}{0.4pt}
}
\AtEndEnvironment{table}{%
    \color{ElectricMagenta}\noindent\rule{\textwidth}{0.4pt}
}
\AfterEndEnvironment{lstlisting}{%
    {\color{ElectricMagenta}\noindent\rule{\textwidth}{0.4pt}}
}

% Code
\lstset{
    backgroundcolor=\color{UltraLightGrey},
    captionpos=b,
    numbers=left,
    xleftmargin=5pt,
    xrightmargin=5pt,
    frame=single,
    framesep=5pt,
    rulecolor=\color{UltraLightGrey},
    keywordstyle=\color[rgb]{0,0,1},
    commentstyle=\color[rgb]{0.133,0.545,0.133},
    stringstyle=\color[rgb]{0.627,0.126,0.941},
}
% Hyperlink
\usepackage[hidelinks]{hyperref}
\newcommand{\link}[2]{
    \href{#1}{\ul{{\color{ElectricGreen}\faLink} #2}}
}

% Paragraph ...
\parindent=0em
\renewcommand{\baselinestretch}{1.2}


\fancyhead[LE]{\color{SlateGrey}Yorick Barbanneau}
\fancyhead[RO]{\color{SlateGrey}Centres d'animation de Bordeaux}
\fancyhead[LO]{}
\fancyhead[RE]{}
