/**
 * PaieLab™ - Simulateur Brut/Net
 * Style conforme à la maquette validée (Variante 3 Dashboard)
 *
 * @copyright 2025-2026 Purple Telecom EURL
 */

/* ===========================================
   VARIABLES CSS
   =========================================== */
:root {
    /* Branding Fiche-Paie.fr */
    --gp-bleu-clair: var(--gp-bleu-primaire);
    --gp-gris-dark: #495057;

    /* Vert émeraude fiche-paie.fr */
    --gp-vert-emeraude: #10B981;
    --gp-vert-emeraude-dark: #059669;
    --gp-vert-emeraude-light: #D1FAE5;

    /* Accents */
    --gp-orange-light: #FEF3C7;

    /* Sidebar PaieLab (cohérent PaieOne) */
    --gp-sidebar-bg: #1d458c;
    --gp-sidebar-dark: #152d5c;
    --gp-sidebar-text: rgba(255,255,255,0.9);
    --gp-sidebar-muted: rgba(255,255,255,0.55);
    --gp-sidebar-border: rgba(255,255,255,0.15);
    --gp-sidebar-input-bg: rgba(255,255,255,0.12);
    --gp-sidebar-input-focus: rgba(255,255,255,0.25);
}

/* ===========================================
   PAGE HEADER (conservé pour compatibilité, non affiché)
   =========================================== */
.page-header {
    display: none;
}

/* ===========================================
   H1 SEO SIMULATEUR
   =========================================== */
.simulator-h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gp-bleu-marine);
    text-align: center;
    margin: 20px auto 8px;
    max-width: 1200px;
    padding: 0 20px;
}

/* ===========================================
   SIMULATOR CONTAINER
   =========================================== */
.simulator-container {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.simulator-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.simulator-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 600px;
}

/* ===========================================
   SIDEBAR BLEUE (style PaieOne)
   =========================================== */
.simulator-sidebar {
    background: linear-gradient(180deg, var(--gp-sidebar-bg) 0%, var(--gp-sidebar-dark) 100%);
    padding: 30px 25px;
    color: var(--gp-sidebar-text);
    display: flex;
    flex-direction: column;
    border-radius: 16px 0 0 16px;
}

/* Bloc titre PaieLab™ */
.sidebar-brand {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gp-sidebar-border);
}

.sidebar-product-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    position: relative;
}

.sidebar-product-name sup {
    font-size: 0.55em;
    vertical-align: super;
    position: absolute;
    margin-left: 1px;
}

.sidebar-product-subtitle {
    font-size: 13px;
    color: var(--gp-sidebar-muted);
    margin-bottom: 2px;
}

.sidebar-product-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--gp-vert-emeraude-light);
    opacity: 0.85;
}

/* Bouton bascule mobile (masqué sur desktop) */
.sidebar-mobile-toggle {
    display: none;
    width: 100%;
    background: var(--gp-sidebar-input-bg);
    border: 1px solid var(--gp-sidebar-border);
    border-radius: 8px;
    color: white;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.sidebar-mobile-toggle:hover {
    background: var(--gp-sidebar-input-focus);
}

.sidebar-mobile-toggle svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar-mobile-toggle.is-collapsed svg {
    transform: rotate(-90deg);
}

/* Contenu repliable */
.sidebar-collapsible {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sidebar-collapsible.collapsed {
    display: none;
}

.sidebar-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Sidebar header with mode toggle */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gp-sidebar-border);
}

.sidebar-header .sidebar-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Mode toggle (Mensuel/Annuel) */
.mode-toggle {
    display: flex;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

/* Mode toggle standalone (sans header) */
.mode-toggle-top {
    width: 100%;
    margin-bottom: 14px;
}

.mode-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mode-btn.active {
    background: rgba(255,255,255,0.25);
    color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.mode-btn:hover:not(.active) {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Form groups */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--gp-sidebar-muted);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group label svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: rgba(255,255,255,0.95);
    color: #1a1a2e;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
    background: white;
}

.form-group input.large-input {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
}

/* Input with suffix (€ symbol) */
.input-with-suffix {
    position: relative;
}

.input-with-suffix input {
    padding-right: 45px;
    text-align: center;
}

.input-with-suffix .suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gp-bleu-marine);
    pointer-events: none;
}

