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

.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;
    }
}
/* END HEAD */
.container {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    max-width: 75%;
    min-width: 75%;
    height: 100%;

    .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: 63%;
            min-width: 35%;
        }
        p {
            font-size: 1.2em;
            font-family: "Hanken Grotesk", sans-serif;
            font-weight: 400;
            color: var(--span);
            width: 68%;
        }
    }

    .row {
        display: flex;
        align-items: stretch;
        justify-content: center;
        flex-direction: row;
        width: 100%;
        border-radius: 30px;
        box-shadow: 6px 6px var(--box-shadow);

        .column {
            float: left;
            display: flex;
            align-items: start;
            justify-content: center;
            flex-direction: column;
            width: 100%;
        }

        .left {
            width: 55%;
            background-color: var(--vert-sarcell-500);
            border-top-left-radius: 30px;
            border: 2px solid var(--box-shadow);
            border-bottom-left-radius: 30px;
            padding: 70px;
            gap: 20px;

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

                h4 {
                    width: 100%;
                    font-size: 1em;
                    font-family: "Hanken Grotesk", sans-serif;
                    letter-spacing: 2px;
                    font-weight: 500;
                    color: var(--white);

                    span {
                        width: 20px;
                        height: 20px;
                        padding: 5px;
                        background-color: var(--white);
                        color: var(--vert-sarcell-500);
                        border-radius: 50px;
                        font-size: 1em;
                    }
                }

                h2 {
                    font-size: 2.8em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 600;
                    color: var(--white);
                    max-width: 90%;
                    min-width: 35%;
                }

                p {
                    font-size: 1.2em;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 400;
                    color: var(--border);
                    width: 100%;
                }
            }

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

                p {
                    display: flex;
                    align-items: center;
                    justify-content: start;
                    flex-direction: row;
                    font-size: 1em;
                    font-family: "Hanken Grotesk", sans-serif;
                    font-weight: 400;
                    color: var(--white);
                    gap: 10px;

                    i {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 15px;
                        height: 15px;
                        padding: 10px;
                        background-color: var(--vert-sarcell-50);
                        color: var(--vert-sarcell-500);
                        border-radius: 50%;
                    }
                }
            }
        }
        .right {
            display: flex;
            align-items: start;
            justify-content: center;
            width: 45%;
            background-color: var(--vert-sarcell-800);
            border-top-right-radius: 30px;
            border: 2px solid var(--box-shadow);
            border-bottom-right-radius: 30px;
            padding: 70px;
            gap: 20px;

            .textspan {
                font-size: 1em;
                font-family: "Hanken Grotesk", sans-serif;
                font-weight: 400;
                letter-spacing: 2px;
                color: var(--border);
            }
            h2 {
                display: flex;
                align-items: baseline;
                flex-direction: row;
                gap: 10px;
                justify-content: center;
                font-size: 3.5em;
                font-family: "Fredoka", sans-serif;
                font-weight: 500;
                color: var(--white);

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

            p {
                font-size: 0.9em;
                font-family: "Hanken Grotesk", sans-serif;
                font-weight: 200;
                width: 100%;
                color: var(--border);
            }

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

                &:hover {
                    transform: translateY(8px);
                    box-shadow: 0px 0px var(--box-shadow);
                }
            }
        }
    }
}

.separate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px;
    gap: 30px;

    .bar {
        width: 100px;
        height: 2px;
        background-color: var(--border);
    }

    .text {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        padding: 12px 20px;
        font-size: 1.1em;
        box-shadow: 6px 6px var(--box-shadow);
        background-color: var(--vert-sarcell-50);
        border: 2px solid var(--box-shadow);
        color: var(--vert-sarcell-800);
        font-family: "Fredoka", sans-serif;
        font-weight: 500;
        gap: 10px;

        border-radius: 50px;
    }
}

