@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200&family=Roboto:ital,wght@0,300;0,700;1,300&display=swap');
@font-face {
    font-family: "ApfelGrotezk-Fett";
    src: url("webfont/ApfelGrotezk-Fett.woff2") format("woff2"),
         url("webfont/ApfelGrotezk-Fett.woff") format("woff");
}

/*-^Import^-*/


/*--Reset--*/
*:where(:not(iframe, canvas, img, svg, video):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}
ol, ul, menu {
    list-style: none;
}
img {
    max-width: 100%;
    line-height: 0;
}
textarea {
    white-space: revert;
}
::-webkit-input-placeholder {
    color: unset;
}
::-moz-placeholder {
    color: unset;
}
:-ms-input-placeholder {
    color: unset;
}
::-ms-input-placeholder {
    color: unset;
}
::placeholder {
    color: unset;
}
body{
    margin: 0;
    padding: 0;
}

/*--Stylisation--*/
html {
    font-size: 62,5%; /* = font-size: 10px = 1rem */
}
body {
    background-color: #323232;
}
#profil {
    color: hsl(358, 99%, 71%);
    stroke: #fe6d73;
}
#experiences {
    color: #0fd49a;
    stroke: #0fd49a;
}
#formation {
    color: #f1cb85;
    stroke: #f1cb85;
}
#outils {
    color: #0fc3d4;
}
h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}
#experiences h2{
    font-size: 1.54rem;
}
#formation h2 {
    font-size: 1.4rem;
}
.date {
    font-family: "Roboto Slab", serif;
    font-weight: 200;
    font-variant-caps: small-caps;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.sujet {
    font-family: "ApfelGrotezk-Fett", 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.details {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
    padding-bottom: .2rem;
}
div > .details:nth-child(4) {
    padding-left: 1rem;
}

h2 {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
.title {
    -webkit-transform: translateX(-40%);
    transform: translateX(-40%);
}
a:hover {
    cursor: pointer;
}
.bouton1, .bouton2 {
    display: block;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    padding: .5rem .7rem .55rem .7rem;
    border-radius: .3rem;
    border: solid 3px;
}
.bouton2 {
    transition: all 0.3s ease-in-out;
}
.bouton1, .bouton2:hover {
    background-color: #fe6d73;
    color: #323232;
    border-color: #fe6d73;
    transition: all 0.3s ease-in-out;
}
.bouton1:hover {
    background-color: #323232;
    color: #fe6d73;
    border-color: #fe6d73;
    transition: all 0.3s ease-in-out;
}
.title {
    position: relative;
    width: 10rem;
    height: 10rem;
}
.fleche {
    fill: none;
    stroke-width: 8;
    stroke-miterlimit: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 43px;
    z-index: -1;
}
section {
    margin-top: 4rem;
}
article {
    display: flex;
    width: 60%;
    margin: auto;
}
article .featured{
    flex-grow: 1;
    margin-left: 1rem;
    display: flex;
    align-items: center;
}
aside {
    border-bottom: 2px solid;
    margin-top: 2rem;
}
aside > div {
    display: flex;
    width: 60%;
    margin: auto;
}
aside > div > div {
    flex: 1;
    padding: 0 1rem 1rem 1rem;
    border-right: 2px solid;
}
aside > div > div:last-child {
    border-right: none;
    padding-right: 0;
}


/*--Cas particuliers--*/
#profil {
    margin-top: 0;
    padding-top: 4rem;
    padding-bottom: 1rem;
}
#profil aside, #profil div {
    border: none;
    padding: 0;
    margin: 0;
}
#profil aside > div {
    width: 100%;
    justify-content: center;
    align-items: center;
}
#profil aside > div > div, #profil img {
    height: 15rem;
}
#profil aside > div > div {
    position: relative;
}
div#coordonnees {
    margin-left: 1rem;
}
#profil .fa-brands:hover {
    color: hsl(358, 99%, 71%);
    transition: color .2s ease-in-out;
}
#profil .fa-brands:hover {
    color: hsl(358, 99%, 81%);
}
#profil img {
    position: absolute;
    right: 0;
    top: 0;
    border: 4px solid;
    border-radius: .5rem;
}


#experiences .fleche {
    -webkit-transform: translate(-50%, -50%) rotate(90deg);
    transform: translate(-50%, -50%) rotate(90deg);
}


