/* ============================================
   CALCULATEUR AIRBNB V7 - MAJESTIC CONCIERGERIE
   by Bilel Boukrayaa Fiducia Center
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
    /* Colors - Refined palette */
    --navy: #1a2b4a;
    --navy-light: #2d4a7c;
    --gold: #c9a227;
    --gold-light: #f5ecd4;
    --emerald: #059669;
    --emerald-light: #d1fae5;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.15);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.3s;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- WRAPPER ---------- */
.calc-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    min-height: 100vh;
}

/* ---------- HEADER ---------- */
.calc-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.brand-logo {
    height: 32px;
    width: 32px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.brand-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald);
    background: var(--emerald-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.calc-headline {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.calc-subline {
    font-size: 17px;
    color: var(--gray-500);
}

/* ---------- FORM BLOCKS ---------- */
.calc-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.block-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.block-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.block-hint {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
    margin-left: auto;
}

/* ---------- SELECT INPUTS ---------- */
.select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.select-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.select-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.select-input:hover {
    border-color: var(--gray-300);
    background-color: var(--white);
}

.select-input:focus {
    outline: none;
    border-color: var(--navy);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

/* ---------- SLIDER ---------- */
.slider-block {
    padding: var(--space-md) 0;
}

.slider-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-lg);
}

.slider-value {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
}

.slider-unit {
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-400);
}

.slider-input {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    appearance: none;
    cursor: pointer;
    margin-bottom: var(--space-md);
}

.slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 3px solid var(--navy);
    border-radius: 50%;
    cursor: grab;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-md);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider-input::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.slider-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 3px solid var(--navy);
    border-radius: 50%;
    cursor: grab;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
}

/* ---------- TYPE CARDS ---------- */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.type-card {
    cursor: pointer;
}

.type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-sm);
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease-out);
    text-align: center;
}

.type-card:hover .type-content {
    background: var(--white);
    border-color: var(--gray-200);
}

.type-card input:checked + .type-content {
    background: var(--navy);
    border-color: var(--navy);
}

.type-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.type-card input:checked + .type-content .type-name {
    color: var(--white);
}

.type-desc {
    font-size: 12px;
    color: var(--gray-400);
}

.type-card input:checked + .type-content .type-desc {
    color: rgba(255,255,255,0.7);
}

/* ---------- FEATURE CHIPS ---------- */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.feature-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feature-chip:hover {
    background: var(--white);
    border-color: var(--gray-300);
}

.feature-chip:has(input:checked) {
    background: var(--emerald);
    border-color: var(--emerald);
}

.chip-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-chip:has(input:checked) .chip-text {
    color: var(--white);
}

