/* ==========================================================================
   Compareto.fr - Modern Financial Comparator Stylesheet (2026)
   ========================================================================== */

:root {
    --primary: #1e3a8a;          /* Trust Deep Blue */
    --primary-light: #3b82f6;    /* Vibrant Blue */
    --primary-dark: #0f172a;     /* Slate Dark */
    --accent: #f97316;           /* Energetic Orange CTA */
    --accent-hover: #ea580c;
    --success: #059669;          /* Emerald Savings */
    --success-light: #ecfdf5;
    --danger: #dc2626;           /* High Current Monthly */
    --danger-light: #fef2f2;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Legal Bar
   ========================================================================== */
.top-legal-bar {
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 11.5px;
    line-height: 1.45;
    padding: 6px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 74px;
    position: relative;
}

.site-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-main {
    font-size: 25px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-accent {
    color: var(--accent);
}

.logo-tld {
    color: var(--primary-light);
    font-size: 18px;
    font-weight: 700;
}

.logo-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.mobile-nav-extras {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-icon {
    font-size: 16px;
    line-height: 1;
}

.phone-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    white-space: nowrap;
}

.phone-text small {
    font-size: 9.5px;
    line-height: 1.15;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.phone-text strong {
    font-size: 13px;
    line-height: 1.2;
    color: var(--primary);
}

.btn-primary-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary-header:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary-header .cta-short {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-open .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open .burger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .text-highlight {
    color: #fdba74;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 28px;
}

.hero-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.guarantee-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   Comparator Widget Card
   ========================================================================== */
.comparator-widget-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 50px;
}

.comparator-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.badge-accent {
    display: inline-block;
    background: #ffedd5;
    color: #c2410c;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.comparator-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.comparator-header p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 25px;
}

/* Stepper Tracker */
.stepper-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
}

.step-item.active {
    color: var(--primary);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.step-item.active .step-num {
    background: var(--primary);
    color: #ffffff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 12px;
}

/* Stepper Body */
.comparator-body {
    padding: 35px;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.panel-intro {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.panel-intro h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.panel-intro p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    min-width: 220px;
}

.form-col.form-col-compact {
    flex: 0 0 130px;
    min-width: 110px;
}

.form-col.full {
    flex: 100%;
}

.field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text-main);
    background: #ffffff;
    transition: all 0.2s ease;
}

select.form-control {
    cursor: pointer;
}

.form-control.input-muted,
.form-control[readonly].input-muted {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.card-sub-section {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.card-sub-section.highlight-box {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.card-sub-section.treso-focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.sub-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--primary);
    margin-bottom: 14px;
}

.badge-blue {
    background: var(--primary-light);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
}

.hint-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Range input style (custom cross-browser slider track & orange thumb) */
input[type="range"],
input[type="range"].range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 24px;
    background: transparent;
    outline: none;
    margin: 6px 0 4px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--accent) var(--range-pct, 0%),
        #cbd5e1 var(--range-pct, 0%),
        #cbd5e1 100%
    );
    border: 1px solid #cbd5e1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #ffffff;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.42);
}

input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.12);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.28), 0 2px 8px rgba(15, 23, 42, 0.28);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

input[type="range"]::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #ffffff;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
}

.range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Pill selector */
.pill-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pill-option {
    flex: 1;
    min-width: 200px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.pill-option input {
    display: none;
}

.pill-option:hover {
    border-color: var(--primary-light);
}

.pill-option.active {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.12);
}

/* Housing selector */
.housing-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.housing-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.housing-card input {
    display: none;
}

.housing-card:hover {
    border-color: var(--primary-light);
}

.housing-card.active,
.housing-card:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
}

.housing-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.housing-card strong {
    display: block;
    font-size: 15px;
    color: var(--primary-dark);
}

.housing-card small {
    color: var(--text-muted);
    font-size: 12px;
}

/* Live Preview Bar */
.calc-live-preview {
    background: #0f172a;
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    margin-bottom: 25px;
}

