@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&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;
}

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%;
}

/* ----------------- 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: 3.5rem;
    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;
}

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

.home {
    background-image: url(/Images/Images_projet_3/bubbletea.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
}

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

.about h1 {
    font-weight: var(--bold);
    font-style: normal;
    font-size: 5rem;
    line-height: 7.5rem;
    color: var(--secondary-color);
    text-align: center;
    padding: 0 0 7.5rem 0;
}

.about p {
    font-family: var(--outfit);
    font-weight: var(--regular);
    font-size: var(--font-basic);
    font-style: normal;
    color: var(--secondary-color);
}

/* ----------------- COLOR ----------------- */

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

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

.color .color-container .color-box {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    border: 2px solid var(--secondary-color);
}

.color .color-box .color1 {
    width: 100%;
    transition: .5s ease;
}

.color .color-box:hover .color1 {
    transform: scale(1.1);
}

.color .color-box .color-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;
}

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

.color .color-layer p {
    font-size: var(--font-basic);
    padding: .3rem 0 1rem;
}

/* ----------------- TYPOGRAPHIE ----------------- */

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

.typographie p {
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--light);
    font-size: 2rem;
    font-style: normal;
    color: var(--secondary-color);
    text-align: center;
}

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

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

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

/* ----------------- 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: 1440px) {
    .projet .img-projet img {
        width: 80%;
    }
}

@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;
    }

    /* --- COLOR --- */

    .color .color-container {
        /* display: ; */
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        justify-content: center;
    }

    .color .color-container img {
        text-align: center;
    }

    /* --- PROJET --- */

    /* .projet .img-projet img {
        width: 70%;
    } */
}

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

    .cursor-dot {
        display: none;
    }

    .cursor-outline {
        display: none;
    }
}

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

    .color .color-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%;
    } */

    /* --- ABOUT --- */

    .about {
        padding: 5.625rem 5% 5.625rem 5%;
    }

    .about h1 {
        font-size: 3.75rem;
        padding: 0 0 3.125rem 0;
    }

    /* --- COLOR --- */

    .color {
        padding: 5.625rem 5% 5.625rem 5%;
    }

    .color h2 {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }

    /* --- TYPOGRAPHIE --- */

    .typographie {
        padding: 5.625rem 5% 5.625rem 5%;
    }

    .typographie h2 {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }

    /* --- PROJET --- */

    .projet {
        padding: 5.625rem 5% 5.625rem 5%;
    }

    .projet h2 {
        font-size: 2rem;
        padding: 0 0 3.125rem 0;
    }

    .projet .img-projet img {
        width: 100%;
    }
}