/* ============================================================
   RENOV'INTELLIGENCE — Design System
   "Le Doctolib de la renovation energetique"
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand colours */
  --primary:       #2D6A4F;
  --primary-dark:  #1B4332;
  --primary-light: #52B788;
  --secondary:     #40916C;
  --accent:        #F59E0B;
  --accent-dark:   #D97706;
  --accent-light:  #FCD34D;

  /* Neutrals */
  --bg:            #F8FAF8;
  --bg-alt:        #EFF5EF;
  --card:          #FFFFFF;
  --text:          #1B1B1B;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;

  /* Status */
  --success:       #059669;
  --warning:       #F59E0B;
  --danger:        #DC2626;
  --info:          #2563EB;

  /* DPE colours */
  --dpe-a: #009B4E;
  --dpe-b: #50B848;
  --dpe-c: #C8D200;
  --dpe-d: #FFED00;
  --dpe-e: #FBB800;
  --dpe-f: #EB6909;
  --dpe-g: #E2001A;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

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

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:  0 12px 40px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Typography */
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

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

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

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

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

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

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.text-small { font-size: 0.875rem; }

.font-heading { font-family: var(--font-heading); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm { max-width: 800px; }
.container-xs { max-width: 640px; }

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
}

.navbar-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .navbar-toggle { display: block; }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm);
  }

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

/* --- Cards --- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-icon.green  { background: #D1FAE5; color: var(--primary); }
.card-icon.orange { background: #FEF3C7; color: var(--accent-dark); }
.card-icon.red    { background: #FEE2E2; color: var(--danger); }
.card-icon.blue   { background: #DBEAFE; color: var(--info); }

.card h3 {
  margin-bottom: var(--space-sm);
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.card-link:hover { gap: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--card);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Radio / Checkbox cards */
.option-grid {
  display: grid;
  gap: var(--space-md);
}

.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 600px) {
  .option-grid-2, .option-grid-3 {
    grid-template-columns: 1fr;
  }
}

.option-card {
  position: relative;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-card .option-body {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: all var(--transition);
}

.option-card input:checked + .option-body {
  border-color: var(--primary);
  background: rgba(45,106,79,0.04);
}

.option-card:hover .option-body {
  border-color: var(--secondary);
}

.option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.option-text {
  font-weight: 500;
}

.option-text small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Checkbox variant */
.check-card {
  position: relative;
  cursor: pointer;
}

.check-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-card .check-body {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.check-card input:checked + .check-body {
  border-color: var(--primary);
  background: rgba(45,106,79,0.04);
}

.check-card .check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.check-card input:checked + .check-body .check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* --- DPE Scale --- */
.dpe-scale {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 360px;
}

.dpe-bar {
  display: flex;
  align-items: center;
  height: 36px;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-md);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  transition: all var(--transition);
}

.dpe-bar.dpe-a { background: var(--dpe-a); width: 30%; }
.dpe-bar.dpe-b { background: var(--dpe-b); width: 40%; }
.dpe-bar.dpe-c { background: var(--dpe-c); width: 50%; color: var(--text); }
.dpe-bar.dpe-d { background: var(--dpe-d); width: 60%; color: var(--text); }
.dpe-bar.dpe-e { background: var(--dpe-e); width: 70%; }
.dpe-bar.dpe-f { background: var(--dpe-f); width: 85%; }
.dpe-bar.dpe-g { background: var(--dpe-g); width: 100%; }

.dpe-bar.active {
  transform: scaleY(1.3) scaleX(1.02);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.dpe-bar .dpe-label {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
}

/* --- Score Circle --- */
.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--primary);
  margin: 0 auto var(--space-lg);
}

.score-circle .score-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.score-circle .score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Risk Gauge --- */
.risk-gauge {
  width: 100%;
  height: 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--success), #84CC16, var(--warning), #F97316, var(--danger));
  position: relative;
  margin: var(--space-lg) 0;
}

.risk-gauge-needle {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 36px;
  background: var(--text);
  border-radius: 2px;
  transition: left var(--transition-slow);
}

.risk-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

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

.timeline-step {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  z-index: 1;
}

.timeline-step.done .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.timeline-step.active .timeline-dot {
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.timeline-content h4 {
  margin-bottom: var(--space-xs);
}

.timeline-meta {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Stat Bar --- */
.stat-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: var(--space-lg) 0;
}

.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (max-width: 600px) {
  .stat-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-light);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-orange { background: #FEF3C7; color: #92400E; }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-gray   { background: #F3F4F6; color: #6B7280; }

/* --- Alerts --- */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.alert-info    { background: #EFF6FF; border-color: var(--info); color: #1E40AF; }
.alert-success { background: #ECFDF5; border-color: var(--success); color: #065F46; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }
.alert-danger  { background: #FEF2F2; border-color: var(--danger); color: #991B1B; }

/* --- Testimonial --- */
.testimonial {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 3.5rem;
  font-family: serif;
  color: var(--primary-light);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial p {
  padding-top: var(--space-lg);
  font-style: italic;
  color: var(--text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Hero --- */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer a {
  color: rgba(255,255,255,0.8);
}

.footer a:hover { color: #fff; }

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

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer ul {
  list-style: none;
}

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

.footer ul a {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- Checklist --- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.checklist-item:hover { background: var(--bg-alt); }

.checklist-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 2px;
}

.checklist-item.done .checklist-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- Accordion --- */
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
}

.accordion-header:hover { background: var(--bg-alt); }

.accordion-arrow {
  transition: transform var(--transition);
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- Questionnaire Step --- */
.step-container {
  max-width: 640px;
  margin: 0 auto;
  min-height: 400px;
}

.step-question {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.step-counter {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* --- Result Card --- */
.result-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.result-card h3 {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* --- Chart Container --- */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Misc --- */
.divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto var(--space-lg);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utility: hide/show */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Print */
@media print {
  .navbar, .footer, .btn, .step-nav { display: none !important; }
  body { font-size: 12pt; background: #fff; }
  .card, .result-card { box-shadow: none; border: 1px solid #ccc; }
}