.preview-item .label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
}

.val-danger {
    color: #fca5a5;
    font-size: 20px;
    font-weight: 700;
}

.val-success {
    color: #6ee7b7;
    font-size: 24px;
    font-weight: 800;
}

.preview-arrow {
    font-size: 24px;
    color: #64748b;
}

.preview-savings {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    text-align: right;
}

.savings-amount {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #34d399;
}

.savings-sub {
    font-size: 11px;
    color: #a7f3d0;
    text-transform: uppercase;
}

/* Navigation Buttons */
.step-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.btn-step-prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-step-next {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
    transition: all 0.2s ease;
}

.btn-step-next:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-submit-lead {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-submit-lead:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.rgpd-consent-box {
    margin: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-badge-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.success-screen h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
}

.success-sub {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

.lead-ref-pill {
    display: inline-block;
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.success-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.res-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
}

.res-card.after {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.res-card.savings {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.card-status {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.res-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.res-amount.highlight {
    color: #059669;
}

.res-amount.gain {
    color: #2563eb;
}

.matched-partners-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
}

.matched-partners-box h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 18px;
}

.partners-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.p-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.p-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin: 6px 0;
}

.p-card p {
    font-size: 12px;
    color: var(--text-muted);
}

.next-steps-info {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
}

.next-steps-info h4 {
    font-size: 16px;
    color: #854d0e;
    margin-bottom: 8px;
}

.next-steps-info p {
    font-size: 13.5px;
    color: #713f12;
    margin-bottom: 16px;
}

.btn-call-direct {
    display: inline-block;
    background: #15803d;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Partners Comparison Table Section
   ========================================================================== */
.partners-section {
    padding: 60px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 16px;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.partners-compare-table {
    width: 100%;
    background: #ffffff;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.partners-compare-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 16px 20px;
    text-align: left;
}

.partners-compare-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

.partner-brand strong {
    display: block;
    font-size: 16px;
    color: var(--primary-dark);
}

.partner-badge-pill {
    display: inline-block;
    background: #ffedd5;
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    margin-top: 4px;
    white-space: nowrap;
}

.rate-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.advantages-bullets {
    list-style: none;
    font-size: 12.5px;
    color: var(--text-main);
}

.advantages-bullets li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: 800;
}

.btn-table-cta {
    display: inline-block;
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.btn-table-cta:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   AI Advisor Widget (Bottom Right Floating)
   ========================================================================== */
.ai-advisor-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.advisor-bubble-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    color: #ffffff;
    border: 2px solid #3b82f6;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    position: relative;
}

.advisor-bubble-btn:hover {
    transform: translateY(-2px);
    background: #1e293b;
}

.advisor-avatar {
    font-size: 24px;
}

.advisor-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.advisor-btn-text strong {
    font-size: 13px;
    line-height: 1.2;
}

.advisor-btn-text small {
    font-size: 11px;
    color: #93c5fd;
}

.advisor-ping {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.advisor-chat-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 380px;
    height: 520px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-info strong {
    display: block;
    font-size: 14px;
}

.online-indicator {
    font-size: 10.5px;
    color: #6ee7b7;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
}

.chat-msg.bot {
    justify-content: flex-start;
}

.chat-msg.user {
    justify-content: flex-end;
}

.chat-msg .msg-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.45;
}

.chat-msg.bot .msg-bubble {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.chat-msg.user .msg-bubble {
    background: var(--primary);
    color: #ffffff;
}

.chat-quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-top: 1px solid var(--border-color);
}

.chat-quick-suggestions button {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.chat-quick-suggestions button:hover {
    background: #e2e8f0;
}

.chat-input-bar {
    display: flex;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.chat-input-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.chat-send-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 0;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
    display: block;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-partner-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.footer-phone {
    font-size: 13px;
}

.footer-phone strong a {
    color: #fdba74;
    font-size: 18px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 13.5px;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.security-list li {
    font-size: 13px;
    color: #94a3b8;
}

.footer-legal-sub {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    text-align: center;
}

.footer-legal-sub .copyright {
    margin-top: 12px;
    color: #cbd5e1;
}

/* ==========================================================================
   Live Multi-Bank Comparison Panel & Side-by-Side Matrix
   ========================================================================== */
.live-comparison-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
}

.live-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.live-compare-header h4 {
    font-size: 16.5px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-compare-top {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compare-top:hover {
    background: var(--primary);
    color: #ffffff;
}

.live-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.live-offer-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
}

.live-offer-card.best-offer {
    border-color: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}

.live-offer-card.chosen {
    border-color: var(--accent);
    background: #fff7ed;
}

.offer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.offer-top-row h5 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 4px 0 2px;
}

.offer-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: var(--radius-full);
}

.live-offer-card.best-offer .offer-tag {
    background: #d1fae5;
    color: #065f46;
}

.offer-spec {
    font-size: 12px;
    color: var(--text-muted);
}

.compare-checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 1px solid #cbd5e1;
}

.offer-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
}

.offer-metric small {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.offer-metric strong {
    font-size: 13.5px;
    color: var(--primary-dark);
}

.offer-metric .metric-main {
    font-size: 17px;
    font-weight: 800;
    color: #059669;
}

.offer-metric .metric-main span {
    font-size: 11px;
    font-weight: 600;
}

.offer-metric .metric-gain {
    color: #2563eb;
}

.offer-metric .metric-gain em {
    font-style: normal;
    font-size: 11px;
}

.cap-note {
    display: block;
    font-size: 10px;
    color: #d97706;
    font-weight: 600;
}

.offer-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.offer-guarantee {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-choose-offer {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-choose-offer:hover {
    background: var(--accent);
}

.btn-choose-offer.chosen {
    background: var(--accent);
}

.ineligible-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
}

.offer-empty-state {
    grid-column: 1 / -1;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13.5px;
    color: #92400e;
}

.side-by-side-panel {
    margin-top: 20px;
    background: #ffffff;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 100%;
}

.sbs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.sbs-close {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.sbs-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 13px;
}

.sbs-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 10px 12px;
    text-align: left;
}

.sbs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.sbs-table td.sbs-label {
    font-weight: 700;
    color: var(--text-muted);
    background: #f8fafc;
}

.sbs-table td.sbs-win {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 800;
}

/* Duration Scenarios */
.scenarios-compare-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.scenarios-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.scenario-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.scenario-card:hover {
    border-color: var(--primary-light);
}

.scenario-card.active {
    border: 2px solid var(--primary);
    background: #eff6ff;
}

.scenario-card .sc-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-light);
}

.scenario-card .sc-mens {
    font-size: 17px;
    font-weight: 800;
    color: #059669;
    margin: 4px 0;
}

.scenario-card small {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Filter Bar & Selected Success Card */
.partner-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.p-card-selected {
    border: 2px solid var(--accent) !important;
    background: #fff7ed !important;
}

/* ==========================================================================
   SEO Guide / Article Content Styling
   ========================================================================== */
.article-lead-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 18px 22px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 26px;
}

.article-rendered-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 28px 0 12px;
}