/* Select styling */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e3760' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: rgba(255,255,255,0.95);
    padding-right: 36px;
    cursor: pointer;
}

/* Toggle group */
.toggle-group {
    display: flex;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 3px;
}

.toggle-btn {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
}

.toggle-btn.active {
    background: rgba(255,255,255,0.25);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toggle-btn:hover:not(.active) {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Slider */
.slider-container {
    margin-top: 5px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-value {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    accent-color: #41bcc9;
}

.slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
}

.slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    border: none;
}

.slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: #41bcc9;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gp-blanc);
    border: 3px solid #41bcc9;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    margin-top: -8px; /* (6px - 22px) / 2 = -8px */
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gp-blanc);
    border: 3px solid #41bcc9;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Slider Brut - sous l'input */
.slider-brut {
    margin-top: 8px;
}

.slider-brut .slider {
    height: 6px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--gp-sidebar-muted);
    margin-top: 4px;
}

/* Bouton SMIC cliquable */
.btn-smic {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-smic:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: white;
}

.btn-smic:active {
    transform: scale(0.95);
}

/* Slider Taux PAS - sous l'input */
.slider-taux {
    margin-top: 4px;
}

.slider-taux .slider {
    height: 6px;
}

/* Valeur du taux PAS (affichée sous le slider) */
.pas-value-label {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--gp-blanc);
    margin-top: 6px;
    margin-bottom: 2px;
}

/* Input taux avec bouton reset */
.taux-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taux-input-container input {
    flex: 1;
    padding-right: 35px;
}

.taux-input {
    font-weight: 600;
    text-align: center;
}

/* Bouton reset taux */
.btn-reset-taux {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 4px 10px;
    cursor: pointer;
    color: white;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-reset-taux:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.btn-reset-taux.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Badge mode taux */
.taux-mode-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
}

.taux-mode-badge.auto {
    background: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.taux-mode-badge.manuel {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

/* Slider vert (augmentation) */
.slider.slider-green::-webkit-slider-thumb {
    background: var(--gp-vert-emeraude);
}

.slider.slider-green::-moz-range-thumb {
    background: var(--gp-vert-emeraude);
}

/* Augmentation card styles */
.augmentation-slider-container {
    margin-bottom: 12px;
}

.augmentation-slider-container .slider-container {
    margin-bottom: 12px;
}

.augmentation-slider-container .slider-header .slider-value {
    background: var(--gp-vert-emeraude);
}

.augmentation-custom {
    background: var(--gp-vert-emeraude-light);
    border-radius: 8px;
    padding: 10px 12px !important;
    margin: 4px 0;
}

.augmentation-custom .value {
    font-size: 1rem;
}

.augmentation-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 16px 0 12px;
}

.augmentation-defaults {
    opacity: 0.8;
}

.augmentation-defaults .detail-row {
    padding: 6px 0;
    font-size: 0.8rem;
}

/* CTA Button */
.cta-button {
    width: 100%;
    background: linear-gradient(135deg, var(--gp-vert-emeraude) 0%, var(--gp-vert-emeraude-dark) 100%);
    color: white;
    padding: 13px 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 22px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.cta-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 0 0 5px 0;
    margin-top: auto;
}

.sidebar-footer .footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    margin: 20px 0 14px;
}

.sidebar-footer .app-info {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.sidebar-footer .app-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2px;
    position: relative;
}

.sidebar-footer .app-name sup {
    font-size: 0.6em;
    position: absolute;
    margin-left: 1px;
}

.sidebar-footer .app-version {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
}

.sidebar-footer .copyright {
    text-align: center;
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
}

.sidebar-footer .copyright sup {
    font-size: 0.6em;
    position: absolute;
    margin-left: 1px;
}

.sidebar-footer .copyright a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-footer .copyright a:hover {
    color: rgba(255,255,255,0.85);
}

.sidebar-footer .lock-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 9px;
    color: rgba(255,255,255,0.35);
}

