/* ==============================================
   🎨 MONTE-CARLO.CSS - ULTRA MODERN 3D VERSION
   Glassmorphism • 3D Effects • Premium Animations
   VERSION CORRIGÉE FINALE
   ============================================== */

/* ============================================
   🌟 VARIABLES PERSONNALISÉES (HÉRITÉES)
   ============================================ */
:root {
    --ml-primary: #667eea;
    --ml-secondary: #764ba2;
    --ml-accent: #f093fb;
    --ml-success: #43e97b;
    --ml-danger: #f5576c;
    --ml-warning: #f6d365;
    
    --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);
    
    --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);
}

/* ============================================
   📄 FOND DE LA PAGE PRINCIPALE - BLANC
   ============================================ */
.main-content,
.container {
    background: #ffffff !important;
}

body.dark-mode .main-content,
body.dark-mode .container {
    background: #0f172a !important;
}

/* ============================================
   ✅ TITRE DE LA PAGE PRINCIPALE - PREMIUM (SANS BARRE)
   ============================================ */
.top-header h1,
.page-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary), var(--ml-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px 0;
    position: relative;
    animation: gradientShift 8s ease infinite;
}

.top-header h1 i,
.page-title i {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   ✅ TITRE "SIMULATION RESULTS" - ALIGNÉ À GAUCHE
   ============================================ */
.results-title,
h2.section-title,
.simulation-results-title {
    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;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px 0;
    position: relative;
}

.results-title i,
h2.section-title i,
.simulation-results-title i {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ============================================
   📋 PARAMS PANEL - GLASSMORPHISM PREMIUM
   ============================================ */
.params-panel {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.05) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.params-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(102, 126, 234, 0.1) 0%,
        transparent 70%
    );
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.dark-mode .params-panel {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(15, 23, 42, 0.5) 100%
    );
}

/* ============================================
   🎯 PANEL TITLE - GRADIENT TEXT
   ============================================ */
.panel-title {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--ml-primary), transparent);
    border-radius: 50px;
    animation: slideRightSmall 3s ease-in-out infinite;
}

@keyframes slideRightSmall {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(150px); opacity: 0; }
}

/* ============================================
   📊 PARAMS GRID - 3D CARDS
   ============================================ */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* ============================================
   💎 PARAM GROUP - PREMIUM GLASS CARDS
   ============================================ */
.param-group {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 28px;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    border-left: 5px solid var(--ml-secondary);
    transition: var(--transition-smooth);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.param-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent
    );
    transition: left 0.8s;
}

.param-group:hover::before {
    left: 100%;
}

.param-group:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-left-color: var(--ml-primary);
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.25),
        0 0 40px rgba(118, 75, 162, 0.15);
}

body.dark-mode .param-group {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--glass-border);
}

/* ============================================
   🏷️ LABELS - PREMIUM STYLE
   ============================================ */
.param-group label {
    display: block;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* ============================================
   📝 INPUTS - 3D EFFECT
   ============================================ */
.param-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-size: 1.05rem;
    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);
}

.param-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.05),
        var(--glow-primary);
    transform: translateY(-2px);
}

body.dark-mode .param-group input {
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
}

/* ============================================
   💡 HINT TEXT
   ============================================ */
.param-group .hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
    opacity: 0.8;
}

/* ============================================
   ❓ HELP ICON SMALL
   ============================================ */
.help-icon-small {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-weight: 800;
}

.help-icon-small:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.5),
        var(--glow-primary);
}

/* ============================================
   🔄 INFLATION TOGGLE - PREMIUM GLASS
   ============================================ */
.inflation-toggle {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.12) 0%,
        rgba(118, 75, 162, 0.08) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    padding: 20px 28px;
    border-radius: 16px;
    margin-bottom: 28px;
    text-align: center;
    border: 2px solid var(--glass-border);
    border-left: 5px solid var(--ml-accent);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.inflation-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.dark-mode .inflation-toggle {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

.inflation-toggle label {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.inflation-toggle input[type='checkbox'] {
    margin-right: 12px;
    transform: scale(1.4);
    cursor: pointer;
    accent-color: var(--ml-primary);
    transition: var(--transition-smooth);
}

.inflation-toggle input[type='checkbox']:hover {
    transform: scale(1.5);
}

/* ============================================
   🚀 SIMULATE BUTTON - HOLOGRAPHIC
   ============================================ */
.btn-simulate {
    background: linear-gradient(
        135deg,
        var(--ml-primary),
        var(--ml-secondary),
        var(--ml-accent)
    );
    background-size: 200% 200%;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(118, 75, 162, 0.3);
    transition: var(--transition-smooth);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-simulate::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-simulate:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(102, 126, 234, 0.5),
        0 0 60px rgba(118, 75, 162, 0.4);
    animation: gradientShift 3s ease infinite;
}

.btn-simulate:hover::before {
    left: 100%;
}

.btn-simulate:active {
    transform: translateY(-2px) scale(0.98);
}

/* ============================================
   📊 RESULTS PANEL - PREMIUM GLASS
   ============================================ */
.results-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    border-top: 4px solid var(--ml-secondary);
    border: 2px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.results-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(240, 147, 251, 0.1) 0%,
        transparent 70%
    );
    animation: rotateBg 25s linear infinite reverse;
    pointer-events: none;
}

body.dark-mode .results-panel {
    background: rgba(15, 23, 42, 0.9);
}

/* ============================================
   📑 SUBSECTION TITLE
   ============================================ */
