/* ============================================================
   ImmoSim Pro — Style Sheet Premium
   Design System: Glassmorphism Dark FinTech
   © 2026 Inovinfo - https://inovinfo.fr
   ============================================================ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  --bg-primary:      #080C1A;
  --bg-secondary:    #0F1629;
  --bg-surface:      #141B2D;
  --bg-card:         rgba(20, 30, 55, 0.7);
  --bg-header:       rgba(8, 12, 26, 0.85);
  --logo-gradient:   linear-gradient(135deg, #ffffff 30%, var(--primary-light));
  --bg-glass:        rgba(255, 255, 255, 0.04);
  --bg-glass-hover:  rgba(255, 255, 255, 0.07);
  --bg-input:        rgba(255, 255, 255, 0.05);
  --bg-input-hover:  rgba(255, 255, 255, 0.08);
  --border-input-hover: rgba(255, 255, 255, 0.15);

  --border-glass:    rgba(255, 255, 255, 0.08);
  --border-accent:   rgba(108, 99, 255, 0.4);

  --primary:         #6C63FF;
  --primary-light:   #8B84FF;
  --primary-dark:    #4A42CC;
  --primary-glow:    rgba(108, 99, 255, 0.25);

  --accent:          #00D4AA;
  --accent-light:    #00FFCC;
  --accent-glow:     rgba(0, 212, 170, 0.2);

  --success:         #22C55E;
  --warning:         #F59E0B;
  --danger:          #EF4444;
  --danger-dark:     #B91C1C;

  --text-primary:    #F1F5F9;
  --text-secondary:  #94A3B8;
  --text-muted:      #475569;
  --text-accent:     #00D4AA;

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --radius-full:     9999px;

  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:       0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:       0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow:     0 0 40px rgba(108, 99, 255, 0.15);
  --shadow-accent:   0 0 30px rgba(0, 212, 170, 0.12);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --blur-glass:      blur(20px) saturate(180%);
  --blur-heavy:      blur(40px);
}

/* ─── CSS Light Theme Properties ─── */
:root.light-mode {
  --bg-primary:      #F8FAFC;
  --bg-secondary:    #E2E8F0;
  --bg-surface:      #FFFFFF;
  --bg-card:         rgba(255, 255, 255, 0.8);
  --bg-header:       rgba(248, 250, 252, 0.85);
  --logo-gradient:   linear-gradient(135deg, var(--text-primary) 30%, var(--primary));
  --bg-glass:        rgba(15, 23, 42, 0.04);
  --bg-glass-hover:  rgba(15, 23, 42, 0.08);
  --bg-input:        rgba(15, 23, 42, 0.03);
  --bg-input-hover:  rgba(15, 23, 42, 0.06);
  --border-input-hover: rgba(15, 23, 42, 0.12);

  --border-glass:    rgba(15, 23, 42, 0.08);
  --border-accent:   rgba(108, 99, 255, 0.3);

  --primary:         #6C63FF;
  --primary-light:   #5b51f5;
  --primary-dark:    #3e35b8;
  --primary-glow:    rgba(108, 99, 255, 0.15);

  --accent:          #00A884;
  --accent-light:    #00C99E;
  --accent-glow:     rgba(0, 168, 132, 0.12);

  --success:         #16A34A;
  --warning:         #D97706;
  --danger:          #DC2626;
  --danger-dark:     #991B1B;

  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #64748B;
  --text-accent:     #00A884;

  --shadow-sm:       0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md:       0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg:       0 20px 50px rgba(15, 23, 42, 0.1);
  --shadow-glow:     0 0 30px rgba(108, 99, 255, 0.08);
  --shadow-accent:   0 0 20px rgba(0, 168, 132, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-slow), color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

/* ─── Background Ambient ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(108, 99, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(108, 99, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2rem 0;
}

/* ─── Glass Cards ─── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.glass-card-sm {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.card-elevated {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

/* ─── Header / Hero ─── */
#site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
  -webkit-text-fill-color: var(--text-muted);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Hero Section ─── */
#hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

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

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Section Headers ─── */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ─── Forms & Inputs ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-label .required {
  color: var(--primary-light);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-input:hover:not(:focus) {
  border-color: var(--border-input-hover);
  background: var(--bg-input-hover);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input[type="range"] {
  padding: 0;
  height: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
}

.form-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-select:hover:not(:focus) {
  border-color: var(--border-input-hover);
  background-color: var(--bg-input-hover);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.input-prefix {
  position: relative;
}

.input-prefix .prefix-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  font-weight: 600;
}

.input-prefix .form-input {
  padding-left: 2.2rem;
}

.input-suffix {
  position: relative;
}

.input-suffix .suffix-symbol {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
  font-weight: 600;
}

.input-suffix .form-input {
  padding-right: 3rem;
}

/* ─── Grid System ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

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

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

/* ─── Toggle Switch ─── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toggle-input {
  display: none;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
}

.toggle-input:checked + .toggle-track {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ─── Tab Buttons ─── */
.tab-group {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-glass);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.tab-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover:not(.tab-btn--active) {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.tab-btn--active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #00A884);
  color: #001A14;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--danger);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-full { width: 100%; }

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.3);
}

/* ─── KPI Cards ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--kpi-color, var(--primary));
  opacity: 0.8;
}

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

.kpi-icon {
  width: 40px;
  height: 40px;
  background: rgba(var(--kpi-rgb, 108, 99, 255), 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Taux d'endettement display ─── */
.endettement-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.endettement-bar-wrap {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.endettement-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow), background var(--transition-base);
  background: var(--success);
}

.endettement-bar.warning { background: var(--warning); }
.endettement-bar.danger  { background: var(--danger); }

.endettement-threshold {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: rgba(255,255,255,0.4);
  left: 35%;
}

.endettement-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-base);
}