.sidebar-footer .lock-badge svg {
    opacity: 0.5;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.simulator-main {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f0f2f5;
}

/* Résultat principal */
.main-result {
    background: linear-gradient(135deg, var(--gp-bleu-marine) 0%, var(--gp-bleu-clair) 100%);
    border-radius: 16px;
    padding: 20px 15px;
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.result-item {
    padding: 10px 12px;
}

.result-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.result-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.result-amount {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-period {
    font-size: 0.85rem;
    opacity: 0.7;
}

.result-item.highlight .result-amount {
    color: #90EE90;
}

.result-item.employer-cost .result-amount {
    color: #fbbf24;
}

/* ===========================================
   DETAILS GRID
   =========================================== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s;
}

.detail-card:hover {
    border-color: var(--gp-bleu-clair);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.1);
}

.detail-card-header {
    font-size: 0.75rem;
    color: var(--gp-gris);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-card-header .icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-card-header .icon-circle svg {
    width: 14px;
    height: 14px;
}

.detail-card-header .icon-circle.blue {
    background: rgba(42, 82, 152, 0.1);
    color: var(--gp-bleu-clair);
}

.detail-card-header .icon-circle.green {
    background: var(--gp-vert-emeraude-light);
    color: var(--gp-vert-emeraude);
}

.detail-card-header .icon-circle.orange {
    background: var(--gp-orange-light);
    color: var(--gp-orange);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.85rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--gp-gris);
}

.detail-row .value {
    font-weight: 600;
    color: var(--gp-bleu-marine);
}

.detail-row .value.green {
    color: var(--gp-vert-emeraude);
}

.detail-row .value.orange {
    color: var(--gp-orange);
}

.detail-row .value.muted {
    color: var(--gp-gris);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Sous-détails (CSG, Fillon) */
.detail-row.sub-detail {
    padding: 4px 0 4px 16px;
    font-size: 0.75rem;
    opacity: 0.85;
    border-bottom: none;
}

.detail-row.sub-detail .label {
    font-size: 0.75rem;
    color: var(--gp-gris);
}

.detail-row.fillon-row {
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    padding: 6px 12px !important;
    margin: 4px 0;
}

/* ===========================================
   SALARY TABLE (Card Salaire)
   =========================================== */
.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.salary-table thead th {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    background: var(--gp-fond-pale);
    padding: 6px 14px;
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.3px;
}

.salary-table thead th:first-child {
    text-align: left;
}

.salary-table tbody tr {
    border-bottom: 1px solid var(--gp-gris-clair);
}

.salary-table tbody tr:last-child {
    border-bottom: none;
}

.salary-table tbody tr:hover {
    background: var(--gp-fond-pale);
}

.salary-table td {
    padding: 9px 14px;
    font-size: 0.85rem;
    text-align: right;
}

.salary-table td.period-label {
    color: #64748b;
    font-weight: 500;
    text-align: left;
}

.salary-table td.brut-value {
    color: var(--gp-bleu-primaire);
    font-weight: 600;
}

.salary-table td.net-value {
    color: #0d9488;
    font-weight: 600;
}

/* ===========================================
   COTISATIONS COMPACTÉES (Chantier 3)
   =========================================== */

/* Label avec icône info */
.cot-label-with-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Icône (i) pour tooltip */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    cursor: default;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    font-style: normal;
}

.info-icon:hover::after,
.info-icon:focus::after {
    opacity: 1;
}

.info-icon[data-tooltip=""]::after {
    display: none;
}

/* Ligne RGDU (en vert) */
.rgdu-row {
    padding-left: 0;
}

.rgdu-row .label {
    padding-left: 16px;
}

.rgdu-value {
    color: #059669 !important;
    font-weight: 600;
}

/* Ligne Total cotisations */
.cot-total-row {
    background: var(--gp-fond-pale);
}

.cot-total-row .label,
.cot-total-row .value {
    font-weight: 700 !important;
    border-top: 2px solid #e2e8f0;
}

/* Ligne Coût total employeur */
.cout-employeur-row {
    background: #f0fdf4;
    border-radius: 0 0 12px 12px;
    padding: 12px 18px;
}

.cout-employeur-row .label {
    color: #059669;
    font-weight: 700;
}

.cout-employeur-value {
    color: #059669 !important;
    font-weight: 700 !important;
}

/* ===========================================
   AUGMENTATION TABLE (Phase 1C)
   =========================================== */
.simulator-results-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.augmentation-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.augmentation-table thead th {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    background: #f0fdf4;
    text-align: center;
    padding: 10px 14px;
}

.augmentation-table thead th:first-child {
    background: transparent;
}

.augmentation-table tbody tr {
    border-bottom: 1px solid var(--gp-gris-clair);
}

.augmentation-table tbody tr:last-child {
    border-bottom: none;
}

.augmentation-table td {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.augmentation-table td.aug-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
}

/* ===========================================
   BLUR WALL SSO — Phase 2
   =========================================== */

/* Conteneur des cards (position relative pour l'overlay) */
.simulator-cards-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lot 39 (PL-20) : règles du verrou du curseur du prélèvement retirées — la
   classe paielab-locked est posée sur la zone des cartes, jamais sur la barre
   latérale : elles ne s'appliquaient pas (message jamais affiché). */

/* Flou sur le contenu des cards (pas les headers) */
.paielab-locked .detail-card {
    position: relative;
}

.paielab-locked .detail-card > *:not(.detail-card-header) {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* Overlay semi-transparent sur chaque card */
.paielab-locked .detail-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

/* État débloqué */
.paielab-unlocked .detail-card > *:not(.detail-card-header) {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

.paielab-unlocked .detail-card::after {
    display: none;
}

/* Overlay SSO flottant au-dessus des cards */
.sso-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
}

.paielab-locked .sso-overlay {
    display: flex;
}

.paielab-unlocked .sso-overlay {
    display: none;
}

.sso-overlay-card {
    background: var(--gp-blanc);
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 90%;
}

.sso-overlay-icon {
    margin-bottom: 12px;
}

.sso-overlay-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gp-bleu-primaire);
    margin: 0 0 8px 0;
}

.sso-overlay-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.sso-overlay-free {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.sso-overlay-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.simulateur-faq {
    background: white;
    padding: 48px 24px 56px;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.simulateur-faq h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gp-bleu-marine);
    text-align: center;
    margin: 0 0 32px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--gp-gris-clair);
    padding: 20px;
    border-radius: 12px;
}

