/* ============================================
   TaxVD — Modern Tax Platform Styles
   ============================================ */

:root {
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #6ee7b7;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --blue-500: #3b82f6;
    --red-500: #ef4444;
    --amber-500: #f59e0b;
    --purple-500: #8b5cf6;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Beta Banner */
.beta-banner {
    background: linear-gradient(135deg, var(--amber-500), #d97706);
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 36px;
    box-sizing: border-box;
}

.beta-banner .beta-long {
    display: inline;
}

.beta-banner .beta-short {
    display: none;
}

.beta-badge {
    background: #fff;
    color: #d97706;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--gray-900);
    font-weight: 400;
}

.nav-logo strong {
    font-weight: 800;
    color: var(--green-600);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge, .hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid var(--green-200);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ HERO ============ */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--green-300);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--green-200);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #86efac;
    top: 50%;
    left: 50%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-delai {
    margin-top: 20px;
}

.delai-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1.5px solid #f59e0b;
    border-radius: var(--radius);
    color: #92400e;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.delai-banner:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-600);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: #fff;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--green-300);
    color: var(--green-700);
    background: var(--green-50);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.btn-reset {
    color: var(--red, #ef4444);
    font-size: 0.85rem;
}

.btn-reset:hover {
    color: #dc2626;
    background: #fef2f2;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============ SIMULATOR ============ */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.sim-form-card, .sim-results-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.sim-results-card {
    position: sticky;
    top: 96px;
}

.sim-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.sim-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: all var(--transition);
}

.sim-step.active {
    background: var(--green-50);
    color: var(--green-700);
}

.sim-step.completed {
    color: var(--green-600);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.sim-step.active .step-num {
    background: var(--green-500);
    color: #fff;
}

.sim-step.completed .step-num {
    background: var(--green-500);
    color: #fff;
}

.sim-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sim-panel.active {
    display: block;
}

.sim-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: #fff;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 60px;
    -moz-appearance: textfield;
}

.input-with-unit input::-webkit-inner-spin-button,
.input-with-unit input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-unit .unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
    font-weight: 600;
    color: var(--gray-400);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input,
.input-with-icon input[type="text"] {
    padding-left: 44px !important;
}

.input-compact {
    max-width: 120px;
}

/* Radio cards */
.radio-cards {
    display: flex;
    gap: 10px;
}

.radio-card {
    flex: 1;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.radio-card.active .radio-card-inner,
.radio-card input:checked + .radio-card-inner {
    border-color: var(--green-400);
    background: var(--green-50);
    color: var(--green-700);
}

/* Number input */
.number-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.number-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
}

.number-input button:hover {
    background: var(--green-50);
    color: var(--green-600);
}

.number-input input {
    width: 60px;
    border: none;
    text-align: center;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.number-input input::-webkit-inner-spin-button,
.number-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition);
    position: relative;
}

.checkbox-label input:checked + .checkmark {
    background: var(--green-500);
    border-color: var(--green-500);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Deduction accordion */
.deduction-group {
    margin-bottom: 8px;
}

.deduction-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
}

.deduction-toggle:hover {
    background: var(--green-50);
    border-color: var(--green-200);
}

.deduction-toggle.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--green-50);
    border-color: var(--green-200);
}

.deduction-toggle svg {
    transition: transform var(--transition);
}

.deduction-toggle.active svg {
    transform: rotate(180deg);
}

.deduction-content {
    display: none;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #fff;
}

.deduction-content.open {
    display: block;
}

/* ============ RESULTS ============ */
.results-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.results-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.results-year {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 50px;
    color: var(--gray-500);
    font-weight: 500;
}

.result-total {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--green-50), #ecfdf5);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.result-total-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.result-total-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green-700);
    line-height: 1.2;
}

