@import url("/wp-content/themes/theme/responsify-min.css");
@import url(https://fonts.googleapis.com/css?family=Inter:100,200,300,regular,500,600,700,800,900);

:root {
    --color: #86bd4a;
    --color-transparent: #f3f6ef;
    --color-opacity: #e5eeda;
    --shadow: 1px 1px 30px rgba(0, 0, 0, 0.05);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1.5em;
}
body {
    font-family: "Inter", sans-serif;
    background: #fafafa;

    background: linear-gradient(0deg, #00000050, #00000050), url(https://rse-innov.client-site.fr/wp-content/uploads/2024/03/backleaf.webp);
    background-size: cover;

    &::before {
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        top: 0px;
        left: 0px;
        position: absolute;
        content: "";
        z-index: 1;
    }
}
p {
    font-size: 0.9rem;
}

.btn {
    position: relative;
    outline: 0;
    border: 1px solid transparent;
    background-color: var(--color);
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--color-opacity), 0 2px 4px -1px var(--color-opacity);
    transition: 0.3s;
    height: 45px;
}

.btn span {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn span:nth-child(2),
.btn span:nth-child(3) {
    position: absolute;
    top: 40px;
    color: #fff;
}

.btn span:nth-child(2) {
    background-color: var(--color);
}

.btn span:nth-child(3) {
    background-color: var(--color);
}

.btn:hover {
    box-shadow: 0 10px 15px -3px var(--color-opacity), 0 4px 6px -2px var(--color-transparent);
}

.btn:hover span:nth-child(2),
.btn:focus span:nth-child(3) {
    top: 0;
}

.btn:focus {
    box-shadow: none;
}
.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.column {
    flex-direction: column;
}
.container {
    max-width: 1100px;
    width: 100%;
    /* background: red; */
    margin-inline: auto;
    position: relative;
    z-index: 2;
}
.parent_quiz {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-opacity);
    /* background: var(--color); */
    border-radius: 20px;
    flex-direction: column;
    position: relative;

    .__decompte {
        font-size: 1rem;
        font-weight: 700;
        background: #fff;
        padding: 10px 20px;
        border-radius: 30px;
        box-shadow: var(--shadow);
        position: absolute;
        transform: translateY(-50%);
        top: 0px;
    }
    .__question {
        color: var(--color);
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        line-height: 1.5em;
        width: 80%;

        /* padding: 130px 0px; */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 300px;

        .__terminer {
            & h2 {
                font-size: 2rem;
            }
            & span {
                width: 100%;
                display: inline-block;
                font-size: 1.1rem;
                font-weight: 700;
                text-align: center;
                text-wrap: balance;
            }
        }
    }
    .__parent_reponse {
        background: #fff;
        padding: 20px 50px;
        width: 100%;
        border-radius: 0px 0px 20px 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* grid-template-rows: repeat(3, auto); */
        grid-auto-rows: auto;
        gap: 20px;
        .__response {
            padding: 10px 20px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 20px;
            border-radius: 20px;
            transition: 0.3s;
            cursor: pointer;
            position: relative;
            .explique {
                /* position: absolute;
                bottom: 100%;
                left: 0px;
                background: #fff;
                padding: 20px;
                border-radius: 20px;
                transition: 0.3s;
                display: none;
                opacity: 0;
                margin-bottom: 10px; */
                width: 90%;
                & span {
                    text-transform: uppercase;
                    color: var(--color);
                    font-size: 0.8rem;
                    font-weight: 700;
                    z-index: 5;
                }
                & p {
                    width: 100%;
                }
                &.active {
                    background: var(--color-opacity);
                }
            }
            &:hover,
            &.active {
                background: var(--color-opacity);
            }
            /* &:hover .explique {
                opacity: 1;
                display: block;
                .explique {
                    pointer-events: none;
                    z-index: 3;
                }
            } */

            .__tag {
                background: var(--color);
                color: #fff;
                height: 25px;
                width: 25px;
                border-radius: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 0.8rem;
                font-weight: 700;
            }

            & p {
                width: 80%;
            }
        }
    }
    .__parent_next {
        grid-column: 1/3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
}
.boxQuizz {
    height: 95svh;
}
.TitreExplication {
    grid-column: 1/3;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    & svg {
        color: var(--color);
    }
}
.ParentScore {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;

    .dataScore {
        display: flex;
        padding: 5px;
        border-radius: 10px;
        background: #fff;
        align-items: center;
        gap: 10px;
        .parentIcon {
            background: var(--color-opacity);
            color: var(--color);
            height: 40px;
            width: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 7px;
        }
        .data {
            height: auto;
            text-align: left;
            font-size: 0.9rem;
            width: 80%;
            & span {
                font-size: 0.7rem;
                color: #444;
                font-weight: 700;
                text-transform: uppercase;
                text-align: left;
                display: block;
            }
            & div {
                font-size: 0.9rem;
                color: var(--color);
                font-weight: 700;
            }
        }
    }
}
.modal {
    position: fixed;
    top: 0px;
    left: 0px;
    background: #00000080;
    height: 100%;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    .__child {
        padding: 50px;
        background: #fff;
        border-radius: 20px;
        text-align: left;
        max-width: 90%;
        width: 50%;
        font-size: 0.9rem;
    }
    &.active {
        display: flex;
    }
}

@media screen and (max-width: 1300px) {
    .parent_quiz {
        .__parent_reponse {
            gap: 10px;
        }
        .__question {
            height: 200px;
        }
        & p {
            font-size: 0.8rem;
        }
        .__question:has(.__terminer) {
            height: 300px;
        }
    }
}
@media screen and (max-width: 800px) {
    .TitreExplication {
        grid-column: 1/2;
    }
    .parent_quiz {
        .__parent_reponse {
            grid-template-columns: 1fr;
            padding: 20px;
        }
        .__parent_next {
            grid-column: 1/2;
        }
        .__question {
            font-size: 1rem;
            height: 300px;

            .__terminer {
                & h2 {
                    font-size: 2rem;
                }
                & span {
                    width: 100%;
                }
            }
        }
        .__question:has(.__terminer) {
            height: 235px;
        }
    }
    .__parent_next {
        flex-direction: column;
        .btn {
            width: 100%;
        }
    }
    .explique {
        pointer-events: none;
        z-index: 3;
        /* &::before{
            content: "";
            height: 100svh;
            width: 100svw;
            position: fixed;
            background: #00000060;
            top: 0px;
            left: 0px;
        } */
    }

    .boxQuizz {
        padding: 50px 20px;
        height: auto;
        min-height: 95svh;
    }
}
