/* 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 */

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

.row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    margin-top: 80px;

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

    .left {
        width: 50%;
        display: flex;
        padding: 20px;
        flex-direction: column;
        gap: 20px;

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

            h2 {
                font-size: 2em;
                font-family: "Fredoka", sans-serif;
                font-weight: 600;
                color: var(--text-principal);
                max-width: 65%;
                min-width: 35%;
            }
            p {
                font-size: 1.2em;
                font-family: "Hanken Grotesk", sans-serif;
                font-weight: 400;
                width: 100%;
                color: var(--span);
            }
        }

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

            .card {
                display: flex;
                align-items: center;
                justify-content: start;
                flex-direction: row;
                width: 100%;
                height: 85px;
                border-radius: 20px;
                padding: 10px 20px;
                border: 2px solid var(--box-shadow);
                box-shadow: 6px 6px var(--box-shadow);
                gap: 20px;

                .card-icon {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 10px;
                    width: 40px;
                    height: 40px;
                    border: 2px solid var(--box-shadow);
                    background-color: var(--vert-sarcell-50);
                }

                .card-text {
                    display: flex;
                    align-items: start;
                    justify-content: center;
                    flex-direction: column;

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

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

    .right {
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 50%;

        .contact-from {
            display: flex;
            align-items: start;
            justify-content: start;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 6px 6px var(--box-shadow);
            border: 2px solid var(--box-shadow);

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

                .form-row {
                    display: flex;
                    align-items: start;
                    flex-direction: row;
                    width: 100%;
                    gap: 20px;

                    .form-body-row {
                        display: flex;
                        align-items: start;
                        justify-content: center;
                        flex-direction: column;
                        width: 100%;
                        gap: 10px;
                    }
                }
                label {
                    font-family: "Fredoka", sans-serif;
                    font-weight: 400;
                }
                input {
                    padding: 15px 20px;
                    border-radius: 10px;
                    border: 2px solid var(--border);
                    color: var(--span);
                    font-weight: 50;
                    font-size: 1em;
                    width: 100%;
                    outline: none;
                    transition: border-color 0.2s ease-in-out;

                    &:focus {
                        border-color: var(--vert-sarcell-500);
                    }
                }

                select {
                    padding: 10px 20px;
                    width: 100%;
                    border: 2px solid var(--border);
                    border-radius: 10px;
                    color: var(--span);
                    font-size: 1.1em;
                    outline: none;
                    transition: border-color 0.2s ease-in-out;

                    &:focus {
                        border-color: var(--vert-sarcell-500);
                    }
                }

                textarea {
                    width: 100%;
                    height: 200px;
                    border: 2px solid var(--border);
                    border-radius: 10px;
                    padding: 20px;
                    font-size: 1.1em;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 400;
                    outline: none;
                    transition: border-color 0.2s ease-in-out;

                    &:focus {
                        border-color: var(--vert-sarcell-500);
                    }
                }

                .checkbox {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: start;
                    gap: 12px;
                    width: 100%;
                    padding: 14px 16px;
                    border: 2px solid var(--border);
                    border-radius: 10px;
                    font-family: "Fredoka", sans-serif;
                    font-weight: 500;
                    user-select: none;
                    cursor: pointer;
                    transition: border-color 0.2s ease-in-out;

                    &:focus-within,
                    &:has(input:checked) {
                        border-color: var(--vert-sarcell-500);
                    }

                    input[type="checkbox"] {
                        width: 18px;
                        min-width: 18px;
                        height: 18px;
                        padding: 0;
                        border: none;
                        cursor: pointer;
                        accent-color: var(--vert-sarcell-500);

                        &:focus {
                            border-color: var(--vert-sarcell-500);
                        }
                    }

                    .checkbox-content {
                        display: flex;
                        flex-direction: column;
                        gap: 2px;
                    }

                    span {
                        font-size: 0.8em;
                        font-family: "Fredoka", sans-serif;
                        font-weight: 400;
                        color: var(--span);
                    }
                }
                button {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 20px 20px;
                    width: 100%;
                    background-color: var(--vert-sarcell-500);
                    border-radius: 50px;
                    box-shadow: 6px 6px var(--box-shadow);
                    color: var(--white);
                    font-size: 1.2em;
                    transition: 0.3s all ease-in-out;
                    &:hover {
                        transform: translateY(5px);
                        box-shadow: Opx 0px var(--box-shadow);
                    }
                }
                p {
                    font-family: "Fredoka", sans-serif;
                    font-weight: 200;
                    text-align: center;
                    color: var(--span);
                }
            }
        }
    }
}

.pre-footer {
    margin-top: 80px;
    padding: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-color: var(--vert-sarcell-50);
    width: 100%;
    height: 100%;
    gap: 20px;

    h2 {
        font-size: 3em;
        font-family: "Fredoka", sans-serif;
        font-weight: 800;
    }
    p {
        font-family: "Hanken Grotesk", sans-serif;
        font-size: 1.4em;
        color: var(--span);
        font-weight: 500;
    }

    .buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 20px;

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

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

/* FOOTER */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 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 */

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

@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;
        max-width: 70%;
    }

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

    .row {
        margin-top: 50px;
    }

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

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

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

    .row {
        flex-direction: column;
        margin-top: 40px;
    }

    .row .left {
        width: 100%;
    }

    .row .right {
        width: 100%;
    }

    .row .right .contact-from {
        padding: 24px;
    }

    .row .right .contact-from form .form-row {
        flex-direction: column;
    }

    .pre-footer {
        margin-top: 50px;
        padding: 40px 20px;
        text-align: center;
    }

    .pre-footer h2 {
        font-size: 2.2em;
    }

    .pre-footer p {
        font-size: 1.1em;
    }

    .pre-footer .buttons {
        flex-direction: column;
        width: 100%;
    }

    .pre-footer .buttons a {
        width: 100%;
        text-align: center;
    }

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

    .pre-footer h2 {
        font-size: 1.8em;
    }
}
