/* ===== PROFILE ENHANCED - VEFACONNECT ===== */

/* Utilisation des variables CSS existantes de VefaConnect */
.profile-enhanced {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: var(--font-primary, 'Segoe UI', sans-serif);
}

/* Animations spring plus naturelles */
:root {
    --spring-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-easing: cubic-bezier(0.4, 0.0, 0.2, 1);
    --bounce-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Performance optimizations avec CSS containment */
.stat-card,
.program-card,
.content-card {
    contain: layout style paint;
}

.profile-enhanced__avatar {
    contain: layout style;
    will-change: transform;
}

/* Header avec bannière */
.profile-enhanced__header {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--background-color, #fff);
}

.profile-enhanced__cover {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color, #3498db) 0%, var(--icon-color, #3498db) 50%, var(--icon-hover-color, #ff4000) 100%);
    position: relative;
}

.profile-enhanced__cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.profile-enhanced__header-content {
    display: flex;
    align-items: end;
    padding: 2rem;
    background: var(--background-color, #fff);
    position: relative;
    gap: 2rem;
}

/* Avatar amélioré */
.profile-enhanced__avatar-section {
    position: relative;
    margin-top: -100px;
}

.profile-enhanced__avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--background-color, #fff);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--spring-easing);
}

.profile-enhanced__avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.6), 
                0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-enhanced__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.profile-enhanced__avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-enhanced__avatar:hover .profile-enhanced__avatar-overlay {
    opacity: 1;
}

.profile-enhanced__avatar:hover .profile-enhanced__avatar-img {
    filter: brightness(0.8);
}

.profile-enhanced__avatar-edit {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.profile-enhanced__avatar-edit:hover {
    transform: scale(1.2);
    color: white;
}

/* Informations utilisateur */
.profile-enhanced__user-info {
    flex: 1;
    min-width: 0;
}

.profile-enhanced__name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-on-light-bg, #333);
    line-height: 1.2;
}

