@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*********************************\
 Déclaration variables de couleurs
\*********************************/
:root {
    --bg-black : #141212;
    --bg-dark-gray : #232222;
    --light-gray : #484747;
    --lightdark-gray : #3a3939;
    --text-color : #E0DFDF;
    --dark-red : #BD2021;
    --light-red : #FB0002;

    --gradient-red : linear-gradient(to right, #FB0002, #BD2021);
    --gradient-gray : linear-gradient(to bottom right, #484747, #232222 75%);
}


/*********************************\
          Style Générale
\*********************************/
body{
    background-color: var(--bg-black);
    display: flex;
    flex-direction: row;
    color: var(--text-color);
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 3em 8em;
}

h1{
    font-size: 28pt;
    margin: 0;
    text-align: left;
}

h2{
    font-size: 24pt;
    margin: 0;
    text-align: left;
}

h3{
    font-size: 18pt;
    margin: 0;
}

h4{
    font-size: 12pt;
    margin: 0;
    text-align: left;
    font-weight: normal;
    text-transform: uppercase;
}

h5{
    font-size: 10pt;
    margin: 0;
    text-align: left;
    font-weight: normal;
}

p{
    font-size: 14pt;
    font-weight: normal;
    text-align: justify;
}

a{
    text-decoration: none;
    color:  var(--text-color);
}

hr{
    width: 80%;
    height: 3px;
    background-image: var(--gradient-gray);
    border: none;
    border-radius: 2px;
}

#ici {
    color: var(--dark-red);
}

/*changer la couleur de border en var(--gradient-gray)*/
img {
    width: 24px;
    height: 24px;
    padding: 8px;
    background-color: var(--bg-dark-gray);
    border: 1px solid var(--gradient-gray); 
}


/*********************************\
               Header
\*********************************/

header{
    position: sticky;
    top: 1em;
    width: 260px;
    height: 580px;
    padding-top: 2em;
    margin-right: 2em;
    margin-left: auto;
}

header > img {
    width: 150px;
    height: 150px;
    border-radius: 25px;
    padding: 0;
}

header, main{
    background-color: var(--bg-dark-gray);
    display: block;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
}

header > section{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    font-weight: normal;
}

header > section article{
    display: flex;
    flex-direction: row;
    margin: 1em 1em 1em 8px;
}

header > section article div{
    margin: 0 5px;
}

header a{
    overflow: hidden;
    text-overflow: ellipsis;
}

img + h3 {
    margin: 1em 0 0.5em;
}

h3 + h4 {
    text-transform: none;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin: 1em 1.5em;
}


/*********************************\
              Nav
\*********************************/

nav {
    float: right;
    margin: -2em -2em -2em 20em;
    border: 1px solid var(--light-gray);
    border-radius: 0 35px;
    background-color: var(--lightdark-gray);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    z-index: 1;
}

nav hr{
    height: 35px;
    width: 3px;
    margin: 0;
}

nav a{
    margin: 1em 2.5em;
}

a h4 {
    font-weight: bold;
}

/*********************************\
              Main
\*********************************/

main{
    padding: 2em;
    max-width: 1300px;
    margin: auto auto auto 0;
}

h1 + hr{
    width: 5em;
    height: 5px;
    border-radius: 3px;
    border: none;
    margin: 0;
    background-image: var(--gradient-red);
}

h1 + hr + p {
    margin-bottom: 2em;
}


/*********************************\
        Présentation Projet
\*********************************/

h2 + div, .projet article {
    background-color: var(--light-gray);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em 1.5em;
    margin: 1em auto;
    border-radius: 20px;
    max-width: 500px;
}

div img {
    height: 100px;
    width: 100px;
    border-radius: 15px;
    margin: 0;
    padding: 0;
}

div p {
    text-align: center;
    margin: 0.5em;
    margin-left: 0.8em;
}

p + a, figure + a, .lienDiplome > a {
    background-color: var(--dark-red);
    font-weight: bold;
    padding: 0.5em;
    position: relative;
    float: right;
    border-radius: 10px 0;
}


/*********************************\
             Diplomes
\*********************************/

.lienDiplome {
    display: inline-block;
}

.lienDiplome > a {
    margin: 0 1em;
    position: inherit;
}

.diplome {
    display: flex;
    flex-direction: column;
    margin: 1em 0;
}

.diplome div {
    display: flex;
    flex-direction: row;
    margin-bottom: 2em;
}

.diplome div:nth-child(1) {
    flex-direction: row-reverse;
}

.diplome img {
    width: 300px;
    height: auto;
    margin-right: 2em;
    transform: none;
}

.diplome div:nth-child(1) img {
    margin: 0 0 0 2em;
}



/*********************************\
             Competences
\*********************************/

.competences {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    
}

.competences > article {
    background-color: var(--light-gray);
    border-radius: 20px;
    width: 300px;
    margin: 2em;
    padding: 1em;
    height: 500px;
    position: relative;
}

.competences p {
    text-align:center;
    position: absolute;
    top: 7em;
}

.competences div {
    position: absolute;
    bottom: 0;
    padding-bottom: 1em;
    left: 10%;
    right: 10%;
}

.competences a {
    display: block;
    background-color: var(--dark-red);
    font-weight: bold;
    padding: 0.5em;
    border-radius: 10px;
    margin-top: 1em;
    text-align: center;
}



/*********************************\
         Projet Perso et Univ
\*********************************/

.projet article {
    margin: 2em auto;
    max-width: 900px;
    height: auto;
    flex-direction: column;
}

figure figure {
    display: flex;
    flex-direction: row;
    margin: 1em;
}

figure img {
    width: 300px;
    height: auto;
    background: none;
    border-radius: 20px;
}

figure img:hover {
    transform: scale(1.2);
}

figure + a {
    margin-top: 2em;
    font-size: large;
}

figure figcaption {
    margin: 1em 0 2em;
}

.fig_row {
    img {
        height: 300px;
        width: auto;
    }
}

.sous_fig_row {
    img {
        height: 200px;
        width: auto;
    }
}