#cont-updpro h1 {
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
}

h2 {
    color: #fff;
    border-bottom: 2px solid #C3A359;
    padding-bottom: 10px;

}

.profile-header {
    background-color: rgba(0, 0, 0, 0.5);
//    border-radius: 20px;
    padding: 40px;
    margin-bottom: 20px;
//    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
    align-items: start;
//    animation: slideDown 0.5s ease;
}

.avatar-section {
    flex-shrink: 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
//    box-shadow: 0 5px 20px rgba(102,126,234,0.3);
}


.user-info {
    flex-grow: 1;
}

.username {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio{
    border: 1px solid #989898;
    padding:10px;
    margin-bottom: 10px;
}

.badge {
    font-size: 24px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
}

.member-since {
    color: #b5b5b5;
}

#modproup{
    text-align: right;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #b5b5b5;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-posts {
    background-color: rgba(0, 0, 0, 0.5);
//    border-radius: 20px;
    padding: 30px;
}

.post-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.post-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
}

.post-excerpt {
    white-space: nowrap;

    color: #b5b5b5;
    margin-bottom: 10px;
//    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-excerpt br {
    display: none;
}


/*----updated----*/
/* --- PREVIEW --- */
#avatar-preview {
    text-align: center;
    margin-bottom: 20px;
}

#avatar-preview img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 0 10px #0003;
    transition: transform 0.3s;
}

#avatar-preview img:hover {
    transform: scale(1.05);
}

/* --- CARROUSEL --- */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Boutons gauche/droite */
.carousel button {
    font-size: 20px;
    background: #eee;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
}

.carousel-viewport {
  width: 270px;          /* visible area : adapte selon ton layout / responsive */
  overflow: hidden;      /* IMPORTANT : masque la piste qui dépasse */
}

/* Bande des avatars */
.carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.carousel-track img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    opacity: 0.5;
    transition: transform 0.3s, opacity 0.3s, border 0.3s;
    cursor: pointer;
}

.carousel-track img.active {
/*    transform: scale(1.1);*/
    opacity: 1;
    border: 2px solid #3498db;
    border-radius: 15px;
}

/* ========================= */
/*   RESPONSIVE BREAKPOINTS  */
/* ========================= */

/* --- Tableau / Mini laptop --- */
@media (min-width: 600px) {
    #avatar-preview img {
        width: 150px;
        height: 150px;
    }

    .carousel-viewport {
        width: 400px;
    }

    .carousel-track img {
        width: 90px;
        height: 90px;
    }
    .avatar{
        width:150px;
        height:150px;
    }
}

/* --- Écrans larges --- */
@media (min-width: 900px) {
    #avatar-preview img {
        width: 180px;
        height: 180px;
    }

    .carousel-viewport {
        width: 440px; /* montre plus d’avatars */
    }

    .carousel button {
        font-size: 24px;
        padding: 12px 18px;
    }

    .carousel-track img {
        width: 100px;
        height: 100px;
    }
}

/* --- Très grande résolution --- */
@media (min-width: 1200px) {
    .carousel-viewport {
        width: 600px;
    }

    .carousel-track img {
        width: 110px;
        height: 110px;
    }
}


#cont-updpro{
    background-color: rgba(0, 0, 0, 0.5);
    padding:10px;
    border-radius: 10px;
}

input[type="text"] {
    width: 100%;
    margin:auto;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#repAreaCo{
    display:none;

}
.gsbut {
//    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #ead566 0%, #a2884b 100%);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gsbut:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#updfsub{
    text-align:right;
    margin: 20px;
}
