/* ============================================
   le-smic.fr — Production CSS
   Design System: Financial Data Visualization
   Inspiration: Stripe / Bloomberg / Apple HIG
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Primary palette */
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-mid: #334155;
    --gold: #d4a843;
    --gold-light: #f5e6c4;
    --gold-dark: #b8942e;
    --gold-glow: rgba(212, 168, 67, 0.15);

    /* Neutral palette */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    /* Surface & Background */
    --bg: #faf8f5;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-overlay: rgba(255, 255, 255, 0.85);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-subtle: rgba(0, 0, 0, 0.06);

    /* Semantic */
    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.08);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.08);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.08);

    /* Typography */
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Fluid type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: clamp(1.4rem, 2.5vw, 1.75rem);
    --text-3xl: clamp(1.75rem, 3vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 4vw, 3rem);
    --text-5xl: clamp(2.5rem, 5vw, 4rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Shadows (Stripe-grade) */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-gold: 0 4px 14px rgba(212, 168, 67, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(15, 23, 42, 0.04);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --transition: var(--duration-normal) var(--ease-out);
    --transition-slow: var(--duration-slow) var(--ease-out);

    /* Layout */
    --max-width: 1100px;
    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--slate-800);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--gold-light);
    color: var(--navy);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-3xl);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    position: relative;
}

h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--navy-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong {
    font-weight: 600;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* --- Header / Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 168, 67, 0.3) 20%,
        rgba(212, 168, 67, 0.5) 50%,
        rgba(212, 168, 67, 0.3) 80%,
        transparent
    );
    opacity: 0.6;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
    text-decoration: none;
}

.site-logo:hover {
    opacity: 0.9;
    color: #fff;
}

.site-logo .euro-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
    transition: transform var(--transition), box-shadow var(--transition);
}

.site-logo:hover .euro-symbol {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    cursor: pointer;
    padding: var(--space-2);
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: transform var(--transition);
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.main-nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- Hero Section --- */
.hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, #263b5e 100%);
    color: #fff;
    padding: var(--space-16) 0 var(--space-12);
    margin-bottom: var(--space-10);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.4), transparent);
}

.hero h1 {
    color: #fff;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
    position: relative;
    letter-spacing: -0.03em;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-lg);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
}

/* --- Big Amount Display (Hero) --- */
.amount-display {
    display: flex;
    align-items: flex-end;
    gap: var(--space-10);
    flex-wrap: wrap;
    margin: var(--space-10) 0 var(--space-8);
    position: relative;
}

.amount-block {
    text-align: center;
    position: relative;
}

.amount-block .label {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.amount-block .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-5xl);
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(212, 168, 67, 0.25);
    letter-spacing: -0.03em;
}

.amount-block .value.small {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

.amount-block .unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-left: 2px;
    opacity: 0.8;
}

.amount-block .unit.small {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.hero-meta strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* --- Card Component --- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-subtle);
    transition:
        box-shadow var(--transition),
        transform var(--transition),
        border-color var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.08);
}

.card-flat {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    transition: border-color var(--transition);
}

.card-flat:hover {
    border-color: var(--slate-300);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}

.badge-blue {
    background: var(--info-bg);
    color: var(--info);
}

.badge-green {
    background: var(--success-bg);
    color: var(--success);
}

.badge-green::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 4px;
    flex-shrink: 0;
}

.badge-red {
    background: var(--danger-bg);
    color: var(--danger);
}

/* --- Stat Cards Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-1);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: var(--text-xs);
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    line-height: 1.3;
}

/* --- Tables --- */
.table-wrap {
    overflow-x: auto;
    margin: var(--space-5) 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for table */
.table-wrap::-webkit-scrollbar {
    height: 6px;
}

.table-wrap::-webkit-scrollbar-track {
    background: var(--slate-100);
}

.table-wrap::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

thead {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

thead th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-bottom: 2px solid rgba(212, 168, 67, 0.3);
}

thead th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

thead th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--duration-fast) ease;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background var(--duration-fast) ease;
}

tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

tbody tr:hover {
    background: rgba(15, 23, 42, 0.025);
}

tbody tr.highlight {
    background: var(--gold-glow);
    font-weight: 500;
    position: relative;
}

tbody tr.highlight td:first-child {
    position: relative;
}

tbody tr.highlight td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}