.p2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    padding: 10px;
    width: 100%;

    .p2-head {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 20px;

        h4 {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: row;
            gap: 10px;
            font-size: 1.1em;
            font-family: "Fredoka", sans-serif;
            font-weight: 500;
            color: var(--vert-sarcell-500);

            span {
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50px;
                padding: 15px;
                font-size: 1.2em;
                width: 20px;
                height: 20px;
                font-family: "Fredoka", sans-serif;
                font-weight: 500;
                background-color: var(--vert-sarcell-500);
                border: 2px solid var(--vert-sarcell-50);
                color: var(--vert-sarcell-50);
            }
        }

        h2 {
            max-width: 80%;
            text-align: center;
            font-size: 4em;
            font-family: "Fredoka", sans-serif;
            font-weight: 600;
        }

        p {
            max-width: 80%;
            text-align: center;
            font-size: 1.3em;
            font-family: "Fredoka", sans-serif;
            font-weight: 400;
            color: var(--span);
        }
    }

    .p2-body {
        display: flex;
        align-items: start;
        justify-content: start;
        flex-direction: row;
        gap: 20px;

        .card {
            display: flex;
            align-items: start;
            justify-content: start;
            flex: 1;
            height: 100%;
            border: 2px solid var(--box-shadow);
            box-shadow: 6px 6px var(--box-shadow);
            border-radius: 20px;
            padding: 20px;
            gap: 30px;
            flex-direction: column;

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

                i {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1.2em;
                    width: 50px;
                    height: 50px;
                    border-radius: 10px;
                    border: 2px solid var(--box-shadow);
                    background-color: var(--white);
                    color: var(--vert-sarcell-500);
                }
            }
            .card-body {
                display: flex;
                align-items: start;
                justify-content: center;
                flex-direction: column;
                gap: 10px;

                h2 {
                    font-size: 1.2em;
                    color: var(--box-shadow);
                    font-family: "Fredoka", sans-serif;
                    font-weight: 500;
                }

                p {
                    font-size: 0.9em;
                    color: var(--span);
                    font-family: "Fredoka", sans-serif;
                    font-weight: 300;
                }
                h3 {
                    display: flex;
                    align-items: baseline;
                    justify-content: center;
                    flex-direction: row;
                    font-size: 2em;
                    color: var(--vert-sarcell-500);
                    font-family: "Fredoka", sans-serif;
                    font-weight: 500;
                    gap: 10px;

                    span {
                        font-size: 0.6em;
                        color: var(--span);
                        font-family: "Fredoka", sans-serif;
                        font-weight: 500;
                    }
                }
                .attention span {
                    color: red;
                }
            }

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

                p {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: row;
                    font-size: 0.9em;
                    color: var(--span);
                    font-family: "Fredoka", sans-serif;
                    font-weight: 300;
                    gap: 20px;

                    span {
                        font-size: 0.8em;
                        background-color: var(--white);
                        padding: 5px;
                        border-radius: 10px;
                        color: var(--vert-sarcell-500);
                        font-family: "Fredoka", sans-serif;
                        font-weight: 500;
                    }
                }
            }
        }

        .reco {
            background-color: var(--vert-sarcell-50);
        }
    }

    .p2-footer {
        display: flex;
        align-items: start;
        justify-content: start;
        flex-direction: row;
        width: 90%;
        padding: 20px;
        background-color: var(--vert-sarcell-50);
        color: var(--box-shadow);
        border-radius: 20px;
        gap: 10px;

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

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

.p4 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 50px 0px;
    padding: 20px;

    .p4-header {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;

        p {
            font-size: 1em;
            color: var(--vert-sarcell-500);
            font-family: "Fredoka", sans-serif;
            font-weight: 500;
        }
        h2 {
            font-size: 2.6em;
            max-width: 80%;
            color: var(--box-shadow);
            font-family: "Fredoka", sans-serif;
            font-weight: 600;
        }
    }

    .p4-body {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 70%;
        padding: 20px;
        gap: 20px;

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

            .accordion {
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-direction: row;
                background-color: var(--white);
                color: var(--box-shadow);
                cursor: pointer;
                border: 2px solid var(--box-shadow);
                box-shadow: 6px 6px var(--box-shadow);
                border-radius: 20px;
                padding: 18px;
                width: 100%;
                text-align: left;
                outline: none;
                font-size: 15px;
                transition: 0.4s;
                font-family: "Fredoka", sans-serif;
                font-weight: 300;

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

            .active {
                background-color: var(--border);
                box-shadow: 0px 0px;
                border-bottom: none;
                border-bottom-left-radius: 0px;
                border-bottom-right-radius: 0px;
            }

            .panel {
                padding: 10px 18px;
                display: none;
                background-color: transparent;
                overflow: hidden;
                border: 2px solid var(--box-shadow);
                border-bottom-left-radius: 20px;
                border-bottom-right-radius: 20px;
                z-index: 20;

                p {
                    font-family: "Fredoka", sans-serif;
                    font-weight: 300;
                }
            }
        }
    }
}

.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: 0.9em;
                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%;
    }
}

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

    .container .header h1 {
        font-size: 2.4em;
        max-width: 60%;
    }

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

    .container .row {
        height: auto;
    }

    .container .row .left {
        padding: 40px;
    }

    .container .row .right {
        padding: 40px;
    }

    .container .row .left .left-header h2 {
        font-size: 2em;
    }

    .p2 .p2-head h2 {
        font-size: 2.8em;
    }

    .p4 .p4-body {
        width: 90%;
    }

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

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

    .p5 .card .card-header h2 {
        font-size: 2.4em;
        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;
    }

    .container .header {
        margin-top: 80px;
    }

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

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

    .container .row {
        flex-direction: column;
        height: auto;
    }

    .container .row .left {
        width: 100%;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 40px 30px;
    }

    .container .row .right {
        width: 100%;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        padding: 40px 30px;
    }

    .container .row .left .left-header h2 {
        font-size: 1.8em;
    }

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

    .p2 .p2-head p {
        max-width: 100%;
        font-size: 1.1em;
    }

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

    .p2 .p2-body .card {
        width: 100%;
        flex: unset;
    }

    .p4 .p4-body {
        width: 100%;
        padding: 10px 0;
    }

    .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) {
    .container .header h1 {
        font-size: 1.8em;
    }

    .p2 .p2-head h2 {
        font-size: 1.8em;
    }

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