/* CSS reset */
*,
*::after,
*::before {
    box-sizing: border-box;
}

* {
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'TT Norms Pro', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #EEEDED;
    color: #181E8F;
}

/* Fonts */
@font-face {
    font-family: 'TT Norms Pro';
    src: url('../fonts/TT-Regular.woff2') format('woff2'),
        url('../fonts/TT-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('../fonts/TT-Bold.woff2') format('woff2'),
        url('../fonts/TT-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TT Norms Pro';
    src: url('../fonts/TT-Medium.woff2') format('woff2'),
        url('../fonts/TT-Medium.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'TT Norms Pro', sans-serif;
    margin: 0;
}

/* BREADCRUMBS STYLE */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;

    span {
        color: #181E8F;
        font-weight: 600;
    }

    a {
        text-decoration: none;
        color: #181E8F;
        font-weight: 400;
    }
}

/* NAVBAR STYLE */
nav {
    position: relative;

    .nav-links {
        display: none;
        height: 100vh;
        width: 100vw;
        z-index: 99;

        &.visible {
            position: absolute;
            top: 50px;
            right: 0;
            z-index: 100;
            display: flex;
            flex-direction: column;
            font-family: 'TT Norms Pro', sans-serif;
            font-weight: bold;
            font-size: 2.25rem;
            background-color: #EEEDED;

            a {
                text-decoration: none;
                text-transform: uppercase;
                color: #181e8f;
                padding: 20px;
                transition: color 0.3s;

                &:not(:last-child) {
                    border-bottom: 1px solid rgba(24, 30, 143, 0.18);
                }

                &.active {
                    text-decoration: underline;
                }
            }
        }
    }

    .profile-link {
        display: none;
        height: 30px;

        img {
            height: 100%;
        }

        &.visible {
            display: flex;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 5%;
        }
    }

    .logout-link {
        display: none;
        height: 27px;

        img {
            height: 100%;
        }

        &.visible {
            display: flex;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 5%;
        }
    }

    .logo {
        width: 30px;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        position: absolute;
    }

    .nav-logo-burger {
        height: 50px;

        .burger-btn {
            width: 25px;
            height: 20px;
            margin: auto;
            cursor: pointer;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 3%;
        }

        .burger-btn:before,
        .burger-btn span,
        .burger-btn:after {
            width: 100%;
            height: 3px;
            display: block;
            background: #181E8F;
            border-radius: 2px;
            position: absolute;
            opacity: 1;
        }

        .burger-btn:before,
        .burger-btn:after {
            transition: top .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1),
                opacity .35s cubic-bezier(.23, 1, .32, 1),
                background-color 1.15s cubic-bezier(.86, 0, .07, 1);
            -webkit-transition: top .35s cubic-bezier(.23, 1, .32, 1), -webkit-transform .35s cubic-bezier(.23, 1, .32, 1), opacity .35s cubic-bezier(.23, 1, .32, 1), background-color 1.15s cubic-bezier(.86, 0, .07, 1);
            content: "";
        }

        .burger-btn:before {
            top: 0px;
        }

        .burger-btn span {
            top: 7px;
        }

        .burger-btn:after {
            top: 14px;
        }

        .burger-btn.active span {
            opacity: 0;
        }

        .burger-btn.active:before,
        .burger-btn.active:after {
            top: 40%;
        }

        .burger-btn.active:before {
            transform: rotate(45deg);
        }

        .burger-btn.active:after {
            transform: rotate(-45deg);
        }
    }
}

/* LOGIN STYLE */
.connexion_page {
    position: relative;
    text-align: center;
    font-family: 'TT Norms Pro';
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #171D8F;
    background-color: #EEEDED;
    height: 100vh;
    width: 100vw;

    h1 {
        position: relative;
        bottom: 85px;
        font-size: 1.25rem;

        .logo_title {
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                position: relative;
                left: 6px;
                height: 24px;
                width: 23px;
            }
        }
    }

    .form_connexion {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        position: relative;
        border-radius: 12px;
        background-color: #FFF;
        width: 85%;
        max-width: 375px;
        padding: 1.375rem 2rem;
        box-shadow: 0px 0px 17.5px -3px rgba(0, 0, 0, 0.25);

        h2 {
            font-size: 1.25rem;
            margin-bottom: 30px;

            .logo_title {
                display: flex;
                align-items: center;
                justify-content: center;

                img {
                    position: relative;
                    left: 6px;
                    height: 24px;
                    width: 23px;
                }
            }
        }

        .form-inputs {
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 1rem;
            margin-bottom: 1rem;

            .form-group {
                position: relative;

                .eye-icon img {
                    position: absolute;
                    right: 0.75rem;
                    top: 50%;
                    transform: translateY(-50%);
                    cursor: pointer;
                }

                input {
                    border: solid 1px #181e8f;
                    border-radius: 10px;
                    height: 35px;
                    width: 100%;
                    padding-inline: 0.75rem;

                    &::placeholder {
                        opacity: 0;
                    }

                    &:focus {
                        /* border: 1px solid #181e8f; */
                        outline: 1px solid #181e8f;
                    }

                    &:focus+label {
                        font-weight: bold;
                    }

                    &:focus+label,
                    &:not(:placeholder-shown)+label {
                        transform: translateY(calc(-50% - 115%));
                        color: #181e8f;
                    }
                }

                label {
                    font-family: 'TT Norms Pro', sans-serif;
                    font-weight: normal;
                    font-size: 0.8rem;
                    background-color: #FFF;
                    z-index: 1;
                    position: absolute;
                    left: 1.5rem;
                    top: 50%;
                    transform: translateY(-50%);
                    padding-inline: 0.4em;
                    transition: transform 0.2s;
                    pointer-events: none;
                    transform-origin: left;
                    translate: -0.3em;
                }
            }
        }

        input[type="submit"] {
            font-family: 'TT Norms Pro';
            font-weight: bold;
            position: relative;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
            border-radius: 7px;
            margin-bottom: 1rem;
            padding: 0.5625rem 0.75rem;
            border: none;
            cursor: pointer;
            background-color: #171D8F;
            color: white;
            box-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.25);
        }

        a {
            font-family: 'TT Norms Pro', sans-serif;
            font-weight: normal;
            font-size: 0.7rem;
            position: relative;
            color: #171D8F;
        }
    }
}

