*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.wrapper{
    background-color: #333333;
}
.wrapper > header{
    height: 100vh;
    background: #F2F2F2;
    border-radius: 0 0 99px 99px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
header .stick{
    align-self: center;
    margin-top: auto;
    margin-bottom: 1rem;
}
.stick > div{
    width: 10rem;
    height: 0.5rem;
    background-color: rgba(113,113,113,0.98);
    border-radius: 10px;
}
.header-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.3rem 0 1.3rem;
}
.icon{
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    position: relative;
}
.icons,
.icons::before,
.icons::after {
    content: "";
    background-color: #717171;
    width: 100%;
    height: 3px;
    position: absolute;
    left: 0;
    transition: all 0.4s ease-in-out;
}
.icons::before{
    top: 10px;
}
.icons::after{
    top: -10px;
}
.menu-open .icons{
    transform: rotate(135deg);
    background-color: white;
}
.menu-open .icons::after,
.menu-open .icons::before{
    transform: rotate(85deg);
    background-color: white;
    top: 0;
}
.icon:hover{
    cursor: pointer;
}
.menu{
    background-color: #333333;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 3;
    transform: translateX(-100vw);
    transition: all 0.4s;
}
.menu-open{
    overflow: hidden;
}
.menu-open .menu{
    transform: translateX(0);
}
.menu-container{
    display: flex;
    flex-direction: column;
    margin-left: 10%;
    gap: 4rem;
}
.menu-container > a{
    text-decoration: none;
    color: white;
    font-family: ClashDisplay-Semibold, sans-serif;
    font-size: 4rem;
}
.menu-a-pad{
    margin-left: 4rem;
    text-align: right;
}
.contact{
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact a{
    width: 225px;
    height: 45px;
    border: none;
    border-radius: 18px;
    background-color: #1D1C1C;
    color: white;
    font-family: "ClashDisplay-Regular", "Dancing Script", serif;
    font-size: 1.8em;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
@font-face {
    font-family: 'DancingScript';
    src: url('../font/Dancing_Script/DancingScript-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BellMT';
    src: url('../font/bellmt/BellMT.woff2') format('woff2'),
    url('../font/bellmt/BellMT.woff') format('woff'),
    url('../font/bellmt/BellMT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
header .barguich{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12em;
    margin-top: 5%;
    font-family: "BellMT", "Bell MT", sans-serif;
    z-index: 1;
}
.circle{
    position: absolute;
    background-image: url("../image/cercle1.png");
    background-size: cover;
    width: 700px;
    height: 700px;
    left: 50%;
    top: 15%;
    margin-left: -350px;
    border-radius: 100%;
    animation: circle 30s linear infinite;
}
@keyframes circle {
    from{
        rotate: 0deg;
    }
    to{
        rotate: 360deg;
    }
}
.header-dev p{
    font-size: 3em;
    font-family: "DancingScript", "Dancing Script", serif;
}

/* Définir la grille pour .header-dev */
.header-dev {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2em;
    align-items: center;
    text-align: center; /* pour centrer le texte dans les cellules */
    z-index: 2;
    margin-top: 6%;
}

/* Style pour les éléments */
.header-dev .right {
    justify-self: end; /* aligner à droite dans sa cellule */
    align-self: flex-start;
    text-align: right;
}

.header-dev .fullstack {
    justify-self: start; /* aligner à gauche dans sa cellule */
    align-self: flex-end;
}

.header-dev .img {
    width: 550px;
    height: 350px;
    border-radius: 40px;
    background: url("/image/barguich.jpg") no-repeat center center;
    justify-self: center; /* centrer l'image */
    background-size: cover;
    box-shadow: 0 0 20px #333333;

}
.competence{
    display: flex;
    justify-content: center;
    gap: 3%;
    margin-top: 8%;
}
.competence h3, .competence p{
    color: #F2F2F2;
    font-family: "Clash Display Variable", serif;
}
.competence h3{
    font-size: 1.7em;
    font-weight: 600;
    margin: 6% 0 4% 0;
}
.competence p{
    font-size: 1.35em;
    margin-bottom: 6%;
}
.card{
    width: 27%;
    background-color: rgba(255,255,255,0.34);
    border: 1px solid white;
    padding: 0 2% 0 1%;
    position: relative;
}
.card .number{
    position: absolute;
    top: 8%;
    left: 50%;
    font-family: "DancingScript", "Dancing Script", serif;
    font-weight: bold;
    font-size: 3.2em;
    transform: translate(-50%, -100%); /* Translate à la moitié de sa largeur et de manière à dépasser vers le haut */
}







.Project{
    margin-top: 8%;
    padding-right: 2.5em;
    padding-left: 2.5em;
    max-width: 120rem;
    grid-column-gap: 2.5rem;
    grid-row-gap: 4.5rem;
    flex-direction: column;
    align-items: center;
    display: flex;
    position: relative;
}
.container-card{
    display: flex;
    grid-column-gap: 5vw;
    grid-row-gap: 16px;
    grid-template-rows: auto auto 1fr;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    max-width: 90vw;
}
.project-card{
    background: white;
    grid-column-gap: 1px;
    grid-row-gap: 1rem;
    border-radius: 1.25rem;
    grid-template-rows: auto auto 1fr;
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    width: 100%;
    padding: .5rem .5rem .5rem;
    display: grid;
    max-width: 100%;
}
.Project .container-card a:nth-child(2) .project-card{
    margin-top: 7em;
}
.Project .container-card a{
    text-decoration: none;
    color: black;
}
.Project > p{
    font-family: "ClashDisplay-Semibold", serif;
    font-size: 14vw;
    text-align: center;
    text-transform: uppercase;
    color: #F2F2F2;
    filter: drop-shadow(2px 4px 6px black);
}
.blue-circle{
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #040404;
}
.ligne{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.ligne > p{
    color: #ffff00;
    background-color: #30a094;
    padding: 0.8% 1.8% 0.8% 1.8%;
    border-radius: 10px;
    font-family: Constantia, serif;
    font-weight: bold;
}
.second-project p{
    background-color: #2d2636 !important;
    color: #ecab8e;
}
.name-project{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}
.name-project > p{
    font-family: "the-seasons", sans-serif;
    margin-left: 1em;
    margin-right: 1em;
}
.name-project p:nth-child(1){
    writing-mode: vertical-lr;
    text-orientation: upright;
    font-size: 1.7em;
}
.name-project p:nth-child(2){
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4.5em;
}
.project-img{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
}
.project-img > img{
    object-fit: cover;
    width: 100%;
    min-height: 100%;
    border-radius: 1rem;
}










.Project .project-button{
    min-width: 8rem;
    max-width: 100%;
    flex-basis: auto;
    font-size: 2.5rem;
    width: 17rem;
    padding: 0.5rem 0 0.5rem 0;
    border-radius: 15px;
    border: none;
    font-family: ClashDisplay-Regular, sans-serif;
    font-weight: bolder;
    cursor: pointer;
}
.btn{
    display: flex;
    justify-content: center;
    margin-bottom: 7%;
    text-decoration: none;
}










.wrapper > footer{
    height: 100vh;
    background: white;
    display: grid;
    grid-template-rows: 2fr auto;
}

.row{
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 50% 25% 25%;
    row-gap: 4rem;
}
.bar{
    display: flex;
    align-items: end;
}
.b{
    width: 100%;
}
.row > section:nth-child(1){
    grid-column: 2;
    grid-row: 1;
}
.row > section:nth-child(2){
    grid-column: 2;
    grid-row: 2;
}
.row > section:nth-child(3){
    grid-column: 3;
    grid-row: 1;
}
.row > section:nth-child(4){
    grid-column: 3;
    grid-row: 2;
}
.row section{
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 0.8rem;
}

.row section:nth-child(2){
    justify-content: start;
}
.row section:nth-child(4){
    justify-content: start;
}
.row > section > p, .row > section > a > p{
    font-family: ClashDisplay-bold, sans-serif;
    font-size: 1.5rem;
}
.row > section > a{
    text-decoration: none;
    color: black;
    width: max-content;
}
.row > section > p.bold{
    font-size: 1.2rem;
}
.row > section > p > a{
    text-decoration: none;
    color: black;
}

.col{
    display: flex;
    flex-direction: column;
}





















@media screen and (min-width: 992px) and (max-width: 1450px) {
    .Project .container-card{
        max-width: 80%;
    }
    header .barguich{
        font-size: 11em;
        margin-top: 3%;
    }
    .header-dev .img{
        width: 440px;
        height: 280px;
    }
    .circle{
        width: 500px;
        height: 500px;
        margin-left: -250px;
    }
    .header-dev{
        margin-top: 4%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px){
    .header-dev {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
        margin-top: 3%;
    }
    .header-dev .right{
        justify-self: start;
        text-align: left;
        margin-left: 3rem;
    }
    .header-dev .fullstack{
        justify-self: end;
        align-self: flex-start;
        margin-right: 3rem;
    }
    .barguich > p{
        font-size: 7rem;
    }
    .header-dev .img{
        width: 396px;
        height: 252px;
    }
    .row{
        grid-template-columns: 20% 30% 30%;
    }
    .circle{
        width: 500px;
        height: 500px;
        margin-left: -250px;
    }
    .Project .container-card {
        display: flex;
        flex-direction: column;
    }
    .Project .container-card a:nth-child(2) .project-card {
        margin-top: 3em;
    }
}
@media screen and (max-width: 767px) {
    .wrapper > header{
        gap: 2rem;
        border-radius: 0 0 70px 70px;
    }
    .header-dev{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }
    .header-dev > p{
        font-size: 2.6em;
    }
    .header-dev .right{
        justify-self: start;
        text-align: left;
        margin-left: 3rem;
    }
    .header-dev .fullstack{
        justify-self: end;
        align-self: flex-start;
        margin-right: 3rem;

    }
    .menu-container{
        margin: unset;
        align-items: center;
    }
    .menu{
        justify-content: center;
    }
    .menu-a-pad{
        margin: unset;
        text-align: unset;
    }
    .barguich > p{
        font-size: 3.7rem;
    }
    .circle{
        width: 300px;
        height: 300px;
        margin-left: -150px;
        top: 40%;
    }
    .header-head{
        flex-direction: row-reverse;
    }
    .header-dev .img{
        width: 330px;
        height: 210px;
    }
    .Project .container-card{
        display: flex;
        flex-direction: column;
    }
    .Project .container-card a:nth-child(2) .project-card {
        margin-top: 0;
    }
    .Project{
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .Project > p{
        font-size: 20vw;
    }
    .name-project p:nth-child(1){
        margin-left: 0.5em;
        margin-right: 0.5em;
        font-size: 1.2em;
    }
    .name-project p:nth-child(2){
        font-size: 3.8em;
    }
    .Project .project-button{
        font-size: 1.6rem;
        width: 10rem;
        color: #333333;
    }
    .Project{
        grid-row-gap: 3rem;
    }
    .row > section > p, .row > section > a > p{
        font-size: 1.1rem;
    }
    .row > section > p.bold{
        font-size: 0.8rem;
    }
    .row section{
        gap: unset;
    }
    .row > section:nth-child(1) > p{
        margin-bottom: 0.4rem;
    }
    .row{
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: unset;
        grid-auto-rows: min-content;
        row-gap: 2.7rem;
        column-gap: unset;
        padding: 7rem 1rem 0 1rem;
    }
    .row > section:nth-child(1){
        grid-column: 1/5;
        grid-row: unset;
    }
    .row > section:nth-child(2){
        grid-column: 1/3;
        grid-row: unset;
    }
    .row > section:nth-child(3){
        grid-column: 3/5;
        grid-row: unset;
        justify-content: start;
    }
    .row > section:nth-child(4){
        grid-column: 1/5;
        grid-row: unset;
    }
    .wrapper > footer{
        height: 80vh;
    }

}