/*Commun*/
.TitreSection {
    text-align: center;
    font-size: 50px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    margin-top: 80px;
    margin-bottom: 20px;
}


/*Partie 1*/

#Partie1 {
    display: flex;
    align-items: center;
    height: 100vh;
    background-color: whitesmoke;
}

#block1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 50px;
    width: 100%;
}

#block1 h2 {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 20px;
    margin: 0px;
    font-weight: 200;
    color: gray;
    text-transform: uppercase;
}

#block1 h1 {
    font-size: 100px;
    margin: 0px;
    text-align: center;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

#block1G {
    display: block;
    padding: 20px;
    text-align: center;
    width: 100%;
}

#block1D {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
    margin-bottom: 15vh;
}

#block1 .button {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    transition: transform 0.3s ease;
    text-decoration: none;
}

#block1 .button:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

html {
    scroll-behavior: smooth;
}

.PCportable {
    width: 70%;
}

/*Partie 2*/

#Partie2 {
    display: flex;
    align-items: center;
    height: 100vh;
    background-color: #fafafa;
}

#block2 {
    display: flex;
    flex-direction: row;
    margin: 50px 55px;
    gap: 40px;
    align-items: center;
}

.imgblock2 {
    width: 100%;
    border-radius: 20px;
}

#block2G {
    margin-left: 30px;
    width: 33%;
}

#block2C {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    display: block;
    width: 33%;
    text-align: center;
}

#block2D {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    display: block;
    width: 100%;
    text-align: center;
}

.block2Droite {
    display: flex;
    flex-direction: column;
    width: 33%;
}

.block2Dbas {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 30px;
}

.block2Dbas h2 {
    margin-top: 60px;
    margin-bottom: 5px;
}

#block2D h2 {
    margin-bottom: 18px;
}

#block2C h2 {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    margin-bottom: 50px;
}

#block2C p {
    font-size: 20px;
    margin: 0px;
    font-weight: 200;
    color: black;
    line-height: 30px;
}

.CVbtn {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    transition: transform 0.3s ease;
    margin-top: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
}

.CVbtn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.compétence {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 500;
    background: #ffffff;
    padding: 5px 15px;
    padding-bottom: 2px;
    border-radius: 5px;
    cursor: pointer;
}

.allComp {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.barcomp {
    border-bottom: 2px solid #000000;
    width: 0;
    margin-top: 3px;
}

.allComp div:hover .barcomp {
    width: 60%;
    transition: 1000ms;
}

/*Partie 25*/

#Partie25 {
    display: block;
    background-color: whitesmoke;
    height: 100vh;
    padding: 1;
}

.parcours {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

.title h2 {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;

}

.descr p {
    font-size: 17px;
    margin: 0px;
    font-weight: 200 !important;
    color: rgb(55, 55, 55);
    line-height: 23px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin: auto;
}

/* line */
ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
}

/* card */
ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
    background-color: white;
    border-radius: 15px;
}

/* date */
ul li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);

    text-align: center;
    background-color: var(--accent-color);

    color: white;
    font-size: 1.25rem;
    font-weight: 700;

    display: grid;
    place-content: center;
    position: relative;

    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
ul li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;

    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
}

/* circle */
ul li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;

    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
ul li .title,
ul li .descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
}

ul li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 500;
}

ul li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
}

/* shadows */
ul li .title::before,
ul li .descr::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    left: 50%;
    border-radius: 50%;
    filter: blur(4px);
    transform: translate(-50%, 50%);
}

ul li .title::before {
    bottom: calc(100% + 0.125rem);
}

ul li .descr::before {
    z-index: -1;
    bottom: 0.25rem;
}

@media (min-width: 40rem) {
    ul {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    ul::before {
        grid-column: 2;
    }

    ul li:nth-child(odd) {
        grid-column: 1;
    }

    ul li:nth-child(even) {
        grid-column: 3;
    }

    /* start second card */
    ul li:nth-child(2) {
        grid-row: 2/4;
    }

    ul li:nth-child(odd) .date::before {
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        left: 0;
    }

    ul li:nth-child(odd) .date::after {
        transform: translate(-50%, -50%);
        left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }

    ul li:nth-child(odd) .date {
        border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
}

/*Partie 3*/

#Partie3 {
    display: block;
    background-color: #fafafa;
    height: 100vh;
    padding: 1;
}

#Partie3 .barsep {
    margin-bottom: 100px;
}

.AllCertif {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0px 80px;
}

.Certif {
    width: 23%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.Certif img {
    width: 280px;
    height: 280px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    object-fit: cover;
}

.Certif img:hover {
    filter: grayscale(100%) blur(1.5px);
    opacity: 0.4;
}

.Certif p {
    display: flex;
    align-self: center;
    color: black;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
}

.Certif:hover p {
    display: block;
}



/* From Uiverse.io by PauloRFJ */
.card {
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 25px;
    gap: 20px;
}

/* for all social containers*/
.socialContainer {
    width: 40px;
    height: 50px;
    background-color: rgb(44, 44, 44);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition-duration: 1.2s;
    border-radius: 15px 0 15px 0px;
}

/* twitter*/
.containerTwo:hover {
    background-color: #00acee;
    transition-duration: 1.2s;
}

/* linkdin*/
.containerThree:hover {
    background-color: #0072b1;
    transition-duration: 1.2s;
}

/* Whatsapp*/
.containerFour:hover {
    background-color: #f90101;
    transition-duration: 1.2s;
}

.socialContainer:active {
    transform: scale(0.9);
    transition-duration: 1.2s;
}

.socialSvg {
    width: 17px;
}

.socialSvg path {
    fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
    animation: slide-in-top 1.2s both;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .barsep {
        display: none;
    }

    .AllCertif {
        margin: 0;
        flex-direction: column;
        align-items: center;
    }

    .Certif {
        width: 100%;
    }

    .TitreSection {
        font-size: 40px;
    }

    #block2g {
        display: none;
    }

    #block2 {
        flex-direction: column;
    }

    #block2c {
        width: 90%;
    }

    .block2Droite {
        width: 90%;
    }

    #partie2 {
        height: 140vh;
    }

    #block1 h1 {
        font-size: 60px;
    }

    #block1D {
        display: none;
    }
}