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

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

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: 1000;
    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;
    }
}

header {
    display: flex;
    width: 100%;
    height: 100%;
    margin-top: 100px;
}

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

    .column {
        display: flex;
        flex-direction: column;
        align-items: center;
        float: left;
        padding: 10px;
        height: 100%;
        width: 100%;

        &.left {
            display: flex;
            width: 50%;
            height: 100%;
            gap: 20px;

            .left-header {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }
            .left-header h1 {
                font-size: 5em;
                font-family: "Fredoka", sans-serif;
                font-weight: 800;
            }
            .left-header span {
                color: var(--vert-sarcell);
            }
            .left-header p {
                font-size: 1.2em;
                font-family: "Hanken Grotesk", sans-serif;
                font-weight: 500;
                color: var(--text-secondaire);
            }
            .left-body {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-around;
                width: 100%;
                padding: 10px;
                gap: 20px;

                .project {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-family: "Hanken Grotesk", sans-serif;
                    padding: 20px;
                    border-radius: 50px;
                    width: 100%;
                    background-color: var(--vert-sarcell-800);
                    text-decoration: none;
                    color: var(--white);
                    gap: 20px;
                    box-shadow: 6px 6px var(--box-shadow);
                    transition: 0.2s all ease-in-out;
                    &:hover {
                        gap: 40px;
                    }
                }

                .tarifs {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 800;
                    padding: 20px;
                    border-radius: 50px;
                    background-color: var(--white);
                    border: 2px solid var(--vert-sarcell-800);
                    text-decoration: none;
                    color: var(--vert-sarcell);
                    gap: 20px;
                    width: 60%;
                    box-shadow: 6px 6px var(--box-shadow);
                    transition: 0.2s all ease-in-out;

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

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

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

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

            .left-footer {
                display: flex;
                justify-content: start;
                flex-wrap: wrap;
                gap: 20px;

                p {
                    font-family: "Hanken Grotesk", sans-serif;
                    font-size: 1em;
                    font-weight: 500;
                    color: var(--text-secondaire);

                    i {
                        color: var(--vert-sarcell);
                    }
                }
            }
        }

        &.right {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50%;
            height: 100%;
            gap: 20px;

            img {
                width: 80%;
                height: 100%;
            }

            p {
                font-family: "Hanken Grotesk", sans-serif;
                font-size: 1.2em;
                font-weight: 300;
                color: var(--text-principal);
                padding: 10px;

                span {
                    color: var(--noir);
                    font-weight: 500;
                    font-size: 1.1em;
                }
            }

            span {
                font-family: "Hanken Grotesk", sans-serif;
                font-size: 1.2em;
                font-weight: 200;
                padding: 10px;
                color: var(--text-secondaire);
            }
        }
    }
}

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;

    .section-title {
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        flex-wrap: wrap;
        width: 75%;
        align-items: start;
        padding: 40px 0px;
        h3 {
            color: var(--span);
            font-size: 1em;
            font-family: "Hanken Grotesk", sans-serif;
            font-weight: 500;
            font-style: normal;
            letter-spacing: 2px;
        }

        p {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            font-size: 1.6em;
            font-family: "Fredoka", sans-serif;
            font-weight: 500;
        }

        span {
            font-size: 1.2em;
            color: var(--vert-sarcell);
        }
    }

    .section-header {
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        width: 75%;
        padding: 60px 0px;
        gap: 20px;

        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);
        }
        p {
            font-size: 1.3em;
            font-family: "Hanken Grotesk", sans-serif;
            font-weight: 300;
            width: 60%;
        }
    }

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

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

            .card-header {
                display: flex;
                align-items: start;
                justify-content: center;

                .carre {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1.3em;
                    color: var(--vert-sarcell-800);
                    width: 60px;
                    height: 60px;
                    border: 2px solid var(--box-shadow);
                    border-radius: 20px;
                    background-color: var(--vert-sarcell-50);
                }
            }

            .card-body {
                display: flex;
                flex-direction: column;
                gap: 20px;

                h3 {
                    font-size: 1.8em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                }
                p {
                    font-family: "Hanken Grotesk", sans-serif;
                    font-size: 1.1em;
                    font-weight: 300;
                    color: var(--text-principal);
                }
            }

            .card-footer {
                display: flex;
                align-items: start;
                flex-direction: column;
                width: 100%;
                margin-top: 30px;

                a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                    color: var(--vert-sarcell);
                    text-decoration: none;
                    gap: 10px;
                }
            }
        }
    }

    .section-footer {
        display: flex;
        width: 100%;
        height: 70px;
    }
}

