@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #fff;
    --secondary-color: #000;
    --thrird-color: #FFB140;
    --black: #0D0D0D;
    --white: #ffffff;

    --light: 300;
    --regular: 400;
    --medium: 500;
    --bold: 700;

    --font-nav: 0.875rem;
    --font-basic: 1rem;
    --font-title: 4rem;

    --outfit: 'Outfit', sans-serif;
    --poppins: 'Poppins', sans-serif;
}

.dark-mode {
    --primary-color: #131517;
    --secondary-color: #fff;
    --thrird-color: #FFB140;
    --black: #0D0D0D;
    --white: #ffffff;
}

a {
    color: var(--secondary-color);
    cursor: none;
}

i {
    cursor: none;
}

body {
    background: var(--primary-color);
    color: var(--secondary-color);
    transition: background 0.8s, color 0.8s;
    /* cursor: none; */
}

section {
    min-height: 100vh;
    padding: 10rem 9% 10rem 9%;
}

/* ----------------- PRELOADER ----------------- */

.pace {
    pointer-events: none;
    user-select: none;
    z-index: 102;
    position: fixed;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 25rem;
    height: 1px;
    border: 0;
    overflow: hidden;
    background: var(--thrird-color);
}

.pace .pace-progress {
    box-sizing: border-box;
    transform: translate3d(0, 0, 0);
    max-width: 25rem;
    position: absolute;
    z-index: 102;
    display: block;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
}

.pace.pace-inactive {
    display: none;
}

#preloader {
    width: 100%;
    height: 100vh;
    background: var(--secondary-color);
    overflow: hidden;
    position: fixed;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 101;
}

.loading-text {
    font-weight: var(--bold);
    font-style: normal;
    font-size: var(--font-basic);
    color: var(--primary-color);
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ----------------- HEADER ----------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 3%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    z-index: 100;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--secondary-color);
    display: none;
}

.logo {
    font-weight: var(--bold);
    font-style: normal;
    font-size: 3rem;
    line-height: 4.5rem;
    letter-spacing: -0.285rem;
    color: var(--secondary-color);
    cursor: default;
    margin-right: auto;
}

.navbar a {
    font-weight: var(--bold);
    font-style: normal;
    font-size: var(--font-nav);
    line-height: 1.5rem;
    margin-right: 2rem;
    transition: .3s;
    padding: 0.5rem 1.563rem;
    border-radius: 1.25rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
    background: var(--secondary-color);
}

#darkMode-icon {
    font-weight: var(--bold);
    font-size: 1.3rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* ----------------- HERO ----------------- */

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-img .hero-img {
    width: 35vh;
    animation: floatImage 4s ease-in-out infinite;
}

.home-content h1 {
    font-weight: var(--bold);
    font-style: normal;
    font-size: 5rem;
    line-height: 7.5rem;
    color: var(--secondary-color);
}

.home-content span {
    font-weight: var(--light);
    font-style: normal;
    font-size: var(--font-title);
    line-height: 7.5rem;
    color: var(--secondary-color);
}

.home-content .multiple-text {
    color: var(--thrird-color);
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--secondary-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
    cursor: none;
}

.social-media a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 1rem var(--secondary-color);
}

.btn {
    border: 2px solid var(--secondary-color);
    border-radius: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
    padding: 0.5rem 2rem 0.5rem 2rem;
    font-size: var(--font-basic);
    cursor: none;
    transition: .3s;
    background: transparent;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 1rem var(--secondary-color);
}

/* ----------------- MAIN ----------------- */

/* --- PARTIE ABOUT --- */

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background-color: var(--black);
}

.about-img img {
    width: 35vh;
}

.about .about-title {
    font-weight: var(--bold);
    font-size: var(--font-title);
    font-style: normal;
    color: var(--white);
    padding: 0 0 1.625rem 0;
}

.about .about-title span {
    color: var(--thrird-color);
}

