/* --- SECTION SIMULATEUR RENDEMENT (VERSION COMPACTE) --- */

.section-simulator {
    padding: 40px 0; /* Réduit de 80px */
    background-color: #fcfcfc;
}

.simulator-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    padding: 30px; /* Réduit de 40px */
    max-width: 780px; /* Réduit de 900px pour un effet plus "widget" */
    margin: 0 auto;
    box-sizing: border-box;
}

.simulator-title {
    font-size: 1.7rem; /* Plus discret que 2.2rem */
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.simulator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    max-width: 550px;
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
}

/* Grille des champs */
.simulator-grid {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espacement réduit */
    margin-bottom: 30px;
}

.simulator-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.simulator-field label {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    text-align: center;
}

/* Style du Range Input */
input[type=range] {
    width: 90%;
    margin: 0 auto;
    cursor: pointer;
    accent-color: #2563eb;
}

.simulator-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2563eb;
    text-align: center;
}

/* Sélecteur de profil en cartes compactes */
.profile-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.profile-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 15px 8px; /* Plus fin */
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.profile-option.active {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.08);
}

.profile-emoji {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.profile-rate {
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 700;
}

/* Grille des Projections de gains */
.projections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.projection-item {
    background: #f8fafc;
    padding: 18px 8px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #edf2f7;
}

.proj-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.proj-value {
    display: block;
    font-size: 1.05rem; /* Plus compact */
    font-weight: 800;
    color: #1e293b;
}

/* Mise en avant du résultat à 20 ans */
.projection-item.highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #2563eb;
}

.projection-item.highlight .proj-value {
    color: #1d4ed8;
    font-size: 1.15rem;
}

/* Actions */
.simulator-actions {
    text-align: center;
    margin-top: 25px;
}

.simulator-actions .btn-primary {
    padding: 16px 35px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 380px;
}

.simulator-note {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .simulator-card {
        padding: 25px 15px;
    }
    
    .projections-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .profile-selector {
        grid-template-columns: 1fr;
    }
    
    .simulator-title {
        font-size: 1.5rem;
    }
}

/* Animation étape 2 */
#sim-step-2 {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}