/* Header principal */
.main-header {
    position: fixed;
    width: 100%;
    height: 60px;
    background-color: black;
    top: 0;
    z-index: 99;
}

.main-header-content {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.logo {
    height: 55px;
    width: auto;
    margin-bottom: 0rem!important;
}

.back-link {
    background-color:transparent !important;
    border:none !important;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.profile-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto; /* Ajout de cette ligne pour centrer */
    position: relative; /* Ajout de cette ligne */
    left: 0; /* Ajout de cette ligne */
    right: 0; /* Ajout de cette ligne */
    margin-top: 60px;
}

.profile-header {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: contents;
}

a {
    text-decoration: none;
    color: inherit;
}

.cover-image {
    width: 100%;
    height: 117px;
    max-height: 200px;
    object-fit: cover;
    margin-top: 60px;
}

.profile-info {
    padding: 0 1rem;
    margin-top: -40px;
    position: relative;
    z-index: 1;
    text-align: center;
}



.profile-details {
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-name {
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-name h1 {
    font-size: 1rem;
    margin: 0;
}

.verified-badge {
    width: 15px;
    height: 15px;
    position: absolute;
    margin-left: 0px;
    margin-top: 5px;
}

.bio {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 1;
    margin: 0.5rem 0;
    position: relative;
}

.read-more,
.read-less {
    color: white;
    text-decoration: underline;
    margin-left: 5px;
    display: block;
}

.read-more:hover,
.read-less:hover {
    text-decoration: underline;
    display: block;
}

.media-stats {
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    display: inline-block;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
}

.categoriesFiltersHide {
    display: none!important;
}
.stat .count {
    font-size: 0.9rem;
    font-weight: bolder;
}

.stat .label {
    font-size: 0.9rem;
    opacity: 1;
    font-weight: bolder;
}

.profile-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:15px;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.certification-banner {
    background: linear-gradient(45deg, rgba(100, 108, 255, 0.1), rgba(83, 91, 242, 0.1));
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.certification-banner h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: white;
}

.certification-banner p {
    margin: 0 0 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.profile-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px; /* Ajout de la largeur maximale */
    margin: 0 auto; /* Centrage horizontal */
}










.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    opacity: 1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    padding-bottom: 1rem;
    width: 100%;
    max-width: 800px; /* Ajout de la largeur maximale */
    margin: 0 auto; /* Centrage horizontal */
    margin-bottom: 50px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}








.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 10px;
    margin-bottom: 41px;
}

.media-grid .media-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background-color: #262529;
}

.media-grid .media-item img,
.media-grid .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-grid .media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s;
}

.media-grid .media-item:hover .media-overlay {
    opacity: 1;
}

.media-grid .media-description {
    color: white;
    font-size: 0.8rem;
    margin: 0;
}

.media-grid .media-price {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.media-grid .media-price img {
    width: 12px;
    height: 12px;
}




.buy-media-btn {
    position: absolute;
    bottom: 10px;
    right: 30%;
    background-color: white;
    color: black;
    border: none;
    border-radius: 20px;
    padding: 5px 30px;
    cursor: pointer;
    font-size: 12px;
}

.media-grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
 }

 .media-grid-two .media-item {
    position: relative; /* Ajout */
    display: flex;
    width: 100%;
    height: auto;
    min-height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #262629;
}

.media-grid-two .media-item img {
    height: 120px;
}

.media-grid-two .lock-container {
    left: 10px;
    width: 80px;
    height: 80px;
    top: 10px;
}


.media-grid-two .lock-container img {
    width: 30%!important;
    height: 30%!important;
}

.media-grid-two .lock-container h4 {
    font-size: 11px;
    margin-top: 5px;
}

 .media-grid-two .media-item .media_viewer,
 .media-grid-two .media-item .media_viewer {
    width: 80px;
    height: 80px;
    margin-top: 10px;
    object-fit: cover;
    margin-left: 10px;
 }

 .media-grid-two .media-content {
    display: flex;
    flex-direction: column;
    padding: 5px;
    position: relative;
 }

 .media-grid-two .media-description {
    margin: 5px;
    word-wrap: break-word;
    color: silver;
    font-size: 13px;
 }
 .media-grid-two .media-price {
    margin: 5px;
    align-self: flex-start;
    font-size: 10px;
 }
 .media-grid-two .media-price span {
    font-weight: 500;
 }

 .media-grid-two .media-price img {
    width: 12px;
    height: 12px;
    margin: 0;
 }










.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 10px;
    margin-bottom: 41px;
}