.about p {
    font-family: var(--outfit);
    font-weight: var(--regular);
    font-size: var(--font-basic);
    font-style: normal;
    line-height: 2.25rem;
    color: var(--white);
}

.about .img-habillement1 {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 170%;
}

/* --- PARTIE SKILL --- */

.skill .skill-title {
    font-weight: var(--bold);
    font-size: var(--font-title);
    font-style: normal;
    text-align: center;
    padding: 0 0 7.5rem 0;
}

.skill .img-habillement2 {
    position: absolute;
    z-index: 3;
    right: 0;
}

.scroller {
    max-width: auto;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg,
            transparent,
            white 20%,
            white 80%,
            transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.adobe {
    width: 12.5rem;
    height: 12.5rem;
    background-color: var(--thrird-color);
    border-radius: 1.875rem;
    text-align: center;
    padding: 1rem;
}

.adobe-img {
    width: 6.25rem;
    height: 6.25rem;
}

.text-adobe {
    display: block;
    font-style: normal;
    font-weight: var(--medium);
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* --- PARTIE PROJET --- */

/* .portfolio {
    background-color: var(--thrird-color);
} */

.portfolio .portfolio-title {
    font-weight: var(--bold);
    font-size: var(--font-title);
    font-style: normal;
    color: var(--secondary-color);
    padding: 0 0 7.5rem 0;
}

.portfolio .portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio .portfolio-container .portfolio-box {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
}

.portfolio .portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio .portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio .portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio .portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio .portfolio-layer h4 {
    font-family: var(--poppins);
    font-weight: var(--bold);
    font-size: 3rem;
}

.portfolio .portfolio-layer p {
    font-family: var(--outfit);
    font-weight: var(--regular);
    font-size: var(--font-basic);
    font-style: normal;
    line-height: normal;
    padding: .3rem 0 1rem;
}

.portfolio .portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--secondary-color);
    border-radius: 50%;
}

.portfolio .portfolio-layer a i {
    font-size: 2rem;
    color: var(--primary-color);
}

.portfolio .img-habillement3 {
    position: absolute;
    z-index: 3;
    left: 0;
    /* top: 10%; */
}

/* ----- PARTIE CONTACT ----- */

.contact {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.contact .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
}

.contact .contact-title {
    font-weight: var(--bold);
    font-size: var(--font-title);
    font-style: normal;
    color: var(--secondary-color);
    padding: 0 0 1.625rem 0;
}

.contact .courrier {
    display: flex;
    align-items: center;
    margin: 0 0 1.875rem 0;
}

.contact .courrier img {
    width: 3.125rem;
    height: 3.125rem;
}

.contact .courrier .text-courrier {
    font-family: var(--outfit);
    font-weight: var(--regular);
    font-size: var(--font-basic);
    font-style: normal;
    line-height: 2.25rem;
    color: var(--secondary-color);
    padding: 0 0 0 1.25rem;
}

.contact .telephone {
    display: flex;
    align-items: center;
    margin: 0 0 1.875rem 0;
}

.contact .telephone img {
    width: 3.125rem;
    height: 3.125rem;
}

.contact .telephone .text-telephone {
    font-family: var(--outfit);
    font-weight: var(--regular);
    font-size: var(--font-basic);
    font-style: normal;
    line-height: 2.25rem;
    color: var(--secondary-color);
    padding: 0 0 0 1.25rem;
}

.contact .contact-card {
    display: flex;
    width: 27.5rem;
    height: 37.5rem;
    background-color: var(--thrird-color);
    border-radius: 1.875rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contact .text-carte {
    font-weight: var(--bold);
    font-style: normal;
    font-size: 4rem;
    line-height: 6rem;
    color: var(--primary-color);
    padding: 2.813rem;
}

.contact img {
    width: 4rem;
    height: 4rem;
}

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

.footer {
    position: relative;
    /*z-index: 3;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--black);
}

.footer .logo {
    color: var(--white);
}

.footer p {
    font-weight: var(--medium);
    font-style: normal;
    font-size: var(--font-nav);
    line-height: 1.5rem;
    color: var(--white);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white);
    border-radius: .8rem;
    transform: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--white);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--black);
}

/* ----------------- CURSOR ----------------- */

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--secondary-color);
}

