\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[left=2cm,right=2cm,bottom=2cm, top=2cm]{geometry}
\usepackage{amsmath}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem{definition}{Definition}{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries\large}{def}
\usepackage{xcolor}
\usepackage{graphicx,import}
\usepackage{fancyhdr}
\usepackage{url}
\usepackage{hyperref}
\usepackage{amsmath}

\usepackage{hyperref}
\hypersetup{
    linktoc=all,     %set to all if you want both sections and subsections linked
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

\pagestyle{fancy}
\fancyhf{}
\lhead{ECE-606 titre}
\rhead{Fall 2022}
\lfoot{Arthur Grisel-Davy}
\rfoot{Page \thepage}

\begin{document}

\thispagestyle{empty}
\begin{center}
    \par\noindent\rule{\textwidth}{2px}\\
    \vspace{0.5cm}
    {\Huge Titre}
    \vspace{0.3cm}
    \par\noindent\rule{\textwidth}{2px}
\end{center}

\tableofcontents

\end{document}