.category-item {
    /* background-color: #262529; */
    border-radius: 12px;
    overflow: hidden;
}
.category-item.expanded {
    border: 1px solid silver;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.category-header h3 {
    margin: 0;
    font-size: 1rem;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.toggle-btn img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.category-item.expanded .toggle-btn img {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 0rem;
}

.category-item.expanded .category-content {
    display: block;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: var(--bg-dark);
    display: flex;
    justify-content: space-around;
    padding: 0.4rem;
    z-index: 1;
}

.nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center; /* Ajout de cette ligne */
    width: 100%;
    z-index: 1;
    margin: 0 auto; /* Ajout de cette ligne */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    opacity: 1;
}

.nav-item.active {
    opacity: 1;
}

.nav-item img {
    width: 50px;
    height: 50px;
}

.nav-item .addItem {
    width: 90px;
    height: 90px;
    margin-top: -35px;
}

.add-media {
    position: relative;
}

.add-media img {
    background: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
    margin-top: -1.5rem;
}

@media (max-width: 480px) {
    .profile-header {
        height: 150px;
    }

    .media-grid {
        gap: 0.5rem;
    }

    .profile-actions {
        flex-wrap: wrap;
        text-align: center;
    }

    .profile-actions .btn {
        flex: 1;
    }
}



/* Modal styles */
.modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}



.modal.show {
    transform: translateY(0);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.filter-section {
    margin-bottom: 0rem;
    text-align: left;
}

.filter-section h4 {
    color: black;
    margin-bottom: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}


.input-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.input-text input {
    width: 98%;
    height: 35px;
    border-radius: 15px;
    border: 1px solid silver;
    margin-bottom: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    color: black;
    cursor: pointer;
}

.reset-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: grey;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
}

.apply-filters {
    background: black;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.apply-filters:hover {
    opacity: 0.9;
}



.media-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.popup-content {
    position: relative;
    max-width: 800px; /* Fixé à 800px pour correspondre au mediaContainer */
    width: 90%;
    margin: 60px auto;
    z-index: 1001;
}

.popup-close {
    position: absolute;
    top: -55px;
    right: -10px;
    cursor: pointer;
    padding: 10px;
}

.media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* max-height: 60vh; */
    overflow: auto;
}

#mediaContainer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#mediaContainer img,
#mediaContainer video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain; /* Garde les proportions de l'image */
}

.popup-legende {
    color: white;
    text-align: left;
    margin-top: 10px;
    padding: 0;
    width: 85%;
    word-break: break-word; /* Changed from break-all for better text wrapping */
}

.edit-button {
    margin-top: 10px;
    padding: 8px 20px;
    background-color: white; /* Couleur bleue, à ajuster selon votre thème */
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}


.report-button {
    width: 100%;
    background: white;
    border: none;
    padding: 15px;
    margin: 5px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    color: black;
    font-weight: 600;
}

.report-button:hover {
    background: #f5f5f5;
}

.submit-report {
    width: 100%;
    background: black;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.submit-report:hover {
    opacity: 0.9;
}


.reportText, .reportTitle {
    color: black;
}

#reportDetail,
#reportDetail h4,
#reportDetail p {
    color: black;
}


.lock-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Réduit l'espace entre les éléments */
    z-index: 1;
}

/* Ajuster la taille du cadenas */
.lock-container img {
    width: 40%!important; /* Réduit de 40% à 20% */
    height: 40%!important; /* Réduit de 40% à 20% */
    object-fit: contain;
    margin: 0;
}

/* Ajuster le texte */
.lock-container h4 {
    margin: 0;
    font-size: 11px;
    text-align: center;
    width: 100%;
    line-height: 1.2; /* Ajoute pour contrôler l'espacement vertical */
}

/* Ajuster le bouton */
.lock-container button {
    background-color: white;
    color: black;
    border: none;
    border-radius: 20px;
    padding: 6px 16px; /* Réduit le padding */
    font-size: 11px;
    cursor: pointer;
    width: auto;
    min-width: 80px; /* Réduit la largeur minimale */
    margin: 0;
    line-height: 1.2;
}

.media-price-buy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 1rem;
    overflow: hidden;
    display: inline-block;
}

.profile-image-without {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 1rem;
    display: inline-block;
}

.profile-image img, .profile-image-without img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-live-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.profile-live-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--text-color);
    display: inline-block;
}

.profile-live-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation des cercles pour les lives en cours */
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.circle-3,
.circle-4 {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: ripple 2s infinite;
}

.circle-3 {
    animation-delay: 0s;
}

.circle-4 {
    animation-delay: 1s;
}

.live-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid var(--text-color);
    z-index: 2;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pour Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}