\documentclass{scrartcl}
\usepackage{import}
\usepackage[frenchb]{babel}
\usepackage{amssymb}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{verbatim}
\usepackage{ucs}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{multicol}
% \usepackage[hidelinks]{hyperref}
\usepackage[colorlinks = true,
    linkcolor = blue,
    urlcolor  = blue,
    citecolor = blue,
anchorcolor = blue]{hyperref}
\usepackage{cpp}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{pgfplots}
\usepackage{subcaption}
\usepackage{lscape}
\usepackage{gantt}
\lstset{language=matlab}

\setlength{\hoffset}{-18pt}
\setlength{\oddsidemargin}{0pt} % Marge gauche sur pages impaires
\setlength{\evensidemargin}{9pt} % Marge gauche sur pages paires
\setlength{\marginparwidth}{54pt} % Largeur de note dans la marge
\setlength{\textwidth}{481pt} % Largeur de la zone de texte (17cm)
\setlength{\voffset}{-18pt} % Bon pour DOS
\setlength{\marginparsep}{7pt} % Séparation de la marge
\setlength{\topmargin}{0pt} % Pas de marge en haut
\setlength{\headheight}{13pt} % Haut de page
\setlength{\headsep}{10pt} % Entre le haut de page et le texte
\setlength{\footskip}{27pt} % Bas de page + séparation
\setlength{\textheight}{708pt} % Hauteur de la zone de texte (25cm)

\usepackage{titling}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{\headrulewidth}
\usepackage{float}
\newcommand{\hsp}{\hspace{20pt}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\fancyfoot[RO]{\thepage/\pageref*{end}}
\fancyfoot[C]{Mars 2015 --- Septembre 2015}
\fancyfoot[L]{\emph{Rapport de stage}}

\lstset{columns=fixed,basewidth=.5em,}
\newcommand{\hsc}[1]{{\Large\MakeUppercase{#1}}}
\newcommand{\hscs}[1]{{\footnotesize\MakeUppercase{#1}}}

\newcommand{\threejs}{\href{http://threejs.org/}{Three.js}}
\newcommand{\socketio}{\href{http://socket.io/}{Socket.IO}}
\newcommand{\jsdoc}{\href{http://usejsdoc.org/}{JSDoc}}
\newcommand{\closurecompiler}{\href{https://developers.google.com/closure/compiler/}{Closure-Compiler}}
\newcommand{\minko}{\href{https://github.com/aerys/minko/}{Minko}}
\newcommand{\nodejs}{\href{https://nodejs.org/en/}{NodeJs}}

\renewcommand{\include}[1]{\import{./}{#1.tex}}

\newcommand{\namedparagraph}[1]{\paragraph{#1}\mbox{}\\}

\newcommand{\tikzvline}[2]{
    \draw (#1,-6) -- (#1,-5.5);
    \draw (#1,-6) node[below]{#2};
}

\makeatletter
\@addtoreset{section}{part}
\makeatother

\usetikzlibrary{trees}
\usepackage{afterpage}

\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}

\begin{document}

\begin{titlepage}
    \begin{sffamily}
        \begin{center}
            ~\\[0cm]
            \LARGE R\hsc{apport de Stage de 3A}\\[2.5cm]

            % Title
            \HRule \\[0.4cm]
            { \huge \bfseries Prédiction du comportement des utilisateurs d'une
            application interactive en 3D \\[0.4cm] }

            \HRule \\[2.5cm]

            \includegraphics[scale=0.5]{img/icons/n7.png}~\\[1cm]
            \includegraphics[scale=0.4]{img/icons/IRIT.jpg}~\\[0.4cm]
            \includegraphics[scale=0.4]{img/icons/vortex.png}~\\[3cm]


            % Author and supervisor
            \begin{minipage}{0.4\textwidth}
                \begin{flushleft} \large
                    Thomas F\hscs{orgione}\\
                    3IN\\
                \end{flushleft}
            \end{minipage}
            \begin{minipage}{0.4\textwidth}
                \begin{flushright} \large
                    \emph{Tuteur :} M. Vincent C\hscs{harvillat}
                \end{flushright}
            \end{minipage}

            \vfill

            % Bottom of the page
            {\large 16 Mars 2015 --- 25 Septembre 2015}


        \end{center}
    \end{sffamily}
\end{titlepage}

\normalsize

\tableofcontents
\newpage

\include{intro}
\newpage

\include{presentation}
\newpage

\include{gestion}
\newpage

\include{techno}
\newpage

\include{architecture}
\newpage

\include{interface}
\newpage

\include{userstudy}
\newpage

\include{streaming}
\newpage

\include{conclusion}

\label{end}\end{document}
