@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'Roboto Mono', monospace;
  --primary: #1D4ED8; --primary-dark: #1E3A8A; --primary-light: #EFF6FF;
  --accent: #10B981; --accent-light: #ECFDF5; --danger: #EF4444; --warning: #F59E0B;
  --text: #0F172A; --text-muted: #64748B; --text-light: #94A3B8;
  --bg: #FFFFFF; --bg-soft: #F8FAFC; --bg-card: #FFFFFF;
  --border: #E2E8F0; --border-focus: #1D4ED8;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08); --shadow-md: 0 4px 12px rgba(0,0,0,.08); --shadow-lg: 0 10px 30px rgba(0,0,0,.10);
  --font: 'Outfit', sans-serif; --font-mono: 'DM Mono', monospace;
  --transition: .2s ease; --max-width: 1200px; --header-height: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg-soft); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* Cookie Banner */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); color: #fff; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 9999; flex-wrap: wrap; font-size: .875rem; transform: translateY(100%); transition: transform .4s ease; }
#cookie-banner.show { transform: translateY(0); }
#cookie-banner a { color: #93C5FD; }
.cookie-btn { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.cookie-btn:hover { background: var(--primary-dark); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; height: var(--header-height); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: var(--text); flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.logo span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--text-muted); font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-light); }
.lang-switch { display: flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 4px; flex-shrink: 0; }
.lang-switch button { padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition); }
.lang-switch button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; display: none; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 14px 16px; font-size: 1rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--primary); }

/* Breadcrumb */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 8px 24px; font-size: .8rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }

/* Hero */
.hero { background: #fff; border-bottom: 1px solid var(--border); padding: 40px 20px 32px; text-align: center; }
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 12px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 24px; }
.hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.hero-stat span { font-size: .8rem; color: var(--text-muted); }