/* HOMEPAGE STYLE */
.homepage {
    width: 90vw;
    margin: 30px auto;

    .header-welcome {
        font-family: 'TT Norms Pro', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 1.5rem;
        border-radius: 7px;
        background-color: white;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 1rem;
        margin-top: 1rem;
        -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
    }

    .homework-absences {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: white;
        color: white;
        -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        border-radius: 7px;
        margin: auto;
        margin-top: 15px;
        padding: 1rem;
        gap: 10px;

        .homework,
        .absences {
            flex: 1;
            background-color: #181E8F;
            min-height: 160px;
            max-height: 160px;
            border-radius: 7px;
            font-size: 0.75rem;
            padding: 0.5rem;
            position: relative;
            display: flex;
            flex-direction: column;

            hr {
                width: 100%;
            }

            h2 {
                font-weight: 400;
                font-size: 0.8125rem;
            }

            .homework-items {
                display: flex;
                flex-direction: column;
                gap: 10px;

                .homework-item {
                    a {
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        color: white;
                        text-decoration: underline;

                        img {
                            width: 15px;
                            height: 15px;
                        }
                    }
                }
            }

            .seemore-btn {
                display: flex;
                color: #181E8F;
                background-color: white;
                border-radius: 5px;
                padding: 5px 15px;
                font-size: 0.65rem;
                width: fit-content;
                margin: 0 auto;
                margin-top: auto;
            }
        }


    }

    .calendar-img {
        display: flex;
        width: 100%;
        margin: 20px auto;
        -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
    }

    .calendar-desktop,
    .calendar-tablet {
        display: none;
    }

    .homepage-grades {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 10px;
        -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        overflow: hidden;

        h2 {
            font-size: 1rem;
            margin-bottom: 10px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;

            thead {
                th {
                    text-align: left;
                    padding: 0.5rem 0.5rem 0.5rem 0;
                    font-size: 0.75rem;
                    background-color: #fff;
                    border-bottom: 1px solid #181E8F;
                    font-weight: bold;
                }
            }

            tbody {
                td {
                    padding: 0.75rem 0.5rem 0.5rem 0;
                    font-size: 0.75rem;

                    strong {
                        background-color: #181E8F;
                        color: #fff;
                        padding: 5px;
                        border-radius: 5px;
                        display: flex;
                        width: 60px;
                        justify-content: center;
                    }
                }
            }
        }

        .view-more {
            background-color: #181E8F;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            margin-top: 15px;
            margin-left: auto;
            margin-right: auto;
            display: flex;
            width: fit-content;
            font-size: 0.9rem;

            &:hover {
                background-color: #000d88;
            }
        }
    }
}