.chip-bonus {
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald);
    background: var(--emerald-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.feature-chip:has(input:checked) .chip-bonus {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* ---------- SUBMIT BUTTON ---------- */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
    padding: 18px var(--space-lg);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.submit-btn:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ---------- RESULTS SECTION ---------- */
.results-section {
    margin-top: var(--space-2xl);
    animation: fadeUp 0.6s var(--ease-out);
}

.results-section[hidden] {
    display: none;
}

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

/* ---------- HERO CARD ---------- */
.result-hero-card {
    background: linear-gradient(135deg, var(--navy) 0%, #0f1a2e 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.result-hero-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.hero-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.hero-currency {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    color: var(--gold);
}

.hero-value {
    font-family: var(--font-display);
    font-size: clamp(48px, 12vw, 72px);
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-period {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

.hero-context {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.hero-context strong {
    color: var(--gold);
    font-weight: 600;
}

/* ---------- COMPARE CARD ---------- */
.result-compare-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.compare-item {
    text-align: center;
}

.compare-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.compare-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-800);
}

.compare-highlight .compare-value {
    color: var(--emerald);
}

.compare-vs {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.compare-gain {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-100);
    margin-top: var(--space-sm);
}

.gain-badge {
    font-size: 16px;
    font-weight: 700;
    color: var(--emerald);
    background: var(--emerald-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.gain-percent {
    font-size: 14px;
    color: var(--gray-500);
}

/* ---------- LEAD CARD ---------- */
.lead-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.lead-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.lead-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.lead-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.lead-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease-out);
}

.lead-input::placeholder {
    color: var(--gray-400);
}

.lead-input:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
}

.lead-input-full {
    grid-column: 1 / -1;
}

.lead-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 16px var(--space-lg);
    margin-top: var(--space-sm);
    background: var(--emerald);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.lead-btn:hover {
    background: #047857;
}

.lead-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- DETAIL RESULTS ---------- */
.results-detail[hidden] {
    display: none;
}

.detail-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0f1a2e 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.detail-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.detail-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

.detail-currency {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    color: var(--gold);
}

.detail-value {
    font-family: var(--font-display);
    font-size: clamp(56px, 15vw, 80px);
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
}

.detail-period {
    font-size: 22px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

.detail-annual {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 16px;
    margin-top: var(--space-md);
}

.detail-annual svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
}

.detail-annual strong {
    color: var(--gold);
    font-weight: 700;
}

/* ---------- METRICS ---------- */
.detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.metric {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* ---------- VISUAL COMPARE ---------- */
.detail-visual {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.visual-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

.visual-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    gap: var(--space-md);
    align-items: center;
}

.bar-label {
    font-size: 13px;
    color: var(--gray-600);
}

.bar-row-highlight .bar-label {
    font-weight: 600;
    color: var(--gray-800);
}

.bar-track {
    height: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.bar-classic {
    background: var(--gray-400);
}

.bar-majestic {
    background: linear-gradient(90deg, var(--emerald) 0%, #10b981 100%);
}

.bar-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-700);
    text-align: right;
}

.bar-row-highlight .bar-amount {
    color: var(--emerald);
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    background: var(--emerald);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.visual-badge svg {
    width: 18px;
    height: 18px;
}

/* ---------- CTA ---------- */
.detail-cta {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.cta-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 28px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease-out);
    margin-bottom: var(--space-md);
}

.cta-btn:hover {
    background: var(--navy-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn:active {
    color: var(--white);
}

.cta-btn svg {
    width: 20px;
    height: 20px;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    background: transparent;
    color: var(--gray-500);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: color var(--duration);
}

.reset-btn:hover {
    color: var(--gray-700);
}

.reset-btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- TRUST FOOTER ---------- */
.trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
}

.trust-label {
    font-size: 12px;
    color: var(--gray-500);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ---------- LOADER ---------- */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader {
    position: relative;
    width: 140px;
    height: 140px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gold);
    animation: spin 1.2s linear infinite;
}

.loader-ring:nth-child(2) {
    inset: 10px;
    animation-delay: -0.3s;
    border-top-color: rgba(201, 162, 39, 0.6);
}

.loader-ring:nth-child(3) {
    inset: 20px;
    animation-delay: -0.6s;
    border-top-color: rgba(201, 162, 39, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: auto;
}

.loader-text {
    font-size: 15px;
    color: var(--gray-500);
}

/* ---------- BITFORM HIDDEN ---------- */
.bitform-form,
.bf-form,
[class*="bitform"],
.bit-form {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 768px) {
    .calc-wrapper {
        padding: var(--space-lg) var(--space-md);
    }
    
    .select-grid {
        grid-template-columns: 1fr;
    }
    
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .result-compare-card {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .compare-vs {
        padding: var(--space-sm) 0;
    }
    
    .detail-metrics {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .metric {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        text-align: left;
        padding: var(--space-md);
    }
    
    .metric-value {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .bar-row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .bar-amount {
        text-align: left;
    }
    
    .trust-footer {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .trust-divider {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .calc-wrapper {
        padding: var(--space-md);
    }
    
    .calc-headline {
        font-size: 26px;
    }
    
    .form-block {
        padding: var(--space-md);
    }
    
    .block-title {
        font-size: 15px;
    }
    
    .slider-value {
        font-size: 48px;
    }
    
    .type-content {
        padding: var(--space-sm);
    }
    
    .type-name {
        font-size: 16px;
    }
    
    .feature-chip {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        padding: 8px 12px;
    }
    
    .chip-text {
        font-size: 13px;
    }
    
    .chip-bonus {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .submit-btn {
        padding: 16px var(--space-md);
        font-size: 16px;
    }
    
    .result-hero-card,
    .detail-hero {
        padding: var(--space-xl) var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .hero-value,
    .detail-value {
        font-size: 48px;
    }
    
    .lead-row {
        grid-template-columns: 1fr;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Safe areas iOS */
@supports (padding: max(0px)) {
    .calc-wrapper {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
        padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-block {
    animation: fadeIn 0.5s var(--ease-out);
    animation-fill-mode: both;
}

.form-block:nth-child(1) { animation-delay: 0.1s; }
.form-block:nth-child(2) { animation-delay: 0.2s; }
.form-block:nth-child(3) { animation-delay: 0.3s; }
.form-block:nth-child(4) { animation-delay: 0.4s; }

/* ========== SEO MAILLAGE INTERNE ========== */
.mj-calc-seo {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mj-calc-seo__section {
    margin-bottom: 48px;
}

.mj-calc-seo__section:last-child {
    margin-bottom: 0;
}

.mj-calc-seo__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 12px;
    text-align: center;
}

.mj-calc-seo__text {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin: 0 0 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Formules Grid */
.mj-calc-seo__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mj-calc-seo__card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    transition: all var(--duration) var(--ease-out);
}

.mj-calc-seo__card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.mj-calc-seo__card-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all var(--duration) var(--ease-out);
}

.mj-calc-seo__card:hover .mj-calc-seo__card-icon {
    background: var(--navy);
}

.mj-calc-seo__card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--navy);
    fill: none;
    transition: all var(--duration) var(--ease-out);
}

.mj-calc-seo__card:hover .mj-calc-seo__card-icon svg {
    stroke: white;
}

.mj-calc-seo__card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.mj-calc-seo__card p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* Guides Links */
.mj-calc-seo__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mj-calc-seo__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration) var(--ease-out);
}

.mj-calc-seo__links a:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.mj-calc-seo__links a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Social Links */
.mj-calc-seo__section--social {
    text-align: center;
}

.mj-calc-seo__social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.mj-calc-seo__social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: all var(--duration) var(--ease-out);
}

.mj-calc-seo__social a:hover {
    background: var(--navy);
}

.mj-calc-seo__social a svg {
    width: 22px;
    height: 22px;
    stroke: var(--navy);
    fill: none;
    transition: all var(--duration) var(--ease-out);
}

.mj-calc-seo__social a:hover svg {
    stroke: white;
}

/* FAQ */
.mj-calc-seo__faq {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
}

.mj-calc-faq__item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
}

.mj-calc-faq__item:last-child {
    margin-bottom: 0;
}

.mj-calc-faq__item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}

.mj-calc-faq__item p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Responsive SEO */
@media (max-width: 768px) {
    .mj-calc-seo__grid {
        grid-template-columns: 1fr;
    }
    
    .mj-calc-seo__links {
        flex-direction: column;
        align-items: center;
    }
}
