/**
 * Styles pour les simulateurs financiers GFI et Assurance-Vie
 * AR CONSEIL
 */

.section_simulateurs_services {
    background-color: #fdfbf7;
    padding: 100px 20px;
    max-width: 1200px;
    margin: 80px auto;
    border-radius: 20px;
}

.partie_service_header {
    text-align: center;
    margin-bottom: 60px;
}

.partie_service_header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    color: #1a2a44;
    margin-bottom: 20px;
}

.divider_gold {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37 0%, rgba(212, 175, 55, 0) 100%);
    margin: 0 auto;
}

.simulators_flex_layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.simulator-container {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(26, 42, 68, 0.1);
    border: 1px solid rgba(26, 42, 68, 0.05);
}

.simulator-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2a44;
    margin-bottom: 12px;
}

.simulator-subtitle {
    font-size: 14px;
    color: rgba(26, 42, 68, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.simulator-form {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group:last-child {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2a44;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid rgba(26, 42, 68, 0.15);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fdfbf7;
    color: #1a2a44;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: white;
}

.simulator-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #d4af37 0%, #c99a2e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.simulator-button:hover {
    background: linear-gradient(135deg, #e6c158 0%, #d4a63a 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}

.simulator-button:active {
    transform: translateY(0);
}

/* ---- Badge simulateur ---- */
.simulator-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* ---- Erreur inline ---- */
.simulator-error {
    display: none;
    background: #fff3f3;
    color: #c0392b;
    border-left: 3px solid #c0392b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.simulator-error.visible {
    display: block;
}

/* ---- Résultat ---- */
.simulator-result {
    display: none;
    margin-top: 24px;
    border-top: 1px solid rgba(26, 42, 68, 0.08);
    padding-top: 24px;
}

.simulator-result.active {
    display: block;
    animation: result-in 0.4s ease-out;
}

@keyframes result-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-header {
    margin-bottom: 20px;
}

.result-label {
    display: block;
    font-size: 11px;
    color: rgba(26, 42, 68, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 6px;
}

.result-label strong {
    color: #1a2a44;
}

.result-value {
    font-size: 36px;
    font-weight: 800;
    color: #d4af37;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* ---- Détail du calcul ---- */
.result-breakdown {
    background: #f9f7f2;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
    color: rgba(26, 42, 68, 0.75);
    border-bottom: 1px solid rgba(26, 42, 68, 0.05);
}

.bd-row:last-of-type {
    border-bottom: none;
}

.bd-label {
    flex: 1;
    padding-right: 12px;
    line-height: 1.4;
}

.bd-val {
    font-weight: 600;
    white-space: nowrap;
    color: #1a2a44;
}

/* Variantes colorées */
.bd-row.positive  .bd-val { color: #27ae60; }
.bd-row.negative  .bd-val { color: #c0392b; }
.bd-row.fiscal    .bd-val { color: #2980b9; }

.bd-row.subtotal  { border-top: 1px solid rgba(26,42,68,0.1); margin-top: 4px; }
.bd-row.subtotal  .bd-val { font-weight: 700; color: #1a2a44; }

.bd-row.total     { border-top: 2px solid #d4af37; margin-top: 4px; padding-top: 10px; }
.bd-row.total     .bd-label { font-weight: 700; color: #1a2a44; }
.bd-row.total     .bd-val   { font-size: 15px; font-weight: 800; color: #d4af37; }

.bd-divider {
    height: 1px;
    background: rgba(26, 42, 68, 0.1);
    margin: 4px 0;
}

.bd-note {
    font-size: 11.5px;
    color: rgba(26, 42, 68, 0.6);
    margin: 8px 0 2px;
    padding: 6px 0 0;
    line-height: 1.5;
    border-top: 1px solid rgba(26, 42, 68, 0.06);
}

.bd-note.highlight {
    color: #d4af37;
    font-weight: 600;
    font-size: 12px;
}

/* ---- Disclaimer ---- */
.result-disclaimer {
    font-size: 11px;
    color: rgba(26, 42, 68, 0.45);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .result-value { font-size: 28px; }
    .bd-row { font-size: 12px; }
}

@media (max-width: 768px) {
    .section_simulateurs_services {
        padding: 60px 20px;
        margin: 60px auto;
    }
    
    .simulators_flex_layout {
        gap: 30px;
    }
    
    .simulator-container {
        max-width: 100%;
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group:last-child {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .section_simulateurs_services {
        padding: 40px 16px;
    }
    
    .simulator-container {
        padding: 24px;
    }
    
    .simulator-title {
        font-size: 20px;
    }
}
