ul {    
    margin-block-start: 0;
    padding-inline-start: var(--s-3);
    list-style: disc;
}

.nodisc{
    list-style: none;
}

img{
    opacity: 0.9;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    padding: var(--s-3) 0;
    max-width: 1100px;
    margin: auto;
    font-size: 1rem;
}

.logo span {
    color: var(--dark);
    font-weight: 300;
}

.actions {
    display: flex;
    gap: var(--s-3);
    align-items: center;
}

/* PROFILE */
.profile-header {
    display: flex;
    gap: var(--s-5);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.metrics {
    display: flex;
    /*justify-content: space-between;*/
    justify-content: center;
    gap: 20px;
    border: 0px solid var(--border);
    border-radius: var(--radius);
    /*padding: var(--s-2);*/
    margin: var(--s-3) 0;
    text-align: center;
}

.bio {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 👈 limite à 2 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bio {
    transition: all 0.25s ease;
}

.bio.expanded {
    -webkit-line-clamp: unset;
}

.bio-toggle {
    color: var(--light);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 4px;
    white-space: nowrap;
}

.bio-toggle:hover {
    opacity: 0.7;
}

.bio-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.bio {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0; /* évite décalage vertical */
    padding-right: 80px; /* espace pour "En savoir plus" */
}

.bio.expanded {
    -webkit-line-clamp: unset;
}

/* fade + bouton inline */
.bio-fade {
    position: absolute;
    bottom: 0;
    right: 0;

    display: flex;
    align-items: center;

    padding-left: 20px;

    background: linear-gradient(to right, transparent, var(--card) 40%);
}

.extlinks {
    margin: 0;
    margin-top: var(--s-3);
}

/* STATUS */
.profile-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.remote-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.remote-card {
    align-items: center;
    text-align: center;
}

/* POSTS */
.posts-section {
    margin: var(--s-5) var(--s-5);
}

.posts-grid {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: auto auto auto;
}

.post {
    text-align: center;
    max-width:200px;
}
/*
.post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center; 
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
*/

.post-media {
    position: relative;
    width: 100%;
    max-width: 150px;
    margin: auto;
    aspect-ratio: 6 / 4;
    overflow: hidden;
    border-radius: 16px;
}

.post-media-bg {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(1);
    opacity: 0.9;
    transform: scale(1.1); /* évite les bords visibles */
    z-index: 0;
}

/* 🖼️ Image principale */
.post-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain; /* important */
    object-position: center;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.post-media:hover img{
    transform: scale(1.2);
}


.activity-header {
    display: grid;
    grid-template-columns: 3fr 2fr;
    /*align-items: center;*/
    gap: var(--s-5);
    /*margin-bottom: var(--s-4);*/
}

.chartLegend {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

.legend-line {
    width: 14px;
    height: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.activity-header > div {
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
}

.today {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--s-4);
    /*margin-bottom: var(--s-4);*/
    text-align: center;
}

.avatar {
    filter: blur(10px);
    transition: filter 0.3s;
}

.avatar.loaded {
    filter: blur(0);
}

.fullscreen {
  height: calc(50vh + 150px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen > div {
  text-align: center;
  max-width: 800px;
  padding: 20px;
  margin: auto;
}

.dots {
  display: inline-block;
  width: 1.5em;
  text-align: left;
}

.dots::after {
  content:"...";
  display:inline-block;
  width: 1.5em;
  margin-left: 0.3em;
  animation: dots 1.5s steps(3, end) infinite;
}

.translateY{
    transform: translateY(calc( -1 * var(--s-5)));
}

@keyframes dots {
  0%   { content:"."; }
  25% { content:".."; }
  50% { content:"..."; }
  75% { content:".."; }
  100% { content:"."; }
}


@media (max-width: 1160px) {
    .topbar{
        padding: var(--s-3) var(--s-3);
    }
    .container{
        padding: 0 var(--s-3);
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .activity-header {
        grid-template-columns: 1fr;
    }
    .hide-mobile{
        display: none;
    }
    .translateY{
        transform: translateY(0);
    }
    .topbar{
        padding: var(--s-3) var(--s-3);
    }
    .container{
        padding: 0 var(--s-3);
    }
    h2{
        font-size: 2.3rem;
    }
    h3{
        font-size: 1.1rem;
    }
    body{
        font-size: 0.9rem;
    }
    .text-large {
        font-size: 1rem;
    }
    .text-xlarge {
        font-size: 1.2rem;
    }
    .hidemob{
        display: none;
    }
    .profile-header{
        display: block;
        text-align: center;
    }
    
    .profile-header img{
        margin-bottom: var(--s-3);
    }

    .bio-node{
        display: block;
        text-align: left;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}