*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #f1f1f1;
    font-family: roboto, sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    background-color: #2c3e50;
    color: #fff;
}

.topbar-logo {
    display: block;
    text-align: center;
    font-size: 24px;
    padding: 11px 0;
    color: #fff;
}

.topbar-nav {
    text-align: center;
    padding-bottom: 16px;
    line-height: 2;
}

.topbar-nav a {
    display: inline-block;
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.67);
    transition: color .3s;
}

.topbar-nav a:hover,
.topbar-nav a.active {
    color: #fff;
}

.container {
    padding: 0 15px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.site {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sidebar {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.main {
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    width: 50%;
    padding: 0.6rem 0;
    transition: .3s;
    border: solid 1px transparent;
    padding-left: 10px;
}

.sidebar a::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-top: -2px;
    margin-right: 20px;
    background: url(icon/25694.png) center center / contain no-repeat;
    transition: opacity .3s;
}

.sidebar .sidebar-messages::before {
    background-image: url(icon/2089181.png);
}

.sidebar .sidebar-events::before {
    background-image: url(icon/2693507.png);
}

.sidebar .sidebar-groupes::before {
    background-image: url(icon/171561.png);
}

.sidebar .sidebar-amis::before {
    background-image: url(icon/4871351.png);
}

.sidebar a:hover,
.sidebar a.active {
    color: #000;
    border: solid 1px #DBDBDB;
    background: #fff;
    border-radius: 3px;
    font-weight: bold;
}

.sidebar .sidebar-home {
    border: solid 1px #DBDBDB;
    background: #fff;
    border-radius: 3px;
    font-weight: bold;
}

.sidebar a:hover::before,
.sidebar a.active::before {
    opacity: 1;
}

.card {
    border: solid 1px #DBDBDB;
    background: #fff;
    border-radius: 3px;
    margin-bottom: 15px;
}

.card:last-child {
    margin-bottom: 0;
}

.card-header {
    padding: 10px;
    position: relative;
}

.card-header-avatar {
    padding-left: 65px;
}

.card-avatar {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.card-title {
    font-weight: bold;
    color: #000;
    font-size: 18px;
    margin-bottom: 5px;
}

.card-date {
    color: rgba(0, 0, 0, 0.38);
    font-size: 12px;
}

.card-body {
    padding: 0 10px 5px 10px;
}

.card-body a {
    color: #000;
    text-decoration: underline;
}

.card-body .fullwidth {
    width: calc(100% + 20px);
    height: 40%;
    margin-left: -10px;
    margin-right: -10px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.card-body p:first-child {
    margin-top: 0;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    margin-top: 30px;
    margin-bottom: 18px;
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

.sidebar-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 4px;
    background: #000;
}

@media only screen and (min-width:950px) {

    .site {
        display: flex;
    }

    .profil {
        display: block;
    }

    .sidebar {
        display: block;
        flex: none;
        width: 180px;
    }

    .sidebar a {
        width: 100%;
    }

    .main {
        width: 100%;
        margin-left: 30px;
        margin-right: 30px;
    }

    .aside {
        flex: none;
        width: 310px;
    }
}

@media only screen and (min-width:520px) {
    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        padding: 0 25px;
    }

    .topbar-logo,
    .topbar-nav {
        padding: 0;
    }

    .topbar-nav a {
        margin: 0 20px;
    }
}