/* DASHBOARD PAGE STYLE */
.dashboard-page {
    max-width: 90vw;
    margin: 30px auto;

    .homework-tests {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: auto;

        .homework {
            width: 100%;

            h2 {
                font-size: 1.25rem;
                margin-bottom: 10px;
            }

            hr {
                border-color: #181E8F;
            }

            .homework-items {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;


                .homework-item {
                    a {
                        display: flex;
                        gap: 10px;
                        color: #181E8F;
                        text-decoration: none;

                        img {
                            width: 20px;
                            height: 20px;
                        }
                    }
                }
            }
        }

        .tests {
            width: 100%;
            margin-top: 20px;

            h2 {
                font-size: 1.25rem;
                margin-bottom: 10px;
            }

            hr {
                border-color: #181E8F;
            }

            .test-items {
                display: grid;
                grid-template-columns: 1fr;
                gap: 10px;


                .test-item {
                    a {
                        display: flex;
                        gap: 10px;
                        color: #181E8F;

                        img {
                            width: 20px;
                            height: 20px;
                        }
                    }

                    p {
                        margin: 0;
                    }
                }
            }
        }
    }

    .search-courses {
        width: 100%;
        margin: 15px auto;
        display: flex;
        justify-content: flex-start;

        .form-group {
            position: relative;
            width: 100%;

            input {
                color: #181E8F;
                padding: 1.35rem 0.75rem 0.15rem;
                border: 2px solid #181E8F;
                border-radius: 10px;
                width: 100%;
                font-size: 1rem;
            }

            label {
                position: absolute;
                top: 0.8rem;
                left: 0.7rem;
                background-color: #ffffff;
                padding-inline: 0.3em;
                color: #181E8F;
                font-size: 1rem;
                pointer-events: none;
                transition: all 0.2s ease;
            }

            input::placeholder {
                opacity: 0;
            }

            input:focus {
                border-color: #181E8F;
            }

            input:focus+label,
            input:not(:placeholder-shown)+label {
                top: 0.3rem;
                left: 0.6rem;
                font-size: 0.85rem;
                font-weight: 500;
                color: #525252;
            }
        }
    }

    .courses {
        margin: 15px auto;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;

        .course {
            height: 100%;
            max-width: 400px;
            width: 100%;
            padding: 10px;
            background-color: #ffffff;
            border-radius: 15px;
            -webkit-box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);
            overflow: hidden;

            .course-header {
                background-color: #181E8F;
                color: white;
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;
                padding: 10px;
                text-transform: uppercase;

                h2 {
                    font-size: 1rem;
                }
            }

            .course-img {
                position: relative;
                width: 100%;
                max-height: 160px;
                background-color: #181E8F;
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
                overflow: hidden;

                img {
                    width: 100%;
                    height: 160px;
                    border-bottom-left-radius: 10px;
                    border-bottom-right-radius: 10px;
                    object-fit: cover;
                }

                a:first-child {
                    display: flex;
                }

                .seemore {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    padding: 5px 10px;
                    background-color: #fff;
                    color: #181E8F;
                    border-top-left-radius: 10px;
                    font-size: 0.9rem;
                    font-weight: bold;
                }
            }
        }
    }
}

/* COURSE PAGE STYLE */
.course-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px auto;
    width: 90vw;

    .course {
        width: 100%;
        margin: auto;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        -webkit-box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);

        .course-header {
            position: relative;
            height: 170px;

            .course-infos {
                position: absolute;
                color: white;
                z-index: 2;
                margin: 0 25px;
                top: 50%;
                transform: translateY(-50%);
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                filter: brightness(0.2);
            }
        }

        .course-deposit {
            padding: 20px;


            h2 {
                font-size: 1.25rem;
                margin-bottom: 20px;
            }

            .homework-items {
                display: flex;
                flex-direction: column;
                gap: 25px;

                .homework-item {
                    max-width: 500px;
                    width: 100%;
                    margin: auto;
                    border: 3px solid #181E8F;
                    border-radius: 15px;
                    padding: 10px 10px;
                    position: relative;

                    h3 {
                        font-size: 1rem;
                        margin-top: -20px;
                        margin-left: 10px;
                        background-color: #fff;
                        width: fit-content;
                        padding: 0 1vw;
                        font-weight: bold;
                        font-size: 0.9rem;
                    }

                    span.date {
                        background-color: #181E8F;
                        color: white;
                        padding: 5px 10px;
                        position: absolute;
                        border-top-right-radius: 15px;
                        border-bottom-left-radius: 15px;
                        top: -1px;
                        right: -1px;
                        font-size: 0.7rem;
                        max-width: 50%;
                    }

                    .homework-deposit {
                        margin-top: 25px;
                        border: 2px solid #181E8F;
                        border-radius: 10px;

                        .deposit-header {
                            border-bottom: 2px solid #181E8F;
                            padding: 5px;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            font-size: 0.9rem;

                            img {
                                width: 20px;
                            }
                        }

                        .deposit-zone {
                            padding: 15px 10px;
                            display: flex;
                            flex-direction: column;
                            /* gap: 20px; */
                            justify-content: center;
                            align-items: center;
                            text-align: center;
                            font-size: 0.9rem;
                            cursor: pointer;

                            p {
                                margin: 0;
                            }
                        }

                        .file-list {
                            font-size: 0.9rem;
                        }
                    }

                    button {
                        background-color: #181E8F;
                        color: white;
                        border: none;
                        border-radius: 50px;
                        padding: 5px 10px;
                        margin-top: 10px;
                        font-size: 0.8rem;
                    }
                }

                p {
                    text-align: center;
                    font-weight: 600;
                }
            }
        }
    }

    .course-files {
        width: 100%;
        margin: auto;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        padding: 20px;
        -webkit-box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);

        .files {
            border: 3px solid #181E8F;
            border-radius: 15px;
            padding: 10px;

            h3 {
                font-size: 1rem;
                margin-top: -20px;
                margin-left: 10px;
                background-color: #fff;
                width: fit-content;
                padding: 0 1vw;
                font-weight: bold;
                font-size: 0.9rem;
            }

            .file {
                padding: 10px;
                margin-top: 10px;
                display: flex;
                gap: 10px;
                align-items: center;
                font-size: 0.9rem;
            }

            a {
                text-decoration: none;
                color: #181E8F;
            }

            img {
                width: 18px;
            }
        }

        p {
            text-align: center;
            font-weight: 600;
        }
    }
}