.profile-enhanced__username {
    font-size: 1.2rem;
    color: var(--muted-text-color, #666);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.profile-enhanced__badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

.badge--primary {
    background: var(--primary-color, #3498db);
    color: white;
}

.badge--secondary {
    background: var(--navbar-bg-color, #f8f9fa);
    color: var(--text-on-light-bg, #333);
    border: 1px solid var(--navbar-text-color, #ddd);
}

/* ===== Badge Cards (Profile Badges Tab) ===== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--navbar-bg-color, #fff);
    border: 1px solid var(--navbar-text-color, rgba(0,0,0,0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.badge-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--badge-color, #3498db);
    color: #fff;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.badge-card:hover .badge-card__icon {
    transform: scale(1.1);
}

.badge-card--locked .badge-card__icon {
    background: var(--muted-text-color, #adb5bd);
    opacity: 0.5;
}

.badge-card--locked {
    opacity: 0.7;
}

.badge-card--unlocked .badge-card__icon {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.1);
}

.badge-card__info {
    flex: 1;
    min-width: 0;
}

.badge-card__info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-on-light-bg, #333);
}

.badge-card__info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted-text-color, #666);
    line-height: 1.4;
}

.badge-card__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted-text-color, #999);
    font-style: italic;
}

.badge-card__status {
    font-size: 1.1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.badge-card--unlocked .badge-card__status {
    color: #27ae60;
}

.badge-card--locked .badge-card__status {
    color: var(--muted-text-color, #adb5bd);
}

/* User badge inline (header) */
.user-badge--unlocked {
    background: color-mix(in srgb, var(--badge-color, #3498db) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--badge-color, #3498db) 30%, transparent);
    color: var(--badge-color, #3498db);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.user-badge__icon {
    font-size: 0.85rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-text-color, #999);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }
}

.profile-enhanced__actions {
    display: flex;
    align-items: center;
}

/* Boutons avec ripple effect */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--smooth-easing);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: var(--primary-color, #3498db);
    color: white;
}

.btn--primary:hover {
    background: var(--icon-hover-color, #ff4000);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 64, 0, 0.3);
}

.btn--success {
    background: #27ae60;
    color: white;
}

.btn--success:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--navbar-text-color, #6c757d);
    color: white;
}

.btn--secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Statistiques améliorées */
.profile-enhanced__stats {
    margin-bottom: 2rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s var(--spring-easing);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

/* Fallback pour navigateurs sans backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .stat-card {
        background: var(--background-color, #fff);
    }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02) rotate(1deg);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.2);
}

.stat-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--primary-color, #3498db);
    transition: background 0.3s ease;
}

.stat-card--posts .stat-card__icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card--replies .stat-card__icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card--programs .stat-card__icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-card__content {
    flex: 1;
}

.stat-card__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-on-light-bg, #333);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card__label {
    font-size: 0.875rem;
    color: var(--muted-text-color, #666);
    font-weight: 500;
}

/* Onglets avec glassmorphism */
.tabs-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@supports not (backdrop-filter: blur(10px)) {
    .tabs-container {
        background: var(--background-color, #fff);
    }
}

.tabs-nav {
    display: flex;
    background: rgba(248, 249, 250, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--navbar-text-color, #666);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    font-family: inherit;
}

.tab-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color, #3498db);
}

.tab-btn--active {
    background: var(--background-color, #fff);
    color: var(--primary-color, #3498db);
    font-weight: 600;
}

.tab-btn--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color, #3498db);
}

/* Contenu des onglets */
.tabs-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes de contenu avec glassmorphism */
.content-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@supports not (backdrop-filter: blur(10px)) {
    .content-card {
        background: var(--background-color, #fff);
    }
}

.content-card__header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 249, 250, 0.5);
}

.content-card__header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-on-light-bg, #333);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card__header i {
    color: var(--primary-color, #3498db);
}

.content-card__body {
    padding: 1.5rem;
}

/* Formulaires modernes */
.edit-form {
    background: var(--background-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--navbar-text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--icon-hover-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edit-form.form-focused::before {
    opacity: 1;
}

.edit-form.form-focused {
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header du formulaire */
.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--navbar-text-color);
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--icon-hover-color));
}

.form-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-on-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-header h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-subtitle {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 0.9rem;
    font-style: italic;
}

/* Indicateur de champ requis */
.required-indicator {
    color: var(--icon-hover-color);
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Messages d'aide */
.form-help {
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--muted-text-color);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-help::before {
    content: "💡";
    font-size: 0.7rem;
}

/* Animation de pulsation pour attirer l'attention */
.form-pulse-highlight {
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
    }
    25% { 
        box-shadow: 0 12px 48px rgba(52, 152, 219, 0.25); 
    }
    50% { 
        box-shadow: 0 16px 64px rgba(52, 152, 219, 0.3); 
    }
    75% { 
        box-shadow: 0 12px 48px rgba(52, 152, 219, 0.25); 
    }
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-on-light-bg);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-group--focused label {
    color: var(--primary-color);
}

.form-group label i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group--focused label i {
    transform: scale(1.05);
    color: var(--icon-hover-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--navbar-text-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--background-color);
    color: var(--text-on-light-bg);
    font-family: inherit;
    line-height: 1.4;
    position: relative;
}

.form-control:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-control--focused {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
    background: var(--background-color);
}

.form-control::placeholder {
    color: var(--muted-text-color);
    font-style: italic;
}

/* Styles spéciaux pour textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.4;
}

/* Styles spéciaux pour select */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233498db' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--navbar-text-color);
    justify-content: flex-end;
}

/* Amélioration des boutons du formulaire */
.form-actions .btn {
    min-width: 120px;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.form-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}

.form-actions .btn:hover::before {
    left: 100%;
}

.form-actions .btn--success {
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.25);
}

.form-actions .btn--success:hover {
    background: var(--btn-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 64, 0, 0.3);
}

.form-actions .btn--secondary {
    background: var(--secondary-color);
    color: var(--btn-text-color);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

.form-actions .btn--secondary:hover {
    background: var(--navbar-text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.35);
}

/* Timeline d'activité */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.6);
    border-radius: 8px;
    transition: all 0.3s var(--smooth-easing);
}

.activity-item:hover {
    background: rgba(233, 236, 239, 0.8);
    transform: translateX(5px);
}

.activity-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #3498db);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-item__content {
    flex: 1;
}

.activity-item__description {
    margin: 0 0 0.5rem 0;
    color: var(--text-on-light-bg, #333);
    font-weight: 500;
}

.activity-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.activity-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.activity-item__time {
    font-size: 0.8rem;
    color: var(--muted-text-color, #666);
}

/* Programmes grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--spring-easing);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@supports not (backdrop-filter: blur(10px)) {
    .program-card {
        background: var(--background-color, #fff);
    }
}

.program-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.2);
}

.program-card__image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.program-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-card:hover .program-card__image img {
    transform: scale(1.05);
}

.program-card__no-image {
    height: 100%;
    background: var(--navbar-bg-color, #f8f9fa);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted-text-color, #666);
    gap: 0.5rem;
}

.program-card__no-image i {
    font-size: 2rem;
    color: var(--primary-color, #3498db);
}

.program-card__content {
    padding: 1.25rem;
}

.program-card__title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-on-light-bg, #333);
    line-height: 1.3;
}

.program-card__delivery {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted-text-color, #666);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-card__delivery i {
    color: var(--primary-color, #3498db);
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-text-color, #666);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary-color, #3498db);
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Optimisations performance */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .stat-card,
    .program-card,
    .profile-enhanced__avatar,
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-enhanced {
        padding: 1rem 0.5rem;
    }
    
    /* Réduire le glassmorphism sur mobile pour performance */
    @supports (backdrop-filter: blur(10px)) {
        .stat-card,
        .content-card,
        .program-card,
        .tabs-container {
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
    }
    
    .profile-enhanced__header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .profile-enhanced__avatar-section {
        margin-top: -90px;
    }
    
    .profile-enhanced__avatar {
        width: 150px;
        height: 150px;
    }
    
    .profile-enhanced__name {
        font-size: 1.5rem;
    }
    
    .profile-enhanced__username {
        font-size: 1rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Formulaire responsive */
    .edit-form {
        padding: 1rem;
        border-radius: 8px;
        margin: 0 -0.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        flex-direction: row;
        gap: 0.375rem;
        margin-bottom: 0.375rem;
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
        margin-top: 1.25rem;
        padding-top: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .tabs-content {
        padding: 1rem;
    }
    
    .content-card__header,
    .content-card__body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-enhanced__cover {
        height: 170px;
    }
    
    .profile-enhanced__avatar-section {
        margin-top: -75px;
    }
    
    .profile-enhanced__avatar {
        width: 130px;
        height: 130px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card__icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-card__number {
        font-size: 1.5rem;
    }
} 

/* ==========================================
   MODERNIZATION UPDATES (V2)
   ========================================== */

/* 1. MESH GRADIENT BANNER */
.profile-enhanced__cover {
    position: relative;
    overflow: hidden;
    background: #0d1117; /* Base color */
}

.mesh-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
    animation: moveMesh 15s infinite alternate ease-in-out;
}

.mesh-bg-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff4000 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.mesh-bg-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3498db 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation-duration: 20s;
    animation-delay: -5s;
}

.mesh-bg-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8e44ad 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 18s;
}

@keyframes moveMesh {
    0% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.1) translate(50px, -30px); }
    66% { transform: scale(0.9) translate(-40px, 40px); }
    100% { transform: scale(1.05) translate(20px, -20px); }
}

/* 2. AVATAR RING (GLOWING HALO) */
.profile-enhanced__avatar-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-enhanced__avatar-ring {
    position: absolute;
    width: 196px; /* slightly larger than avatar */
    height: 196px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #ff4000);
    z-index: 0;
    opacity: 0.8;
    filter: blur(8px);
    animation: pulseRing 3s infinite alternate;
}

.profile-enhanced__avatar-ring--default {
    background: linear-gradient(135deg, #bdc3c7, #7f8c8d);
}

.profile-enhanced__avatar-ring--bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
}

.profile-enhanced__avatar-ring--silver {
    background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
}

.profile-enhanced__avatar-ring--gold {
    background: linear-gradient(135deg, #ffd700, #daa520);
}

.profile-enhanced__avatar-ring--platinum {
    background: linear-gradient(135deg, #e5e4e2, #7b9095);
    animation: pulseRing 2s infinite alternate, platinumShine 4s infinite linear;
}

@keyframes pulseRing {
    0% { transform: scale(0.98); opacity: 0.6; }
    100% { transform: scale(1.04); opacity: 1; }
}

@keyframes platinumShine {
    0% { filter: hue-rotate(0deg) blur(8px); }
    100% { filter: hue-rotate(360deg) blur(8px); }
}

.profile-enhanced__avatar {
    z-index: 1;
}

/* 3. 3D CARDS */
.card-3d {
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
}

.badge-card.card-3d {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(248,249,250,0.8));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* 4. PILL TABS (Segmented Control) */
.tabs-nav {
    position: relative;
    display: flex;
    background: rgba(240, 242, 245, 0.8);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
    z-index: 1;
    margin-bottom: 2rem;
}

.tabs-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(25% - 3px);
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.tab-btn {
    border-radius: 40px;
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 1rem;
    color: #6c757d;
    z-index: 2;
    margin: 0 !important;
}

.tab-btn:hover {
    color: #3498db;
    background: transparent !important;
}

.tab-btn--active {
    color: #3498db !important;
    font-weight: 700 !important;
}

.tab-btn--active::after {
    display: none !important;
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        border-radius: 16px;
    }
    .tabs-indicator {
        border-radius: 12px;
        width: calc(100% - 12px) !important;
        height: 48px;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}

/* 5. DANGER ZONE REDESIGN */
.danger-zone {
    border: none;
    border-left: 4px solid #e74c3c;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    overflow: hidden;
    position: relative;
}

.danger-zone::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(231, 76, 60, 0.03) 10px,
        rgba(231, 76, 60, 0.03) 20px
    );
}

.danger-zone__header {
    padding: 1rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid rgba(231, 76, 60, 0.1);
}

.danger-zone__body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-outline-danger {
    color: #e74c3c;
    border: 2px solid #e74c3c;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-danger:hover {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Base Settings Overrides */
.account-settings-details {
    border: none;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.account-settings-summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    transition: color 0.2s ease;
}

.account-settings-summary:hover {
    color: #212529;
}

.account-settings-summary::-webkit-details-marker {
    display: none;
}

.account-settings-content {
    padding: 1.5rem 0.5rem;
}

.account-settings-details[open] .account-settings-summary i {
    transform: rotate(180deg);
} 