/* HEAD */
@import url("./color.css");
@import url("./font.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    max-width: 75%;
    min-width: 75%;
    height: 100%;
}

nav {
    display: flex;
    align-self: center;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    justify-content: space-around;
    flex-direction: row;
    padding: 20px;
    border-bottom: 1px solid rgba(228, 235, 232, 0.6);
    width: 100%;

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;

            img {
                width: 110px;
                height: 40px;
            }
        }
    }

    .onglets {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        width: 100%;

        a {
            text-decoration: none;
            color: var(--vert-sarcell-800);
            font-family: "Fredoka", sans-serif;
            font-weight: 500;

            padding: 10px 20px;
            border-radius: 20px;
        }
        .active {
            background-color: var(--vert-sarcell-50);
        }
    }

    .devis-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;

        a {
            display: flex;
            position: absolute;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-decoration: none;
            background-color: var(--vert-sarcell-800);
            border-radius: 60px;
            color: var(--white);
            font-family: "Fredoka", sans-serif;
            font-weight: 500;
            box-shadow: 6px 6px var(--box-shadow);
            transition: 0.2s all ease-in-out;
            gap: 10px;

            &:hover {
                gap: 12px;
                box-shadow: 1px 1px var(--box-shadow);
            }
        }
    }

    .burger {
        display: none;
        font-size: 1.5em;
        border: none;
        background-color: transparent;
        cursor: pointer;
    }
}

section {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: var(--vert-sarcell-50);
    align-items: center;
}
/* END HEAD */

