.cover_bg {
    position: relative;
    margin: auto auto 110px;
    width: 100%;
    max-width: 1300px !important;
}

.cover_bg:hover .cover_overlay {
    background: var(--profil-banner-hover);
}

.cover_bg:hover .cover_edit {
    border-color: var(--text-color);
}

.cover_bg:hover .cover_edit i {
    transform: scale(1)
}

.cover_bg:hover .cover_edit span {
    opacity: 1;
    display: block;
    color: var(--text-color);
    font-weight: 400;
    font-size: .85rem;
    margin: 0 10px;
}

.cover_bg .cover_image {
    display: block;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
}

.cover_bg .avatar {
    position: absolute;
    bottom: -65px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: inline-block;
    justify-content: center;
    align-items: center;
    height: 140px;
    width: 140px;
    border-radius: 50%;
    z-index: 10;
    background: url(/assets/img/background/banner-avatar-profile.jpg) no-repeat center;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.cover_bg .avatar.online {
    border: 3px solid var(--color-green);
    transition: border-color 0.3s ease;
}

.cover_bg .avatar.offline {
    border: 3px solid var(--color-red);
    transition: border-color 0.3s ease;
}

.cover_bg .avatar .avatar_image_profile {
    width: 140px;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    max-width: 150%;
    max-height: 190%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    image-rendering: pixelated;
}

.cover_bg .cover_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    z-index: 0;
}

.cover_bg .cover_edit {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: all .3s
}

.cover_bg .cover_edit img {
    width: 30px;
}

.cover_bg .cover_edit i {
    font-size: 20px;
    color: var(--text-color);
}

.cover_bg .cover_edit span {
    opacity: 1;
    display: block;
    color: var(--text-color);
    font-weight: 400;
    font-size: .85rem;
    margin: 0 10px;
}

.avatar_tooltip {
    position: absolute;
    background: var(--box-color);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--box-shadow);
    z-index: 500;
    display: block;
    pointer-events: none;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border-color);
}

.avatar_tooltip_content {
    position: relative;
    color: var(--text-color);
    font-size: 14px;
}

.avatar_tooltip-last-online {
    top: 0;
    left: 0;
    transform: translate(10px, 10px);
    height: fit-content;
    background: var(--box-color);
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .65);
    border: none;
    position: absolute;
    padding: 10px;
    border-radius: .6rem;
    pointer-events: none;
}

.avatar_tooltip-account-create {
    top: 0;
    right: 0;
    transform: translate(-10px, 10px);
    height: fit-content;
    background: var(--box-color);
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .85);
    border: none;
    position: absolute;
    padding: 10px;
    border-radius: .6rem;
    pointer-events: none;
}

.avatar_tooltip_arrow {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--box-color);
    border-bottom: none;
}

.image-bar-container {
    background: var(--box-color);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--box-shadow);
    margin: 20px 0;
    position: absolute;
    display: block;
    bottom: -20%;
    right: 50px;
    z-index: 500;
}

.image-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.image-item {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
}

.image-item img {
    max-width: 42px;
    max-height: 42px;
    display: inline-block;
}