td.amount {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: var(--space-6) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--gold) 0%,
        var(--slate-300) 20%,
        var(--slate-200) 100%
    );
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-6);
    padding-left: var(--space-5);
    padding-bottom: var(--space-3);
    animation: slideInTimeline var(--duration-slow) var(--ease-out) both;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.1rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--slate-400);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--slate-300);
    transition: all var(--transition);
    z-index: 1;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.timeline-item.current::before {
    background: var(--gold);
    width: 14px;
    height: 14px;
    left: -2.17rem;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--gold), 0 0 12px rgba(212, 168, 67, 0.4);
    animation: pulseGold 2s ease-in-out infinite;
}

.timeline-date {
    font-size: var(--text-xs);
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.timeline-amount {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: var(--space-1) 0;
    letter-spacing: -0.01em;
}

.timeline-item.current .timeline-amount {
    color: var(--gold-dark);
}

.timeline-detail {
    font-size: var(--text-sm);
    color: var(--slate-500);
    line-height: 1.5;
}

/* --- Calculator --- */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin: var(--space-6) 0;
    align-items: start;
}

.calc-input-group {
    margin-bottom: var(--space-6);
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--slate-700);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.calc-input-group input[type="number"],
.calc-input-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--slate-800);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
    -moz-appearance: textfield;
}

.calc-input-group input[type="number"]::-webkit-outer-spin-button,
.calc-input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: #fff;
}

/* Custom range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
    border-radius: var(--radius-full);
    border: none;
    padding: 0;
    margin-top: var(--space-3);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    border: 2px solid var(--navy);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    border: 2px solid var(--navy);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.calc-result {
    text-align: center;
    padding: var(--space-6);
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #263b5e 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.06);
    pointer-events: none;
}

.calc-result .result-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.calc-result .result-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.calc-results-grid .calc-result {
    padding: var(--space-4);
}

.calc-results-grid .calc-result .result-value {
    font-size: 1.2rem !important;
}

/* --- IPC Progress Bar --- */
.ipc-progress-wrap {
    margin: var(--space-6) 0;
}

.ipc-bar-bg {
    height: 32px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-inner);
    border: 1px solid var(--border-subtle);
}

.ipc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg,
        var(--navy) 0%,
        var(--navy-light) 30%,
        var(--gold-dark) 80%,
        var(--gold) 100%
    );
    border-radius: var(--radius-full);
    transition: width 1.2s var(--ease-out);
    position: relative;
    min-width: 2%;
}

.ipc-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-radius: var(--radius-full);
}

.ipc-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--slate-500);
    margin-top: var(--space-3);
    font-weight: 500;
}

.ipc-bar-label strong {
    color: var(--navy);
}

/* --- Point d'indice highlight --- */
.point-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8);
    background:
        radial-gradient(ellipse at 0% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #263b5e 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.point-highlight::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.04);
    pointer-events: none;
}

.point-highlight .big-val {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 15px rgba(212, 168, 67, 0.2);
    flex-shrink: 0;
}

.point-highlight .big-val .small {
    font-size: 1.2rem;
    opacity: 0.7;
}

.point-highlight .desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.point-highlight .desc strong {
    color: #fff;
    font-weight: 600;
}

/* --- Comparison Bars --- */
.compare-bar {
    margin-bottom: var(--space-4);
}

.compare-bar .compare-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--slate-700);
}

.compare-bar .bar-bg {
    height: 12px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-inner);
    border: 1px solid var(--border-subtle);
}

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

.compare-bar .bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.bar-fill-blue {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
}

.bar-fill-gold {
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 100%);
}

.bar-fill-green {
    background: linear-gradient(90deg, #047857 0%, var(--success) 100%);
}

/* --- Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin: var(--space-6) 0;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.article-card .card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    line-height: 1.35;
}

.article-card h3 a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

.article-card h3 a:hover {
    color: var(--gold-dark);
}

.article-card .excerpt {
    font-size: var(--text-sm);
    color: var(--slate-500);
    flex: 1;
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.article-card .read-more {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--transition), color var(--transition);
}

.article-card .read-more::after {
    content: '\2192';
    transition: transform var(--transition);
    font-size: 1.1em;
}

.article-card:hover .read-more {
    color: var(--gold-dark);
    gap: 0.55rem;
}

.article-card:hover .read-more::after {
    transform: translateX(3px);
}

/* --- Article Content (single page) --- */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 720px;
    color: var(--slate-700);
}

.article-content h2 {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    color: var(--navy);
    font-size: var(--text-2xl);
}