.endettement-value.ok      { color: var(--success); }
.endettement-value.warning { color: var(--warning); }
.endettement-value.danger  { color: var(--danger); }

/* ─── Aegis TrustScore Layout ─── */
.trust-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 0.5rem 0 1rem;
}

@media (max-width: 860px) {
  .trust-layout { grid-template-columns: 1fr; }
}

.trust-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ─── Aegis Speedtest Gauge ─── */
.gauge-container {
  position: relative;
  width: 220px;
  height: 150px; /* assez haut pour l'arc + le score en dessous */
}

.gauge-svg {
  width: 100%;
  height: 130px;   /* correspond au viewBox 0 0 200 130 */
  overflow: visible;
  display: block;
}

.gauge-bg-track {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 14;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.8s ease;
}

.gauge-glow {
  fill: none;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  opacity: 0.18;
  filter: blur(5px);
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.8s ease;
}

/* L'aiguille utilise transform SVG natif (rotate(deg, cx, cy)) — pas de transform CSS */
.gauge-needle {
  transition: fill 0.8s ease;
}

.gauge-needle-center {
  fill: var(--bg-surface);
  stroke: rgba(255,255,255,0.3);
  stroke-width: 1.5px;
}

/* Score affiché sous l'arc SVG, pas en absolute sur le container */
.gauge-score-text {
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1;
}

.gauge-score-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-base);
  line-height: 1;
}

.gauge-score-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

.trust-algo-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.trust-verdict {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.trust-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: center; /* centrer verticalement dans la grille */
}

.trust-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.trust-detail-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-detail-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trust-mini-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  flex: 1;
  margin: 0 0.75rem;
  overflow: hidden;
}

.trust-mini-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
  transition: width var(--transition-slow);
}

/* ─── Loan Line Card ─── */
.loan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.loan-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--loan-color, var(--primary));
  border-radius: 0 2px 2px 0;
}

.loan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.loan-num-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--loan-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
}