.badge {
    position: absolute;
    bottom: 42px;
    left: 585px;
    width: 36px;
    height: 36px;
    z-index: 500;
    -webkit-filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

.badge-team {
    position: absolute;
    bottom: 42px;
    left: 585px;
    width: 36px;
    height: 36px;
    z-index: 500;
    -webkit-filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.content-profile {
    max-width: 1300px;
    width: 100%;
    border-radius: 6px;
    display: flex;
    margin: auto;
}

.left-menu-profile {
    min-width: 19%;
    margin-right: 1%;
}

.right-content-profile {
    width: 80%;
    min-height: 420px;
}

.left-menu-profile-inner {
    width: 100%;
    border-radius: 6px 0 0 6px;
}

.menu-profile-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    transition: all .3s;
    cursor: pointer;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    height: 52px;
}

.menu-profile-item.is-active {
    background: #5596e6;
    box-shadow: var(--box-shadow);
}

.menu-icon {
    display: flex;
    align-items: center;
    transition: all .3s;
    cursor: pointer;
    height: 42px;
}

.menu-profile-item .menu-icon-vue {
    width: 40px;
    height: 40px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
}

.menu-icon-hotel {
    width: 40px;
    height: 40px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    background-image: url(/assets/img/icon/icon_profile_hotel.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.menu-icon-richesse {
    width: 40px;
    height: 40px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    background-image: url(/assets/img/icon/icon_center.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.menu-icon-forum {
    width: 40px;
    height: 40px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    background-image: url(/assets/img/icon/icon_forum.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.menu-profile-item .menu-icon-vue img {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: absolute;
    margin-top: 100%;
}

.menu-profile-item .menu-icon-vue span {
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    font-weight: bold;
    unicode-bidi: isolate;
    color: var(--text-color);
}

.overview-content {
    display: none;
    opacity: 0;
    transform: translateX(0px);
    position: absolute;
    transition: all 0.7s ease-in-out;
    -webkit-animation: fadeInLeft .5s;
    animation: fadeInLeft .5s;
}

.overview-content.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    display: block;
}

.card-profile:not(:last-child) {
    margin-bottom: 30px;
}

.card-profile {
    width: 100%;
    border-radius: .75rem;
    border: 1px solid var(--border-color);
    background: var(--box-color);
}

.card-profile .card-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.card-profile .card-profile-header .icon-profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-profile .card-profile-header .icon-profile-header img {
    height: 40px;
    width: 40px;
    max-width: 100%;
    image-rendering: pixelated;
}

.card-profile .card-profile-header .icon-profile-header h3 {
    font-size: 18px;
}

.card-profile .card-profile-header .card-profile-actions {
    display: flex;
    align-items: center;
}

.card-profile .card-profile-header .card-profile-actions .button-profile-wrapper {
    position: relative;
}

.card-profile .card-profile-header .card-profile-actions .button-profile-wrapper .button-profile {
    font-size: .8rem;
    font-weight: 500;
    padding: 15px 15px;
    border-radius: .65rem;
    transition: all .3s;
    border: 1px solid var(--border-color);
    background: var(--box-color);
    color: var(--text-color);
    cursor: pointer;
}

.card-profile .card-profile-header .card-profile-actions .button-profile-wrapper .indicator {
    position: absolute;
    top: -22px;
    left: -8px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    min-width: 24px;
    padding: 0 4px;
    background: #5596e6;
    border-radius: 50%;
    border-color: var(--border-color);
    color: #FFFFFF;
}

.card-profile .card-profile-body {
    background: var(--box-color);
    height: 100%;
    width: 100%;
    color: #344258;
    overflow: hidden;
    padding: 0 20px 20px 20px;
    border-radius: 10px;
}

.card-profile .card-profile-body .content-profile-body {
    flex-wrap: wrap;
    display: flex;
}

.card-profile .card-profile-body .content-profile-body .partie-gauche {
    width: 50%;
}

.card-profile .card-profile-body .content-profile-body.partie-droite {
    width: calc(100% - 50%);
}

.card-item {
    padding: .5rem;
}

.card-item:hover {
    cursor: pointer;
    opacity: 0.7;
}

.card-item .card-item-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: .65rem;
    border: 1px solid var(--border-color);
    background: var(--box-color-double);
}

.card-item .card-item-content img {
    height: 40px;
    width: 40px;
}

.card-item .card-item-content .content-portemonnaie {
    height: 30px;
    width: 30px;
}

.card-item .card-item-content .card-item-content-text {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-item .card-item-content .card-item-content-text p {
    color: var(--text-secondaire);
}

.card-item .card-item-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #5596e6;
    color: #fff;
    transition: all .3s;
    margin: 0 0 0 auto;
    opacity: 0;
}

.card-item:hover .card-item-content a {
    opacity: 1;
    animation: pulse 1s ease-in-out infinite;
}

.card-item .card-item-content .card-item-content-button {
    display: flex;
    background-image: url(/assets/img/icon/icon_fleche.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(-90deg);
    width: 24px;
    height: 24px;
}

.card-item .card-item-content .card-item-content-text .card-item-content-button img {
    transform: rotate(-90deg);
    image-rendering: pixelated;
    width: 20px;
    height: 20px;
}

.card-item .card-item-content .card-item-content-text span:first-child {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-color);
}

.card-item .card-item-content .card-item-content-text span:nth-child(2) {
    font-size: .9rem;
    color: var(--text-color);
}

.card-profile .card-profile-body .content-profile-photo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: -0.5rem;
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper {
    position: relative;
    width: calc(20% - 1rem);
    margin: .5rem;
    overflow: hidden;
    background: var(--box-color-double);
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: .65rem;
    background: var(--box-color-double);
    opacity: 0;
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper:hover .photo-overlay {
    opacity: .5;
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper .photo-like {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    transition: all .3s;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper:hover .photo-like {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper .photo-like .photo-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: var(--box-color);
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper .photo-like .photo-inner svg {
    stroke: #556a90;
    position: relative;
    height: 14px;
    width: 14px;
    z-index: 1;
    transition: all .3s;
}

.card-profile .card-profile-body .content-profile-photo .photo-wrapper img {
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    border-radius: .65rem;
    image-rendering: initial;
}

.card-profile .card-profile-body .content-profile-appart-recent {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: -0.5rem;
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper {
    position: relative;
    width: calc(33% - 1rem);
    margin: .5rem;
    overflow: hidden;
    padding: 12px;
    background: var(--box-color);
    border: 1px solid var(--border-color);
    border-radius: .65rem;
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper img {
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    border-radius: .65rem;
}


.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper .appart-recent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: .65rem;
    background: var(--box-color-double);
    opacity: 0;
    transition: opacity .3s;
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper:hover .appart-recent-overlay {
    opacity: .5;
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper .appart-recent-button {
    position: absolute;
    bottom: 14%;
    right: 7%;
    z-index: 5;
    transition: all .3s;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper:hover .appart-recent-button {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper .appart-recent-button .appart-recent-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: var(--box-color-double);
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper .appart-recent-button .appart-recent-inner img {
    stroke: #556a90;
    position: relative;
    height: 14px;
    width: 14px;
    z-index: 1;
    transition: all .3s;
    transform: rotate(-90deg);
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper .appart-recent-foot {
    display: block;
    margin-top: 10px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-color);
}

.card-profile .card-profile-body .content-profile-appart-recent .appart-recent-wrapper .appart-recent-foot span {
    color: var(--text-color);
}

.card-profile .card-profile-body .content-profile-body .card-item .card-item-content .card-item-content-text .icon-time {
    display: flex;
    width: auto;
    height: 20px;
    background-image: url(/assets/img/icon/icon_time.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

.card-profile .card-profile-body .content-profile-body .card-item .card-item-content .card-item-content-text .icon-time span {
    margin-left: 26px;
    margin-top: 3px;
}

.card-profile .card-profile-body .content-profile-body .card-item .icon-amis-lock {
    background-image: url(/assets/img/icon/icon_friends_lock.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 70px;
    margin-bottom: 2%;
}

.card-profile .card-profile-body .content-profile-body .card-item .amis-text-lock {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip-badge {
    position: absolute;
    background: var(--box-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    overflow: visible;
    max-width: 300px;
}

.tooltip-badge::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--box-color);
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-badge-title {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: normal;
    word-wrap: break-word;
}

.tooltip--badge-description {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

.relation-bar-container {
    background: var(--box-color);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--box-shadow);
    margin: 20px 0;
    position: absolute;
    display: flex;
    bottom: -20%;
    left: 10px;
    z-index: 500;
    height: 60px;
    min-width: 400px;
}

.relation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-direction: row;
}

.relation-item {
    display: flex;
    align-items: center;
    padding: 8px;
    flex: 1;
    min-width: 140px;
}

.relation-item-content img {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
}

.relation-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.relation-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.relation-title {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relation-title .relation-count {
    color: var(--text-color);
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
}

.relation-item:hover {
    background: var(--box-color-double);
    cursor: pointer;
    border-radius: 6px;
}

.image-item:hover {
    background: var(--box-color-double);
    cursor: pointer;
    border-radius: 6px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
    background: #444;
}

.cover-albums-container, .cover-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.cover-album-card {
    display: inline-block;
    width: calc(24.79% - 20px);
    min-height: 285px;
    margin: 10px;
    vertical-align: top;
    background-color: var(--box-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    text-align: center;
}

.cover-album-card h3 {
    margin-top: 6px;
}

.cover-album-card p {
    margin-top: 6px;
    margin-bottom: 6px;
}

.cover-album-card:hover {
    transform: translateY(-5px);
}

.cover-tag-filters {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cover-tag-filter {
    padding: 4px 12px;
    background: var(--box-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-color);
    cursor: pointer;
}

.cover-tag-filter.active {
    background: var(--primary-color);
    color: white;
}

#closeGallery, #backToAlbums {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

#closeGallery:hover {
    scale: 0.7;
}

#albumsContainer {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    padding: 20px;
}

.upload-tooltip {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--box-color);
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    width: max-content;
}

.upload-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--box-color);
}

.cover-option:hover .upload-tooltip {
    opacity: 1;
    visibility: visible;
}

.modal-profile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-profile-content {
    background: var(--box-color);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    animation: modalIn 0.3s ease-out;
}

.modal-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-profile-header h3 {
    margin: 0;
    color: var(--text-color);
}

.modal-profile-close {
    height: 30px;
    width: 30px;
    font-size: 25px;
    cursor: pointer;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background: #ff1b1b;

    &:hover {
        opacity: 0.7;
    }
}

.modal-profile-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    color: var(--text-color);
}

@keyframes modalIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .relation-bar-container {
        display: none;
    }

    .content-profile {
        display: flex;
        flex-direction: column;
    }
}