/* CALENDAR PAGE STYLE */
.calendar-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px auto;
    width: 90vw;

    .calendar {

        .calendar-img {
            width: 100%;
        }

        .calendar-desktop,
        .calendar-tablet {
            display: none;
        }
    }

    .change-week-month {
        display: flex;
        align-items: center;
        gap: 5px;

        .change-week {
            display: flex;
            align-items: center;
            text-align: center;
            gap: 5px;
            height: fit-content;
            background-color: white;
            color: #181E8F;
            font-weight: bold;
            padding: 10px;
            border-radius: 10px;
            width: fit-content;

            font-size: 0.6rem;
        }

        .change-month {
            background-color: white;
            padding: 10px;
            border-radius: 10px;
            color: white;
            font-weight: bold;
            width: fit-content;

            .month {
                display: flex;
                gap: 5px;
                background-color: #181E8F;
                border-radius: 25px;
                padding: 0.5rem 1rem;
                font-size: 0.6rem;
            }
        }

    }
    .change-month.desktop {
        display: none;
    }
}


/* GRADES PAGE STYLE */
.grades-page {
    width: 90vw;
    margin: 30px auto;

    .general-average {
        width: 100%;
        max-width: 500px;
        height: fit-content;
        margin: 20px auto;
        padding: 15px;
        background-color: white;
        border-radius: 15px;
        -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);

        .general-average-content {
            background-color: #181E8F;
            color: white;
            font-weight: bold;
            border-radius: 10px;
            padding: 10px;
            font-size: 0.875rem;
            display: flex;
            justify-content: space-between;
        }
    }

    .modules {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 500px;
        margin: auto;

        .module {
            padding: 15px;
            background-color: white;
            border-radius: 15px;
            -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);

            .module-container {
                border-radius: 10px;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                overflow: hidden;
                background-color: white;

                .module-header {
                    background-color: #181e8f;
                    color: white;
                    padding: 10px 15px;
                    display: flex;
                    justify-content: flex-start;
                    gap: 15px;
                    align-items: center;
                    cursor: pointer;
                    font-weight: bold;
                    text-transform: uppercase;
                    font-size: 0.8125rem;

                    .arrow {
                        font-size: 14px;
                        transition: transform 0.3s;
                    }

                    span {
                        color: white;
                    }

                    .average {
                        margin-left: auto;
                    }
                }

                .module-content {
                    max-height: 167px;
                    overflow-y: auto;
                    scrollbar-color: #181E8F #fff;
                    scrollbar-width: thin;
                    transition: max-height 0.3s ease-in-out, opacity 0.3s;

                    &::-webkit-scrollbar {
                        width: 5px;
                    }

                    &::-webkit-scrollbar-thumb {
                        background-color: #181E8F;
                        border-radius: 10px;
                    }

                    &::-webkit-scrollbar-track {
                        background-color: #fff;
                    }

                    &.hidden {
                        max-height: 0;
                        opacity: 0;
                        overflow: hidden;
                    }

                    .items-table {
                        width: 100%;
                        border-collapse: collapse;
                        color: #181e8f;

                        td {
                            padding: 10px;
                            text-align: left;
                            border-bottom: 1px solid #ddd;
                            font-size: 0.9rem;
                        }

                        tr {
                            &:nth-child(odd) {
                                background-color: #e3dfdf;
                            }

                            &:nth-child(even) {
                                background-color: #b6b6b6;
                                color: white;
                            }

                            display: flex;
                            justify-content: space-between;
                            align-items: center;

                            .score {
                                font-weight: bold;
                                display: flex;
                                justify-content: flex-end;
                                align-items: center;
                                border: none;
                            }

                            .title {
                                font-weight: bold;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* DIRECTORY PAGE STYLE */
.directory-page {
    width: 90vw;
    margin: 30px auto;

    .search-teachers {
        width: 100%;
        margin: 15px auto;
        display: flex;
        justify-content: flex-end;

        .form-group {
            position: relative;
            width: 100%;

            input {
                color: #181E8F;
                padding: 1.35rem 0.75rem 0.15rem;
                border: 2px solid #181E8F;
                border-radius: 10px;
                width: 100%;
                font-size: 1rem;
            }

            label {
                position: absolute;
                top: 0.8rem;
                left: 0.7rem;
                background-color: #ffffff;
                padding-inline: 0.3em;
                color: #181E8F;
                font-size: 1rem;
                pointer-events: none;
                transition: all 0.2s ease;
            }

            input::placeholder {
                opacity: 0;
            }

            input:focus {
                border-color: #181E8F;
            }

            input:focus+label,
            input:not(:placeholder-shown)+label {
                top: 0.3rem;
                left: 0.6rem;
                font-size: 0.85rem;
                font-weight: 500;
                color: #525252;
            }
        }
    }

    .teachers {
        display: grid;
        grid-template-columns: 1fr;
        padding: 20px 0;
        gap: 20px;

        .teacher {
            width: 100%;
            margin: auto;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
            background-color: #fff;
            border-radius: 10px;
            -webkit-box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 7.5px 0px rgba(0, 0, 0, 0.25);
            padding: 1rem;

            h2 {
                font-size: 1.15rem;
            }

            p {
                margin: 0;
                display: inline-block;
                vertical-align: -5px;

                a {
                    color: #181E8F;
                    text-decoration: underline;
                    vertical-align: 6px;
                }

                span {
                    vertical-align: 6px;
                }

                img {
                    width: 20px;
                    height: 20px;
                    margin-right: 5px;
                }
            }
        }


    }

    .directory-form {
        width: 100%;

        form {
            display: flex;
            flex-direction: column;
            background-color: #fff;
            margin: auto;
            gap: 20px;
            margin-top: 20px;
            padding: 20px;
            border-radius: 10px;
            -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);

            .form-group {
                position: relative;

                input,
                textarea {
                    width: 100%;
                    padding: 0.5rem;
                    border: 1px solid #181E8F;
                    border-radius: 8px;
                    background-color: #fff;
                    color: #181E8F;
                    font-size: 0.9rem;
                }

                textarea {
                    max-height: 350px;
                    min-height: 100px;
                    resize: vertical;

                    +label {
                        top: 20px;
                    }
                }

                label {
                    position: absolute;
                    top: 50%;
                    left: 0.75rem;
                    transform: translateY(-50%);
                    background-color: #ffffff;
                    padding-inline: 0.3em;
                    color: #181E8F;
                    font-size: 0.9rem;
                    pointer-events: none;
                    transition: all 0.2s ease;
                }

                input::placeholder,
                textarea::placeholder {
                    opacity: 0;
                }

                input:focus,
                textarea:focus {
                    border-color: #181E8F;
                }

                input:focus+label,
                textarea:focus+label,
                input:not(:placeholder-shown)+label,
                textarea:not(:placeholder-shown)+label {
                    top: 0rem;
                    left: 0.75rem;
                    font-size: 0.9rem;
                    font-weight: 500;
                    color: #181E8F;
                }
            }

            input[type="submit"] {
                font-family: 'TT Norms Pro';
                font-weight: normal;
                position: relative;
                font-size: 0.9rem;
                border-radius: 7px;
                margin-bottom: 1rem;
                padding: 0.5625rem 1rem;
                width: fit-content;
                border: none;
                cursor: pointer;
                background-color: #171D8F;
                color: white;
                box-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.25);
            }
        }
    }
}

/* PROFILE PAGE STYLE */
.profile-page {
    width: 90vw;
    max-width: 500px;
    margin: 30px auto;

    .profile-page-container {
        display: flex;
        flex-direction: column;
        gap: 20px;

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

            .profile-picture-container {
                display: flex;
                flex-direction: column;
                gap: 50px;
                background-color: white;
                border-radius: 15px;
                padding: 30px 15px;
                -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
                box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);

                .logo-title {
                    display: flex;
                    align-items: center;
                    justify-content: right;
                    font-weight: bold;
                    font-size: 0.875rem;
                    text-transform: uppercase;

                    img {
                        position: relative;
                        left: 4px;
                        height: 15px;
                        width: 15px;
                    }
                }

                .picture-container {
                    position: relative;
                    width: 170px;
                    height: 170px;
                    margin: 0 auto;

                    .profile-picture {
                        width: 100%;
                        height: 100%;
                        border-radius: 50%;
                        object-fit: cover;
                        aspect-ratio: 1/1;
                    }

                    .edit-icon {
                        position: absolute;
                        bottom: 10px;
                        right: 10px;
                        width: 30px;
                        height: 30px;
                        background: white;
                        border-radius: 50%;
                        padding: 7px;

                        img {
                            width: 100%;
                        }
                    }
                }

                .quick-info {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    width: fit-content;
                    text-align: center;
                    margin: auto;

                    .name {
                        font-size: 0.9rem;
                        font-weight: bold;
                        text-transform: uppercase;
                    }

                    .formation-info {
                        font-weight: bold;
                        font-size: 0.85rem;

                        span:last-child {
                            font-weight: normal;
                        }
                    }

                    .line {
                        height: 1px;
                        background-color: #181E8F;
                        width: 70%;
                        margin: auto;
                    }
                }

            }

            .info-container {
                display: flex;
                flex-direction: column;
                background-color: white;
                border-radius: 15px;
                padding: 15px 30px;
                position: relative;
                -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
                box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);

                h2 {
                    font-size: 1.1rem;
                }

                hr {
                    border-color: #181E8F;
                    width: 100%;
                }

                .info {
                    display: flex;
                    flex-direction: column;
                    gap: 25px;
                    margin-top: 20px;

                    ul {
                        list-style-type: none;
                        margin: 0;
                        padding: 0;
                        display: flex;
                        flex-direction: column;
                        gap: 20px;

                        .info-label {
                            font-weight: bold;
                            font-size: 0.9rem;
                            text-transform: uppercase;
                        }
                    }
                }
            }
        }

        .absences-container {
            display: flex;
            flex-direction: column;
            height: fit-content;
            background-color: white;
            border-radius: 15px;
            padding: 15px 30px;
            -webkit-box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 17.5px 0px rgba(0, 0, 0, 0.25);

            h2 {
                font-size: 1.1rem;
            }

            hr {
                border-color: #181E8F;
                width: 100%;
            }

            .total-absences {
                font-weight: bold;
                margin: 5px 0 15px 0;

                .absence-count {
                    font-weight: normal;
                }
            }

            ul {
                list-style-type: none;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
                gap: 10px;

                li {

                    .absence-hours {
                        opacity: 0.5;
                        font-size: 0.9rem;
                    }
                }
            }
        }
    }
}

/* FOOTER STYLE */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;

    a {
        img {
            width: 45px;
        }
    }
}