.faq-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gp-bleu-marine);
    margin: 0 0 8px 0;
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--gp-gris-dark);
    margin: 0;
    line-height: 1.6;
}

/* ===========================================
   PAGE FOOTER
   =========================================== */
.page-footer {
    text-align: center;
    padding: 30px;
    color: var(--gp-gris);
    font-size: 0.85rem;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
/* Tablette : sidebar en panneau horizontal repliable */
@media (max-width: 991px) {
    .simulator-layout {
        grid-template-columns: 1fr;
    }

    .simulator-sidebar {
        border-radius: 16px 16px 0 0;
    }

    .sidebar-mobile-toggle {
        display: flex;
    }

    .main-result {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-item:nth-child(2) {
        border-right: none;
    }

    .result-item:nth-child(1),
    .result-item:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .result-item:not(:last-child) {
        border-right: 1px solid rgba(255,255,255,0.2);
    }

    .result-item:nth-child(2),
    .result-item:nth-child(4) {
        border-right: none;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .simulator-results-row-2 {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .sso-overlay-card {
        padding: 24px 28px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .simulator-sidebar {
        padding: 20px 18px;
    }

    .simulator-main {
        padding: 16px;
    }

    .main-result {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px 8px;
    }

    .result-amount {
        font-size: 1.3rem;
    }

    .result-label {
        font-size: 0.65rem;
    }

    .simulateur-faq {
        padding: 32px 16px 40px;
    }

    .sso-overlay-card {
        padding: 20px;
    }

    .sso-overlay-title {
        font-size: 17px;
    }
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.result-amount.updating,
.value.updating {
    animation: pulse 0.2s ease;
}

/* ===========================================
   PRINT
   =========================================== */
@media print {
    .simulator-sidebar {
        display: none;
    }

    .simulator-layout {
        grid-template-columns: 1fr;
    }

    .main-result {
        background: var(--gp-bleu-marine) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
