\documentclass[a4paper,11pt]{report}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{lmodern}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{hyperref}
\usepackage{enumitem}
\graphicspath{{images/}{../images/}}
\usepackage{fancyhdr}
\usepackage[acronym]{glossaries}

\usepackage{multirow}
\usepackage[table,xcdraw,dvipsnames]{xcolor}
\definecolor{light-gray}{gray}{0.90}

\usepackage{mdframed}
\usepackage{listings}
\lstloadlanguages{Ruby}
\lstset{%
  basicstyle=\ttfamily\color{Black},
  commentstyle = \ttfamily\color{OliveGreen},
  keywordstyle=\ttfamily\color{RoyalBlue},
  stringstyle=\color{BrickRed},
  columns=fullflexible,
  xleftmargin=-10pt
}
\surroundwithmdframed[
  hidealllines=true,
  backgroundcolor=light-gray,
  innerleftmargin=15pt,
  innertopmargin=0pt,
  innerbottommargin=0pt,
  leftmargin=1,
  rightmargin=1,
  outerlinewidth=1,
  linecolor=light-gray
]{lstlisting}

\usepackage{realboxes}

% Marges
\usepackage{geometry}
\geometry{
  left=2cm,
  right=2.5cm,
  top=2cm,
  bottom=2cm,
  headheight=35pt,
  includehead,includefoot,
  heightrounded
}

\usepackage{pdfpages}

% En-têtes et pieds de page
\setlength\headheight{26pt}
\pagestyle{fancy}
\fancyhead[L]{\begin{picture}(0,0) \put(0,0){\includegraphics[height=1.5cm, keepaspectratio=true]{heig-vd.png}} \end{picture}}
\fancyhead[R]{Ischer Etienne \\}
\renewcommand\footrulewidth{3pt}
\fancyfoot[LO]{Travail de Bachelor}
\fancyfoot[C]{\today}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}

\include{annexes/glossary}

\begin{document}

\include{annexes/page_de_garde}

% Page blanche
\newpage
\thispagestyle{empty}
\mbox{}

\pagenumbering{roman}
\setcounter{page}{2}
% Page 2 - Préambule (école)
\includepdf[pages=-]{annexes/preambule.pdf}
% Page 3 - Copie du résumé (signée)
\includepdf[pages=-]{annexes/resume.pdf}
% Page 4 - Table des matières
\tableofcontents
\newpage
% Remerciements

\pagenumbering{arabic}
\part{Introduction}
\include{chapitres/introduction/introduction}
\include{chapitres/introduction/network}

\part{Analyses et réalisation}
\include{chapitres/requis/technique}
\include{chapitres/model/validation}

\include{chapitres/model/classes}
\include{chapitres/model/methodes}
\include{chapitres/model/diagram}

\part{Dossier de gestion}
\include{chapitres/gestion/echeancier}
\include{chapitres/gestion/rendezvous}

\part{Synthèse et conclusions}
\include{chapitres/conclusions/resultats}

\appendix

\addcontentsline{toc}{chapter}{Annexes}

% Dernière page - Authentification de l'auteur (modèle école)
\addcontentsline{toc}{section}{Authentification}
% \includepdf[pages=-]{annexes/authentification.pdf}

\addcontentsline{toc}{section}{Glossaire}
\addcontentsline{toc}{section}{Acronymes}
\printglossaries
\newpage

\addcontentsline{toc}{section}{Bibliographie}
\bibliographystyle{unsrt}
\bibliography{bibli}

\addcontentsline{toc}{section}{Table des figures}
\listoffigures

\addcontentsline{toc}{section}{Liste des tableaux}
\listoftables

\printindex

\end{document}