.loan-title-input {
  flex: 1;
  margin-left: 0.75rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.loan-title-input:focus {
  background: var(--bg-glass-hover);
  box-shadow: inset 0 -2px 0 var(--loan-color, var(--primary));
}

.loan-mensualite-preview {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.75rem;
}

/* ─── Échéancier Table ─── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.table-echeancier {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-echeancier thead th {
  padding: 0.85rem 1rem;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}

.table-echeancier thead th:first-child {
  text-align: left;
}

.table-echeancier tbody tr {
  transition: background var(--transition-fast);
}

.table-echeancier tbody tr:hover {
  background: rgba(108, 99, 255, 0.06);
}

.table-echeancier tbody tr.year-row {
  background: rgba(108, 99, 255, 0.05);
  font-weight: 700;
}

.table-echeancier tbody tr.year-row td {
  color: var(--primary-light);
  border-top: 1px solid rgba(108, 99, 255, 0.2);
}

.table-echeancier tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.table-echeancier tbody td:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
}

.table-echeancier .td-capital  { color: var(--accent); }
.table-echeancier .td-interet  { color: var(--warning); }
.table-echeancier .td-assur    { color: var(--primary-light); }
.table-echeancier .td-mensual  { color: var(--text-primary); font-weight: 700; }
.table-echeancier .td-crd      { color: var(--text-secondary); }

/* ─── Pagination ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition-fast);
  padding: 0 0.5rem;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ─── Chart Container ─── */
.chart-container {
  position: relative;
  width: 100%;
  height: 350px;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0 0;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─── Alert Banner ─── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  border: 1px solid;
  transition: all var(--transition-base);
}

.alert-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert p { color: inherit; margin: 0; }

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.alert-info {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--primary-light);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}

/* ─── Separators ─── */
.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 1.5rem 0;
}

/* ─── RGPD Box ─── */
.rgpd-box {
  background: rgba(0, 212, 170, 0.05);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rgpd-icon { font-size: 1.1rem; flex-shrink: 0; }

.rgpd-text {
  font-size: 0.78rem;
  color: rgba(0, 212, 170, 0.8);
  line-height: 1.6;
}

.rgpd-text strong { color: var(--accent); }

/* ─── Modale Mentions Légales ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
  overflow: hidden;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.modal-iframe-wrap {
  flex: 1;
  overflow: hidden;
  padding: 1rem;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: white;
}

/* ─── Footer ─── */
#site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 3rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-copy a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--text-secondary); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(108, 99, 255, 0.5); }

/* ─── Notifications Toast ─── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
  backdrop-filter: blur(10px);
  pointer-events: all;
  transform: translateX(100%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.3); color: var(--success); }
.toast-error   { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); color: var(--danger); }
.toast-info    { background: rgba(108, 99, 255, 0.15); border-color: rgba(108, 99, 255, 0.3); color: var(--primary-light); }

/* ─── Add loan button zone ─── */
.add-loan-zone {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.add-loan-zone:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.05);
  color: var(--primary-light);
}

/* ─── PTZ Breath animation ─── */
@keyframes ptz-glow-breath {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 15px 4px rgba(0, 212, 170, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
  }
}

.btn-ptz-breath {
  background: linear-gradient(135deg, var(--accent), #00A68A) !important;
  color: #0d1527 !important;
  font-weight: 800;
  border: none;
  animation: ptz-glow-breath 2.5s infinite ease-in-out;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-ptz-breath:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
}

/* ─── Section Accordion ─── */
.section-block {
  margin-bottom: 1.5rem;
}

/* ─── Info tooltip ─── */
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
  transition: all var(--transition-fast);
}

.info-tip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  width: 240px;
  white-space: normal;
  z-index: 1000;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease, visibility var(--transition-fast);
}

.info-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: var(--border-glass);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease, visibility var(--transition-fast);
}

.info-tip:hover::after, .info-tip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsiveness ─── */
@media (max-width: 640px) {
  .glass-card { padding: 1.25rem; }
  .btn-lg     { padding: 0.85rem 1.5rem; }
  .kpi-value  { font-size: 1.3rem; }
  .gauge-container { width: 180px; height: 106px; }
  .gauge-score-num { font-size: 2.2rem; }
  .hero-stats { gap: 1rem; }
}

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

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

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

.animate-fadeInUp { animation: fadeInUp 0.5s ease both; }
.animate-fadeIn   { animation: fadeIn 0.4s ease both; }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─── DPE Badge ─── */
.dpe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
}