.featured .date {
    margin: 0 0.2rem 0 0;
}
.featured .sujet {
    margin: 0 0.2rem 0 0;
}
.featured .details {
    padding: 0.1rem 0 0 0;
}


#outils aside div, #outils aside {
    border: none;
}
#outils h2 {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    align-self: flex-start;
    border: 4px solid;
    padding: .1rem .4rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
}
#outils aside > div {
    align-items: flex-end;
}
#outils .details{
    padding-left: .7rem;
}
#outils {
    margin-bottom: 0;
    padding-bottom: 4rem;
}


/*--Animations--*/
@-webkit-keyframes rotationTitre {
    from { transform: rotate(1turn); }
    to   { transform: rotate(0turn); }
}
@keyframes rotationTitre {
    from { transform: rotate(1turn); }
    to   { transform: rotate(0turn); }
}
.circulaire{
    -webkit-animation: 17s linear rotationTitre infinite;
            animation: 17s linear rotationTitre infinite;
}
.circulaire:hover {
    -webkit-animation-play-state: paused;
            animation-play-state: paused;
}


/*--Breakpoints--*/
/*------CV-------*/
@media screen and (max-width: 1250px) {
    article, aside > div {
        width: 80%;
    }
}
@media screen and (max-width: 930px) {
    article, aside > div {
        width: 100%;
    }
    .title {
        -webkit-transform: translateX(+10%);
        transform: translateX(+10%);
    }
    #outils h2 {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }
    .featured {
        flex-direction: column;
        justify-content: center;
    }
    .featured *{
        align-self: flex-start;
    }
    .featured > .date, .featured > .sujet, .featured > .details {
        margin-left: 2rem;
        padding-left: 2rem;
        padding-bottom: .5rem;
    }
}
    /*--Mobile--*/
@media screen and (max-width: 520px) {
    aside {
        margin-left: 2rem;
        margin-right: 2rem;
        border-bottom: none;
        border-left: 2px solid;
    }
    aside > div {
        flex-direction: column;
    }
    aside > div > div {
        margin-top: 1rem;
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid;
    }
    aside > div > div:last-child {
        border-bottom: none;
    }

    #profil div > div {
        width: 100%;
    }
    #profil img {
        width: 90%;
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        -o-object-fit: cover;
           object-fit: cover;
        position: static;
        -webkit-transform: translateY(-10%);
        transform: translateY(-10%);
        margin:0 3.5%;
    }
    #profil #coordonnees {
        margin: 0;
    }
    #profil #coordonnees > * {
        text-align: center ;
    }
    .bouton1, .bouton2 {
        margin: auto;
    }
    p.date > a.bouton1, p.date > a.bouton2 {
        font-size: 1.3rem;;
    }
    #formation .fleche {
        -webkit-transform: translate(-50%, -50%) rotate(90deg);
        transform: translate(-50%, -50%) rotate(90deg);
    }
    #formation article {
        flex-direction: column;
    }
    .featured {
        padding: 2rem 0 0 1rem;
    }
    .featured > .date, .featured > .sujet, .featured > .details {
        margin-left: 0;
        padding-left: 0;
    }
    #outils h2 {
        -webkit-transform: translateX(-1.8rem);
        transform: translateX(-1.8rem);
    }
    #outils aside > div > div {
        align-self: flex-start;
    }
}

/*--Portfolio--*/
nav {
    z-index: +1;
    color: #fe6d73;
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
}
nav > p {
    margin: 1rem;
}
.container > article:first-child {
    padding-top: 5rem;
}
div.container {
    display: grid;
    grid-template: 1fr / repeat(4, 1fr);
    margin: 0 1rem;
}
article.portfolio {
    display: block;
    margin-bottom: 5rem;
}
article.portfolio * {
    -webkit-transform: none;
    transform: none;
    color: #fe6d73;
}
article.portfolio > * {
    margin-bottom: 0.3rem;
}
article.portfolio > div {
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: 100%;
    height: 1.7rem;
}
article.portfolio h2 {
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}
article.portfolio svg {
    margin-left: .3rem;
}
.ratio {
    position: relative;
    overflow: hidden;
    width: 100%;
}
article.portfolio iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.seizeneuvieme {
    padding-top: 56.25%;
}
.ununieme {
    padding-top: 100%;
}
.description {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1rem;
}
.variant1 {
    grid-column: 1 / 4;
}
.variant2 {
    grid-column: 2 / 5;
}