Voici le code.
Code : Tout sélectionner
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[left=1.27cm,right=1.27cm,top=1.3cm,bottom=1.3cm]{geometry}
% Required packages
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
calc,
chains,
decorations.pathreplacing,%
calligraphy,% had to be after decorations.pathreplacing
positioning,
shapes}
\definecolor{blue1}{RGB}{84,141,212}
\definecolor{blue2}{RGB}{142,180,227}
\definecolor{yellow1}{RGB}{255,229,153}
\definecolor{orange1}{RGB}{255,153,0}
\definecolor{gray1}{RGB}{127,127,127}
\definecolor{gray2}{RGB}{217,217,217}
\begin{document}
\begin{center}\footnotesize
\begin{tikzpicture}[
node distance = 4mm and 12mm,
start chain = A going below,
arr/.style = {-{Triangle[length=3mm, width=6mm]}, line width= 2mm,
draw=blue2, shorten > = 1mm, shorten <=1mm},
BC/.style args = {#1/#2/#3}{
decorate,
decoration={calligraphic brace, amplitude=6pt,
pre =moveto, pre length=1pt,
post=moveto, post length=1pt,
raise=#1,
#2},% for mirroring of brace
very thick,
pen colour={#3} },
N/.style = {draw, semithick, rounded corners,
fill=#1,draw=blue2,
minimum height=8mm, text width=80mm,
align=flush center},
N1/.style = {draw, semithick, rounded corners,
fill=#1,
minimum height=8mm, text width=50mm,
align=flush center},
N2/.style={draw,text width=3cm ,text centered,
minimum width=4cm,fill=yellow1,tape, tape bend top=none,tape bend height=1.1mm, tape bend bottom=in and out,
minimum height=1.1cm} ,
N3/.style = {diamond, minimum width=6.5cm, minimum height=2mm, text centered, draw=blue2, fill=blue2},
N5/.style = {draw=blue2, text centered, ellipse,text width= 40mm, fill=blue2, node distance=8cm, minimum height=15mm},
N4/.style = {rectangle, text width=4cm, minimum height=1cm, text centered ,fill=gray2}]
% main branch
\begin{scope}[nodes={on chain=A}]
\node [N1=blue1,draw=blue1] {ETAPES}; % A-1
\node [N=blue2,below=2cm of A-1] {Event recording}; % A-2
\node [N=blue2] {Implementation of a correction if possible};
\node [N=blue2] {Event qualification};
\node [N3=blue2] {Treatment necessary ? };
\node [N=blue2] {Research of the causes and hierarchization };
\node [N=blue2] {Definition of the action plan and responsibilities};
\node [N=blue2] {Decision and implementation of reporting to authorities };
\node [N3=blue2,text width= 30mm] {Implementation and effectiveness of the actions};
\node [N5=blue2] {Event closing};
\end{scope}
% nodes on the left side of the main branch
\node [N1=gray1,draw=gray1,
left=19 mm of A-1] (B-1) {ACTEURS};
\node [N4=gray2,draw=gray2,
left=of A-2] (B-2) {Collaborator};
\coordinate (aux1) at ($(A-2.south west)!0.5!(A-4.north west)$);
\draw[BC=4mm/mirror/gray2] (A-2.west) -- (A-4.west);
\node [N4=gray2,left=of aux1,draw=gray2 ,text width=3.5cm] (B-4) {Support team (\+RA\&QM)};
\coordinate (aux2) at ($(A-6.south west)!0.5!(A-7.north west)$);
\draw[BC=4mm/mirror/gray2] (A-6.west) -- (A-7.west);
\node [N4=gray2,draw=gray2,
left=of aux2] (B-6) {Assigned team + RA\&QM};
\node [N4=gray2,draw=gray2,
left=of A-8] (B-7) {COO };
\node [N4=gray2,draw=gray2,
left=of A-9] (B-8) {RA\&QM};
\node [N4=gray2,draw=gray2,
left=of A-10] (B-9) {Assigned team + RA\&QM };
% nodes on the right side of thr main branch
\begin{scope}[N/.append style={text width=44mm},
N/.default=yellow1]
\node[N1=yellow1,draw=yellow1, right=19mm of A-1] (C-1) {DOCUMENTS};
\node[N2,draw=yellow1, right=of A-2] (C-2) {FOR\_01\_M02 };
\node[N2,draw=yellow1, right=of A-4] (C-3) {FOR\_01\_M02 };
\node[N1=yellow1,draw=yellow1, right=18mm of A-1] (C-3) {DOCUMENTS};
\node[N2,draw=yellow1, right=of A-6] (C-4) {FOR\_01\_M02};
\node[N2,draw=yellow1, right=of A-7] (C-5) {FOR\_01\_M02 };
\node[N2,draw=yellow1, right=of A-8] (C-6) {FOR\_01\_M02 };
\node[draw=blue2, text centered, ellipse,text width=30mm, fill=blue2, node distance=2cm, minimum height=18mm,right=1cm of A-5] (C-7) {Filing};
\end{scope}
%arrows
\draw[black,ultra thick,-latex] (A-9) - ++(4.5,0) |- (A-6) node[near start,anchor=west]{No};
\draw[black,ultra thick,-latex] (A-5) -- (C-7) node[near start,anchor=south] {No};
\draw[black,ultra thick,-latex] (A-5) -- (A-6) node[near start,anchor=west] {yes};
\draw[black,ultra thick,-latex] (A-9) -- (A-10) node[near start,anchor=west] {yes};
\draw[black,ultra thick,-latex] (A-2) -- (A-3);
\draw[black,ultra thick,-latex] (A-3) -- (A-4);
\draw[black,ultra thick,-latex] (A-4) -- (A-5);
\draw[black,ultra thick,-latex] (A-6) -- (A-7);
\draw[black,ultra thick,-latex] (A-7) -- (A-8);
\draw[black,ultra thick,-latex] (A-8) -- (A-9);
\end{tikzpicture}
\end{center}
\end{document}