.article-rendered-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 10px;
}

.article-rendered-content p {
    margin-bottom: 14px;
}

.article-rendered-content ul {
    margin: 12px 0 20px 22px;
}

.article-rendered-content li {
    margin-bottom: 8px;
}

.comparative-table-container {
    margin: 26px 0;
    overflow-x: auto;
}

.table-compare {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 14px;
}

.table-compare th {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 14px;
    text-align: left;
}

.table-compare td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.simulation-case-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 24px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.case-col {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.case-col.before {
    border-top: 4px solid #dc2626;
}

.case-col.after {
    border-top: 4px solid #059669;
    background: #f0fdf4;
}

.case-col h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.case-col ul {
    margin-left: 18px;
    margin-bottom: 0;
}

.faq-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-top: 28px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Page Sections, Grids, Barometer, Guides & Article Layouts
   ========================================================================== */
.hero-section.hero-compact {
    padding: 40px 0;
}

.hero-title.hero-title-compact {
    font-size: 36px;
}

.card-sub-section.hero-baro-box,
.card-sub-section.highlight-box.hero-baro-box,
.hero-baro-box {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    margin-bottom: 0;
}

.hero-baro-title {
    color: #fdba74;
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-baro-sub {
    font-size: 13.5px;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.hero-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.hero-stat-pill {
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    border-radius: 8px;
    flex: 1 1 135px;
    text-align: center;
}

.hero-stat-pill small {
    color: #e2e8f0;
    display: block;
    font-size: 11.5px;
    margin-bottom: 2px;
}

.hero-stat-pill strong {
    font-size: 20px;
    color: #6ee7b7;
}

.hero-baro-note {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
}

.comparator-overlap-section {
    margin-top: -30px;
    position: relative;
    z-index: 20;
}

.page-section-container {
    padding-top: 44px;
    padding-bottom: 50px;
}

.subhero-overlap-container {
    margin-top: -20px;
    position: relative;
    z-index: 20;
}

.subhero-features-grid {
    margin-bottom: 30px;
}

.subhero-feature-card {
    background: #ffffff;
    margin-bottom: 0;
}

.subhero-feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.features-grid {
    margin-bottom: 40px;
}

.pillars-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.guides-preview-section {
    padding: 60px 0;
}

.feature-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.feature-icon {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.guide-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.guide-category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.guide-card h2,
.guide-card h3 {
    font-size: 17.5px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.guide-card h2 a,
.guide-card h3 a {
    color: var(--primary-dark);
}

.guide-card h2 a:hover,
.guide-card h3 a:hover {
    color: var(--primary);
}

.guide-summary {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.guide-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 12px;
    color: #64748b;
}

.guide-card-footer a {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.barometre-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 44px;
}

.barometre-card {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    min-width: 0;
}

.barometre-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.barometre-card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.barometre-card-head h3 {
    font-size: 18px;
    color: var(--primary);
    line-height: 1.3;
}

.barometre-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.rates-table th,
.rates-table td {
    white-space: nowrap;
}

.rate-min-cell {
    color: #059669;
    font-weight: 700;
}

.rate-max-cell {
    color: #dc2626;
}

.page-cta-banner {
    text-align: center;
    padding: 36px 28px;
    margin-bottom: 0;
}

.page-cta-banner h2 {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.page-cta-banner h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-cta-banner p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 22px;
    font-size: 14.5px;
}

.btn-inline-cta {
    display: inline-block;
    width: auto;
    padding: 14px 28px;
}

.btn-sidebar-cta {
    display: block;
    text-align: center;
    font-size: 14px;
    padding: 12px 18px;
}

.step-process-card {
    position: relative;
}

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-cta-link {
    text-align: center;
    margin-top: 28px;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.dedicated-profile-section {
    margin-top: 40px;
}

.dedication-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    min-width: 0;
}

.dedication-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.section-head-compact {
    margin-bottom: 20px;
}

.dedication-lead {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.profile-checklist li {
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.5;
}

.case-grid-compact {
    gap: 14px;
}

.dedicated-faq {
    margin-top: 6px;
}

.article-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: 36px;
    align-items: start;
}

.article-body-wrapper {
    background: #ffffff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.article-header-block {
    margin-bottom: 25px;
}

.article-header-block h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 12px 0;
    line-height: 1.25;
}

.article-meta-row {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.article-rendered-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
    overflow-wrap: break-word;
}

.article-divider {
    margin: 36px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.article-sidebar {
    min-width: 0;
}

.article-sidebar-card {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 96px;
    margin-bottom: 0;
}

.article-sidebar-card h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin: 10px 0;
}

.article-sidebar-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.sidebar-phone-note {
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.sidebar-phone-note strong {
    color: var(--primary);
}

.table-scroll-hint {
    display: none;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-full);
    padding: 6px 12px;
    margin: 0 auto 12px;
    width: fit-content;
}

/* Specialized Tools (Locataires & Proprietaires) + Article Linking */
.tool-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tool-inputs-col,
.tool-results-col {
    min-width: 0;
}

.pill-selector-compact .pill-option {
    min-width: 150px;
    padding: 10px 12px;
}

.debt-rows-grid {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: center;
}

.debt-row-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-dark);
}

.debt-ratio-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.debt-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--primary-dark);
}

