@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-regular-rounded/css/uicons-regular-rounded.css');

/**
-------------------------------------------------- VARIABLES -----------------------------------------------------------
 */

:root {
    --rouge: #FF5959;
}

.rouge {
    color: var(--rouge);
}

html {
    padding: 0;
    margin: 0;
    background-color: #f0f1ec;
    font-family: "Montserrat", sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

.other {
    margin: auto;
    width: 95%;
    height: 100%;

    .onglet1 {
        color: var(--rouge);
        display: flex;
        text-decoration: underline;

    }
}

.redText {
    color: var(--rouge);
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}

a.redText {
    position: relative;
}

a.redText span {
    position: absolute;
    bottom: 0;
    left: 0;
    border: 1px solid var(--rouge);
    border-radius: 3px;
    width: 0;
    transition: width 0.5s ease-in-out;
}

a.redText:hover > span {
    width: 100%;
}


.light {
    font-weight: 400;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 5px;
    background-color: #f0f1ec;
}

::-webkit-scrollbar-thumb {
    background-color: var(--rouge);
    border-radius: 5px;
}

.lighter {
    font-weight: lighter;
}


/**
---------------------------------------------------- WRAPTOP -----------------------------------------------------------
 */

.wrapTop {

    width: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    background-color: #e6e6e6;

    .illu {
        width: 300px;
        padding-left: 10px;
        padding-right: 35px;
    }

    div {
        padding: 10px;
    }

}


/**
---------------------------------------------------- BOUTONS -----------------------------------------------------------
 */
.bouton {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--rouge);
    color: white;
    cursor: pointer;
    transition: 0.5s ease-in-out;
    text-decoration: none;
    user-select: none;
    border: 1px solid transparent;
}

.bouton:hover {
    background-color: transparent;
    border: 1px solid var(--rouge);
    color: var(--rouge);
}


/**
---------------------------------------------------- NAVBAR ------------------------------------------------------------
 */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding-right: 10px;
    background-color: var(--rouge);
    color: white;

    .logo {
        height: 80px;
        background-color: white;
    }

    .wrapRedirections {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        align-content: center;

        .active {
            background-color: #ff9191;
        }

        a, form {
            color: white;
            text-decoration: none;
            margin-right: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            align-content: center;
            border-radius: 5px;
            padding: 7px 10px;
            cursor: pointer;
            transition: 0.5s ease-in-out;

            p {
                margin: 0;
            }

            &:hover {
                background-color: #ff9191;
            }

            img {
                padding-right: 10px;
                width: 30px;
                filter: invert(1);
            }

            button {
                height: 100%;
                width: 100%;
                background-color: transparent;
                border: none;
                outline: none;
                cursor: pointer;
                margin: 0;
                color: white;
                text-align: left;
                font-size: 1em;
                font-family: "Montserrat", sans-serif!important;
                display: flex;
                justify-content: center;
                align-items: center;
                align-content: center;

                img {
                    padding-right: 10px;
                    width: 30px;
                    filter: invert(1);
                }
            }

        }
    }

}


/**
----------------------------------------------------- FLASH ------------------------------------------------------------
 */

.alert {
    font-weight: lighter;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 10px;
    min-width: 250px;
    max-width: 400px;
    min-height: 10px;
    max-height: 250px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    z-index: 1001;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    transition: top 1s ease-in-out;
}

.alert:hover {
    cursor: pointer;
    user-select: none;
}

.alert > p {
    font-size: 1em;
    margin-left: 5%;
    line-height: 1em;
    margin-top: 1%;
    margin-bottom: 1%;
    font-weight: 400;
}

.alert > img {
    width: 35px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}


/**
--------------------------------------------------- SWITCHES MODES -----------------------------------------------------
 */


.switch_3_ways {
    margin: auto;
    font-size: 1em;
    padding-top: 50px;
    height: 2em;
    line-height: 2em;
    border-radius: 0.3em;
    background: #ccc;
    position: relative;
    display: block;
    float: left;
}

.switch.monthly,
.switch.semester,
.switch.annual {
    cursor: pointer;
    position: relative;
    display: block;
    float: left;
    padding: 0 1em;
    -webkit-transition: 300ms ease-out;
    -moz-transition: 300ms ease-out;
    transition: 300ms ease-out;
}

.switch.active {
    color: white;
    border-radius: 0.3em;
    -moz-box-shadow: 0 0 7px 1px #656565;
    -webkit-box-shadow: 0 0 7px 1px #656565;
    -o-box-shadow: 0 0 7px 1px #656565;
    box-shadow: 0 0 7px 1px #656565;
    filter: progid:DXImageTransform.Microsoft.Shadow(color=#656565, Direction=NaN, Strength=7);
}

.switch.monthly.active {
    background-color: var(--rouge);
}

.switch.semester.active {
    background-color: var(--rouge);
}

.switch.annual.active {
    background-color: var(--rouge);
}

.switch.active > img {
    filter: invert(1);
}


.switchLight {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding-top: 10px;
    position: absolute;
    top: 85px;
    right: 15px;
    width: 150px;
    z-index: 9;
}

.switch_3_ways_v2 {
    margin: auto;
    font-size: 1em;
    height: 2em;
    line-height: 2em;
    border-radius: 50px;
    background: #ccc;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    max-width: 150px;
}

.switch2.monthly,
.switch2.semester,
.switch2.annual {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    -webkit-transition: 300ms ease-out;
    -moz-transition: 300ms ease-out;
    transition: 300ms ease-out;
    height: 100%;
    padding: 0 1em;
}

.switch2 > img {
    padding: 0;
    width: 20px;
}

.selector {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    position: absolute;
    width: 15px;
    height: 25px;
    box-sizing: border-box;
    -webkit-transition: 300ms ease-out;
    -moz-transition: 300ms ease-out;
    transition: 300ms ease-out;
    border-radius: 50px;
    filter: progid:DXImageTransform.Microsoft.Shadow(color=#9b9b9b, Direction=180, Strength=13);
    margin-left: 7px;
}

.selector > img {
    width: 20px;
    filter: invert(1);
}


/**
------------------------------------------------------ DARK MODE -------------------------------------------------------
 */

.dark {
    background-color: #2b2b2b;
    color: white;

    .wrapTop {
        background-color: #232323;
    }

    ::-webkit-scrollbar {
        width: 10px;
        border-radius: 5px;
        background-color: #111;
    }

    .invertLight {
        filter: invert(1);
    }

}


/**
--------------------------------------------------- RESPONSIVE ---------------------------------------------------------
 */

@media (max-width: 1000px) {
    .wrapTop {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        width: 95%;
        margin: auto;

        .illu {
            width: 200px !important;
            padding-left: 0;
        }

        div {
            padding: 0;
        }

    }
}

@media (max-width: 850px) {

    .switchLight {
        top: 10px;
    }

    .other {
        padding-bottom: 70px;
        padding-top: 70px;
    }

    nav {
        position: fixed;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        z-index: 15;
        border-radius: 10px;
        padding-right: 10px;
        padding-left: 10px;

        .logo {
            display: none;
        }

        .wrapRedirections {
            width: 100%;
            height: 100%;
            justify-content: space-between;
            padding: 5px;

            .redirection {
                margin: 0;

                img {
                    padding: 0;
                    margin: 0;
                }

                p {
                    display: none;
                }
            }

            form {

                button {

                    *:not(img) {
                        display: none;
                    }

                    p {
                        display: none!important;
                    }

                    img {
                        padding: 0!important;
                        margin: 0!important;
                    }

                }

                margin: 0;
            }
        }
    }

}