.article-content h3 {
    margin-top: var(--space-8);
    color: var(--navy);
}

.article-content ul,
.article-content ol {
    margin: var(--space-4) 0 var(--space-4) var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.article-content li::marker {
    color: var(--gold);
}

.article-content blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-5) var(--space-6);
    background: var(--slate-50);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--slate-600);
}

.article-content strong {
    color: var(--navy);
    font-weight: 600;
}

/* --- Legal Content --- */
.legal-content {
    max-width: 720px;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--slate-700);
}

.legal-content h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: 1.3rem;
}

.legal-content ul {
    margin: var(--space-3) 0 var(--space-3) var(--space-6);
}

.legal-content li {
    margin-bottom: var(--space-2);
}

/* --- Info Box --- */
.info-box {
    background: var(--slate-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-6) 0;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: var(--space-4);
    bottom: var(--space-4);
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--navy-light);
}

.info-box-gold {
    background: rgba(212, 168, 67, 0.06);
    border-color: rgba(212, 168, 67, 0.2);
}

.info-box-gold::before {
    background: var(--gold);
}

.info-box strong {
    color: var(--navy);
    font-weight: 600;
}

/* --- Section Titles --- */
.section-title {
    margin-bottom: var(--space-1);
}

.section-subtitle {
    color: var(--slate-500);
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
    font-weight: 400;
    line-height: 1.6;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: var(--space-4) 0 var(--space-2);
    font-size: var(--text-sm);
    color: var(--slate-400);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--slate-500);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--navy);
}

.breadcrumb .sep {
    margin: 0 var(--space-2);
    color: var(--slate-300);
}

/* --- Page top spacing --- */
.page-top {
    padding-top: var(--space-10);
    margin-bottom: var(--space-8);
}

/* --- Footer --- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
    font-size: var(--text-sm);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 168, 67, 0.3) 30%,
        rgba(212, 168, 67, 0.5) 50%,
        rgba(212, 168, 67, 0.3) 70%,
        transparent
    );
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-col h4 {
    color: var(--gold);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-col p {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

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

.footer-col ul li {
    margin-bottom: var(--space-2);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-5);
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

/* --- Keyframe Animations --- */
@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--gold), 0 0 8px rgba(212, 168, 67, 0.3);
    }
    50% {
        box-shadow: 0 0 0 5px var(--gold), 0 0 20px rgba(212, 168, 67, 0.5);
    }
}