.cursor-outline {
    width: 1.875rem;
    height: 1.875rem;
    border: 2px solid var(--secondary-color);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1000;
    pointer-events: none;
}


@media (max-width: 1200px) {
    /* --- HERO --- */

    .home-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 10rem 3%;
    }

    .footer {
        padding: 2rem 3%;
    }

    /* --- HEADER --- */

    #menu-icon {
        display: block;
    }

    #darkMode-icon {
        /* position: absolute; */
        font-size: 2rem;
        /* margin-bottom: .1rem; */
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--primary-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem .1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        margin: 3rem 0;
    }

    /* --- HERO --- */

    .home {
        flex-direction: column;
        overflow-x: hidden;
    }

    .home-content {
        padding: 0 0 2rem 0;
    }

    .home-content .multiple-text {
        font-size: 2.875rem;
    }

    .home-img img {
        width: 70vw;
        margin: 2rem 0 2rem 0;
    }

    /* --- ABOUT --- */

    .about {
        flex-direction: column;
        overflow-x: hidden;
    }

    .about .about-title {
        font-size: 2.875rem;
    }

    .about .img-habillement1 {
        display: none;
    }

    /* --- SKILL --- */

    .skill {
        flex-direction: column;
        overflow-x: hidden;
    }

    .skill .skill-title {
        font-size: 2.875rem;
    }

    .skill .img-habillement2 {
        display: none;
    }

    /* --- PORTFOLIO --- */

    .portfolio {
        flex-direction: column;
        overflow-x: hidden;
    }

    .portfolio .img-habillement3 {
        display: none;
    }

    /* --- CONTACT --- */

    .contact {
        overflow-x: hidden;
    }
}

@media (max-width: 991px) {
    /* --- CURSOR --- */

    .cursor-dot {
        display: none;
    }

    .cursor-outline {
        display: none;
    }

    /* --- PORTFOLIO --- */

    .portfolio .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- CONTACT --- */

    .contact .contact-card {
        display: none;
    }
}

@media (max-width: 768px) {
    /* --- ABOUT --- */

    .about .about-title {
        padding: 0 0 4.375rem 0;
    }

    /* --- SKILL --- */

    .skill .skill-title {
        padding: 0 0 4.375rem 0;
    }

    /* --- PORTFOLIO --- */

    .portfolio .portfolio-title {
        padding: 0 0 4.375rem 0;
    }

    /* --- CONTACT --- */

    .contact .contact-title {
        padding: 0 0 4.375rem 0;
    }
}

@media (max-width: 617px) {
    /* --- PORTFOLIO --- */

    .portfolio .portfolio-container {
        grid-template-columns: 1fr;
    }

    /* --- FOOTER --- */

    .footer {
        flex-direction: column-reverse;
        padding: 2rem 1rem 2rem 1rem;
        text-align: center;
    }
}

@media (max-width: 425px) {
    section {
        padding: 5.625rem 5% 5.625rem 5%;
    }

    /* --- HERO --- */

    .home-content h1 {
        padding: 2rem 0 0 0;
        font-size: 3.75rem;
    }

    .home-content .multiple-text {
        font-size: 1.875rem;
    }

    .home-img img {
        width: 90vw;
        margin: 1rem 0 1rem 0;
    }

    /* --- ABOUT --- */

    .about .about-title {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }

    /* --- SKILL --- */

    .skill .skill-title {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }

    /* --- PORTFOLIO --- */

    .portfolio .portfolio-title {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }

    /* --- CONTACT --- */

    .contact .contact-title {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }
}