.eligibility-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.eligibility-pill.ok {
    background: #d1fae5;
    color: #065f46;
}

.eligibility-pill.mid {
    background: #fef3c7;
    color: #92400e;
}

.eligibility-pill.warn {
    background: #fee2e2;
    color: #991b1b;
}

.ratio-bar-group {
    margin-bottom: 12px;
}

.ratio-bar-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    margin-bottom: 5px;
}

.ratio-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.25s ease;
}

.ratio-fill.before {
    background: linear-gradient(90deg, #f97316, #dc2626);
}

.ratio-fill.after {
    background: linear-gradient(90deg, #10b981, #059669);
}

.loc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.loc-kpi {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}

.loc-kpi.gain {
    background: var(--success-light);
    border-color: #a7f3d0;
}

.loc-kpi small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.loc-kpi strong {
    font-size: 17px;
    color: var(--primary-dark);
}

.loc-kpi.gain strong {
    color: var(--success);
}

.strategy-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.strategy-box {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.strategy-box input {
    display: none;
}

.strategy-box.active {
    border-color: var(--primary);
    background: #eff6ff;
}

.strategy-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
}

.strategy-box strong {
    display: block;
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.strategy-mens {
    font-size: 18px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 2px;
}

.strategy-box small {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

.tool-offers-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.tool-offers-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.tool-offers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-offer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.tool-offer-row:hover,
.tool-offer-row.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.tool-offer-row strong {
    display: block;
    font-size: 13.5px;
    color: var(--primary-dark);
}

.tool-offer-row small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.tool-offer-price {
    text-align: right;
    flex-shrink: 0;
}

.express-lead-card {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 16px;
}

.express-lead-card h4 {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.express-consent {
    margin: 10px 0 12px;
    font-size: 11.5px;
}

.express-success {
    margin-top: 12px;
    background: var(--success-light);
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}

.article-cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.related-articles-section {
    margin-top: 32px;
}

.related-articles-section h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.related-articles-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-article-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all 0.2s ease;
}

.related-article-link:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.related-article-link strong {
    display: block;
    font-size: 13.5px;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-article-link small {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.sidebar-quick-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* ==========================================================================
   Consolidated Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1180px) {
    .main-nav {
        gap: 13px;
    }
    .main-nav a {
        font-size: 13.5px;
    }
    .phone-text small {
        display: none;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
        padding: 14px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        z-index: 999;
    }
    .main-nav.mobile-open {
        display: flex;
    }
    .main-nav a {
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 15px;
    }
    .main-nav a.active {
        background: #eff6ff;
    }
    .main-nav a.active::after {
        display: none;
    }
    .mobile-nav-extras {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    .mobile-drawer-phone {
        background: #f1f5f9;
        color: var(--primary-dark) !important;
        padding: 10px 14px !important;
        border-radius: 10px;
        font-size: 14px !important;
        text-align: center;
    }
    .mobile-drawer-cta {
        width: 100%;
        text-align: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cards-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cards-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-layout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .article-sidebar-card {
        position: static;
    }
    .barometre-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .tool-split-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .related-articles-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .housing-selector {
        grid-template-columns: 1fr;
    }
    .success-results-grid {
        grid-template-columns: 1fr;
    }
    .partners-mini-grid {
        grid-template-columns: 1fr;
    }
    .calc-live-preview {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .preview-savings {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .table-scroll-hint {
        display: block;
    }
}

@media (max-width: 768px) {
    .phone-link {
        display: none;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .live-offers-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .offer-metrics-row {
        grid-template-columns: 1fr 1fr;
    }
    .offer-metric:first-child {
        grid-column: 1 / -1;
    }
    .partners-section,
    .pillars-section,
    .guides-preview-section {
        padding: 40px 0;
    }
    .section-head {
        margin-bottom: 26px;
    }
    .section-head h2 {
        font-size: 24px;
    }
    .section-head p {
        font-size: 14.5px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .top-legal-bar {
        font-size: 10px;
        line-height: 1.35;
        padding: 5px 0;
    }
    .header-inner {
        height: 62px;
        gap: 8px;
    }
    .logo-main {
        font-size: 21px;
    }
    .logo-tld {
        font-size: 15px;
    }
    .logo-badge {
        font-size: 9px;
    }
    .btn-primary-header .cta-full {
        display: none;
    }
    .btn-primary-header .cta-short {
        display: inline;
    }
    .btn-primary-header {
        font-size: 12.5px;
        padding: 8px 12px;
    }
    .hero-section,
    .hero-section.hero-compact {
        padding: 28px 0 36px;
    }
    .hero-title,
    .hero-title.hero-title-compact {
        font-size: 27px;
        line-height: 1.2;
        margin-bottom: 14px;
    }
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 18px;
    }
    .hero-badge-tag {
        font-size: 11.5px;
        padding: 5px 10px;
        margin-bottom: 14px;
    }
    .hero-guarantees {
        gap: 8px;
    }
    .guarantee-pill {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
    }
    .hero-stats-row {
        flex-direction: column;
        gap: 10px;
    }
    .page-section-container {
        padding-top: 28px;
        padding-bottom: 36px;
    }
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .comparator-header {
        padding: 22px 14px;
    }
    .comparator-header h2 {
        font-size: 20px;
    }
    .comparator-header p {
        font-size: 13.5px;
        margin-bottom: 18px;
    }
    .stepper-tracker {
        max-width: 100%;
        gap: 4px;
        align-items: flex-start;
    }
    .step-item {
        flex: 1;
        flex-direction: column;
        gap: 5px;
        text-align: center;
        min-width: 0;
        font-size: 11px;
    }
    .step-label {
        line-height: 1.2;
    }
    .step-line {
        margin: 13px 2px 0;
        max-width: 18px;
        flex: 0 1 18px;
    }
    .comparator-body {
        padding: 18px 14px;
    }
    .card-sub-section,
    .live-comparison-box,
    .side-by-side-panel {
        padding: 14px 12px;
    }
    .form-row {
        gap: 14px;
        margin-bottom: 14px;
    }
    .form-col,
    .form-col.form-col-compact {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
    .pill-option {
        flex: 1 1 100%;
        min-width: 0;
        padding: 10px 12px;
    }
    .step-nav-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }
    .step-nav-buttons > div:empty {
        display: none;
    }
    .btn-step-prev,
    .btn-step-next,
    .btn-submit-lead,
    .btn-inline-cta {
        width: 100%;
        text-align: center;
        padding: 13px 16px;
        font-size: 14.5px;
    }
    .rates-table th,
    .rates-table td {
        padding: 10px 8px;
        font-size: 12.5px;
    }
    .debt-rows-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .debt-row-label {
        grid-column: 1 / -1;
        margin-top: 6px;
    }
    .loc-kpi-grid,
    .strategy-compare-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .article-body-wrapper {
        padding: 20px 16px;
    }
    .article-header-block h1 {
        font-size: 24px;
    }
    .page-cta-banner {
        padding: 24px 16px;
    }
    .page-cta-banner h2 {
        font-size: 21px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 30px;
    }
    .site-footer {
        padding-top: 40px;
    }
}

