:root {
    --brightred: #F9423D;
    --lightblue: #3378F1;
    --secColor: #f7bcf7;
    --lightColor: #ffffff;
    --bgColor1: #171a1C;
    --bgColor2: #22282a;
    --padding: 8%;
}


/* fonc */

.principale {
    animation: transitionIn 1s;
}

@keyframes transitionIn {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0px);
    opacity: 1;
}

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

html {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    color: var(--lightColor);
}

h1 {
    font-size: 3rem;
    margin: 1.7rem 0;
}

h2 {
    font-size: 2.2rem;
    letter-spacing: 0.12rem;
    cursor: pointer;
}

h3 {
    font-size: 1.5rem;
    padding-bottom: 3.5rem;
}

h4 {
    font-size: 1.25rem;
    letter-spacing: 0.12rem;
    color: var(--secColor);
}

h5 {
    font-size: 1.37rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

p {
    color: var(--secColor);
    letter-spacing: 1px;
    line-height: 1.8rem;
    font-size: 1rem;
}

span {
    color: var(--lightblue);
}


/*------------------------------------------------- 
*------------------- HOME SECTION
---------------------------------------------------*/

.home {
    width: 100%;
    height: 100vh;
    background-color: var(--bgColor1);
    display: flex;
    flex-direction: column;
}

nav {
    padding-top: 2rem;
    padding-left: var(--padding);
    padding-right: var(--padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    list-style-type: none;
    display: inline-block;
    margin: 2.8rem 1.5rem;
}

nav ul li a {
    color: var(--lightColor);
    text-decoration: none;
    text-transform: capitalize;
    transition: 0.4s;
}

nav ul li a:hover {
    color: var(--lightblue);
}

.btn {
    background-color: var(--lightblue);
    border: 2px solid transparent;
    color: var(--lightColor);
    text-decoration: none;
    font-weight: bold;
    padding: 0.81rem 1.87rem;
    border-radius: 30px;
    transition: 0.4s;
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--lightblue);
}

.content {
    flex-grow: 1;
    padding: 0 var(--padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-texts {
    position: relative;
    bottom: 70px;
    margin-top: 6rem;
}

.container-texts a {
    text-decoration: none;
    color: #3378F1;
}

.social img {
    margin-right: 2rem;
    margin-top: 2.5rem;
    width: 2.5rem;
    transition: 0.4s;
}

.social img:hover {
    transform: scale(1.2);
}

.social a {
    text-decoration: none;
}

.container-images {
    width: 45%;
    height: 90%;
    position: relative;
    align-self: flex-end;
}

.home .container-images img {
    position: absolute;
    bottom: 0;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: left 1s, bottom 1s;
}

.home .container-images:hover .shape {
    bottom: 40px;
}

.home .container-images:hover .pic {
    left: 45%;
}


/*------------------------------------------------- 
*------------------- ABOUT SECTION
---------------------------------------------------*/

.about {
    background-color: var(--bgColor2);
    padding: 2rem var(--padding);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.about .container-images {
    width: 35%;
}

.about .container-images img {
    width: 90%;
}

.about .container-texts {
    width: 95%;
}

.services {
    background-color: var(--bgColor1);
    padding: 2rem var(--padding);
}

.text-center {
    text-align: center;
}

.box {
    display: flex;
    justify-content: space-between;
}

.card {
    width: 45%;
    background-color: var(--bgColor2);
    border-radius: 20px;
    padding: 1.3rem 2rem;
    text-align: center;
}

.card i {
    font-size: 3.12rem;
    text-align: center;
    margin: 2rem;
    color: var(--secColor);
}


/*------------------------------------------------- 
*------------------- SKILLS SECTION
---------------------------------------------------*/

.skills {
    background-color: var(--bgColor2);
    padding: 2rem var(--padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skills .container-images {
    width: 40%;
}

.skills .container-images img {
    width: 100%;
}

.skills .container-skills {
    width: 100%;
}

.content-skills {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.skill {
    width: 100px;
    height: 100px;
    background-color: var(--lightColor);
    border-radius: 50%;
    margin: 0 2rem 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill img {
    width: 70%;
}


/*------------------------------------------------- 
*------------------- CONTACT SECTION
---------------------------------------------------*/

.contact {
    margin: 0 auto;
    width: 100%;
    background-color: var(--bgColor1);
    padding: 2rem var(--padding);
}

.container-contact {
    margin: 0 auto;
    width: 70%;
}

.text {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.info-contact {
    margin: 0 auto;
    display: block;
    line-height: 3em;
}

.info {
    display: flex;
    align-items: center;
}

.info .Icon {
    font-size: 20px;
    color: var(--lightColor);
}

.info .inf {
    margin-left: 1.5rem;
    color: var(--lightColor);
}


/*------------------------------------------------- 
*------------------- FOOTER SECTION
---------------------------------------------------*/

footer {
    padding: 2rem var(--padding);
    background-color: var(--bgColor2);
}

footer .content-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer .content-footer p {
    color: var(--lightColor);
    width: 500px;
    text-align: center;
    margin-top: 1rem;
}

footer .content-footer .end {
    color: var(--lightblue);
    margin-top: 1rem;
}


/*------------------------------------------------- 
*------------------- HUMBERGER MENU
---------------------------------------------------*/

#menu {
    display: none;
    position: relative;
    appearance: none;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    user-select: none;
}

#menu span {
    display: block;
    width: 33px;
    height: 4px;
    background-color: var(--lightColor);
    border-radius: 4px;
    transform-origin: 0 0;
    transition: 0.4s;
    margin-bottom: 5px;
}

#menu.is-active span:nth-child(1) {
    transform: translate(0px, -2px) rotate(45deg);
}

#menu.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(15px);
}

#menu.is-active span:nth-child(3) {
    transform: translate(-3px, 3px) rotate(-45deg);
}

#menu.is-active span {
    background-color: var(--lightblue);
}


/*------------------------------------------------- 
*------------------- MEDIA QUERIES CODE
---------------------------------------------------*/

@media screen and (max-width: 575px) {
    html {
        font-size: 13px;
    }
    .home .container-images {
        display: none;
    }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 82px;
        padding-top: 0;
        background-color: var(--bgColor1);
        border-bottom: 1px solid var(--bgColor2);
        z-index: 100;
    }
    nav>a {
        display: none;
    }
    nav ul {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        background-color: var(--bgColor2);
    }
    nav ul.is-active {
        display: block;
    }
    nav ul li {
        display: block;
        text-align: center;
        margin: 50px;
    }
    .container-texts {
        bottom: 0em;
    }
    .social {
        margin-top: 40px;
    }
    h3 {
        margin-bottom: 40px;
    }
    #menu {
        display: block;
    }
    .about .container-images {
        display: none;
    }
    .about .container-texts {
        width: 100%;
        margin-top: 0px;
    }
    .box {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .card {
        width: 100%;
        margin-bottom: 2rem;
    }
    .skills .container-images {
        display: none;
    }
    .skills .container-skills {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .content-skills {
        margin: 0 auto;
        margin-top: 2rem;
        align-items: center;
        justify-content: center;
    }
    .skill {
        width: 80px;
        height: 80px;
    }
    footer .content-footer p {
        width: 100%;
    }
    .container-contact {
        width: 95%;
    }
}

@media screen and (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 13px;
    }
    .home .container-images {
        display: none;
    }
    .content {
        padding-top: 82px;
    }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 82px;
        padding-top: 0;
        background-color: var(--bgColor1);
        border-bottom: 1px solid var(--bgColor2);
        z-index: 100;
    }
    nav>a {
        display: none;
    }
    nav ul {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        background-color: var(--bgColor2);
    }
    nav ul.is-active {
        display: block;
    }
    nav ul li {
        display: block;
        text-align: center;
        margin: 50px;
    }
    .container-texts {
        bottom: 0em;
    }
    .social {
        margin-top: 30px;
    }
    h3 {
        margin-bottom: 30px;
    }
    #menu {
        display: block;
    }
    .about .container-images {
        display: none;
    }
    .about .container-texts {
        width: 100%;
    }
    .box {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .card {
        width: 80%;
        margin-bottom: 2rem;
    }
    .skills .container-images {
        display: none;
    }
    .skills .container-skills {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .content-skills {
        margin: 0 auto;
        margin-top: 2rem;
        align-items: center;
        justify-content: center;
    }
    .skill {
        width: 80px;
        height: 80px;
    }
    footer .content-footer p {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 13px;
    }
    .home .container-images {
        display: none;
    }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 82px;
        padding-top: 0;
        background-color: var(--bgColor1);
        border-bottom: 1px solid var(--bgColor2);
        z-index: 100;
    }
    nav>a {
        display: none;
    }
    nav ul {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        background-color: var(--bgColor2);
    }
    nav ul.is-active {
        display: block;
    }
    nav ul li {
        display: block;
        text-align: center;
        margin: 50px;
    }
    .container-texts {
        bottom: 0em;
    }
    .social {
        margin-top: 40px;
    }
    h3 {
        margin-bottom: 40px;
    }
    #menu {
        display: block;
    }
    .about .container-images {
        display: none;
    }
    .about .container-texts {
        width: 100%;
    }
    .box {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .skills .container-images {
        display: none;
    }
    .skills .container-skills {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .content-skills {
        margin: 0 auto;
        margin-top: 2rem;
        align-items: center;
        justify-content: center;
    }
    .skill {
        width: 80px;
        height: 80px;
    }
    footer .content-footer p {
        width: 100%;
    }
}


/* */