.result-total-sub {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.result-monthly {
    text-align: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.result-monthly strong {
    color: var(--gray-900);
}

.results-breakdown {
    margin-bottom: 24px;
}

.breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.breakdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.breakdown-dot.federal { background: var(--blue-500); }
.breakdown-dot.cantonal { background: var(--green-500); }
.breakdown-dot.communal { background: var(--amber-500); }
.breakdown-dot.eglise { background: var(--purple-500); }
.breakdown-dot.fortune-dot { background: var(--gray-500); }

.breakdown-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
}

.breakdown-bar {
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.bar-fill.federal { background: var(--blue-500); }
.bar-fill.cantonal { background: var(--green-500); }
.bar-fill.communal { background: var(--amber-500); }
.bar-fill.eglise { background: var(--purple-500); }
.bar-fill.fortune-bar { background: var(--gray-500); }

.results-details {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.results-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child { border-bottom: none; }

.detail-row.highlight {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.text-green { color: var(--green-600); }

.results-savings {
    background: linear-gradient(135deg, #fef3c7, #fefce8);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.results-savings h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.saving-tip {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 0.85rem;
    color: var(--gray-700);
}

.saving-tip:last-child { border-bottom: none; }

.saving-amount {
    font-weight: 700;
    color: var(--green-700);
    white-space: nowrap;
}

/* ============ DEDUCTIONS PAGE ============ */
.deductions-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid var(--gray-200);
    background: #fff;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--green-400);
    background: var(--green-50);
    color: var(--green-700);
}

.deductions-search {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.deductions-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.deductions-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition);
}

.deductions-search input:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.deductions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.deduction-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.deduction-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deduction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.deduction-icon {
    font-size: 1.8rem;
}

.deduction-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.deduction-category {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.deduction-impact {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
}

.deduction-impact.high {
    background: #dcfce7;
    color: #166534;
}

.deduction-impact.medium {
    background: #fef3c7;
    color: #92400e;
}

.deduction-impact.low {
    background: var(--gray-100);
    color: var(--gray-600);
}

.deduction-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.deduction-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
}

.deduction-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 50px;
    font-size: 0.75rem;
}

.detail-label {
    color: var(--gray-400);
    font-weight: 500;
}

.detail-value {
    color: var(--gray-700);
    font-weight: 700;
}

.deduction-tip {
    font-size: 0.8rem;
    padding: 10px 12px;
    background: #ecfdf5;
    border-left: 3px solid var(--green-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
    line-height: 1.5;
}

/* ============ GUIDE / TIMELINE ============ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--green-200);
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 1;
    box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--green-200);
}

.timeline-content {
    flex: 1;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 8px;
    border: 1px solid var(--green-200);
}

.timeline-badge.important {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 6px 0;
}

.check-item input { display: none; }

.checkmark-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition);
    position: relative;
}

.check-item input:checked + .checkmark-box {
    background: var(--green-500);
    border-color: var(--green-500);
}

.check-item input:checked + .checkmark-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-item input:checked ~ span:last-child {
    text-decoration: line-through;
    color: var(--gray-400);
}

/* Info/warning/tip boxes */
.info-box, .warning-box, .tip-box {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.tip-box {
    background: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--green-800);
}

.info-box h4, .tip-box h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-box ul, .tip-box ul, .warning-box ul {
    padding-left: 20px;
    margin-top: 8px;
}

.info-box li, .tip-box li {
    margin-bottom: 4px;
}

.styled-list {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.styled-list li {
    margin-bottom: 6px;
}

.guide-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.guide-card {
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.guide-card h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.guide-card p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ============ TIPS/ASTUCES ============ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.tip-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: all var(--transition);
}

.tip-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
}

.tip-card.tip-gold {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb, #fff);
}

.tip-card.tip-silver {
    border-color: var(--green-200);
    background: linear-gradient(135deg, #ecfdf5, #fff);
}

.tip-rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.tip-gold .tip-rank {
    background: #fde68a;
    color: #92400e;
}

.tip-silver .tip-rank {
    background: var(--green-200);
    color: var(--green-800);
}

.tip-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.tip-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tip-example {
    background: var(--gray-50);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.highlight-green {
    color: var(--green-700);
    font-weight: 700;
}

.tip-action {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.action-tag {
    font-weight: 700;
    color: var(--green-700);
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--green-300);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--gray-400);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer ul {
    padding-left: 20px;
    margin: 8px 0;
}

.faq-answer li {
    margin-bottom: 6px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-logo strong {
    color: var(--green-400);
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .simulator-layout {
        grid-template-columns: 1fr;
    }

    .sim-results-card {
        position: static;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .guide-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .beta-banner {
        font-size: 0.7rem;
        padding: 4px 12px;
        gap: 6px;
    }

    .beta-banner .beta-long {
        display: none;
    }

    .beta-banner .beta-short {
        display: inline;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .radio-cards {
        flex-direction: column;
    }

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

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .deductions-grid, .tips-grid {
        grid-template-columns: 1fr;
    }

    .sim-steps {
        flex-wrap: wrap;
    }

    .sim-step span {
        display: none;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .tip-card {
        flex-direction: column;
    }
}

/* ============ LIFE EVENTS CARDS ============ */
.guide-card strong {
    color: var(--gray-900);
}

.warning-box strong {
    display: inline;
}

/* Footer contacts styling */
.footer-links a[href^="tel:"],
.footer-links a[href^="mailto:"] {
    color: var(--green-400);
}

/* ============ STRATEGIES SECTION ============ */

.strategy-alert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 40px;
}

.strategy-alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.strategy-alert-content h3 {
    margin: 0 0 8px;
    color: #92400e;
    font-size: 1.1rem;
}

.strategy-alert-content p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
}

.strategies-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 48px;
}

.strategy-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-200);
}

.strategy-category-icon {
    font-size: 1.5rem;
}

.strategy-category-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--gray-800);
}

.strategy-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strategy-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.strategy-card:hover {
    border-color: var(--green-300);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.strategy-card h4 {
    margin: 8px 0 12px;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.strategy-card > p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.strategy-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--green-50);
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-badge.badge-premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.strategy-badge.badge-new {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.strategy-conditions {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 12px 0;
}

.strategy-conditions strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.strategy-conditions ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

.strategy-example {
    background: var(--green-50);
    border-left: 3px solid var(--green-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 16px;
    margin: 12px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.strategy-savings {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--green-800);
}

.strategy-savings strong {
    color: var(--green-700);
}

/* Erreurs courantes */
.strategy-errors-section {
    margin: 48px 0;
}

.strategy-errors-section h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--gray-800);
}

.errors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.error-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.error-cost {
    font-size: 1.4rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 8px;
}

.error-card p {
    margin: 0;
    color: #7f1d1d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* CTA */
.strategy-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--green-50), #d1fae5);
    border-radius: var(--radius);
}

.strategy-cta p {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .strategy-alert {
        flex-direction: column;
        gap: 12px;
    }

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

    .strategy-card {
        padding: 18px;
    }
}

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

/* ============ PRINT ============ */
@media print {
    .navbar, .footer, .btn, .sim-form-card, .hero-section { display: none !important; }
    .section { display: block !important; padding: 0; min-height: auto; }
    .sim-results-card { box-shadow: none; border: 1px solid #ddd; }
    .results-placeholder { display: none; }
}
