\usepackage{titlesec} %% mise en page du titre %\let\oldtitle\title %\renewcommand{\title}[1]{\oldtitle {titre}} %\makeatletter %\def\maketitle{% %%\thispagestyle{empty} %si on veut que la premiere page n'ai pas d'en-tete %% \vspace*{\fill} %%\begin{center} %% \fcolorbox{grisfonce}{fondtitre}{ %% \begin{minipage}{0.97\textwidth} %% \vspace*{0.8cm} %% \begin{center} %% \begin{Huge}\sffamily\color{blanc} %% \@title %% \end{Huge} %% \vfill %% \end{center} %% \begin{flushright}\sffamily\color{blanc} %%% \@date \\ %si pas d'en-tete premiere page, alors mettre date ici %% \@author %% \end{flushright} %% \end{minipage} %% } %%\end{center} %%\vspace*{\fill} %} %\makeatother \newcommand{\periodafter}[1]{#1.} \titleformat{\section}[display]% shape {\huge\bfseries}% format { \makebox[0pt][l]{% \raisebox{-66pt}[100pt][0pt]{% \textcolor{black!30}{\fontsize{136pt}{136pt}\selectfont\thesection}% } } } {0pt} {\CaviarDreamsFont\Huge\bfseries} \newlength\marginSecLen \setlength\marginSecLen{\dimexpr\oddsidemargin+0.8in+\hoffset\relax} % Titre de niveau 2 \titleformat{\subsection}[block] {\bfseries\Large} {\llap{\hspace*{-\marginSecLen}\huge\textcolor{redColor}\thesubsection\hfill}} {0em} {} % {\huge\textcolor{redColor}\thesubsection} % {5pt} % {} % Titre de niveau 3 \titleformat{\subsubsection} {\CaviarDreamsFont\selectfont\bfseries\large} {\thesubsubsection} {2em} {} {}