\setlength{\parindent}{0cm}
\usepackage[utf8]{inputenc}
\usepackage[frenchb]{babel}
\usepackage[a4paper]{geometry}
\usepackage{amsmath}
\usepackage{amsfonts,dsfont}
\usepackage{mathrsfs}
\usepackage{fourier-orns} %trop des beaux symboles
\usepackage{amsthm}
\usepackage{array}
\usepackage{graphicx}
\usepackage{fancybox}
\usepackage[absolute]{textpos} 
\usepackage{amssymb}
\usepackage{stmaryrd}
\everymath{\displaystyle}
\usepackage{hyperref}

\usepackage{xcolor}
\definecolor{gris}{gray}{0.95}

\usepackage[cyr]{aeguill}
\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage{dsfont}
\usepackage{babel}
\usepackage{titlesec}
\usepackage{listings}
\usepackage{multicol}
\usepackage{enumerate}
\usepackage{relsize}


\usepackage[nocut, leftmargin=0.5cm]{thmbox}

%%%%%%%%%%% mettre un thm sans numéro %%%%%%%%
\makeatletter
\def\newboxtheorem{%
  \@ifstar\thmbox@new@star\newboxtheorem@nostar}%
\def\newboxtheorem@nostar{%
  \@ifnextchar[{\thmbox@newA}{\thmbox@newA[]}}%
\def\thmbox@new@star{%
  \@ifnextchar[{\thmbox@new@star@A}{\thmbox@new@star@A[]}}%
\def\thmbox@new@star@A[#1,#2]#3#4{%
  \expandafter\def\csname#3\endcsname{%
    \setkeys{thmbox}{#1,#2}%
    \@ifnextchar[{\thmbox@star@beginA{#4}{}}{%
      \thmbox@star@begin{#4}{\unskip}{}}}%
  \expandafter\def\csname end#3\endcsname{%
    \endthmbox\smallbreak}}
\def\thmbox@star@beginA#1#2[#3]{%
   \thmbox@star@begin{#1}{#2}{\thmbox@titlestyle{#3}}{}}
\def\thmbox@star@begin#1#2#3{% 
  \medbreak
  \thmbox{\thmbox@headstyle{#1}{\unskip}#3}%
  ~
  \thmbox@bodystyle{#2}{\unskip}\ignorespaces}
\let\newtheorem\newboxtheorem
\makeatother

\makeatletter
\renewcommand\theequation{\thesection.\arabic{equation}}
\@addtoreset{equation}{section}
\makeatother

\pagestyle{plain}
\geometry{a4paper, top=2cm, bottom=2cm, left=2cm, right=2cm}


\newcommand*{\N}{\mathbb{N}}
\newcommand*{\B}{\mathbb{B}}
\newcommand*{\Z}{\mathbb{Z}}
\newcommand*{\Q}{\mathbb{Q}}
\newcommand*{\R}{\mathbb{R}}
\newcommand*{\C}{\mathbb{C}}
\newcommand*{\K}{\mathbb{K}}
\newcommand*{\E}{\mathbb{E}}
\newcommand*{\F}{\mathbb{F}}
\newcommand*{\e}{\text{e}}
\newcommand*{\IP}{\mathbb{P}} %\P existe deja et cest pas ca
\newcommand*{\tr}{\text{tr}}
\newcommand{\ind}{\mathds{1}}
\newcommand{\fnct}[5]{#1: \begin{array}{ccc} #2&\longrightarrow &#3\\ #4&\longmapsto &#5\end{array}}
\newcommand{\fnc}[5]{ \begin{array}{c|ccc} #1: &#2&\longrightarrow &#3\\ &#4&\longmapsto &#5\end{array}}
\newcommand{\irm}{\text{i}}
\newcommand{\drm}{\text{d}}
\newcommand{\Log}{\text{Log}}
\newcommand*{\Acal}{\mathcal{A}} 
\newcommand*{\MnR}{\mathcal M_n(\R)}
\newcommand*{\MnC}{\mathcal M_n(\C)}
\newcommand*{\GLnR}{GL_n(\R)}
\newcommand*{\GLnC}{GL_n(\C)}
\newcommand*{\T}[1]{\text{#1}}
\newcommand*{\SnR}{S_n(\R)}
\newcommand*{\SnppR}{S_n^{++}(\R)}
\newcommand*{\OnR}{\mathcal O_n(\R)}
\newcommand*{\HnC}{\mathcal H_n(\R)}
\newcommand*{\HnppC}{\mathcal H_n^{++}(\R)}
\newcommand*{\UnC}{U_n(\C)}
\newcommand*{\norm}[1]{\left\lVert#1\right\rVert} %norme
\newcommand*{\norminf}[1]{\left\lVert#1\right\rVert_{\infty}} %norme
\newcommand*{\abs}[1]{\left \vert#1 \right \vert} %valeur absolue
\newcommand{\Vect}{\text{Vect}}


\renewcommand{\leq}{\leqslant}
\renewcommand{\geq}{\geqslant}
\renewcommand{\epsilon}{\varepsilon}

%%% sfrac
\makeatletter
\DeclareRobustCommand\sfrac[1]{\@ifnextchar/{\@sfrac{#1}}%
                                            {\@sfrac{#1}/}}
\def\@sfrac#1/#2{\scalebox{1.25}{\leavevmode\kern.1em\raise.5ex
         \hbox{$\m@th\mbox{\fontsize\sf@size\z@
                           \selectfont$#1$}$}\kern-.1em
         /\kern-.15em\lower.25ex
          \hbox{$\m@th\mbox{\fontsize\sf@size\z@
                            \selectfont$#2$}$}}}
\makeatother



%commande pour tout décaler un paragraphe
\newenvironment{pushright}{
\begin{itemize}\item[\hspace{12pt}]}{\end{itemize}
} 

\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{1pt}
\fancyfoot[C]{\textbf{p.\thepage}} 
\fancyfoot[L]{\theauthor}
\fancyfoot[R]{\today}


\usepackage{fancybox}
\usepackage{setspace}



%\newcommand*{\titre2}[1]{\begin{center}
%\begin{huge} \begin{tabular}{|>{\centering\arraybackslash}p{15cm}}
%\textsc{#1}\\
%\hline
%\end{tabular}
%\end{huge}
%\end{center}}




\rmfamily
\DeclareFontShape{T1}{lmr}{b}{sc}{<->ssub*cmr/bx/sc}{}
\DeclareFontShape{T1}{lmr}{bx}{sc}{<->ssub*cmr/bx/sc}{}
\usepackage{boiberne}