/* Layout */
.main-wrap { max-width: var(--max-width); margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; flex: 1; }
.main-wrap.no-sidebar { grid-template-columns: 1fr; max-width: 860px; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.card-title .icon { width: 36px; height: 36px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text); background: #fff; transition: border-color var(--transition), box-shadow var(--transition); -webkit-appearance: none; }
.form-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.form-input.time-input { text-align: center; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; padding: 10px 8px; }
.form-select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text); background: #fff; -webkit-appearance: none; cursor: pointer; transition: border-color var(--transition); }
.form-select:focus { outline: none; border-color: var(--border-focus); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Results */
.result-box { background: var(--primary-light); border: 1.5px solid #BFDBFE; border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; }
.result-box.success { background: var(--accent-light); border-color: #A7F3D0; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.result-row:last-child { border-bottom: none; padding-bottom: 0; }
.result-label { font-size: .875rem; color: var(--text-muted); font-weight: 500; }
.result-value { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.result-value.big { font-size: 1.6rem; }
.result-value.green { color: var(--accent); }
.result-empty { text-align: center; padding: 32px; color: var(--text-muted); font-size: .9rem; }
.result-empty .result-empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; transition: all var(--transition); cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: #FEF2F2; color: var(--danger); border: 1.5px solid #FECACA; }
.btn-danger:hover { background: #FEE2E2; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* Timesheet rows */
.ts-table { width: 100%; border-collapse: collapse; }
.ts-table th { background: var(--bg-soft); padding: 8px 10px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border); text-transform: uppercase; letter-spacing: .4px; }
.ts-table th:first-child { text-align: left; }
.ts-table td { padding: 6px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ts-table td:first-child { font-size: .85rem; font-weight: 600; color: var(--text); padding-left: 2px; white-space: nowrap; }
.ts-table tr.weekend td { background: #FAFAFA; }
.ts-table tr.weekend td:first-child { color: var(--text-muted); }
.ts-table tfoot td { background: var(--primary-light); font-weight: 700; font-family: var(--font-mono); color: var(--primary); border-top: 2px solid #BFDBFE; }
.ts-input { width: 100%; padding: 7px 6px; border: 1.5px solid var(--border); border-radius: 6px; font-family: var(--font-mono); font-size: .9rem; text-align: center; background: #fff; }
.ts-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(29,78,216,.1); }
.ts-total { font-family: var(--font-mono); font-size: .9rem; font-weight: 600; color: var(--primary); text-align: center; }
.ts-check { width: 16px; height: 16px; accent-color: var(--primary); }

/* Tools grid */
.tools-section { padding: 40px 20px; max-width: var(--max-width); margin: 0 auto; }
.section-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); font-size: .95rem; margin-bottom: 28px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: all var(--transition); display: block; color: var(--text); }
.tool-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.tool-card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.tool-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.tool-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.tool-card .badge { display: inline-block; margin-top: 12px; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary); }

/* Sidebar */
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.sidebar-widget-title { font-size: .875rem; font-weight: 700; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-links a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .85rem; color: var(--text-muted); transition: all var(--transition); }
.sidebar-links a:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-links a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.ad-slot { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius); min-height: 250px; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: .8rem; margin-bottom: 16px; text-align: center; }

/* Info / FAQ */
.info-section { padding: 0 20px 40px; max-width: var(--max-width); margin: 0 auto; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 16px 20px; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background var(--transition); }
.faq-question:hover { background: var(--bg-soft); }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; margin-left: 8px; }
.faq-question.open::after { content: '−'; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .3s ease; font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.faq-answer.open { padding: 0 20px 16px; max-height: 500px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--bg-soft); padding: 10px 14px; text-align: left; font-weight: 600; font-size: .8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .4px; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-soft); }
.data-table td:last-child, .data-table th:last-child { text-align: right; }

/* Tags */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: var(--accent-light); color: var(--accent); }
.tag-orange { background: #FFF7ED; color: #C2410C; }
.tag-red { background: #FEF2F2; color: var(--danger); }

/* Tabs */
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 8px 16px; border-radius: 6px; font-size: .875rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition); text-align: center; cursor: pointer; }
.tab-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Alert */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .875rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-left: 3px solid var(--primary); }
.alert-success { background: var(--accent-light); color: #065F46; border-left: 3px solid var(--accent); }
.alert-warning { background: #FFFBEB; color: #92400E; border-left: 3px solid var(--warning); }

/* Footer */
.site-footer { background: var(--text); color: #CBD5E1; margin-top: auto; }
.footer-top { max-width: var(--max-width); margin: 0 auto; padding: 48px 20px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo .logo-icon { background: var(--primary); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; flex-shrink: 0; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: #94A3B8; }
.footer-col h4 { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #94A3B8; font-size: .85rem; padding: 3px 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; max-width: var(--max-width); margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: #64748B; }
.footer-bottom a { color: #64748B; }
.footer-bottom a:hover { color: #fff; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* Export bar */
.export-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .4s ease forwards; }
@keyframes flash { 0% { background: #DBEAFE; } 100% { background: transparent; } }
.flash { animation: flash .6s ease; }

/* Responsive */
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 28px 16px; }
  .card { padding: 20px 16px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .tabs { flex-wrap: wrap; }
  .hero-stats { gap: 16px; }
  .result-value.big { font-size: 1.3rem; }
}
@media print {
  .site-header, .site-footer, .sidebar, .btn, #cookie-banner { display: none !important; }
  .main-wrap { grid-template-columns: 1fr; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}


/* ── Content Sections (SEO rich text) ── */
.content-section { line-height: 1.75; }
.content-section p { color: var(--text-muted); margin-bottom: 12px; }
.content-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.content-section h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.content-section ul, .content-section ol { margin: 0 0 12px 20px; color: var(--text-muted); line-height: 1.8; }
.content-section li { margin-bottom: 4px; }
.content-section a { color: var(--primary); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.content-section a:hover { text-decoration-color: var(--primary); }

/* ── Section headings ── */
.section-h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.section-h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; color: var(--text); }

/* ── Content list ── */
.content-list { margin: 0 0 12px 20px; color: var(--text-muted); line-height: 1.8; }
.content-list li { margin-bottom: 4px; }

/* ── Primary-light ── */
.primary-light, [style*="--primary-light"] { background: #EFF6FF; }
tr[style*="primary-light"] { background: #EFF6FF !important; }

/* ── Alert types ── */
.alert-success { background: #ECFDF5; border-color: var(--accent); color: #065F46; }
.alert-warning { background: #FFFBEB; border-color: #F59E0B; color: #92400E; }

/* ── Tools grid on tous-les-outils + about ── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); transition: all .2s; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-card h3 { font-size: .95rem; font-weight: 700; margin: 0; }
.tool-card p { font-size: .8rem; color: var(--text-muted); margin: 0; flex: 1; line-height: 1.5; }
.tool-card .badge { font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: white; width: fit-content; margin-top: 4px; }
.tool-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* ── Info grid ── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.info-card { background: var(--bg-soft); border-radius: var(--radius); padding: 16px; }
.info-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.info-card p { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── No-sidebar layout ── */
.main-wrap.no-sidebar { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ── Skip link ── */
.skip-link { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; background: var(--primary); color: white; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; z-index: 9999; transition: none; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; overflow: visible; }

/* ── Form hint text ── */
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ── Print styles ── */
@media print {
  .site-header, .mobile-nav, .sidebar, .export-bar, #cookie-banner, .breadcrumb, footer { display: none !important; }
  .main-wrap { display: block !important; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  body { font-size: 12px; }
}

/* ── Accessibility ── */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --bg-soft: #1E293B;
    --card: #1E293B;
    --border: #334155;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --shadow: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  }
  .result-box { background: #0F172A; }
  .info-card { background: #0F172A; }
  .data-table thead th { background: #1D4ED8; color: white; }
  .data-table tbody tr:hover { background: #334155; }
  .form-input, .form-select { background: #0F172A; color: #F1F5F9; border-color: #334155; }
  .hero { background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%); }
}