.p2 {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 40px 0px;

    .number {
        display: flex;
        align-items: start;
        justify-content: space-around;
        flex-direction: row;
        width: 100%;

        .card {
            display: flex;
            align-items: start;
            justify-content: center;
            width: 100%;
            flex-wrap: wrap;
            flex-direction: column;

            span {
                font-family: "Fredoka", sans-serif;
                font-size: 2.5em;
                font-weight: 400;
                color: var(--vert-sarcell-500);
            }
            p {
                font-family: "Fredoka", sans-serif;
                font-size: 1em;
                font-weight: 200;
                color: var(--span);
            }
        }
    }
}

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

    .p3-header {
        display: flex;
        align-items: start;
        justify-content: center;
        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);
        }
    }
    .p3-body {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;

        .card {
            display: flex;
            align-items: start;
            flex-direction: column;
            width: 250px;
            height: 240px;
            border-top: 2px solid var(--vert-sarcell-300);
            padding: 20px;
            gap: 10px;

            .card-header span {
                font-size: 2em;
                font-family: "Fredoka", sans-serif;
                font-weight: 400;
                color: var(--vert-sarcell);
            }

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

                h3 {
                    font-size: 1.3em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                    color: var(--text-principal);
                }
                p {
                    font-family: "Fredoka", sans-serif;
                    font-size: 1em;
                    font-weight: 200;
                    color: var(--span);
                }
            }
        }
    }
}

.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;

            a {
                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 {
    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);
    }
}

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

    section .section-title,
    section .section-header,
    section .section-body {
        width: 65%;
    }
}

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

    nav .onglets {
        gap: 6px;

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

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

    .row .column.left .left-header h1 {
        font-size: 2.6em;
    }

    .row .column.left .left-header p {
        font-size: 1em;
    }

    header .row {
        padding: 60px 0;
    }

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

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

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

    .p3 .p3-body .card {
        width: calc(50% - 10px);
        height: auto;
    }

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

    header {
        margin-top: 80px;
    }

    .row {
        flex-direction: column;
    }

    .row .column.left,
    .row .column.right {
        width: 100%;
    }

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

    .row .column.left .left-header h1 {
        font-size: 2.8em;
    }

    .row .column.left .left-header p {
        font-size: 1em;
    }

    .row .column.left .left-body {
        flex-direction: column;
        padding: 0;

        .project,
        .tarifs {
            width: 100%;
        }
    }

    .row .column.left .left-footer {
        flex-direction: column;
        gap: 10px;
    }

    section .section-title {
        width: 92%;
        padding: 24px 0;
    }

    section .section-title p {
        font-size: 1.2em;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .p2 .row {
        flex-direction: column;
        gap: 20px;
    }

    .p2 .row .column.left,
    .p2 .row .column.right {
        width: 100%;
    }

    .row .column.left .left-body-v2 h2 {
        font-size: 2.2em;
    }

    .row .column.right p {
        font-size: 1em;
    }

    .p2 .number {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .p2 .number .card {
        width: 30%;
    }

    section .section-header {
        width: 92%;
        padding: 40px 0;
    }

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

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

    section .section-body {
        width: 92%;
        flex-direction: column;
    }

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

    .p3 .p3-header h2 {
        font-size: 2.4em;
    }

    .p3 .p3-body .card {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        border-top: none;
        border-left: 2px solid var(--vert-sarcell-300);
        padding: 16px;
    }

    .p3 .p3-body .card .card-header span {
        font-size: 1.6em;
        min-width: 40px;
    }
    .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%;

        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) {
    .row .column.left .left-header h1 {
        font-size: 2.2em;
    }

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

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

    .p2 .number {
        flex-direction: column;
    }

    .p2 .number .card {
        width: 100%;
    }
}