@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes progressFill {
    from {
        width: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scroll-triggered animations */
.stat-card,
.article-card,
.timeline-item {
    animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.stat-card:nth-child(1) { animation-delay: 0ms; }
.stat-card:nth-child(2) { animation-delay: 80ms; }
.stat-card:nth-child(3) { animation-delay: 160ms; }
.stat-card:nth-child(4) { animation-delay: 240ms; }

.article-card:nth-child(1) { animation-delay: 0ms; }
.article-card:nth-child(2) { animation-delay: 100ms; }
.article-card:nth-child(3) { animation-delay: 200ms; }

.timeline-item:nth-child(1) { animation-delay: 0ms; }
.timeline-item:nth-child(2) { animation-delay: 60ms; }
.timeline-item:nth-child(3) { animation-delay: 120ms; }
.timeline-item:nth-child(4) { animation-delay: 180ms; }
.timeline-item:nth-child(5) { animation-delay: 240ms; }
.timeline-item:nth-child(6) { animation-delay: 300ms; }
.timeline-item:nth-child(7) { animation-delay: 360ms; }
.timeline-item:nth-child(8) { animation-delay: 420ms; }
.timeline-item:nth-child(9) { animation-delay: 480ms; }
.timeline-item:nth-child(10) { animation-delay: 540ms; }

/* IPC bar animation on load */
.ipc-bar-fill {
    animation: progressFill 1.5s var(--ease-out) both;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .calc-grid {
        gap: var(--space-6);
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-4);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: var(--shadow-2xl);
    }

    .main-nav.open {
        display: block;
        animation: fadeInUp var(--duration-normal) var(--ease-out);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav a {
        display: block;
        padding: 0.7rem var(--space-4);
        border-radius: var(--radius-md);
        font-size: var(--text-base);
    }

    .main-nav a::after {
        display: none;
    }

    /* Hero mobile */
    .hero {
        padding: var(--space-10) 0 var(--space-8);
        margin-bottom: var(--space-6);
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero .subtitle {
        font-size: var(--text-base);
    }

    .amount-display {
        gap: var(--space-6);
        margin: var(--space-6) 0;
    }

    .amount-block .value {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .amount-block .value.small {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    /* Typography mobile */
    h1 {
        font-size: var(--text-2xl);
    }

    h2 {
        font-size: 1.3rem;
    }

    /* Cards mobile */
    .card {
        padding: var(--space-5);
        border-radius: var(--radius-md);
    }

    /* Stats mobile */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .stat-card {
        padding: var(--space-4);
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    /* Table mobile */
    .table-wrap {
        font-size: var(--text-sm);
        border-radius: var(--radius-sm);
    }

    thead th,
    tbody td {
        padding: 0.55rem 0.7rem;
    }

    /* Calculator mobile */
    .calc-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .calc-results-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Articles mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Point highlight mobile */
    .point-highlight {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
        gap: var(--space-4);
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Page top mobile */
    .page-top {
        padding-top: var(--space-6);
    }

    /* Breadcrumb mobile */
    .breadcrumb {
        font-size: var(--text-xs);
    }
}

/* --- Responsive: Small mobile --- */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .amount-block .value {
        font-size: 1.8rem;
    }

    .amount-block .value.small {
        font-size: 1.2rem;
    }

    .amount-display {
        gap: var(--space-4);
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .ipc-bar-label {
        flex-direction: column;
        gap: var(--space-1);
        align-items: flex-start;
    }
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0f1a;
        --surface: #151923;
        --surface-raised: #1a1f2e;
        --border: rgba(255, 255, 255, 0.08);
        --border-light: rgba(255, 255, 255, 0.04);
        --border-subtle: rgba(255, 255, 255, 0.06);
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
        --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);
        --shadow-gold: 0 4px 14px rgba(212, 168, 67, 0.15);
        --gold-glow: rgba(212, 168, 67, 0.1);
        --success-bg: rgba(5, 150, 105, 0.12);
        --danger-bg: rgba(220, 38, 38, 0.12);
        --info-bg: rgba(37, 99, 235, 0.12);
    }

    body {
        color: var(--slate-300);
    }

    h1, h2, h3, h4, h5, h6 {
        color: var(--slate-100);
    }

    a {
        color: var(--slate-300);
    }

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

    .site-header {
        background: rgba(12, 15, 26, 0.92);
        border-bottom-color: rgba(255, 255, 255, 0.04);
    }

    .hero {
        background:
            radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
            linear-gradient(160deg, #070a14 0%, #0f172a 50%, #141e33 100%);
    }

    thead {
        background: #0c1020;
    }

    tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.015);
    }

    tbody tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    tbody tr.highlight {
        background: rgba(212, 168, 67, 0.06);
    }

    td.amount {
        color: var(--slate-200);
    }

    .stat-card .stat-value {
        color: var(--slate-100);
    }

    .stat-card::before {
        background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 100%);
    }

    .timeline-item::before {
        border-color: var(--bg);
    }

    .timeline-item.current::before {
        border-color: var(--bg);
    }

    .timeline-amount {
        color: var(--slate-100);
    }

    .calc-input-group input[type="number"],
    .calc-input-group select {
        background: var(--surface-raised);
        color: var(--slate-200);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .calc-input-group input:focus,
    .calc-input-group select:focus {
        background: var(--surface-raised);
        border-color: var(--gold);
    }

    .calc-input-group label {
        color: var(--slate-300);
    }

    .ipc-bar-bg {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.04);
    }

    .ipc-bar-label {
        color: var(--slate-400);
    }

    .ipc-bar-label strong {
        color: var(--slate-200);
    }

    .info-box {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .info-box-gold {
        background: rgba(212, 168, 67, 0.04);
        border-color: rgba(212, 168, 67, 0.12);
    }

    .info-box strong {
        color: var(--slate-100);
    }

    .article-card h3 a {
        color: var(--slate-100);
    }

    .article-card .excerpt {
        color: var(--slate-400);
    }

    .article-card .read-more {
        color: var(--gold);
    }

    .article-content strong {
        color: var(--slate-200);
    }

    .site-footer {
        background: #070a14;
    }

    .section-subtitle {
        color: var(--slate-400);
    }

    .breadcrumb {
        color: var(--slate-500);
    }

    .breadcrumb a {
        color: var(--slate-400);
    }

    .breadcrumb .sep {
        color: var(--slate-600);
    }

    .badge-green {
        background: rgba(5, 150, 105, 0.15);
    }

    .compare-bar .compare-label {
        color: var(--slate-300);
    }

    .compare-bar .bar-bg {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.04);
    }

    .point-highlight {
        background:
            radial-gradient(ellipse at 0% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 60%),
            linear-gradient(160deg, #060910 0%, #0f172a 60%, #141e33 100%);
        border-color: rgba(212, 168, 67, 0.08);
    }

    .main-nav {
        background: rgba(12, 15, 26, 0.97);
    }

    ::selection {
        background: rgba(212, 168, 67, 0.3);
        color: #fff;
    }

    input[type="range"] {
        background: linear-gradient(90deg, var(--slate-600) 0%, var(--gold-dark) 100%);
    }

    input[type="range"]::-webkit-slider-thumb {
        background: var(--slate-200);
        border-color: var(--gold);
    }

    input[type="range"]::-moz-range-thumb {
        background: var(--slate-200);
        border-color: var(--gold);
    }
}

/* --- Print --- */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .breadcrumb,
    .read-more {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
        line-height: 1.5;
    }

    h1, h2, h3, h4 {
        color: #000;
        page-break-after: avoid;
    }

    .hero {
        background: none !important;
        color: #000;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 2px solid #000;
    }

    .hero h1 {
        color: #000;
        font-size: 18pt;
    }

    .hero .subtitle {
        color: #333;
    }

    .amount-block .value,
    .amount-block .value.small {
        color: #000;
        text-shadow: none;
    }

    .amount-block .unit,
    .amount-block .unit.small {
        color: #333;
    }

    .hero-meta {
        border-top-color: #ccc;
        color: #555;
    }

    .hero-meta strong {
        color: #000;
    }

    .card,
    .card-flat {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        padding: 1rem;
    }

    .stat-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .stat-card::before {
        display: none;
    }

    .stat-card .stat-value {
        color: #000;
    }

    table {
        font-size: 9pt;
    }

    thead {
        background: #eee !important;
        color: #000;
    }

    thead th {
        border-bottom: 2px solid #000;
    }

    tbody tr.highlight {
        background: #f9f4e8 !important;
    }

    tbody tr.highlight td:first-child::before {
        display: none;
    }

    td.amount {
        color: #000;
    }

    .badge {
        border: 1px solid #ccc;
        background: none;
    }

    .badge-green {
        color: #059669;
    }

    .badge-green::before {
        display: none;
    }

    .timeline::before {
        background: #ccc;
    }

    .timeline-item::before {
        background: #999;
        box-shadow: none;
        border-color: #fff;
    }

    .timeline-item.current::before {
        background: #b8942e;
        animation: none;
    }

    .timeline-amount {
        color: #000;
    }

    .calc-result {
        background: #f5f5f5 !important;
        color: #000;
    }

    .calc-result .result-label {
        color: #555;
    }

    .calc-result .result-value {
        color: #000;
    }

    .calc-result::before {
        display: none;
    }

    .point-highlight {
        background: #f5f5f5 !important;
        color: #000;
        border-color: #ccc;
    }

    .point-highlight .big-val {
        color: #000;
        text-shadow: none;
    }

    .point-highlight .desc {
        color: #333;
    }

    .point-highlight .desc strong {
        color: #000;
    }

    .point-highlight::before {
        display: none;
    }

    .ipc-bar-bg {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .ipc-bar-fill {
        background: #999;
        animation: none;
    }

    .ipc-bar-fill::after {
        display: none;
    }

    .compare-bar .bar-bg {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .bar-fill-blue,
    .bar-fill-gold,
    .bar-fill-green {
        background: #666;
    }

    .bar-fill::after {
        display: none;
    }

    .info-box {
        background: #f9f9f9;
        border-color: #ccc;
    }

    .info-box::before {
        background: #999;
    }

    .info-box-gold {
        background: #fdf9ed;
    }

    .info-box-gold::before {
        background: #b8942e;
    }

    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }

    .site-logo a[href]::after,
    .main-nav a[href]::after,
    .footer-col a[href]::after {
        content: none;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Prevent animations in print */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .timeline-item.current::before {
        animation: none;
        box-shadow: 0 0 0 3px var(--gold), 0 0 8px rgba(212, 168, 67, 0.3);
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip to content (keyboard nav) */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--gold);
    color: var(--navy);
    padding: var(--space-2) var(--space-4);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: 200;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}
