*,
*::before,
*::after {
    box-sizing: border-box;
    scrollbar-width: none;
}

body {
    height: 100vh;
    width: 100vw;
    background-color: #fAFAFA;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-family: "Poppins", sans-serif;
    transition: 0.5s;
}

.dark-mode{
    background-color: #101010;
}

header {
    height: 7%;
    width: 96%;
    background-color: #0001F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 2%;
    left: 2%;
    right: 2%;
    z-index: 10;
    box-shadow: 0px 0px 5px 3px rgba(30, 30, 30, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;
    transition: 0.5s;
}

.dark-mode header{
    background-color: #0e0eae;
    color: #a6a6a6;
}

header a {
    color: white;
}
.dark-mode header a {
    color: #a6a6a6;
}
header i {
    font-size: 22px;
    padding: 0 10px;
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 85%;
    width: 100%;
    background-color: #fAFAFA;
    color: black;
    box-sizing: border-box;
    padding: 40px 15px 120px 15px;
    position: absolute;
    top: 5%;
    overflow: hidden;
    transition: 0.5s;
}

.dark-mode main{
    background-color: #101010;
}

.notif-badge{
    margin-left: -25px;
    background: red;
    padding: 3px 5px;
    color: white;
    border-radius: 10px;
    font-size: 8px;
}

/**************** FOOTER ******************/

footer {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

svg {
    position: absolute;
    height: 100%;
}

nav {
    width: 100%;
    padding: 0 5px;
    z-index: 1;
}
ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}
li {
    margin: 20px;
}
a {
    text-decoration: none;
    color: black;
}

.dark-mode a{
    color: #a6a6a6;
}

#bouton-home {
    margin-left: 0;
}
#bouton-cat {
    margin-left: -30px;
}
#bouton-search {
    margin-right: -30px;
}
#bouton-profil {
    margin-right: 0;
}
#create-post-button {
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    transform: translate(-50%, -85%);
    background-color: #0001F0;
    padding: 15px;
    border-radius: 100px;
    width: 70px;
    height: 70px;
    box-shadow: 0px 0px 10px 3px rgba(30, 30, 30, 0.2);
}
.dark-mode #create-post-button {
    background-color: #0e0eae;
}
#create-post-button .bi {
    font-size: 40px;
    color: white;
}
footer .bi {
    font-size: 30px;
    color: black;
    transition: 0.7s;
}

.dark-mode footer .bi{
    color: #a6a6a6;
}

footer nav ul li a i.selected {
    color: #0001F0;
    transition: all .3s ease;
}

.dark-mode footer nav ul li a i.selected {
    color: #0e0eae;
}

footer path{
    transition: 0.5s;
}

.dark-mode footer path{
    fill: rgb(29, 29, 29);
}

@media (min-width: 1025px) {
    *,
    *::before,
    *::after {
        scrollbar-width: auto;
    }
    main {
        width: 60%;
    }
    footer {
        width: 60%;
        left: 50%;
        transform-origin: center center;
        transform: translateX(-50%);
    }
}