/* Styles pour la page de profil */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--support_user_text);
    text-decoration: none;
    margin-right: 1rem;
    transition: var(--support_user_transition);
}

.profile-back:hover {
    color: var(--support_user_accent);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--support_user_accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: var(--support_user_text);
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--support_user_text);
    opacity: 0.8;
}

.profile-bio {
    margin-bottom: 1rem;
    color: var(--support_user_text);
    line-height: 1.5;
}

.profile-joined {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--support_user_text);
    opacity: 0.7;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--support_user_transition);
    border: none;
}

.profile-btn-primary {
    background-color: var(--support_user_accent);
    color: white;
}

.profile-btn-primary:hover {
    background-color: #8550b0;
    transform: translateY(-2px);
    box-shadow: var(--support_user_shadow);
}

.profile-btn-secondary {
    background-color: #f0f0f0;
    color: var(--support_user_text);
}

.profile-btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.profile-btn-outline {
    background-color: transparent;
    border: 1px solid var(--support_user_accent);
    color: var(--support_user_accent);
}

.profile-btn-outline:hover {
    background-color: rgba(156, 98, 198, 0.05);
    transform: translateY(-2px);
}

.profile-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.profile-icon-location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.profile-icon-edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
}

.profile-icon-settings {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

.profile-icon-back {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.profile-icon-add {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.profile-icon-view {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.profile-icon-heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.profile-icon-resonate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M3 6h18M3 18h18'/%3E%3C/svg%3E");
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background-color: var(--support_user_card_bg);
    border-radius: 10px;
    box-shadow: var(--support_user_shadow);
    margin-bottom: 2rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--support_user_accent);
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 0.9rem;
    color: var(--support_user_text);
    opacity: 0.7;
}

.profile-section {
    margin-bottom: 3rem;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-section-header h2 {
    font-size: 1.5rem;
    color: var(--support_user_text);
    margin: 0;
}

.profile-echo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-echo-card {
    background-color: var(--support_user_card_bg);
    border-radius: 10px;
    box-shadow: var(--support_user_shadow);
    padding: 1.5rem;
    transition: var(--support_user_transition);
    display: flex;
    flex-direction: column;
}

.profile-echo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.profile-echo-content {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.profile-echo-content p {
    margin: 0;
    line-height: 1.5;
    color: var(--support_user_text);
}

.profile-echo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--support_user_border);
}

.profile-echo-date {
    font-size: 0.85rem;
    color: var(--support_user_text);
    opacity: 0.7;
}

.profile-echo-stats {
    display: flex;
    gap: 1rem;
}

.profile-echo-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--support_user_text);
    opacity: 0.7;
}

.profile-echo-stat .profile-icon {
    width: 16px;
    height: 16px;
}

.profile-echo-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background-color: var(--support_user_input_bg);
    color: var(--support_user_accent);
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--support_user_transition);
}

.profile-echo-link:hover {
    background-color: var(--support_user_accent);
    color: white;
}

.profile-empty {
    text-align: center;
    padding: 3rem;
    background-color: var(--support_user_card_bg);
    border-radius: 10px;
    box-shadow: var(--support_user_shadow);
}

.profile-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M3 6h18M3 18h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.profile-empty p {
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Styles pour l'édition du profil */
.profile-edit-card {
    background-color: var(--support_user_card_bg);
    border-radius: 10px;
    box-shadow: var(--support_user_shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-error-message {
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--support_user_danger);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--support_user_danger);
}

.profile-form-group {
    margin-bottom: 1.5rem;
}

.profile-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--support_user_text);
}

.profile-input,
.profile-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--support_user_input_border);
    background-color: var(--support_user_input_bg);
    font-size: 1rem;
    transition: var(--support_user_transition);
}

.profile-input:focus,
.profile-textarea:focus {
    outline: none;
    border-color: var(--support_user_accent);
    box-shadow: 0 0 0 2px rgba(156, 98, 198, 0.2);
}

.profile-input-error {
    border-color: var(--support_user_danger);
}

.profile-input-error:focus {
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.profile-error {
    color: var(--support_user_danger);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.profile-textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #777;
}

.profile-counter-warning {
    color: var(--support_user_warning);
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-avatar-upload {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--support_user_input_bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    overflow: hidden;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    font-size: 2.5rem;
    color: var(--support_user_accent);
    opacity: 0.5;
}

.profile-avatar-input {
    flex: 1;
}

.profile-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profile-section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-echo-list {
        grid-template-columns: 1fr;
    }
    
    .profile-form-actions {
        flex-direction: column;
    }
    
    .profile-form-actions .profile-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .profile-avatar-upload {
        flex-direction: column;
    }
    
    .profile-avatar-preview {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .profile-avatar-input {
        width: 100%;
        text-align: center;
    }
}