/*Common*/
* {
    font-family: 'Courier New', Courier, monospace;
}

header {
    >img {
        width: auto;
        height: 600px;
    }
}

h1 {
    text-align: center;
}

.common {
    background-color: cornflowerblue;
    width: auto;
    height: 90px;
    margin: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.hamburger {
    display: flex;
    align-items: center;
    gap: 20px;

    i {
        font-size: 24px;
    }

    p {
        font-size: larger;
    }
}

/*J'ai pigé et modifié un peu de code 
dans les pages de démonstration pour le menu rétractable.*/

nav {
    transition: all .5s ease;
    background-color: rgba(100, 148, 237, 0.5);
    display: flex;
    flex-direction: column;
    width: 200px;
    position: absolute;
    top: 15%;
    left: -200px;
    height: 100%;
    backdrop-filter: blur(5px);
}

.item-menu {
    padding: 10px 20px;
    text-decoration: none;
}

.item-menu:hover {
    background-color: royalblue;
    color: white;
}

.item-menu:active {

    text-decoration: underline;
}

.sous-menu {
    display: flex;
    flex-direction: column;
}

.sous-menu .item-menu {
    padding-left: 40px;
}

.show {
    left: 0;
    transition: all .5s ease;
}


footer {
    display: flex;
    height: 30px;
    width: auto;
    margin: 20px;
    padding: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#Liens {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

html.light {
    .common {

        background-color: #7993CB;
    }

    body {
        background-color: #C2BCC6;
    }

    article {
        background-color: #90CBC8;
    }

    a {
        color: black;
        text-decoration: none;
    }

    a:hover {
        color: white;
    }
}

html.dark {

    body {
        color: white;
        background-color: darkblue;
    }

    a {
        color: white;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    article {
        background-color: rgb(255, 20, 90);
    }
}


.section-theme {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background-color: rgb(255, 20, 90);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    padding: 1px;
}

#theme-switch {
    display: none;
}

.slider {
    position: absolute;
    left: 2px;
    top: 2px;

    height: 22px;
    width: 22px;

    background-color: #fff6ec;
    border-radius: 100%;

    transition: transform .5s;
}

#theme-switch:checked+.slider {
    transform: translateX(24px);
}

.toggle-icons-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.toggle-icon {
    height: 20px;
    width: 20px;
    user-select: none;
}