/*
Theme Name: Grand Pic
Version: 1.0
Author: Dream Team de MMI Chambéry
*/

@font-face {
    font-family: EDO;
    src: url(./src/fonts/edo_sz/edosz.ttf);
}

@font-face {
    font-family: Neographik;
    src: url(./src/fonts/Neographik/Neographik.otf);
}

@keyframes textAnimRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(30%);
    }
}

@keyframes textAnimLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-30%);
    }
}

@keyframes rotate {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

html {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
h7,
p,
a,
span,
button {
    font-family: 'Switzer-Variable';
}

a.buttonB {
    overflow: hidden;
    z-index: 0;
    transition: all 300ms;
    text-decoration: none;
    color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 60px;
    border-radius: 60px;
    background-color: #fff;

    div.ellipse {
        transition: all 300ms;
        height: 1px;
        width: 1px;
        opacity: 0;
        position: absolute;
        z-index: 3;
        background-color: rgba(244, 244, 244, 0.5);
    }

    p {
        font-size: 18px;
        line-height: 24px;
    }
}

a.buttonB:hover {
    color: #fff;

    div.ellipse {
        opacity: 1;
        transform: scale(300);
        z-index: 3;
        background-color: #000;
    }

    p {
        position: absolute;
        z-index: 3;
        color: #fff;
    }
}

a.buttonN {
    overflow: hidden;
    z-index: 0;
    transition: all 300ms;
    text-decoration: none;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 60px;
    border-radius: 60px;
    background-color: #000;

    div.ellipse {
        transition: all 300ms;
        height: 1px;
        width: 1px;
        opacity: 0;
        position: absolute;
        z-index: 3;
        background-color: rgba(244, 244, 244, 0.5);
    }

    p {
        font-size: 18px;
        line-height: 24px;
    }
}

a.buttonN:hover {
    color: #000;

    div.ellipse {
        opacity: 1;
        transform: scale(300);
        z-index: 3;
        background-color: #fff;
    }

    p {
        position: absolute;
        z-index: 3;
        color: #000;
    }
}

button.buttonN {
    border: none;
    overflow: hidden;
    z-index: 0;
    transition: all 300ms;
    text-decoration: none;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 60px;
    border-radius: 60px;
    background-color: #000;

    div.ellipse {
        transition: all 300ms;
        height: 1px;
        width: 1px;
        opacity: 0;
        position: absolute;
        z-index: 3;
        background-color: rgba(244, 244, 244, 0.5);
    }

    p {
        font-size: 18px;
        line-height: 24px;
    }
}

button.buttonN:hover {
    color: #000;

    div.ellipse {
        opacity: 1;
        transform: scale(300);
        z-index: 3;
        background-color: #fff;
    }

    p {
        position: absolute;
        z-index: 3;
        color: #000;
    }
}

.bottom {
    background-color: #fff;
    transition: all 300ms;
    position: absolute;
    bottom: 0;
    z-index: -1;
    width: fill-available;
    width: -moz-available;
    width: -webkit-fill-available;
    margin: 0 16px;
    padding: 16px 12px;
    border: solid 1px rgba(0, 0, 0, 0.1);
    border-top: unset;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;

    a {
        white-space: nowrap;
        color: #000;
        text-decoration: none;
        font-weight: 600;
        line-height: 20px;
        font-size: 12px;
    }
}

header.pc {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    width: fill-available;
    width: -moz-available;
    width: -webkit-fill-available;
    height: fit-content;
    border-radius: 0px 0px 24px 24px;
    border-bottom: solid 1px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;

    nav:first-child {
        padding: 16px 100px;
    }

    nav:last-child {
        width: unset;
    }

    nav {
        background-color: #fff;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 80px;
        justify-content: center;

        img {
            height: 65px;
        }

        div {
            display: flex;
            flex-direction: row;
            gap: 32px;
        }

        a.underline {
            text-decoration: none;
            display: flex;
            justify-content: center;
            color: #000;
            font-weight: 600;
            font-size: 16px;
            line-height: 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
            width: fit-content;
            height: fit-content;

            &::before {
                transition: 300ms;
                content: "";
                position: absolute;
                bottom: 0;
                height: 1px;
                width: 1px;
                opacity: 0;
                background-color: #4d4d4d;
            }

            &:hover {
                &::before {
                    opacity: 1;
                    transform: scaleX(150);
                }
            }
        }
    }

    .open {
        transform: translateY(53px);
    }
}

header.mobile {
    display: none;
}

a.contact {
    position: fixed;
    z-index: 100;
    bottom: 32px;
    right: 32px;
    border-radius: 1000px;
    background-color: #2d2d2d;
    padding: 8px;
    display: flex;
    transition: all 300ms;
}

a.contact:hover {
    bottom: 40px;

}

header.sticky {

    nav:first-child {
        padding: 0 100px;
    }
}

.blur {
    filter: blur(2px);
}

body>div.popUp {
    margin-left: calc(50vw - 706px/2);
    margin-top: calc(50vh - 341px/2);
    position: absolute;
    width: 640px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 32px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #fff;

    img {
        height: 65px;
        width: fit-content;
    }

    div.content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;

        p {
            font-size: 20px;
            line-height: 26px;
            text-align: center;
        }

        div.checkbox {
            display: flex;
            gap: 24px;
            align-items: center;
        }

        div.buttonsbox {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 96px;

            p {
                text-transform: uppercase;
            }
        }
    }
}

footer {
    background-color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-size: 20px;
    padding: 32px 128px 0;

    a {
        text-decoration: none;
    }

    div.content {
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        width: 100%;

        a {
            color: #BCBCBC;
        }

        >div {
            width: 33%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .footerpages {
            gap: 32px;

            >a:hover {
                transition: 0.2s ease-in;
                scale: 110%;
            }
        }

        .footercontact {
            gap: 24px;

            a>img {
                height: 79px;
            }

            >a:hover {
                transition: 0.2s ease-in;
                scale: 110%;
            }

            >a>div {
                width: 100%;
                display: flex;
                gap: 2vh;
            }

            .maps {

                p {
                    white-space: wrap;
                }
            }
        }

        .footerreseaux {
            justify-content: space-evenly;

            i.fa-facebook {
                color: #BCBCBC;
                transition: 0.2s ease-in-out;
            }

            i.fa-facebook:hover {
                color: #3b5998;
                scale: 110%;
            }

            i.fa-instagram {
                color: #BCBCBC;
                transition: 0.2s ease-in-out;
            }

            i.fa-instagram:hover {
                color: #CD486B;
                scale: 110%;
            }
        }
    }

    >div.legal {
        width: calc(100% + 128px* 2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 64px 0;

        background-image: url(./src/medias/Montagnefooter.png);
        background-repeat: no-repeat;
        background-size: cover;

        color: white;
        font-weight: 700;
        font-size: 16px;
        text-align: center;

        a {
            color: #fff;
        }

        >div {
            width: 50%;
            display: flex;
            justify-content: space-evenly;
        }
    }
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
    height: 100dvh;
}

@media (max-width: 800px) {

    a.buttonB {
        width: 124px;
        height: 48px;
        border-radius: 24px;


        p {
            font-size: 12px;
            line-height: 16px;
        }
    }

    a.buttonN {
        width: 124px;
        height: 48px;
        border-radius: 24px;

        p {
            font-size: 12px;
            line-height: 16px;
        }
    }

    button.buttonN {
        width: 124px;
        height: 48px;
        border-radius: 24px;

        p {
            font-size: 12px;
            line-height: 16px;
        }
    }

    header.pc {
        display: none;
    }

    header.mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1000;

        div.top {
            background-color: #fff;
            border-bottom: solid 1px rgba(0, 0, 0, 0.1);
            width: fill-available;
            width: -moz-available;
            width: -webkit-fill-available;
            padding: 16px 32px;
            display: flex;
            justify-content: space-between;

            img {
                height: 48px;
                width: fit-content;
            }

            button {
                background-color: unset;
                border: none;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;

                svg {
                    transition: all 300ms;
                }
            }
        }

        &.open {

            div.top {

                button {

                    svg.top {
                        transform: rotate(45deg) translateY(18px);
                    }

                    svg.middle {
                        opacity: 0;
                    }

                    svg.last {
                        transform: rotate(-45deg) translateY(-19px);
                    }
                }
            }

            .bottom {
                transform: translateY(52px);
            }
        }
    }

    footer {
        padding: 32px 0 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        >img {
            width: 152px;
            height: fit-content;
        }

        div.content {
            font-size: 14px;
            line-height: 18px;
            white-space: nowrap;
            padding-top: 64px;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            gap: 64px;

            >div {
                width: 50%;
            }

            div.footerreseaux {
                flex-direction: row;
            }

            .maps {

                p {
                    white-space: wrap;
                }
            }
        }

        div.legal {
            width: 100%;
            gap: 12px;
            padding: 40px 0;

            p,
            div {
                width: 90%;
            }

            >div {
                flex-direction: column-reverse;
                gap: 16px;
            }

            p,
            a {
                font-size: 12px;
                line-height: 16px;
            }
        }
    }

    body>div.popUp {
        margin-left: calc(50vw - 314px/2);
        margin-top: calc(50vh - 238px/2);
        width: 280px;
        gap: 16px;
        padding: 12px 16px;
        border-radius: 24px;

        img {
            height: 65px;
            width: fit-content;
        }

        div.content {
            gap: 8px;
            width: 100%;

            p {
                font-size: 12px;
                line-height: 16px;
            }

            div.checkbox {
                display: flex;
                gap: 12px;
                align-items: center;
            }

            div.buttonsbox {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 24px;

                p {
                    text-transform: uppercase;
                }
            }
        }
    }
}

@media (max-width: 397px) {
    header.mobile {

        &.open {

            .bottom {
                transform: translateY(89px);
            }
        }
    }
}