.card {
    max-width: 334px;
    overflow-y: auto;
    height: fit-content;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    background-color: var(--box-color);
    display: flex;
    transition: 0.3s;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.card[data-state="#about"] {
    height: 100%;

    .card-main {
        padding-top: 0;
    }
}

.card[data-state="#contact"] {
    height: 100%;
}

.card[data-state="#experience"] {
    height: 100%;
}

.card.is-active {
    .card-header {
        height: 80px;
    }

    .card-cover {
        height: 100px;
        top: -50px;
    }

    .card-avatar {
        transform: none;
        left: 20px;
        width: 70px;
        height: 70px;
        bottom: 10px;

        img {
            object-fit: cover;
            object-position: center;
            border-radius: 50%;
            left: -10%;
            display: flex;
            position: relative;
            height: auto;
            width: 80px;
            -webkit-filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);
        }
    }

    .card-fullname,
    .card-jobtitle {
        left: 110px;
        transform: none;
    }

    .card-fullname {
        top: 20px;
        font-size: 19px;
    }

    .card-jobtitle {
        bottom: 20px;
        letter-spacing: 1px;
        font-size: 12px;
        max-width: 130px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.card-header {
    position: relative;
    display: flex;
    height: 210px;
    flex-shrink: 0;
    width: 100%;
    transition: 0.3s;

    * {
        transition: 0.3s;
    }
}

.card-cover {
    width: 100%;
    height: 160px;
    position: absolute;
    top: -20%;
    left: 0;
    will-change: top;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.2);
    transition: 0.5s;
}

.card-avatar {
    width: 150px;
    height: 150px;
    overflow: hidden;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    object-position: center;
    object-fit: cover;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-64px);
    background-image: url(/assets/img/banners/basique/mini-banner-profil.png);
    background-size: cover;
    background-position: center;
    border: 3px solid white;

    img {
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
        left: 7%;
        display: flex;
        position: relative;
        height: auto;
        width: auto;
        -webkit-filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);
    }
}

.card-fullname {
    position: absolute;
    bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    transform: translateY(-10px) translateX(-50%);
    left: 50%;
    color: var(--text-color);
}

.card-jobtitle {
    position: absolute;
    bottom: 0;
    font-size: 11px;
    white-space: nowrap;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-7px);
    color: var(--text-color);
}

.card-main {
    position: relative;
    flex: 1;
    display: flex;
    padding-top: 10px;
    flex-direction: column;
}

.card-subtitle {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

.card-content-monnaie {
}

.card-desc {
    line-height: 1.6;
    color: #636b6f;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
    font-family: "DM Sans", sans-serif;
}

.card-social {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 30px;

    svg {
        fill: rgb(165, 181, 206);
        width: 16px;
        display: block;
        transition: 0.3s;
    }

    a {
        color: #8797a1;
        height: 32px;
        width: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        background-color: rgba(93, 133, 193, 0.05);
        border-radius: 50%;
        margin-right: 10px;

        &:last-child {
            margin-right: 0;
        }
    }
}

.card-vip {
    display: flex;
    background-color: var(--navbar-bg-box);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    bottom: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 12px;
}

.icon-vip {
    width: 22px;
    height: 22px;
    background-image: url(/assets/img/settings/icon_vip.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 10px;
}

.card-vip-title {
    text-decoration: underline;
    color: var(--text-color);
}

.card-time-hotel {
    display: flex;
    background-color: var(--navbar-bg-box);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    bottom: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
}

.icon-time-hotel {
    background-image: url(/assets/img/icon/icon_time.png);
    background-size: contain;
    width: 18px;
    height: 18px;
    margin: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.card-time-hotel-title {
    color: var(--text-color);
}

.card-buttons {
    display: flex;
    background-color: var(--navbar-bg-box);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    left: 0;
    overflow: hidden;

    button {
        flex: 1 1 auto;
        user-select: none;
        background: 0;
        font-size: 13px;
        border: 0;
        padding: 15px 5px;
        cursor: pointer;
        color: var(--text-color);
        transition: 0.3s;
        font-weight: 500;
        outline: 0;
        border-bottom: 3px solid transparent;
        text-transform: uppercase;

        &.is-active,
        &:hover {
            color: var(--text-color);
            opacity: 0.7;
            border-bottom: 3px solid var(--color-blue);
        }
    }
}

.card-section {
    display: none;

    &.is-active {
        display: block;
        animation: fadeIn 0.6s both;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translatey(40px);
    }
    100% {
        opacity: 1;
    }
}

.card-item-notif {
    position: relative;
    padding: 20px;
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 12px;
}

.card-item-notif-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.card-item-notif-icon {
    display: block;
    width: 25px;
    height: 25px;
}

.card-item-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.card-item-title span {
    text-decoration: underline;
}

.card-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-item-desc span {
    text-decoration: underline;
}

.card-content-monnaie {
    display: flex;
    position: relative;
}

.card-contact-wrapper {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: self-start;
    padding: 0 2px 12px 0;
    width: calc(100% / 2);
}

.icon-monnaie {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    transition: 0.3s;
    padding-right: 12px;
}

.diamants {
    background-image: url(/assets/img/center/money/money_diamonds.png);
}

.winwins {
    background-image: url(/assets/img/center/money/icon_winwin.png);
}

.citycash {
    background-image: url(/assets/img/center/money/money_citycash.png);
}

.gamers {
    background-image: url(/assets/img/icon/icon_gamer.png);
}

.richesse {
    background-image: url(/assets/img/center/money/money_richess.png);
}

.respect {
    background-image: url(/assets/img/forum/reactions/icon_like.png);
}

.card-contact {
    display: flex;
    background-color: var(--navbar-bg-box);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    align-items: center;
    width: 100%;
    padding: 4px;
    color: var(--text-color);
    gap: 12px;

    & + & {
        margin-top: 16px;
    }

    svg {
        flex-shrink: 0;
        width: 30px;
        min-height: 34px;
        margin-right: 12px;
        transition: 0.3s;
        padding-right: 12px;
        border-right: 1px solid #dfe2ec;
    }
}

@media (max-width: 768px) {
    .card {
        max-width: 100%;
    }
}