/* ========================================
   LANDING PAGE SIMULATEUR - KIREVA INVEST
   ======================================== */

:root {
    --sim-primary: #f59e0b;
    --sim-primary-light: rgba(245, 158, 11, 0.1);
    --sim-primary-dark: #d97706;
    --sim-secondary: #447CAC;
    --sim-success: #10b981;
    --sim-danger: #ef4444;
}

/* Hero Section */
.sim-hero {
    min-height: 70vh;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 50%);
}

.sim-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sim-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.sim-gradient-1 {
    top: -10%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.sim-gradient-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(68, 124, 172, 0.15) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.sim-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sim-badge-free {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--sim-primary-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    border: 1px solid var(--sim-primary);
    border-radius: 50px;
    color: var(--sim-primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.sim-badge-free svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.sim-hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.sim-hero-title .accent {
    background: linear-gradient(135deg, var(--sim-primary) 0%, var(--sim-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sim-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Trust Badges */
.sim-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--sim-primary);
}

/* Hero CTA */
.sim-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--sim-primary) 0%, var(--sim-primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.sim-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}

/* Section Commune */
.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(68, 124, 172, 0.1);
    color: var(--sim-secondary);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-eyebrow.success {
    background: var(--sim-primary-light);
    color: var(--sim-primary-dark);
}

.section-header-centered h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Problem Section */
.sim-problem-section {
    padding: 5rem 0;
    background: #f9fafb;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Calculator Section */
.sim-calculator-section {
    padding: 5rem 0;
    background: white;
}

.sim-calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sim-calculator-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Form Styles */
.sim-form-section {
    margin-bottom: 2rem;
}

.sim-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.sim-section-title i {
    color: var(--sim-primary);
}

.sim-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.sim-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: var(--sim-danger);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-input {
    flex: 1;
    padding-right: 3rem;
}

.input-unit {
    position: absolute;
    right: 0.75rem;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--sim-primary);
    box-shadow: 0 0 0 3px var(--sim-primary-light);
}

.help-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Revenus & Charges dual section */
.sim-revenus-charges {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.sim-dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sim-subsection {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.sim-subsection.revenus {
    border-color: rgba(16, 185, 129, 0.3);
}

.sim-subsection.charges {
    border-color: rgba(239, 68, 68, 0.3);
}

.sim-subsection-header {
    padding: 0.75rem 1rem;
}

.sim-subsection.revenus .sim-subsection-header {
    background: rgba(16, 185, 129, 0.08);
}

.sim-subsection.charges .sim-subsection-header {
    background: rgba(239, 68, 68, 0.08);
}

.sim-subsection-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
}

.sim-subsection.revenus .sim-subsection-title {
    color: var(--sim-success);
}

.sim-subsection.charges .sim-subsection-title {
    color: var(--sim-danger);
}

.sim-subsection-body {
    padding: 1rem;
}

/* Submit Button */
.sim-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--sim-primary) 0%, var(--sim-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.sim-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Results */
.sim-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.sim-results.hidden {
    display: none;
}

.sim-results-header {
    margin-bottom: 1.5rem;
}

.sim-results-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.sim-results-header h3 i {
    color: var(--sim-success);
}

.sim-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.sim-result-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e5e7eb;
}

.sim-result-card.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: var(--sim-success);
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sim-primary);
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sim-result-card.highlight .result-icon {
    background: var(--sim-success);
    color: white;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.result-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.result-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.result-value.positive {
    color: var(--sim-success);
}

.result-value.negative {
    color: var(--sim-danger);
}

/* Results CTA */
.sim-results-cta {
    background: linear-gradient(135deg, rgba(68, 124, 172, 0.1) 0%, rgba(68, 124, 172, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(68, 124, 172, 0.2);
}

.sim-results-cta p {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.btn-results-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--sim-secondary) 0%, #3b6a96 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-results-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(68, 124, 172, 0.3);
}

/* Indicators Section */
.sim-indicators-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.indicator-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s;
}

.indicator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.indicator-card.featured {
    border: 2px solid var(--sim-primary);
}

.indicator-badge {
    position: absolute;
    top: -12px;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--sim-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

.indicator-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--sim-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.indicator-icon i {
    font-size: 1.5rem;
    color: var(--sim-primary);
}

.indicator-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.indicator-formula {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--sim-secondary);
    background: rgba(68, 124, 172, 0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.indicator-card p:last-child {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Premium Section */
.sim-premium-section {
    padding: 5rem 0;
    background: white;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.premium-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--sim-secondary);
}

.premium-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(68, 124, 172, 0.15) 0%, rgba(68, 124, 172, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.premium-icon i {
    font-size: 1.5rem;
    color: var(--sim-secondary);
}

.premium-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.premium-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9375rem;
}

.premium-card li i {
    color: var(--sim-success);
    font-size: 0.75rem;
}

/* CTA Section */
.sim-cta-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, var(--sim-primary-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 2px solid var(--sim-primary);
}

.cta-card h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.cta-card > p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
}

.cta-feature svg {
    color: var(--sim-primary);
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--sim-primary) 0%, var(--sim-primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

.cta-reassurance {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .sim-hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .sim-hero-title {
        font-size: 2.25rem;
    }

    .sim-hero-subtitle {
        font-size: 1.0625rem;
    }

    .sim-trust-badges {
        gap: 1rem;
    }

    .sim-calculator-card {
        padding: 1.5rem;
    }

    .sim-dual-section {
        grid-template-columns: 1fr;
    }

    .sim-form-grid-2 {
        grid-template-columns: 1fr;
    }

    .sim-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header-centered h2 {
        font-size: 1.75rem;
    }

    .indicators-grid {
        grid-template-columns: 1fr;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sim-results-grid {
        grid-template-columns: 1fr;
    }

    .sim-result-card {
        padding: 0.875rem;
    }
}

/* ========================================
   ADAPTATIONS POUR MODE CONNECTÉ
   ======================================== */

/* Override des couleurs: bleu au lieu de orange UNIQUEMENT en mode connecté */
.sim-calculator-wrapper-connected {
    --sim-primary: #447CAC;
    --sim-primary-light: rgba(68, 124, 172, 0.1);
    --sim-primary-dark: #3b6a96;
}

/* Wrapper adapté pour le dashboard connecté - pleine largeur */
.sim-calculator-wrapper-connected {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Supprimer le wrapper blanc et les ombres superflues en mode connecté */
.sim-calculator-wrapper-connected .sim-calculator-card {
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Override des box-shadow en mode connecté */
.sim-calculator-wrapper-connected .sim-submit-btn {
    box-shadow: 0 4px 12px rgba(68, 124, 172, 0.3);
}

.sim-calculator-wrapper-connected .sim-submit-btn:hover {
    box-shadow: 0 8px 20px rgba(68, 124, 172, 0.4);
}

/* Ajustements pour le contexte dashboard */
.dashboard-main .sim-calculator-wrapper-connected {
    max-width: 100%;
}

/* Résultats masqués par défaut */
.sim-results.hidden {
    display: none !important;
}

/* Animation d'apparition des résultats */
.sim-results:not(.hidden) {
    animation: slideUp 0.4s ease;
}

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

/* Responsive pour mode connecté */
@media (max-width: 768px) {
    .sim-calculator-wrapper-connected .sim-calculator-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .dashboard-main .sim-calculator-wrapper-connected {
        max-width: 100%;
    }
}
