/* ==============================================
   🎨 RISK-PARITY.CSS - ULTRA MODERN 3D VERSION
   Glassmorphism • 3D Effects • Premium Animations
   VERSION FINALE COMPLÈTE AVEC TITRE DE PAGE
   ============================================== */

/* ============================================
   🌟 VARIABLES PERSONNALISÉES
   ============================================ */
:root {
    --ml-primary: #667eea;
    --ml-secondary: #764ba2;
    --ml-accent: #f093fb;
    --ml-success: #43e97b;
    --ml-danger: #f5576c;
    --ml-warning: #f6d365;
    --ml-blue: #4A74F3;
    --ml-purple: #8E44AD;
    
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(31, 38, 135, 0.37);
    
    --glow-primary: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-accent: 0 0 30px rgba(240, 147, 251, 0.6);
    --glow-blue: 0 0 25px rgba(74, 116, 243, 0.5);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark-mode {
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
}

/* ============================================
   🎯 TITRE DE LA PAGE - HEADER PRINCIPAL
   ============================================ */
.top-header h1,
.page-header h1,
.main-content > h1:first-child {
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    text-shadow: 0 4px 24px rgba(102, 126, 234, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

.top-header h1 i,
.page-header h1 i,
.main-content > h1:first-child i {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 2.2rem !important;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   📑 TITRES - CIBLAGE ULTRA-SPÉCIFIQUE
   (Uniquement les sections de contenu principal)
   ============================================ */
.main-content .section-title,
.main-content .card-title,
.main-content .page-title {
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

/* Titres H2 dans main-content uniquement */
.main-content > h2,
.main-content .section > h2,
.main-content .card > h2 {
    font-size: 1.6rem !important;
    margin-bottom: 25px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Titres H3 dans main-content uniquement */
.main-content > h3,
.main-content .section > h3,
.main-content .card > h3 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Icônes dans les titres */
.main-content .section-title i,
.main-content .card-title i,
.main-content > h2 i,
.main-content > h3 i {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 1.3em !important;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   📘 ONGLETS INFO - FOND STYLISÉ PREMIUM
   ============================================ */
.info-box,
.info-panel,
.explanation-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.12) 0%,
        rgba(118, 75, 162, 0.08) 50%,
        rgba(240, 147, 251, 0.06) 100%
    ) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    border-left: 5px solid var(--ml-primary) !important;
    border-radius: 20px !important;
    padding: 28px 32px !important;
    margin-bottom: 30px !important;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.info-box::before,
.info-panel::before,
.explanation-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(240, 147, 251, 0.08) 0%,
        transparent 70%
    );
    animation: rotateBg 25s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Titre des onglets info */
.info-box h3,
.info-box h4,
.info-panel h3,
.info-panel h4,
.explanation-box h3,
.explanation-box h4 {
    color: var(--ml-primary) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    margin-bottom: 18px !important;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Texte dans les onglets info */
.info-box p,
.info-panel p,
.explanation-box p,
.info-box li,
.info-panel li,
.explanation-box li {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
    margin-bottom: 12px !important;
    position: relative;
    z-index: 1;
}

/* Labels en gras dans les onglets */
.info-box strong,
.info-panel strong,
.explanation-box strong {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-purple)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}

body.dark-mode .info-box,
body.dark-mode .info-panel,
body.dark-mode .explanation-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(15, 23, 42, 0.6) 100%
    ) !important;
}

/* ============================================
   💎 ASSET GRID - GLASSMORPHISM PREMIUM
   ============================================ */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
    perspective: 1500px;
}

/* ============================================
   🃏 ASSET CARD - 3D HOLOGRAPHIC
   ============================================ */
.asset-card {
    background: linear-gradient(
        135deg,
        rgba(232, 218, 239, 0.15) 0%,
        rgba(212, 217, 240, 0.1) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-left: 5px solid var(--ml-purple);
    padding: 28px;
    border-radius: 24px;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(142, 68, 173, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.asset-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(142, 68, 173, 0.1) 0%,
        transparent 70%
    );
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

.asset-card::after {
    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.6s;
}

.asset-card:hover::after {
    left: 100%;
}

.asset-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(2deg);
    box-shadow: 
        0 24px 60px rgba(142, 68, 173, 0.35),
        0 0 80px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

/* ============================================
   🎯 ASSET CARD H4 - TITRE AVEC BOUTON
   ============================================ */
.asset-card h4 {
    color: var(--ml-primary);
    margin-bottom: 20px !important;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================
   🗑️ BUTTON REMOVE - POSITIONNÉ À DROITE
   ============================================ */
.btn-remove {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: 2px solid rgba(255, 107, 107, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.3rem;
    transition: var(--transition-bounce);
    box-shadow: 
        0 4px 12px rgba(255, 107, 107, 0.4),
        0 0 20px rgba(238, 90, 111, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin-left: auto;
}

.btn-remove::before {
    content: '×';
    position: absolute;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.btn-remove::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-remove:hover::after {
    width: 100px;
    height: 100px;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #ff5252, #dc3545);
    transform: translateY(-4px) scale(1.12) rotate(-5deg);
    box-shadow: 
        0 12px 32px rgba(255, 107, 107, 0.6),
        0 0 40px rgba(238, 90, 111, 0.5);
}

.btn-remove:active {
    transform: translateY(-2px) scale(1.05) rotate(-3deg);
}

/* ============================================
   📝 ASSET INPUT GROUP - PREMIUM STYLE
   ============================================ */
.asset-input-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.asset-input-group label {
    display: block;
    color: var(--ml-purple);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--ml-purple), var(--ml-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.asset-input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(157, 92, 230, 0.3);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.asset-input-group input:focus {
    outline: none;
    border-color: var(--ml-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        inset 0 2px 8px rgba(0, 0, 0, 0.03),
        var(--glow-primary);
    transform: translateY(-2px);
}

body.dark-mode .asset-input-group input {
    background: rgba(15, 23, 42, 0.5);
    color: white;
}

/* ============================================
   ✏️ ASSET NAME INPUT - INLINE EDIT
   ============================================ */
.asset-name-input {
    background: transparent;
    border: none;
    color: var(--ml-primary);
    font-weight: 800;
    font-size: 1.1rem;
    width: 220px;
    padding: 8px 12px;
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.asset-name-input:focus {
    outline: none;
    border-bottom-color: var(--ml-primary);
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.05) 100%
    );
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ============================================
   🎯 BUTTON CONTAINER - FLEX LAYOUT
   ============================================ */
.btn-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
    justify-content: center;
    perspective: 1000px;
}

/* ============================================
   ⚖️ BUTTON PRIMARY - CALCULATE RISK PARITY
   Style adapté au design global (violet/bleu)
   ============================================ */
.btn-primary {
    flex: 1;
    min-width: 220px;
    background: linear-gradient(135deg, var(--ml-primary) 0%, var(--ml-secondary) 50%, var(--ml-accent) 100%);
    background-size: 200% 200%;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(118, 75, 162, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
    top: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--ml-secondary) 0%, var(--ml-accent) 50%, var(--ml-primary) 100%);
    transform: translateY(-6px) scale(1.03) rotateX(5deg);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.7),
        0 0 80px rgba(118, 75, 162, 0.6);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:active {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(118, 75, 162, 0.5);
}

/* Icône dans le bouton Calculate */
.btn-primary i {
    margin-right: 10px;
    font-size: 1.3rem;
    animation: balance 2s ease-in-out infinite;
}

@keyframes balance {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ============================================
   🔄 BUTTON SECONDARY - RESET ALL
   Style adapté (gris premium avec accents violets)
   ============================================ */
.btn-secondary {
    flex: 1;
    min-width: 220px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
    background-size: 200% 200%;
    color: white;
    padding: 18px 35px;
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 
        0 6px 20px rgba(107, 114, 128, 0.4),
        0 0 30px rgba(75, 85, 99, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-secondary::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.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 50%, #1f2937 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 12px 36px rgba(107, 114, 128, 0.6),
        0 0 50px rgba(102, 126, 234, 0.3);
}

.btn-secondary:active {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 6px 20px rgba(107, 114, 128, 0.5),
        0 0 40px rgba(102, 126, 234, 0.2);
}

/* Icône dans le bouton Reset */
.btn-secondary i {
    margin-right: 10px;
    font-size: 1.2rem;
    animation: rotate360 2s linear infinite;
}

@keyframes rotate360 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   🌙 DARK MODE - BUTTON ENHANCEMENTS
   ============================================ */
body.dark-mode .btn-primary {
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(118, 75, 162, 0.5);
}

body.dark-mode .btn-primary:hover {
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.8),
        0 0 100px rgba(118, 75, 162, 0.7);
}

body.dark-mode .btn-secondary {
    background: linear-gradient(135deg, #374151 0%, #1f2937 50%, #111827 100%);
    box-shadow: 
        0 6px 20px rgba(55, 65, 81, 0.6),
        0 0 40px rgba(31, 41, 55, 0.4);
}

body.dark-mode .btn-secondary:hover {
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #030712 100%);
    box-shadow: 
        0 12px 36px rgba(55, 65, 81, 0.8),
        0 0 70px rgba(102, 126, 234, 0.4);
}

/* ============================================
   ➕ BUTTON ADD - ANIMATED GLOW
   ============================================ */
.btn-add {
    background: linear-gradient(135deg, var(--ml-blue) 0%, #6C8BE0 100%);
    background-size: 200% 200%;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(74, 116, 243, 0.4),
        var(--glow-blue);
    transition: var(--transition-bounce);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-add::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add:hover::before {
    width: 400px;
    height: 400px;
}

.btn-add:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 36px rgba(74, 116, 243, 0.6),
        0 0 50px rgba(108, 139, 224, 0.5);
    animation: gradientShift 3s ease infinite;
}

.btn-add:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============================================
   📊 STATS BOX - PREMIUM GLASS
   ============================================ */
.stats-box {
    background: linear-gradient(
        135deg,
        rgba(232, 218, 239, 0.15) 0%,
        rgba(212, 217, 240, 0.1) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid var(--glass-border);
    padding: 35px;
    border-radius: 28px;
    margin-bottom: 40px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(102, 126, 234, 0.08) 0%,
        transparent 70%
    );
    animation: rotateBg 25s linear infinite reverse;
}

body.dark-mode .stats-box {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%
    );
}

/* ============================================
   📈 STATS ROW - RESPONSIVE GRID
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stats-row:last-child {
    margin-bottom: 0;
}

/* ============================================
   💎 STAT ITEM - 3D CARD EFFECT
   ============================================ */
.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 18px;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-item:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.25),
        0 0 60px rgba(118, 75, 162, 0.15);
}

body.dark-mode .stat-item {
    background: rgba(15, 23, 42, 0.8);
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--ml-purple);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--ml-purple), var(--ml-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

/* ============================================
   📑 SUBSECTION TITLE - GRADIENT TEXT
   ============================================ */
.subsection-title {
    color: var(--ml-primary);
    margin-bottom: 25px;
    margin-top: 45px;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

/* ============================================
   📊 CHART SUBTITLE - CENTERED TITLE
   ============================================ */
.chart-subtitle {
    color: var(--ml-primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   📊 CHARTS GRID - RESPONSIVE LAYOUT
   ============================================ */
.charts-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 35px;
    perspective: 1500px;
}

.chart-medium {
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: var(--transition-smooth);
}

.chart-medium:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.2),
        0 0 60px rgba(118, 75, 162, 0.15);
}

/* ============================================
   📋 COMPARISON TABLE - PREMIUM DESIGN
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(102, 126, 234, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--ml-primary) 0%, var(--ml-secondary) 100%);
    color: white;
    padding: 18px;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comparison-table td {
    padding: 18px;
    border-bottom: 2px solid var(--glass-border);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.comparison-table tr {
    transition: var(--transition-smooth);
}

.comparison-table tr:hover {
    background: linear-gradient(
        90deg,
        rgba(102, 126, 234, 0.1) 0%,
        transparent 100%
    );
}

.comparison-table tr:hover td {
    background: rgba(102, 126, 234, 0.08);
    transform: translateX(4px);
}

body.dark-mode .comparison-table td {
    background: rgba(15, 23, 42, 0.5);
}

/* ============================================
   ⭐ HIGHLIGHT - BADGE EFFECT
   ============================================ */
.highlight {
    background: linear-gradient(135deg, var(--ml-blue) 0%, #6C8BE0 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 
        0 4px 12px rgba(74, 116, 243, 0.4),
        var(--glow-blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

/* ============================================
   📱 RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ============================================ */
@media (max-width: 768px) {
    .top-header h1,
    .page-header h1,
    .main-content > h1:first-child {
        font-size: 1.6rem !important;
    }
    
    .asset-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .charts-grid-2 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .chart-medium {
        min-height: 350px;
    }
    
    .btn-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .asset-card {
        padding: 20px;
    }
    
    .stats-box {
        padding: 25px 20px;
    }
    
    .subsection-title {
        font-size: 1.2rem;
        margin-top: 30px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .main-content > h2,
    .main-content .section > h2 {
        font-size: 1.3rem !important;
    }
    
    .asset-card h4 {
        font-size: 1.1rem;
    }
    
    .btn-remove {
        width: 36px;
        height: 36px;
    }
    
    .btn-remove::before {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stat-item .value {
        font-size: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-add {
        font-size: 0.95rem;
        padding: 14px 24px;
    }
    
    .asset-name-input {
        width: 150px;
        font-size: 1rem;
    }
}

/* ============================================
   🎬 GLOBAL ANIMATIONS - FADE IN
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.asset-card,
.stats-box,
.chart-medium,
.info-box,
.info-panel,
.explanation-box {
    animation: fadeInUp 0.6s ease-out backwards;
}

.asset-card:nth-child(1) { animation-delay: 0.1s; }
.asset-card:nth-child(2) { animation-delay: 0.2s; }
.asset-card:nth-child(3) { animation-delay: 0.3s; }
.asset-card:nth-child(4) { animation-delay: 0.4s; }
.asset-card:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   🎨 SCROLLBAR CUSTOM - PREMIUM STYLE
   ============================================ */
.stats-box::-webkit-scrollbar,
.comparison-table::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.stats-box::-webkit-scrollbar-track,
.comparison-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.stats-box::-webkit-scrollbar-thumb,
.comparison-table::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.stats-box::-webkit-scrollbar-thumb:hover,
.comparison-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--ml-secondary), var(--ml-accent));
}

/* ============================================
   ✨ UTILITY CLASSES - HELPERS
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   🎯 FIN DU FICHIER - RISK PARITY PREMIUM 3D
   VERSION FINALE COMPLÈTE AVEC TITRE DE PAGE
   ============================================ */