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

body {
    font-family: Poppins;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

html,
body {
    margin: 0;
    padding: 0;
}

.page-wrap {
    flex: 1 0 auto;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150dvh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}


.haut-de-page {
    display: none;
    width: 100%;
}

.site-logo {
    width: 45px;
    margin: 10px;
    color: white;
}

.toggle {
    display: none;
}

.icon {
    font-size: 25px;
    margin: 10px 0;
}

nav {
    width: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    align-items: center;
    position: fixed;
    z-index: 100;
    font-size: 23px;
    transition: all 0.25s ease-in-out;
}

.responsive {
    display: flex;
}

.responsive i {
    visibility: hidden;
    position: absolute;
}

.navbar {
    display: flex;
    justify-content: center;
}

a.nav {
    cursor: pointer;
    text-decoration: none;
    margin: 15px;
    color: #eee;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px;
    transition: all 0.5s ease;
}

a.nav:hover,
a.nav:focus {
    color: #747cdf;
}

nav .menu {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 500;
    color: #ffff;
    font-weight: bold;
}

.navbar.scroll {
    padding: 0.5rem 0;
    background-color: #000000;
    height: 6vh;
}

h1,
h2 {
    color: white;
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: bold;
}

h3 {
    color: white;
    font-size: 24px;
    margin: 0;
}

p {
    color: white;

}

h1 {
    font-size: 6rem;
    margin: 0;
}

.reveal p {
    text-align: center;
}

.projets {
    color: #fafafa;
    padding: 20px;
}

.justify-content {
    display: flex;
    justify-content: center;
}

.text {
    margin-top: 21vh;
    margin-bottom: 3vh;
    width: 66.66666667%;
    text-align: center;
}



.button_slide {
    color: #FFF;
    border: 2px solid rgb(158, 39, 255);
    border-radius: 8px;
    padding: 18px 36px;
    display: inline-block;
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: inset 0 0 0 0 rgb(158, 39, 255);
    transition: ease-out 0.4s;
    text-decoration: none;
    margin: 0 auto;
}

.slide_left:hover {
    box-shadow: inset 0 0 0 50px rgb(158, 39, 255);
}

#projets {
    margin-top: 80px;
}

#projets .projet {
    margin: 50px;
    display: flex;
    background-color: rgba(128, 128, 128, .2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: transform 0.5s;
    overflow: hidden;
}

#projets .projet img {
    width: 30%;
}

#projets .projet .content {
    padding: 40px;
    font-weight: 300;
}

#projets .projet .content p {
    color: gray;
}

.projets .projet .content .text-projet {
    right: 0;
}

#projets .projet:hover {
    transform: scale(1.025);
}

.btn-projets {
    display: flex;
    justify-content: center;
    padding: 10px 5px;
    width: 20vw;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background: #e8e8e8;
    position: relative;
    font-weight: 1000;
    font-size: 17px;
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
    overflow: hidden;
    text-decoration: none;
}

.btn-projets::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 10px;
    background-color: #212121;
    z-index: -1;
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms
}

.btn-projets:hover {
    color: #e8e8e8;
}

.btn-projets:hover::before {
    width: 100%;
}

footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

footer .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding-inline-start: 0;
}

footer .logo-img {
    margin: 6px;
    background: rgba(128, 128, 128, .2);
    border-radius: 12px;
    color: #fafafa;
}

footer .logo .logo-img img {
    width: 40px;
    height: 40px;
}


footer .logo-lien {
    margin: 12px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

footer .contact {
    text-align: end;
}

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

@media (orientation: portrait) {

    .haut-de-page a {
        width: fit-content;
    }

    footer {
        display: flex;
        flex-direction: column;
    }

    .btn-projets {
        width: fit-content;
        padding: 10px 80px;
    }

    .scroll h2 {
        font-size: 22px;
        margin: 0;
    }

    .scroll .site-logo {
        width: 40px;
    }

    .fullscreen-menu {
        position: fixed;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.20);
        backdrop-filter: blur(25px);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.5s ease, transform 0.5s ease;
        z-index: 9998;
    }

    .fullscreen-menu.active {
        opacity: 1;
        transform: translateY(0);
    }

    .fullscreen-menu .menu a {
        font-size: 20px;
        font-weight: 600;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .fullscreen-menu.active .menu a {
        opacity: 1;
        transform: translateY(0);
    }

    .fullscreen-menu .menu {
        text-align: center;
        flex-direction: column;
    }

    /* Lien grisé avec effet fluide */
    .fullscreen-menu .menu a.disabled-link {
        opacity: 0.3;
        filter: grayscale(100%) blur(0.5px);
        pointer-events: none;
        cursor: default;
        transition: opacity 0.4s ease, filter 0.4s ease;
    }

    .active {
        display: flex !important;
    }

    .responsive {
        flex-direction: column;
    }

    .responsive i {
        visibility: visible;
        position: relative;
    }

    .toggle {
        display: flex;
        z-index: 9;
        background-color: transparent;
        border: none;
        cursor: pointer;
        color: white;
        justify-content: end;
    }

    .icon-close {
        visibility: hidden;
        position: absolute;
    }

    .toggle.active .icon-open {
        display: none;
    }

    .toggle.active .icon-close {
        visibility: visible;
        position: relative;
    }

    .haut-de-page {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        position: fixed;
        z-index: 9999;
        transition: all 0.25s ease-in-out;
    }

    .haut-de-page .bouton {
        display: flex;
        justify-content: end;
        margin-right: 10px;
    }

    .haut-de-page.scroll {
        padding: 0 0 0.7rem 0;
        background-color: #000000;
        height: 55px;
        width: 100%;
        z-index: 9999;
    }

    h1 {
        font-size: 4rem;
        margin: 120px 0;
    }

    .titre {
        visibility: hidden;
        position: absolute;
        top: 9999;
    }

    .h2-titre {
        font-size: 35px;
    }

    .about {
        font-size: 30px;
    }

    p {
        font-size: 15px;
    }

    #projets .projet {
        flex-direction: column;
    }

    #projets .projet img {
        width: 100%;
    }
}