% Couleurs personnalisées
\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0}
\definecolor{redorg}{RGB}{215, 48, 39}
\definecolor{orangeorg}{RGB}{253, 174, 97}

\definecolor{blueind}{RGB}{016, 101, 171}
\definecolor{cyanind}{RGB}{058, 147, 195}
\definecolor{electricblue}{RGB}{142, 196, 222}

\definecolor{greenind}{RGB}{112, 130, 56}

\definecolor{burntorange}{RGB}{179, 021, 041}
\definecolor{goldenyellow}{RGB}{215, 095, 076}
\definecolor{peach}{RGB}{246, 164, 130}

\definecolor{gray}{RGB}{128, 128, 128}

\tikzstyle{every state}=[draw, text=black,scale=0.95,
transform shape]
\tikzstyle{every state}=[draw=none,text=black,scale=0.75,
transform shape]
\tikzset{edge_proba/.style={draw=white, fill=none,
            text=black}}

\tikzstyle{every node}=[fill=blueind]
\node[edge_proba] (pi1) at (1,5.7)
{\textbf{$\pi_{{\color{blueind}\bullet}}$}};
\node[state, draw=black!50] (R11) at (0,5) {\textbf{R11}};
\node[state, draw=black!50] (R12) at (1,5) {\textbf{R12}};
\node[state, draw=black!50] (R13) at (2,5) {\textbf{R13}};

\tikzstyle{every node}=[fill=cyanind]
\node[edge_proba] (pi2) at (6.75,5.7)
{\textbf{$\pi_{{\color{cyanind}\bullet}}$}};
\node[state, draw=black!50] (R21) at (6.25,5)
{\textbf{R21}};
\node[state, draw=black!50] (R22) at (7.25,5)
{\textbf{R22}};

\tikzstyle{every node}=[fill=electricblue]
\node[edge_proba] (pi3) at (10,5.7)
{\textbf{$\pi_{{\color{electricblue}\bullet}}$}};
\node[state, draw=black!50] (R31) at (10,5) {\textbf{R31}};

\tikzstyle{every node}=[fill=burntorange, shape=rectangle]
\node[edge_proba] (rho1) at (0.5,-0.9)
{\textbf{$\rho_{{\color{burntorange}\bullet}}$}};
\tikzstyle{every state}=[draw=none,text=black,scale=0.75,
transform shape, shape=rectangle]
\node[state, draw=black!50] (C11) at (0,0) {\textbf{C11}};
\node[state, draw=black!50] (C12) at (1,0) {\textbf{C12}};
\tikzstyle{every node}=[fill=goldenyellow, shape=rectangle]
\node[edge_proba] (rho2) at (4,-0.9)
{\textbf{$\rho_{{\color{goldenyellow}\bullet}}$}};
\node[state, draw=black!50] (C21) at (3.5,0) {\textbf{C21}};
\node[state, draw=black!50] (C22) at (4.5,0) {\textbf{C22}};
\tikzstyle{every node}=[fill=peach, shape=rectangle]
\node[edge_proba] (rho3) at (10,-0.9)
{\textbf{$\rho_{{\color{peach}\bullet}}$}};
\node[state, draw=black!50] (C31) at (10,0) {\textbf{C31}};

\tikzstyle{every edge}=[-,>=stealth',shorten
>=1pt,auto,draw,line width=1.5pt,draw opacity=0.2]


\path (R11) edge (C12);
\path (R11) edge  (C21);
\path (R11) edge  (C22);

\path (R12) edge [] (C11);
\path (R12) edge  (C12);
\path (R12) edge  (C21);
\path (R12) edge  (C22);

\path (R13) edge [] (C11);
\path (R13) edge  (C12);
\path (R13) edge  (C21);


\path (R11) edge[-,>=stealth',shorten
        >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[midway, left = -0.7cm,
        fill=none] {\contour{white}{$\alpha_{{\color{blueind}\bullet}{\color{burntorange}\bullet}}$}}
(C11);
\path (R13) edge[-,>=stealth',shorten
        >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[midway, right = -0.7cm,
        fill=none] {\contour{white}{$\alpha_{{\color{blueind}\bullet}{\color{goldenyellow}\bullet}}$}}
(C22);


\path (R21) edge  (C22);
\path (R21) edge  (C31);

\path (R22) edge  (C21);
\path (R22) edge  (C22);
\path (R21) edge[-,>=stealth',shorten
        >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[midway,
        right = -0.3cm, fill=none]
    {\contour{white}{$\alpha_{{\color{cyanind}\bullet}{\color{goldenyellow}\bullet}}$}} (C21);

\path (R22) edge[-,>=stealth',shorten
        >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[midway, right = -0.6cm,
        fill=none] {\contour{white}{$\alpha_{{\color{cyanind}\bullet}{\color{peach}\bullet}}$}} (C31);

\path (R31) edge[-,>=stealth',shorten
        >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[midway,
        right=-0.4cm, fill=none]
    {\contour{white}{$\alpha_{{\color{electricblue}\bullet}{\color{peach}\bullet}}$}} (C31);