.subsection-title {
    background: linear-gradient(135deg, var(--ml-secondary), var(--ml-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    margin-top: 35px;
    font-size: 1.4rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

/* ============================================
   📈 STATS GRID - 3D CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* ============================================
   💎 STAT BOX - PREMIUM CARDS
   ============================================ */
.stat-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.12) 0%,
        rgba(118, 75, 162, 0.08) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    border: 2px solid var(--glass-border);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ml-primary), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    pointer-events: none;
}

.stat-box:hover::before {
    width: 300px;
    height: 300px;
}

.stat-box:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.25),
        0 0 60px rgba(118, 75, 162, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .stat-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

.stat-box .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.stat-box .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;
    position: relative;
    z-index: 1;
}

/* ============================================
   📊 CHARTS - PREMIUM STYLE
   ============================================ */
.chart-medium {
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 10px;
}

body.dark-mode .chart-medium {
    background: rgba(15, 23, 42, 0.3);
}

.charts-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 35px;
    margin-top: 35px;
    position: relative;
    z-index: 1;
}

/* ============================================
   📐 FORMULA BOX - GLASSMORPHISM (DANS MODALS)
   ============================================ */
.formula-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    padding: 28px;
    border-radius: 16px;
    margin: 25px 0;
    border: 2px solid var(--glass-border);
    border-left: 6px solid var(--ml-secondary);
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    color: var(--ml-primary);
    font-weight: 700;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.formula-box::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.8s;
}

.formula-box:hover::before {
    left: 100%;
}

body.dark-mode .formula-box {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
    color: var(--ml-accent);
}

/* ============================================
   📚 EXAMPLE BOX - PREMIUM GLASS
   ============================================ */
.example-box {
    background: linear-gradient(
        135deg,
        rgba(118, 75, 162, 0.12) 0%,
        rgba(102, 126, 234, 0.08) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    padding: 28px;
    border-radius: 16px;
    margin: 25px 0;
    border: 2px solid var(--glass-border);
    border-left: 6px solid #4A74F3;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    position: relative;
}

.example-box:hover {
    transform: translateX(4px);
    box-shadow: 
        0 12px 36px rgba(74, 116, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.dark-mode .example-box {
    background: linear-gradient(
        135deg,
        rgba(118, 75, 162, 0.08) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

/* ============================================
   💡 TIP BOX - VIBRANT GRADIENT
   ============================================ */
.tip-box {
    background: linear-gradient(135deg, #4A74F3 0%, #6C8BE0 100%);
    background-size: 200% 200%;
    color: white;
    padding: 20px 28px;
    border-radius: 14px;
    margin: 25px 0;
    font-weight: 600;
    box-shadow: 
        0 8px 24px rgba(74, 116, 243, 0.4),
        0 0 40px rgba(108, 139, 224, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.tip-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: moveStripes 15s linear infinite;
}

@keyframes moveStripes {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.tip-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 36px rgba(74, 116, 243, 0.5),
        0 0 60px rgba(108, 139, 224, 0.3);
    animation: gradientShift 3s ease infinite;
}

/* ============================================
   ⚠️ WARNING BOX - VIBRANT GRADIENT
   ============================================ */
.warning-box {
    background: linear-gradient(135deg, #9D5CE6 0%, #C39BD3 100%);
    background-size: 200% 200%;
    color: white;
    padding: 20px 28px;
    border-radius: 14px;
    margin: 25px 0;
    font-weight: 600;
    box-shadow: 
        0 8px 24px rgba(157, 92, 230, 0.4),
        0 0 40px rgba(195, 155, 211, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.warning-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: moveStripes 15s linear infinite reverse;
}

.warning-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 36px rgba(157, 92, 230, 0.5),
        0 0 60px rgba(195, 155, 211, 0.3);
    animation: gradientShift 3s ease infinite;
}

/* ============================================
   🔑 KEY TERM - INLINE BADGE
   ============================================ */
.key-term {
    background: linear-gradient(135deg, var(--ml-primary), #4A74F3);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 
        0 4px 12px rgba(74, 116, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

.key-term:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(74, 116, 243, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   🎬 GLOBAL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-panel > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.results-panel > *:nth-child(1) { animation-delay: 0.1s; }
.results-panel > *:nth-child(2) { animation-delay: 0.2s; }
.results-panel > *:nth-child(3) { animation-delay: 0.3s; }
.results-panel > *:nth-child(4) { animation-delay: 0.4s; }
.results-panel > *:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .params-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .params-panel,
    .results-panel {
        padding: 25px 20px;
    }
    
    .btn-simulate {
        font-size: 1.05rem;
        padding: 16px 32px;
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.2rem;
    }
    
    .stat-box .value {
        font-size: 1.5rem;
    }
    
    .top-header h1,
    .page-title {
        font-size: 1.6rem;
    }
    
    .results-title,
    h2.section-title,
    .simulation-results-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .param-group {
        padding: 20px;
    }
    
    .panel-title {
        font-size: 1.3rem;
    }
    
    .stat-box .value {
        font-size: 1.3rem;
    }
    
    .formula-box,
    .example-box,
    .tip-box,
    .warning-box {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .top-header h1,
    .page-title {
        font-size: 1.4rem;
    }
    
    .results-title,
    h2.section-title,
    .simulation-results-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   🎯 FIN DU FICHIER - MONTE-CARLO ULTRA MODERN 3D
   ============================================ */