/* Styles pour la page de profil */

.profil-main {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start !important;
    height: 100vh;
}

/* Bannière de profil */
.profil-banner {
    position: relative;
    width: 100%;
    height: 502px;
    margin-bottom: 1.5rem;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.profil-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.profil-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.profil-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 2rem 2rem 2rem 3rem;
    height: 100%;
    gap: 2.5rem;
}

.profil-avatar-container {
    flex-shrink: 0;
    width: 233px;
    height: 236px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.profil-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profil-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profil-username {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.profil-role {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    opacity: 1;
}

.profil-status-container {
    margin-top: 0.75rem;
    position: relative;
}

.profil-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.profil-status::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: bubbleFloat 3s ease-in-out infinite;
    pointer-events: none;
}

.profil-status::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: bubbleFloat 4s ease-in-out infinite 1s;
    pointer-events: none;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.6;
    }
}

.profil-status-icon {
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.profil-edit-mode .profil-status-icon {
    cursor: pointer;
}

.profil-edit-mode .profil-status-icon:hover {
    transform: scale(1.2);
}

.profil-status-text {
    flex: 0;
    position: relative;
    z-index: 1;
}

.profil-status-text {
    flex: 0;
}

.profil-status-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.profil-status-edit-btn:hover {
    opacity: 1;
}

.profil-status-edit-btn img {
    width: 12px;
    height: 12px;
}

.profil-status-edit-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profil-status-icon-editable {
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 14px;
    line-height: 1;
}

.profil-status-icon-editable:hover {
    transform: scale(1.2);
}

.profil-status-input {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    width: 200px;
    outline: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.profil-status-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.profil-emoji-picker {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    max-height: 300px;
    overflow-y: auto;
}

.profil-emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
}

.profil-emoji-item {
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
    user-select: none;
}

.profil-emoji-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.profil-actions {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-end;
    z-index: 4;
}

.profil-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 306px;
    height: 67px;
    padding: 0;
    background: #0486FB;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.profil-action-btn:hover {
    background: #0370d4;
    transform: translateY(-2px);
}

.profil-action-btn:active {
    transform: translateY(0);
}

.profil-action-btn img {
    width: 16px;
    height: 16px;
}

.profil-admin-btn img {
    width: 16px;
    height: 16px;
}

.profil-edit-btn img {
    width: 15px;
    height: 16px;
}

/* Contenu principal */
.profil-content {
    display: grid;
    grid-template-columns: 1.36fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 40px;
    align-items: start;
}

/* Panneaux */
.profil-panel {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 547px;
    height: 547px;
    display: flex;
    flex-direction: column;
}

.profil-panel-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 1.5rem 0;
}

/* Panneau INFORMATIONS */
.profil-section {
    margin-bottom: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profil-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.profil-description-container {
    min-height: 100px;
    flex: 1;
}

.profil-description {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.profil-description-input {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    resize: vertical;
    outline: none;
}

.profil-description-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.profil-account-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.profil-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profil-detail-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.profil-detail-value {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
}

.profil-detail-value-blue {
    color: #0486FB;
}

/* Panneau COMMENTAIRES */
.profil-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    min-height: 0;
}

.profil-comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.profil-comment-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profil-comment-content {
    flex: 1;
}

.profil-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profil-comment-username {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.profil-comment-date {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.profil-comment-text {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.profil-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.profil-comment-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.profil-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profil-comment-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    resize: none;
    outline: none;
    min-height: 40px;
    max-height: 120px;
}

.profil-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.profil-comment-submit {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    background: #0486FB;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
}

.profil-comment-submit:hover {
    background: #0370d4;
}

.profil-comment-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mode édition */
.profil-edit-mode .profil-description {
    display: none !important;
}

.profil-edit-mode .profil-description-input {
    display: block !important;
}

.profil-edit-mode .profil-status {
    display: none !important;
}

.profil-edit-mode .profil-status-edit-container {
    display: inline-flex !important;
}

.profil-edit-mode .profil-status-edit-btn {
    display: none !important;
}

.profil-edit-mode .profil-banner {
    position: relative;
}

/* Bouton pour changer la bannière */
.profil-banner-change-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s, transform 0.2s;
}

.profil-banner-change-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Scrollbar personnalisée */
.profil-comments-list::-webkit-scrollbar {
    width: 6px;
}

.profil-comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.profil-comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.profil-comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .profil-content {
        grid-template-columns: 1fr;
    }

    .profil-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profil-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
}

