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

:root {
    --primary-color: #FFCDB2;
    --secondary-color: #FFB4A2;
    --third-color: #FFB4A2;
    --fourth-color: #B5828C;

}

body {
    background-color: var(--primary-color);
    font-family: Arial, sans-serif;

}

/**********************Divider************************************/
.section-divider {
    border: 0;
    height: 2px;
    width: 85%;
    background: linear-gradient(to right, #ff0000, #00ffff);
    margin: 40px auto;
}

.section-littledivider {

    position: absolute;
    left: 12.5rem;
    border: 0;
    height: 2px;
    width: 80%;
    max-width: 7em;
    background: linear-gradient(to right, #ff0000, #00ffff);

}

/*************************************HEADER**********************/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    font-size: 17px;

}

header h2 {
    margin-left: 9em;
}

header nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    margin-right: 8rem;


}

header nav ul li a {
    text-decoration: none;
    color: inherit;
    padding: 1em;
    color: #ffffff;
    position: relative;
    display: inline-block;

}

/***************header after before effect*************************/

header nav ul li a::after,
header nav ul li a::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 2px;
    background: linear-gradient(to right, #ff0000, #00ffff);
    bottom: 7px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

header nav ul li a::before {
    top: 7px;
    transform-origin: left;
}

header nav ul li a:hover::after,
header nav ul li a:hover::before {
    transform: scaleX(1);
}

/************************************Accueil*********************************/

#accueil {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 21em;
}

.name {
    display: flex;
    flex-direction: column;
}

.name h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.typewrite {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    text-decoration: none;
}

img.home {
    mix-blend-mode: multiply;

}

/******************************A propos de moi*******************************/

.about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 80vh;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 11em;
    justify-content: center;
    height: 100vh;
}

.about-image img {
    width: 30em;
    height: auto;
    border-radius: 1em;
}

.about-text {

    max-width: 35em;
    height: 45em;
    line-height: 1.8;
    padding: 10px;
    margin-top: 4em;
    margin-left: 2em;
}

.cv {
    padding: 0.5em;
    border-radius: 1em;
    background-color: var(--fourth-color);
    color: white;
    text-align: center;
    text-decoration: none;
    width: 10em;
    margin-top: 1em;
}

.cv a {
    color: white;
    text-decoration: none;
}

/**************************Animation css*****************************************/

.name,
.about-container,
#competences,
#projets,
#contact {
    animation-duration: 1.5s;
    animation-name: slide-in;
}

@keyframes slide-in {
    from {
        translate: -150vw 0;
        scale: 200% 1;
    }

    to {
        translate: 0 0;
        scale: 100% 1;
    }
}


/*******************************Compétences**********************************/

#competences {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    margin-left: 4em;
    height: auto;
    min-height: 90vh;
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 1px;

}

.borderlogo {
    padding: 2em;
    border-radius: 1em;
    border: 2px solid;
    display: inline-block;
}

.logo {
    width: 100px;
    height: auto;
    display: block;
}


.borderlogo:hover {
    background-color: whitesmoke;
}


/*******************************Projets**************************************/

h2.project,
h2.contact,
h2.propos,
h2.competences {
    margin-left: 7em;
    margin-top: 3em;
}

#projects {
    height: auto;
    min-height: 80vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

#projets p {
    width: 70%;
    font-size: 17px;
    margin-left: 10em;
    margin-top: 2em;

}

/*****************slide zone projet*******************/

.image-container {
    height: auto;
    min-height: 90vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-items: center;
}

.image-container img {
    width: 25em;
    height: 20em;
    margin-top: 1em;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 1em;

}

.image-container img:hover {
    transform: scale(1.1);
}


.slider {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slider img {
    width: auto;
    height: 80%;
    object-fit: contain;
}

.close,
.prev,
.next {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
}

.close {
    top: 20px;
    right: 20px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


.slider-text {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
}

.no-scroll {
    overflow: hidden;
}

.scroll {
    overflow: scroll;
}

/*******************************Contact***********************************/

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100vh;
    font-size: 17px;
    gap: 5em;
    position: relative;
    margin-left: 7em;
}

.contact-text {
    font-size: 19px;
    font-weight: bold;
}

.testform {
    display: flex;
    flex-direction: column;
    gap: 1em;
}


.contact-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 40em;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #218838;
}


#contact img {
    width: 35%;
    mix-blend-mode: multiply;
    margin-top: 5em;
}


/*******************FOOTER********************/