.dpe-A { background: #009900; }
.dpe-B { background: #33CC00; }
.dpe-C { background: #CCFF00; color: #333; }
.dpe-D { background: #FFFF00; color: #333; }
.dpe-E { background: #FFCC00; color: #333; }
.dpe-F { background: #FF6600; }
.dpe-G { background: #CC0000; }

/* ─── Lissage info box ─── */
.lissage-box {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ─── Step connector ─── */
.steps-connector {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Summary sidebar ─── */
.summary-sticky {
  position: sticky;
  top: calc(80px + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Range slider custom ─── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--primary-glow);
  transition: box-shadow var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px var(--primary-glow);
}

/* ─── Utility Classes ─── */
.mt-1 { margin-top: 0.5rem; }

/* TrustScore layout responsive */
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .trust-layout {
    grid-template-columns: 1fr;
  }
  .trust-score-wrap {
    padding: 1rem;
  }
}

/* Grid full column span (for couple form) */
@media (min-width: 769px) {
  .grid-col-full {
    grid-column: 1 / -1;
  }
}

/* ─── Print ─── */
@media print {
  /* Reset */
  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  body {
    background: #ffffff !important;
    color: #1a1a2e !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 9pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  body::before { display: none !important; }

  /* Hide non-print elements */
  #site-header,
  #hero,
  #section-saisie,
  #section-profil,
  #section-prets,
  #section-email,
  #site-footer,
  .modal-overlay,
  .toast-container,
  .btn,
  .add-loan-zone,
  .pagination,
  .tab-group,
  .chart-legend,
  [data-no-print] { display: none !important; }

  /* Show only results section */
  #section-resultats { display: block !important; }

  /* Print header */
  #print-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12pt;
    margin-bottom: 16pt;
    border-bottom: 2px solid #6C63FF;
  }

  .print-logo-text {
    font-size: 18pt;
    font-weight: 900;
    color: #6C63FF;
  }

  .print-date {
    font-size: 8pt;
    color: #666;
  }

  /* Cards reset for print */
  .glass-card,
  .glass-card-sm,
  .card-elevated,
  .kpi-card,
  .loan-card {
    background: #f8f9ff !important;
    border: 1px solid #dee2f5 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    break-inside: avoid;
  }

  h2, h3, h4 {
    color: #1a1a2e !important;
    break-after: avoid;
  }

  /* KPI grid print */
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8pt !important;
  }

  .kpi-card {
    padding: 10pt !important;
  }

  .kpi-value {
    font-size: 12pt !important;
    color: #6C63FF !important;
  }

  .kpi-label {
    font-size: 6.5pt !important;
    color: #666 !important;
  }

  /* Trust score print */
  .trust-score-wrap {
    flex-direction: row !important;
    align-items: center !important;
    gap: 16pt !important;
  }

  .gauge-container { width: 130px !important; height: 80px !important; }
  .gauge-score-num { font-size: 20pt !important; }

  /* Table print */
  .table-echeancier {
    font-size: 7pt !important;
    page-break-inside: auto;
  }

  .table-echeancier thead th {
    background: #6C63FF !important;
    color: white !important;
    padding: 4pt 6pt !important;
  }

  .table-echeancier tbody td {
    padding: 3pt 6pt !important;
    border-bottom: 1px solid #eee !important;
    color: #1a1a2e !important;
  }

  .table-echeancier tbody tr.year-row {
    background: #f0f0ff !important;
  }

  .table-echeancier tbody tr.year-row td {
    color: #6C63FF !important;
    font-weight: 700 !important;
  }

  .table-echeancier .td-capital  { color: #00A884 !important; }
  .table-echeancier .td-interet  { color: #B87A00 !important; }
  .table-echeancier .td-mensual  { font-weight: 700 !important; }

  .chart-container { height: 200px !important; }

  /* Print page setup */
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 12mm 15mm;
  }

  @page :first {
    margin-top: 8mm;
  }

  .section-block { break-inside: avoid; }

  /* Print disclaimer */
  #print-disclaimer {
    display: block !important;
    margin-top: 20pt;
    padding: 8pt;
    border: 1px solid #dee2f5;
    font-size: 7pt;
    color: #666;
    border-radius: 4pt;
  }

  /* Force show table when in annual view for print */
  #echeancier-annuel { display: block !important; }

  /* Color adjustments for print legibility */
  .endettement-value.ok      { color: #16a34a !important; }
  .endettement-value.warning { color: #d97706 !important; }
  .endettement-value.danger  { color: #dc2626 !important; }
}