/* MEDIA QUERIES TABLET */
@media (min-width: 768px) {

    /* NAVBAR TABLET */
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: 70px;
        margin: 0;
        padding: 20px;

        .logo {
            width: 40px;
            left: 20px;
        }

        .nav-logo-burger {
            position: absolute;
            right: 20px;
            height: fit-content;
            display: flex;
            align-items: center;
            gap: 0px;

            .burger-btn {
                display: none;
            }

            .logout-link {
                display: block;
            }

            .profile-link {
                width: fit-content;
            }
        }

        .nav-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            align-items: center;
            height: fit-content;
            width: fit-content;

            a {
                text-decoration: none;
                font-family: 'TT Norms Pro', sans-serif;
                color: #181E8F;
                font-size: 0.9rem;
                font-weight: 700;
                transition: color 0.3s;

                &:hover {
                    text-decoration: underline;
                }

            }

            .active {
                text-decoration: underline;
            }
        }

        .profile-link {
            width: 60px;
            display: flex;
            justify-content: center;
            align-items: center;

            .profile-pic {
                width: 35px;
            }
        }
    }

    /* LOGIN PAGE TABLET */
    .connexion_page {
        h1 {
            font-size: 2rem;

            .logo_title img {
                width: 37px;
                height: 35px;
                left: 10px;
            }
        }

        .form_connexion {
            max-width: 450px;
            padding: 2rem 3rem;

            h2 {
                font-size: 1.75rem;

                .logo_title img {
                    width: 32px;
                    height: 29px;
                    left: 9px;
                }
            }

            .form-inputs .form-group {
                label {
                    font-size: 0.9rem;

                    input:focus+&,
                    input:not(:placeholder-shown)+& {
                        transform: translateY(calc(-50% - 100%));
                    }
                }
            }

            input[type="submit"] {
                font-size: 1rem;
                padding: 0.65rem 1rem;
                border-radius: 8px;
            }

            a {
                font-size: 0.9rem;
            }
        }
    }

    /* HOMEPAGE TABLET */
    .homepage {
        .header-welcome {
            font-size: 1.75rem;
            height: 70px;
        }

        .homework-absences {

            .homework,
            .absences {
                border-radius: 15px;
                padding: 1rem;
                min-height: 200px;
                max-height: 200px;

                .homework-items {
                    gap: 15px;
                }

                h2 {
                    font-size: 1rem;
                }

                hr {
                    margin-bottom: 10px;
                }

                a,
                .absence-item {
                    font-size: 0.9rem;
                }

                .seemore-btn {
                    font-size: 0.75rem;
                }
            }
        }

        .calendar-mobile,
        .calendar-desktop {
            display: none;
        }

        .calendar-tablet {
            display: block;
        }

        .homepage-grades {

            h2 {
                font-size: 1.25rem;
            }

            table {
                thead {
                    th {
                        font-size: 0.9rem;
                    }
                }

                tbody {
                    td {
                        font-size: 0.9rem;
                    }
                }

                .view-more {
                    font-size: 0.9rem;
                }
            }
        }
    }

    /* DASHBOARD PAGE TABLET */
    .dashboard-page {

        .homework-tests {
            flex-direction: row;
            justify-content: space-between;
            gap: 50px;

            .tests {
                margin: 0;
            }
        }

        .search-courses {
            margin: 50px auto;

            .form-group {
                max-width: 400px;
            }
        }

        .courses {
            grid-template-columns: 1fr 1fr;
            justify-items: start;

            .course-header {
                h2 {
                    font-size: 0.9rem;
                }
            }
        }
    }

    /* COURSE PAGE TABLET */
    .course-page {

        .course {
            border-radius: 15px;

            .course-deposit {
                .homework-items {
                    .homework-item {
                        h3 {
                            font-size: 1rem;
                        }

                        span.date {
                            font-size: 0.9rem;
                        }
                    }
                }
            }
        }

        .course-files {
            border-radius: 15px;

            .files {
                h3 {
                    font-size: 1rem;
                }
            }
        }
    }

    /* CALENDAR PAGE TABLET */
    .calendar-page {
        flex-direction: column-reverse;

        .change-week-month {
            flex-direction: column;

            .change-week {
                justify-content: space-between;
                font-size: 0.9rem;
                width: 100%;
                padding: 10px 40px;
            }

            .change-month {
                .month{
                    font-size: 0.9rem;
                }
            }
        }

        .calendar {
            .calendar-desktop,
            .calendar-mobile {
                display: none;
            }

            .calendar-tablet {
                display: block;
            }
        }

        .change-month.desktop {
            display: none;
        }
    }

    /* GRADES PAGE TABLET */
    .grades-page {
        .grades-container {
            display: flex;
            gap: 35px;
            flex-direction: row-reverse;
            justify-content: space-between;
            margin-top: 20px;

            .general-average {
                margin: 0;
                flex: 1;

                .general-average-content {
                    width: auto;
                    max-width: auto;
                    display: flex;
                    align-items: center;
                    gap: 10px;

                    .general-average-grade {
                        height: fit-content;
                    }
                }
            }

            .modules {
                width: 100%;
                max-width: 550px;
                margin: 0;
                flex: 2;
            }
        }
    }

    /* DIRECTORY PAGE TABLET */
    .directory-page {

        .search-teachers {
            .form-group {
                max-width: 400px;
            }
        }

        .teachers {
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
    }

    /* PROFILE PAGE TABLET */
    .profile-page {
        max-width: 90vw;

        .profile-page-container {
            flex-direction: row;


            .col1 {
                flex: 2;

                .profile-picture-container {
                    padding: 30px;

                    .logo-title {
                        font-size: 1.1rem;

                        img {
                            width: 20px;
                            left: 5px;
                            height: 20px;
                        }
                    }

                    .picture-container {
                        width: 250px;
                        height: 250px;

                        .edit-icon {
                            right: 20px;
                            bottom: 20px;
                        }
                    }

                    .quick-info {
                        .name {
                            font-size: 1.2rem;
                        }

                        .formation-info {
                            font-size: 1rem;
                        }
                    }
                }

                .info-container {
                    h2 {
                        font-size: 1.4rem;
                    }

                    .info {
                        ul {
                            .info-label {
                                font-size: 1rem;
                            }
                        }
                    }
                }
            }

            .absences-container {
                flex: 1;
                min-width: 250px;
                max-width: 270px;
                padding: 15px;
            }
        }
    }
}

