div.infos {
    padding: 25px 30px;
    display: flex;
    background: #ea588512;
    border: 1px solid #9f5f733b;
    border-radius: 20px;
}

button img {
    padding-right: 8px;
    filter: brightness(0) saturate(100%) invert(97%) sepia(3%) saturate(0%) hue-rotate(300deg) brightness(105%) contrast(103%);
    height: 14px;
    width: auto;
}

div.name {
    padding-left: 30px;
}

div.picture div {
    height: 160px;
    width: 160px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--purple-1);

}

div.picture img {
    min-width: 100%;
    min-height: 100%;
}

div.name * {
    margin: 0;
}

div.name h4 {
    color: var(--purple-1);
}

div.name p {
    margin-top: 13px;
}

div.name ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 21px;
    margin-top: 22px;
}

div.name ul li {
    display: flex;
    gap: 6px;
    align-items: center;
}

div.name ul li svg,
div.tags span svg {
    fill: var(--purple-1);
    color: var(--purple-1);
}

div.private {
    padding: 10px 5px;
    display: flex;
    background: #ea588512;
    border: 1px solid #9f5f733b;
    border-radius: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

div.private div:first-child {
    padding-left: 20px;
}

div.private div button {
    border: 0;
    background: var(--purple-1);
    padding: 0 17px;
    height: 48px;
    font-size: 16px;
    border-radius: 14px;
    transition: 150ms;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-right: 6px;
    box-shadow: var(--purple-o-1) 0px 8px 15px;
}

div.add-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

div.add-content .title {
    margin: 0;
}

div.add-content button {
    border: 0;
    background: var(--purple-1);
    color: var(--white);
    padding: 0 19px;
    height: 43px;
    font-size: 16px;
    border-radius: 12px;
    transition: 150ms;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-right: 6px;
    box-shadow: var(--purple-o-1) 0px 8px 15px;
}

div.posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 25px;
    grid-row-gap: 25px;
}

div.posts .post {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background: #ea588512;
    border: 1px solid #9f5f733b;
    padding: 20px;
}

div.posts .post p {
    margin: 0;
    margin-top: 15px;
}

div.media {
    overflow: hidden;
    border-radius: 20px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

div.media:hover div {
    transform: scale(1.05);
}

div.loc div.media:hover div {
    transform: none;
}

div.loc div.media div {
    filter: brightness(0.8) blur(15px);
}

div.media div {
    /* height: 400px; */
    width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center center;
    transition: transform 250ms;
}

div.lock {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    position: absolute;
    width: calc(100% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

div.lock div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

div.lock div span {
    color: white;
    font-weight: 500;
}

div.lock div span.price {
    font-size: 22px;
}

div.lock div img {
    height: 60px;
}

div.tags {
    position: absolute;
    z-index: 100;
    padding: 10px;
    display: flex;
    gap: 8px;
    width: calc(100% - 40px);
    justify-content: space-between;
}

div.tags div {
    display: flex;
    gap: 10px;
}

div.tags span {
    color: white;
    padding: 5px 14px;
    font-size: 15px;
    border-radius: 15px;
    backdrop-filter: saturate(150%) blur(10px);
    border: 1px solid #ffffff45;
    background: #0000008a;
    display: flex;
    align-items: center;
    gap: 7px;
}

div.tags div span.price {
    background: #ffd4008a;
}

div.tags div:last-child span {
    cursor: pointer;
    user-select: none;
}

a.message {
    background: var(--purple-1);
    padding: 10px 19px;
    font-size: 16px;
    border-radius: 11px;
    transition: 150ms;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.subscribe {
    border: 0;
    background: var(--purple-1);
    padding: 10px 19px;
    font-size: 16px;
    border-radius: 11px;
    transition: 150ms;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.subscribed {
    background: #EA5885;
}

.social-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
}

/* div.tags span:last-child {
    background: #0000008a;
} */

/* Style de l'overlay (fond noir semi-transparent) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* Style de l'image agrandie */
.popup-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
    cursor: initial;
}

/* Bouton fermer */
.popup-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Curseur pointer sur les médias cliquables */
.post:not(.loc) .media {
    cursor: pointer;
}

@media screen and (max-width: 1500px) {
    div.posts {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media screen and (max-width: 1000px) {
    div.posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    div.posts {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 630px) {
    div.picture div {
        height: 120px;
        width: 120px;
    }

    div.picture img {
        height: 120px;
    }
}

@media screen and (max-width: 500px) {
    div.infos {
        flex-direction: column;
        align-items: center;
    }

    div.name {
        padding-left: 0;
    }

    div.name div {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-top: 5px;
    }

    div.name p {
        margin-top: 10px;
    }
}