.header {
    display: flex;
    flex-direction: column;
    margin-top: 100px;
    align-items: start;
    width: 100%;
    gap: 20px;
    padding: 40px 0px;

    span {
        font-family: "Hanken Grotesk", sans-serif;
        font-size: 0.9em;
        color: var(--vert-sarcell-500);
        font-weight: 500;
    }
    h1 {
        font-size: 3.3em;
        font-family: "Fredoka", sans-serif;
        font-weight: 600;
        color: var(--text-principal);
        max-width: 65%;
        min-width: 35%;
    }
    p {
        font-size: 1.3em;
        font-family: "Hanken Grotesk", sans-serif;
        font-weight: 300;
        width: 68%;
    }
}
.p1 {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: row;
    width: 100%;

    .row {
        display: flex;
        flex-direction: row;
        width: 100%;
        padding: 150px 0px;

        .column {
            float: left;
            height: 100%;
        }

        .left {
            width: 60%;

            .left-header {
                display: flex;
                align-items: start;
                justify-content: center;
                width: 100%;
                flex-direction: column;
                height: 100%;
                gap: 10px;

                .bulle {
                    display: flex;
                    flex-direction: column;
                    width: 28%;
                    border-radius: 20px;
                    align-items: center;
                    justify-content: center;
                    padding: 10px;
                    background-color: var(--vert-sarcell);
                    color: var(--white);
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 400;
                    font-size: 0.8em;
                }

                h2 {
                    font-size: 2.3em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                }

                h3 {
                    font-size: 2.2em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                    color: var(--vert-sarcell);

                    span {
                        font-size: 0.5em;
                        color: var(--span);
                    }
                }

                p {
                    font-size: 1.1em;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 400;
                    width: 90%;
                    color: var(--text-secondaire);
                    margin: 10px 0px;

                    span {
                        font-weight: 900;
                    }
                }
            }

            .left-body {
                display: flex;
                align-items: start;
                justify-content: center;
                flex-direction: column;
                gap: 20px;
                margin-top: 20px;

                p {
                    display: flex;
                    align-items: start;
                    justify-content: start;
                    font-size: 1.1em;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 300;
                    width: 100%;
                    color: var(--text-secondaire);
                    gap: 10px;

                    span {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 30px;
                        height: 30px;
                        background-color: var(--border);
                        padding: 3px;
                        border-radius: 50px;
                        font-size: 0.8em;
                    }
                }
                a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 10px;
                    padding: 10px 45px;
                    box-shadow: 6px 6px var(--box-shadow);
                    font-size: 1.1em;
                    background-color: var(--vert-sarcell-500);
                    border-radius: 20px;
                    color: var(--white);
                    text-decoration: none;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 300;
                    border: 2px solid var(--box-shadow);
                    transition: 0.3s all ease-in-out;
                    i {
                        font-size: 0.8em;
                    }

                    &:hover {
                        gap: 12px;
                        box-shadow: 0px 0px var(--box-shadow);
                    }
                }
            }
        }

        .right {
            display: flex;
            align-items: start;
            width: 40%;

            .right-body {
                display: flex;
                width: 100%;
                height: 600px;
                background-image: url("../img/miblo-cli.png");
                background-size: cover;
                background-repeat: no-repeat;
                border-radius: 10px;
                border: 2px solid var(--vert-sarcell-800);

                a {
                    display: flex;
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

.p2 {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    width: 75%;
    padding: 40px 0px;
    gap: 40px;

    .section-header {
        display: flex;
        align-items: start;
        flex-direction: column;
        gap: 10px;

        span {
            font-family: "Hanken Grotesk", sans-serif;
            font-size: 0.9em;
            color: var(--vert-sarcell-500);
            font-weight: 500;
        }

        h2 {
            font-size: 3.3em;
            font-family: "Fredoka", sans-serif;
            font-weight: 600;
            color: var(--text-principal);
            max-width: 65%;
            min-width: 35%;
        }
        p {
            font-size: 1.3em;
            font-family: "Hanken Grotesk", sans-serif;
            font-weight: 300;
            width: 68%;
        }
    }

    .section-body {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        width: 100%;
        height: 100%;
        gap: 20px;

        .card {
            display: flex;
            align-items: start;
            justify-content: safe;
            flex-direction: column;
            width: 320px;
            height: 450px;
            padding: 20px 30px;
            border: 2px solid var(--box-shadow);
            border-radius: 20px;
            gap: 20px;
            background-color: var(--white);
            box-shadow: 6px 6px var(--box-shadow);

            .card-header {
                display: flex;
                flex-direction: row;
                width: 100%;
                align-items: center;
                justify-content: space-between;

                .round {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: var(--vert-sarcell-50);
                    padding: 15px;
                    border-radius: 20px;
                    border: 2px solid var(--vert-sarcell-800);
                    color: var(--vert-sarcell-800);
                }

                h3 {
                    font-size: 2em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                    color: var(--vert-sarcell);

                    span {
                        font-size: 0.5em;
                        font-family: "Hanken Grotesk", sans-serif;
                        font-weight: 300;
                        color: var(--span);
                    }
                }
            }

            .card-body {
                display: flex;
                align-items: start;
                flex-direction: column;
                justify-content: center;
                gap: 20px;

                p {
                    font-size: 1.1em;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 300;
                    width: 100%;
                }

                .option {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;
                    gap: 5px;

                    h3 {
                        display: flex;
                        flex-direction: row;
                        gap: 10px;
                        font-size: 1em;
                        font-family: "Hanken Grotesk", sans-serif;
                        font-weight: 400;
                        width: 100%;
                        color: var(--text-secondaire);
                        margin: 10px 0px;

                        span {
                            font-weight: 900;
                            background-color: var(--vert-sarcell-50);
                            border-radius: 10px;
                            padding: 5px;
                            font-size: 0.5em;
                            height: 100%;
                        }
                    }
                }
            }
        }
    }
}

.miblo-cli {
    position: fixed;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    top: 100px;
    right: 20px;
    border-radius: 30% 50%;
    z-index: 200;
    background-color: blueviolet;
    transition: 0.3s all ease-in-out;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8em;
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 400;
    gap: 2px;

    img {
        width: 40%;
        height: 40%;
    }

    p {
        display: none;
    }
}

.miblo-cli:hover {
    border-radius: 50% 30%;
    width: 200px;
    height: 200px;
    gap: 10px;

    p {
        display: flex;
        background-color: yellow;
        color: var(--box-shadow);
        padding: 10px;
        border-radius: 10px;
    }
}

.p5 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 300px;
    margin-bottom: 50px;

    .card {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 80%;
        height: 100%;
        background-color: var(--vert-sarcell-500);
        border-radius: 30px;
        border: 2px solid var(--box-shadow);
        box-shadow: 6px 6px var(--box-shadow);
        gap: 20px;

        .card-header {
            display: flex;
            align-items: center;
            flex-direction: column;
            gap: 10px;

            h2 {
                font-family: "Fredoka", sans-serif;
                font-size: 3.2em;
                font-weight: 600;
                display: flex;
                align-items: center;
                color: var(--white);
            }

            p {
                font-family: "Fredoka", sans-serif;
                font-size: 1.3em;
                font-weight: 500;
                color: var(--white);
            }
        }

        .card-body {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: row;
            gap: 20px;
            width: 60%;

            a {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 20px 40px;
                text-decoration: none;
                width: 100%;
                background-color: var(--white);
                border-radius: 30px;
                border: 2px solid var(--box-shadow);
                box-shadow: 6px 6px var(--box-shadow);
                color: var(--box-shadow);
                font-family: "Fredoka", sans-serif;
                font-size: 1em;
                font-weight: 500;
                transition: 0.2s all ease-in-out;

                &:hover {
                    box-shadow: 1px 1px var(--box-shadow);
                }
            }
        }
    }
}

/* FOOTER */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 40px;
    margin-top: 40px;
    background-color: var(--vert-sarcell-800);

    .footer-row {
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: row;
        width: 100%;
        height: 60%;
        padding: 20px;
    }

    .footer-column {
        float: left;
        display: flex;
        align-items: start;
        justify-content: center;
        height: 100%;
        padding: 10px;
    }

    .left {
        display: flex;
        text-align: start;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        width: 25%;
        gap: 10px;

        img {
            width: 100px;
            height: 40px;
        }

        p {
            font-family: "Fredoka", sans-serif;
            font-size: 1em;
            font-weight: 200;
            color: var(--white);
        }
    }
    .middle {
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        width: 25%;
        gap: 10px;

        h2 {
            font-size: 1.3em;
            font-family: "Fredoka", sans-serif;
            font-weight: 600;
            color: var(--white);
        }
        a {
            font-family: "Fredoka", sans-serif;
            font-size: 1em;
            font-weight: 400;
            color: var(--border);
        }
    }

    .right {
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        width: 25%;
        height: 100%;
        gap: 10px;

        h2 {
            font-size: 1.3em;
            font-family: "Fredoka", sans-serif;
            font-weight: 600;
            color: var(--white);
        }

        p, a {
            font-family: "Fredoka", sans-serif;
            font-size: 1em;
            font-weight: 400;
            color: var(--border);
            text-decoration: none;
        }
    }

    .footer-footer {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        height: 10%;
        border-top: 1px solid var(--border);
        padding-top: 20px;
        color: var(--white);
    }
}
/* END FOOTER */

/* === RESPONSIVE === */

@media (min-width: 1200px) {
    .container {
        min-width: 65%;
        max-width: 65%;
    }

    .p2 {
        width: 65%;
    }
}

@media (max-width: 1024px) {
    .container {
        min-width: 90%;
        max-width: 90%;
    }

    nav .onglets a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    nav .devis-button a {
        padding: 14px 16px;
        font-size: 0.9em;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
        width: 90%;
    }

    .p1 .row {
        padding: 50px 0;
    }

    .p1 .row .left .left-header h2 {
        font-size: 1.6em;
    }

    .p1 .row .left .left-header h3 {
        font-size: 1.6em;
    }

    .p1 .row .right .right-body {
        height: 380px;
    }

    .p2 {
        width: 90%;
    }

    .p2 .section-header h2 {
        font-size: 2em;
    }

    .p2 .section-header p {
        font-size: 1em;
        width: 90%;
    }

    .p2 .section-body .card {
        flex: 1;
        height: auto;
        min-height: unset;
        padding: 16px 20px;
    }

    .p5 {
        height: auto;
        padding: 20px 0;
    }

    .p5 .card {
        width: 90%;
        padding: 30px 20px;
        height: auto;
    }

    .p5 .card .card-header h2 {
        font-size: 2em;
        text-align: center;
    }

    footer .footer-row {
        flex-wrap: wrap;
    }

    footer .left,
    footer .middle,
    footer .right {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        min-width: 92%;
        max-width: 92%;
    }

    nav {
        padding: 14px 16px;
        justify-content: space-between;
        align-items: center;
    }

    nav .logo {
        width: auto;
        justify-content: flex-start;
    }

    nav .logo a img {
        width: 90px;
        height: 32px;
    }

    nav .onglets {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 8px;
        z-index: 999;

        &.open {
            display: flex;
        }

        a {
            padding: 12px 20px;
            font-size: 1.1em;
            width: 100%;
            text-align: center;
        }
    }

    nav .devis-button {
        display: none;
    }

    nav .burger {
        display: flex;
    }

    .miblo-cli {
        display: none;
    }

    .header {
        margin-top: 80px;
    }

    .header h1 {
        font-size: 2.2em;
        max-width: 100%;
    }

    .header p {
        width: 100%;
        font-size: 1.1em;
    }

    .p1 .row {
        flex-direction: column;
        padding: 40px 0;
    }

    .p1 .row .left {
        width: 100%;
    }

    .p1 .row .right {
        display: none;
    }

    .p1 .row .left .left-header .bulle {
        padding: 8px 16px;
    }

    .p2 {
        width: 92%;
    }

    .p2 .section-header h2 {
        font-size: 2.2em;
        max-width: 100%;
    }

    .p2 .section-header p {
        width: 100%;
        font-size: 1.1em;
    }

    .p2 .section-body {
        flex-direction: column;
    }

    .p2 .section-body .card {
        width: 100%;
        height: auto;
        min-height: unset;
    }

    .p5 {
        height: auto;
        padding: 20px 0 40px;
    }

    .p5 .card {
        width: 100%;
        border-radius: 20px;
        padding: 30px 20px;
        height: auto;
    }

    .p5 .card .card-header h2 {
        font-size: 1.9em;
        text-align: center;
    }

    .p5 .card .card-header p {
        font-size: 1em;
        text-align: center;
    }

    .p5 .card .card-body {
        flex-direction: column;
        width: 100%;
    }

    .p5 .card .card-body a {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }

    footer {
        padding: 30px 20px;
    }

    footer .footer-row {
        flex-direction: column;
        padding: 10px 0;
    }

    footer .left,
    footer .middle,
    footer .right {
        width: 100%;
        margin-bottom: 24px;
    }

    footer .footer-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.85em;
    }
}

@media (max-width: 400px) {
    .header h1 {
        font-size: 1.8em;
    }

    .p5 .card .card-header h2 {
        font-size: 1.6em;
    }
}