footer {
    background-color: var(--fourth-color);
    display: flex;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1em;
    height: 4em;
}

.git {
    width: 1.2rem;
}

/************Media queries tablette****************/
@media screen and (min-width:768px) and (max-width: 1023px) {

    header h2 {
        margin-left: 0em;
    }


    /*** Zone Accueil***/

    #accueil {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        gap: 8em;
    }

    img.home {
        width: 100%;
    }

    /*** Zone A propos de moi***/

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 80vh;
        margin-bottom: 1em;
        gap: 0;
    }

    .about-text {
        max-width: 35em;
        line-height: 2;
        padding: 5px;
        margin-top: 2em;
        margin-left: 0;

    }

    .about-image img {
        width: 35em;
        height: auto;
        border-radius: 1em;
        margin-bottom: 10em;
    }

    /*** Zone competences***/

    #competences {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
        justify-content: center;
        align-items: center;
        justify-items: center;
        margin-top: 2em;
    }

    /*** Zone projects***/

    #projets p {
        margin-left: 8rem;
        padding: 5px;
    }

    .image-container {
        height: auto;
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1em;
    }

    /*** Zone contact***/

    #contact {
        margin-top: 4em;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-form {

        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 30em;
        margin-right: 4rem;

    }


    #contact img {
        width: 80%;
        margin-right: 4rem;
        margin-bottom: 5rem;
    }
}

/******************Media queries mobile*******************/

@media screen and (max-width: 767px) {

    h2.project,
    h2.contact,
    h2.propos,
    h2.competences {
        margin-left: 2em;
        margin-top: 3em;
    }

    header h2 {
        margin-left: 0em;
    }

    .section-littledivider {

        position: absolute;
        left: 4rem;
    }

    /*** Zone Accueil ***/

    #accueil {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 80vh;
        gap: 4em;
        margin-bottom: 2em;
    }

    img.home {
        mix-blend-mode: multiply;
        width: 100%;
    }

    /*** Zone A propos de moi ***/

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 80vh;
        margin-bottom: 2em;
        gap: 1em;
        margin-top: 0em;
        margin-left: 0em;

    }

    .about-text {
        max-width: 90%;
        line-height: 1.5;
        padding: 4px;
        margin-top: 3em;
        margin-left: 2rem;
    }

    .about-image img {
        width: 100%;
        height: auto;
        border-radius: 3em;
        padding: 2rem;
    }

    /*** Zone competences ***/

    #competences {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
        justify-content: center;
        align-items: center;
        justify-items: center;
        margin-top: 2em;
        margin-bottom: 2em;
        margin-left: 0rem;

    }

    /*** Zone projects ***/

    #projets p {
        font-size: 17px;
        justify-self: center;
        align-self: center;
        margin-left: 0;
    }

    .image-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-left: 1.2rem;
        gap: 1em;
        align-self: center;
        justify-self: center;
    }



    .image-container img {
        width: 90%;
        object-fit: cover;

    }

    .slider img {
        width: 80vh;
        height: 80vw;
        object-fit: contain;
    }


    /*** Zone contact ***/

    #contact {

        padding-top: 3em;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 2em;
        gap: 2em;
        margin-left: 0;
        margin-right: 0;
    }

    p.contact-text {

        text-align: center;
        margin: 0 15px;
    }

    .contact-form {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 90%;
        align-self: center;
    }

    #contact img {
        width: 80%;
    }

    /*********Menu burger mobile***********/

    .burger-menu {
        display: flex;
    }
}

@media screen and (max-width: 767px) {
    .header_nav_menu {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .burger-actif {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 63.3px;
        background-color: var(--primary-color);
        z-index: 1000;
        width: 100vw;
        height: 50vh;
        margin: 0;
        padding: 1rem;
        border-top: 1px solid var(--fourth-color);
        border-bottom: 1px solid var(--fourth-color);
    }

    #nav-menu.navigation {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        gap: .2em;
    }

    .burger {
        height: .3rem;
        width: 2.5rem;
        border-radius: 6px;
        background-color: black;
    }

    .deux {
        height: .3rem;
        width: 2.5rem;
        border-radius: 6px;
        background-color: black;
    }

    .trois {
        height: .3rem;
        width: 2.5rem;
        border-radius: 6px;
        background-color: black;
    }

    .un-actif {
        opacity: 0;
    }

    .deux-actif {
        transform: translateY(5px) rotate(45deg);
    }

    .trois-actif {
        transform: translateY(-3px) rotate(-45deg);
    }
}