/* MEDIA QUERIES DESKTOP */
@media (min-width: 1024px) {

    /* NAVBAR DESKTOP */
    nav {
        height: 90px;

        .logo {
            width: 50px;
            left: 30px;
        }

        .nav-logo-burger {
            gap: 10px;
            right: 30px;

            .burger-btn {
                display: none;
            }

            .logout-link {
                height: 30px;
            }

            .profile-link {
                height: 35px;
            }
        }

        .nav-links {
            gap: 50px;

            a {
                font-size: 1rem;
            }
        }
    }

    /* LOGIN PAGE DESKTOP */
    .connexion_page {
        h1 {
            font-size: 2.25rem;

            .logo_title img {
                height: 40px;
                width: 38px;
            }
        }

        .form_connexion {
            max-width: 500px;
            padding: 3rem 4rem;

            h2 {
                font-size: 1.8rem;

                .logo_title img {
                    width: 30px;
                    height: 30px;
                }
            }

            .form-inputs .form-group {
                input {
                    height: 45px;
                }

                label {
                    font-size: 1rem;

                    input:focus+&,
                    input:not(:placeholder-shown)+& {
                        transform: translateY(calc(-50% - 120%));
                    }
                }
            }

            input[type="submit"] {
                font-size: 1rem;
                padding: 0.75rem 1.25rem;
                border-radius: 10px;
            }

            a {
                font-size: 1rem;
            }
        }
    }

    /* HOMEPAGE DESKTOP */
    .homepage {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto;
        width: 90vw;
        margin: auto;

        .header-welcome {
            font-size: 2rem;
            grid-area: 1 / 1 / 2 / 2;
            border-radius: 15px;
            width: 100%;
        }

        .homework-absences {
            grid-area: 1 / 2 / 2 / 3;
            flex-direction: column;
            border-radius: 15px;
            max-width: 350px;
            padding: 2rem;
            gap: 20px;
            margin-right: 0;


            .homework,
            .absences {
                border-radius: 15px;
                padding: 1rem;
                min-height: 200px;
                max-height: 200px;
                width: 100%;

                .homework-items {
                    gap: 15px;
                }

                h2 {
                    font-size: 1rem;
                }

                hr {
                    margin-bottom: 10px;
                }

                a,
                .absence-item {
                    font-size: 0.9rem;
                }

                .seemore-btn {
                    font-size: 0.8rem;
                }
            }
        }

        .calendar-mobile,
        .calendar-tablet {
            display: none;
        }

        .calendar-desktop {
            display: block;
            border-radius: 15px;
            width: 100%;
        }

        .calendar-img {
            margin-top: 100px;
            grid-area: 1 / 1 / 2 / 2;
        }

        .homepage-grades {
            grid-area: 3 / 1 / 4 / 2;
            max-width: 100%;
            width: 100%;
            border-radius: 15px;

            h2 {
                font-size: 1.25rem;
            }

            table {
                thead {
                    th {
                        font-size: 1rem;
                    }
                }

                tbody {
                    td {
                        font-size: 0.9rem;
                        font-weight: 600;
                    }
                }

                .view-more {
                    font-size: 0.9rem;
                }
            }
        }
    }

    /* DASHBOARD PAGE DESKTOP */
    .dashboard-page {

        .courses {
            max-width: 1350px;
            margin: 0;
            gap: 2rem;
            grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
            justify-items: start;
        }
    }

    /* COURSE PAGE DESKTOP */
    .course-page {

        .course {
            max-width: 1200px;

            .course-deposit {

                h2 {
                    font-size: 1.5rem;
                }

                .homework-items {
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
                    justify-items: center;
                    gap: 20px;

                    p {
                        grid-column: 1 / -1;
                    }

                    .homework-item {
                        h3 {
                            font-size: 1.1rem;
                            margin-top: -22px;
                        }
                    }
                }
            }
        }

        .course-files {
            max-width: 1200px;

            .files {
                h3 {
                    font-size: 1.1rem;
                    margin-top: -22px;
                }

                .file {
                    font-size: 1rem;
                }
            }

        }
    }

    /* CALENDAR PAGE DESKTOP */
    .calendar-page {
        max-width: 1200px;
        margin: 0 auto;

        .change-week-month{
            max-width: 850px;
            
            .change-week {
                margin: 0;
            }

            .change-month.mobile {
                display: none;
            }
        }

        .calendar-change-month-desktop {
            display: flex;
            gap: 50px;
        }

        .calendar {
            .calendar-tablet,
            .calendar-mobile {
                display: none;
            }

            .calendar-desktop {
                display: block;
                max-width: 850px;
            }
        }

        .change-month {
            background-color: white;
            padding: 10px;
            border-radius: 10px;
            color: white;
            font-weight: bold;
            width: fit-content;
            height: fit-content;

            .month {
                display: flex;
                gap: 5px;
                background-color: #181E8F;
                border-radius: 25px;
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            &.desktop {
                display: block;
            }
        }
    }

    /* GRADES PAGE DESKTOP */
    .grades-page {
        .grades-container {

            .general-average {
                .general-average-content {
                    font-size: 1rem;
                }
            }

            .modules {
                max-width: 800px;

                .module {
                    .module-container {
                        .module-header {
                            font-size: 1rem;
                        }

                        .module-content {
                            .items-table {
                                td {
                                    font-size: 1rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    /* DIRECTORY PAGE DESKTOP */
    .directory-page {

        .teachers {
            max-width: 1100px;
            margin: auto;
        }

        .search-teachers {
            max-width: 1100px;
        }

        .directory-form {
            max-width: 1100px;
            margin: auto;
        }
    }

    /* PROFILE PAGE DESKTOP */
    .profile-page {

        .profile-page-container {
            max-width: 1100px;
            margin: auto;

            .col1 {
                .profile-picture-container {
                    .logo-title {
                        font-size: 1.5rem;

                        img {
                            width: 25px;
                            left: 6px;
                            height: 25px;
                        }
                    }
                }
            }
        }
    }
}