/* ─── PALETTE — inspired by "A Dictionary of Color Combinations" vol.2
   Combination #88 : Sauge / Écru / Terre / Blanc cassé
   Combination #21 : Vert bouteille / Or pâle / Sable
   → Deep forest green anchor, warm ecru base, gold accent, clay contrast
─── */
:root {
  --forest:   #1C3829;
  --forest-mid: #2A4F3A;
  --forest-light: #3D6B50;
  --sage:     #6B8F71;
  --sage-light: #A8C4AD;
  --ecru:     #F5F0E8;
  --ecru-mid: #EDE6D6;
  --ecru-dark: #D9CEB8;
  --gold:     #C9A84C;
  --gold-light: #E8C97A;
  --clay:     #8B5E3C;
  --cream:    #FAF7F2;
  --white:    #FFFFFF;
  --ink:      #1A1A18;
  --ink-soft: #3D3D38;
  --ink-muted: #6B6B62;
  --ink-faint: #9B9B90;
  --border:   rgba(28,56,41,0.12);
  --border-soft: rgba(28,56,41,0.07);
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 20px;
  --r-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--cream); color: var(--ink); font-family: 'DM Sans', sans-serif; font-weight: 400; line-height: 1.6; overflow-x: hidden; }

/* ─── PAGE SYSTEM ─── */
.page { display: block; min-height: 100vh; }
/* nav-link and nav-back as anchor tags */
a.nav-link, a.nav-link:link, a.nav-link:visited { text-decoration: none !important; }
a.nav-back, a.nav-back:link, a.nav-back:visited { text-decoration: none !important; color: var(--ink-muted); cursor: pointer; }
a.nav-back:hover { color: var(--forest); }
a.nav-brand, a.nav-brand:link, a.nav-brand:visited { text-decoration: none !important; color: var(--forest); }
a.module-card, a.module-card:link, a.module-card:visited { text-decoration: none; display: block; color: inherit; }

/* ─── SHARED NAV ─── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--forest); text-decoration: none; letter-spacing: -0.5px; cursor: pointer; flex-shrink: 0; }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 500; font-family: 'DM Sans', sans-serif; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--border); background: none; cursor: pointer; transition: all 0.18s; text-decoration: none; color: var(--ink-muted); }
.nav-link:hover { border-color: var(--forest); color: var(--forest); background: var(--ecru); }
.nav-link.active-page { background: var(--forest); color: var(--white); border-color: var(--forest); }
.nav-link-num { font-family: 'Syne', sans-serif; font-size: 0.65rem; font-weight: 700; opacity: 0.6; }
.nav-link.c1 .nav-link-num { color: #2A6040; }
.nav-link.c2 .nav-link-num { color: #2A4070; }
.nav-link.c3 .nav-link-num { color: #B84D12; }
.nav-link.c4 .nav-link-num { color: #5A3A8A; }
.nav-link.active-page .nav-link-num { color: var(--sage-light); opacity: 1; }
.nav-back { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-muted); cursor: pointer; transition: color 0.2s; background: none; border: none; font-family: 'DM Sans', sans-serif; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--border); flex-shrink: 0; }
.nav-back:hover { color: var(--forest); border-color: var(--forest); }
.nav-back svg { width: 14px; height: 14px; }
@media (max-width: 680px) {
  .site-nav { padding: 0 12px; gap: 6px; }
  .nav-brand { font-size: 0.95rem; line-height: 1.1; }
  .nav-brand span { display: block; }
  .nav-links { gap: 3px; flex: 1; justify-content: center; }
  .nav-link { padding: 5px 9px; font-size: 0; gap: 0; }
  .nav-link-num { font-size: 0.7rem; opacity: 1; }
  .nav-back { padding: 5px 10px; font-size: 0.75rem; }
  .nav-back svg { display: none; }
}

/* ─── SALARY HEADER (simulator pages) ─── */
.salary-header {
  background: var(--forest);
  padding: 28px 40px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.salary-header-label { font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-light); margin-bottom: 6px; }
.salary-input-wrap { display: flex; align-items: center; gap: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r); overflow: hidden; }
.salary-input-wrap .currency { padding: 0 14px; font-size: 1.1rem; color: var(--gold); font-weight: 500; }
.salary-input { background: none; border: none; outline: none; padding: 12px 16px 12px 0; font-size: 1.3rem; font-weight: 500; color: var(--white); font-family: 'Syne', sans-serif; width: 180px; }
.salary-input::placeholder { color: rgba(255,255,255,0.3); }
.salary-input-period { padding: 0 16px; font-size: 0.8rem; color: var(--sage-light); border-left: 1px solid rgba(255,255,255,0.15); }
.salary-computed { display: flex; gap: 24px; }
.salary-stat { }
.salary-stat-label { font-size: 0.72rem; color: var(--sage-light); margin-bottom: 2px; }
.salary-stat-val { font-size: 1.05rem; font-weight: 500; color: var(--white); font-family: 'Syne', sans-serif; }

/* ─── SIMULATOR CONTAINER ─── */
.sim-container { max-width: 780px; margin: 0 auto; padding: 16px 20px 24px; }
.seo-block { max-width: 780px; margin: 0 auto; padding: 0 20px 48px; }
.seo-block-inner { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 32px; }
.seo-block h2 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--forest); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.seo-block h3 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.seo-block p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.8; margin-bottom: 8px; }
.seo-block ul { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.8; padding-left: 18px; margin-bottom: 8px; }
.seo-block ul li { margin-bottom: 3px; }
.seo-block strong { color: var(--ink-soft); font-weight: 600; }
.sim-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.sim-section-header { padding: 16px 24px; background: var(--ecru); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 12px; }
.sim-section-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--forest); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--white); flex-shrink: 0; }
.sim-section-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--forest); }
.sim-section-sub { font-size: 0.8rem; color: var(--ink-muted); margin-top: 1px; }
.sim-body { padding: 24px; }
.sim-sublabel { font-size: 0.7rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sim-divider { height: 1px; background: var(--border-soft); margin: 20px 0; }

/* flow cards */
.flow-row { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr; align-items: stretch; gap: 4px; margin-bottom: 16px; }
.flow-card { background: var(--ecru); border-radius: var(--r-sm); padding: 12px 10px; display: flex; flex-direction: column; }
.flow-card.accent-red { background: #FDF0EF; }
.flow-card.accent-amber { background: #FDF6EC; }
.flow-card.accent-green { background: #EFF6F1; }
.flow-card-label { font-size: 0.68rem; color: var(--ink-faint); margin-bottom: 4px; line-height: 1.3; }
.flow-card.accent-red .flow-card-label { color: #B05050; }
.flow-card.accent-amber .flow-card-label { color: #8B6430; }
.flow-card.accent-green .flow-card-label { color: #2A6040; }
.flow-card-val { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); }
.flow-card.accent-red .flow-card-val { color: #C04A4A; }
.flow-card.accent-amber .flow-card-val { color: #A07030; }
.flow-card.accent-green .flow-card-val { color: #2A6040; }
.flow-card-rate { font-size: 0.68rem; color: var(--ink-faint); margin-top: 3px; }
.flow-card.accent-red .flow-card-rate { color: #C04A4A; opacity: 0.7; }
.flow-card.accent-amber .flow-card-rate { color: #A07030; opacity: 0.7; }
.flow-card.accent-green .flow-card-rate { color: #2A6040; opacity: 0.7; }
.flow-arrow { text-align: center; color: var(--ink-faint); font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* bar */
.bar-track { height: 6px; background: var(--ecru-dark); border-radius: 3px; overflow: hidden; display: flex; gap: 2px; margin-bottom: 8px; }
.bar-seg { border-radius: 2px; }
.bar-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.bar-item { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--ink-muted); }
.bar-dot { width: 8px; height: 8px; border-radius: 50%; }

/* metrics grid */
.metrics-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.metrics-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.metric-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
.metric-label { font-size: 0.72rem; color: var(--ink-faint); margin-bottom: 4px; line-height: 1.3; }
.metric-val { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.metric-val.red { color: #C04A4A; }
.metric-val.green { color: #2A6040; }
.metric-val.amber { color: #A07030; }
.metric-val.blue { color: #2A4070; }
.metric-sub { font-size: 0.68rem; color: var(--ink-faint); margin-top: 3px; }

/* highlight box */
.highlight { border-radius: var(--r-sm); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.highlight.forest { background: var(--forest); }
.highlight.forest .hl-label { font-size: 0.82rem; color: var(--white); display: flex; align-items: center; gap: 6px; }
.highlight.forest .hl-val { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--white); }
.highlight.ecru { background: var(--ecru); border: 1px solid var(--border); }
.highlight.ecru .hl-label { font-size: 0.82rem; color: var(--ink-muted); }
.highlight.ecru .hl-val { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--forest); }
.highlight.gold { background: #FDF6EC; border: 1px solid rgba(201,168,76,0.3); }
.highlight.gold .hl-label { font-size: 0.82rem; color: #8B6430; }
.highlight.gold .hl-val { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: #7A5520; }

/* solde impôt box */
.impot-box { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.impot-box-top { background: var(--forest); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.impot-box-top-label { font-size: 0.82rem; color: var(--white); font-weight: 500; }
.impot-box-top-val { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--white); }
.impot-box-bot { background: var(--white); border: none; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-soft); }
.impot-box-bot-label { font-size: 0.8rem; color: var(--ink-muted); }
.impot-months { display: flex; gap: 5px; align-items: center; }
.month-pill { font-size: 0.7rem; padding: 3px 8px; border-radius: 100px; background: var(--ecru); border: 1px solid var(--border); color: var(--ink-muted); font-weight: 500; }
.month-val { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--forest); margin-left: 6px; }

/* params form */
.params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.param-field label { font-size: 0.72rem; color: var(--ink-faint); display: block; margin-bottom: 5px; font-weight: 500; letter-spacing: 0.3px; }
.param-field input { width: 100%; background: var(--ecru); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 12px; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; color: var(--ink); outline: none; transition: border-color 0.2s; }
.param-field input:focus { border-color: var(--forest); }

/* cascade b2 */
.cascade-main { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 18px; }
.cascade-main-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cascade-main-label { font-size: 0.82rem; font-weight: 500; color: var(--ink-muted); }
.cascade-main-val { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.cascade-main-formula { font-size: 0.7rem; color: var(--ink-faint); }
.cascade-arrows { display: flex; justify-content: space-around; padding: 6px 60px 2px; }
.cascade-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cascade-arrow-line { width: 1px; height: 14px; background: var(--border); }
.cascade-children { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cascade-child { border-radius: var(--r-sm); padding: 12px 14px; }
.cascade-child.green { background: #EFF6F1; border: 1px solid rgba(42,96,64,0.2); }
.cascade-child.red { background: #FDF0EF; border: 1px solid rgba(192,74,74,0.2); }
.cascade-child-label { font-size: 0.72rem; font-weight: 500; margin-bottom: 4px; }
.cascade-child.green .cascade-child-label { color: #2A6040; }
.cascade-child.red .cascade-child-label { color: #8B3030; }
.cascade-child-val { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; }
.cascade-child.green .cascade-child-val { color: #1E4A30; }
.cascade-child.red .cascade-child-val { color: #C04A4A; }
.cascade-child-sub { font-size: 0.68rem; margin-top: 3px; opacity: 0.7; }
.cascade-child.green .cascade-child-sub { color: #2A6040; }
.cascade-child.red .cascade-child-sub { color: #8B3030; }

/* mensualité bar */
.mbar { display: flex; justify-content: space-between; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 16px; }
.mbar-label { font-size: 0.82rem; color: var(--ink-muted); }
.mbar-val { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); }

/* b3 recap */
.recap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 4px; }
.recap-card { background: var(--ecru); border-radius: var(--r-sm); padding: 10px 12px; }
.recap-label { font-size: 0.68rem; color: var(--ink-faint); margin-bottom: 3px; }
.recap-val { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.stop-row { display: flex; align-items: center; gap: 10px; background: var(--ecru); border-radius: var(--r-sm); padding: 10px 14px; }
.stop-row span { font-size: 0.82rem; color: var(--ink-muted); }
.stop-val { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 5px 10px; font-size: 0.85rem; font-weight: 500; font-family: 'Syne', sans-serif; min-width: 60px; text-align: center; }
.stop-input { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 5px 8px; font-size: 0.85rem; font-weight: 500; font-family: 'Syne', sans-serif; width: 64px; text-align: center; outline: none; transition: border-color 0.2s; color: var(--ink); }
.stop-input:focus { border-color: var(--forest); }
.stop-divider { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.stop-cap { font-size: 0.78rem; color: var(--ink-faint); }
.stop-cap strong { color: var(--ink-muted); }
.taux-row { display: flex; align-items: center; gap: 10px; background: var(--ecru); border-radius: var(--r-sm); padding: 10px 14px; margin-top: 8px; }
.taux-row span { font-size: 0.82rem; color: var(--ink-muted); flex: 1; }
.taux-val { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 5px 10px; font-size: 0.85rem; font-weight: 500; font-family: 'Syne', sans-serif; min-width: 60px; text-align: center; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-card { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; }
.compare-card.accent { border-color: var(--sage); }
.compare-title { font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.compare-title.green { color: var(--forest); }
.compare-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 4px 0; border-bottom: 1px solid var(--border-soft); }
.compare-row:last-of-type { border-bottom: none; }
.compare-row span { color: var(--ink-muted); }
.compare-row strong { color: var(--ink); font-weight: 500; }
.compare-row strong.g { color: #1A7A40; font-weight: 600; }
.compare-row strong.r { color: #C04A4A; font-weight: 600; }
.compare-total { background: var(--ecru); margin: 6px -6px -6px; padding: 6px 6px; border-radius: 0 0 var(--r-sm) var(--r-sm); display: flex; justify-content: space-between; font-size: 0.8rem; }
.compare-total span { font-weight: 600; color: var(--ink); }
.saving-badge { display: inline-flex; align-items: center; gap: 5px; background: #EFF6F1; color: #1E4A30; font-size: 0.72rem; padding: 3px 10px; border-radius: 100px; margin-top: 8px; border: 1px solid rgba(42,96,64,0.2); font-weight: 500; }

/* b4 dépenses */
.recap-net-bar { display: flex; justify-content: space-between; align-items: center; background: #EFF6F1; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; border: 1px solid rgba(42,96,64,0.15); }
.recap-net-label { font-size: 0.82rem; color: #2A4F3A; }
.recap-net-val { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--forest); }
.dep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dep-col { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; overflow: visible; position: relative; }
.dep-col-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-faint); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 5px; }
.dep-line { display: grid; grid-template-columns: 1fr 18px 56px; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.dep-line:last-of-type { border-bottom: none; padding-bottom: 0; }
.dep-left { display: flex; align-items: center; gap: 5px; min-width: 0; }
.dep-left .dicon { font-size: 13px; color: var(--ink-faint); flex-shrink: 0; }
.dep-left span { font-size: 0.78rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.tip-btn { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--ink-faint); cursor: default; background: var(--ecru); flex-shrink: 0; }
.tip { position: absolute; right: 20px; left: auto; top: 50%; transform: translateY(-50%); background: var(--ink); border: 1px solid var(--ink-soft); border-radius: var(--r-sm); padding: 8px 10px; font-size: 0.7rem; color: #F0EEE8; line-height: 1.6; white-space: nowrap; z-index: 200; display: none; min-width: 190px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.tip-wrap:hover .tip { display: block; }
.dep-input { background: var(--ecru); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 6px; font-size: 0.78rem; font-weight: 500; color: var(--ink); width: 56px; text-align: right; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; }
.dep-input:focus { border-color: var(--forest); }
.epargne-result { background: var(--ecru); border-radius: var(--r-sm); padding: 14px 16px; margin-top: 12px; }
.epargne-result-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.epargne-result-label { font-size: 0.82rem; color: var(--ink-muted); }
.epargne-result-val { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--forest); }
.epargne-bd { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.eitem { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: 8px; text-align: center; }
.eitem-label { font-size: 0.68rem; color: var(--ink-faint); margin-bottom: 2px; }
.eitem-val { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.impot-warn { display: flex; align-items: flex-start; gap: 10px; background: #FDF6EC; border-radius: var(--r-sm); padding: 10px 14px; margin-top: 10px; border-left: 3px solid var(--gold); }
.impot-warn-text { font-size: 0.78rem; color: #8B6430; line-height: 1.5; }
.impot-warn-text strong { font-weight: 600; }

/* b5 sim */
.sim-result-box { background: var(--forest); border-radius: var(--r-sm); padding: 18px 20px; margin-top: 2px; }
.sim-result-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.sim-result-label { font-size: 0.82rem; font-weight: 500; color: var(--white); }
.sim-result-val { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--white); }
.sim-result-formula { font-size: 0.7rem; color: var(--white); opacity: 0.75; margin-bottom: 12px; }
.sim-result-bd { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.sim-bi { background: rgba(255,255,255,0.08); border-radius: var(--r-sm); padding: 8px 10px; text-align: center; }
.sim-bi-label { font-size: 0.68rem; color: var(--sage-light); margin-bottom: 3px; }
.sim-bi-val { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--white); }
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 12px; }
.proj-card { border: 1px solid #C8D4DF; border-radius: var(--r-sm); padding: 14px; text-align: center; background: #F2F5F8; }
.proj-product { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; color: #2A3F5A; margin-bottom: 2px; }
.proj-rate { font-size: 0.7rem; color: var(--ink-faint); margin-bottom: 10px; }
.proj-row { display: flex; justify-content: space-between; font-size: 0.75rem; padding: 3px 0; border-bottom: 1px solid rgba(42,63,90,0.1); }
.proj-row:last-child { border-bottom: none; }
.proj-row span { color: var(--ink-faint); }
.proj-row strong { color: #2A3F5A; font-weight: 600; }
.proj-interests { font-size: 0.68rem; color: var(--ink-faint); margin-top: 6px; }

/* SEO text */
.seo-block { max-width: 780px; margin: 0 auto; padding: 0 20px 60px; }
.seo-block h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--forest); margin-bottom: 12px; }
.seo-block h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.seo-block p { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 10px; }
.seo-block ul { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.75; padding-left: 20px; margin-bottom: 10px; }
.seo-block ul li { margin-bottom: 4px; }
.seo-sources { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.seo-source-tag { font-size: 0.72rem; background: var(--ecru); border: 1px solid var(--border); border-radius: 100px; padding: 3px 12px; color: var(--ink-muted); text-decoration: none; transition: all 0.18s; }
a.seo-source-tag:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* ─── LANDING PAGE ─── */
#page-landing { }
.landing-hero {
  min-height: 72vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 40px 60px;
  background: var(--forest);
  position: relative; overflow: hidden;
}
.landing-hero-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; position: relative; }
.landing-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; color: var(--white); line-height: 1.1; letter-spacing: -0.5px; max-width: 700px; position: relative; }
.landing-hero h1 em { font-style: italic; color: var(--gold); }
.landing-hero-sub { font-size: 1.05rem; color: var(--sage-light); max-width: 480px; margin: 24px auto 0; line-height: 1.6; position: relative; }
.landing-hero-stats { display: flex; gap: 48px; margin-top: 48px; position: relative; }
.hero-stat-num { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.75rem; color: var(--sage-light); margin-top: 2px; }

/* modules */
.modules-section { max-width: 1040px; margin: 0 auto; padding: 60px 24px 80px; }
.modules-title { font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 32px; text-align: center; }
.modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.module-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 32px;
  cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.module-card::before { content: ''; position: absolute; inset: 0; background: var(--forest); opacity: 0; transition: opacity 0.25s; }
.module-card:hover { border-color: var(--forest-light); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(28,56,41,0.12); }
.module-card:hover::before { opacity: 0.03; }
.module-num { font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; position: relative; }
.module-url { font-weight: 400; letter-spacing: 0.5px; color: var(--ink-faint); text-transform: lowercase; font-family: 'DM Sans', sans-serif; }
.module-icon-svg { width: 48px; height: 48px; border-radius: 12px; background: var(--ecru); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; position: relative; border: 1px solid var(--border); }
.module-icon-svg svg { width: 24px; height: 24px; stroke: var(--forest); }
.module-card:hover .module-icon-svg { background: var(--forest); }
.module-card:hover .module-icon-svg svg { stroke: var(--white); }
.module-title { font-family: 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--forest); margin-bottom: 10px; position: relative; letter-spacing: -0.2px; line-height: 1.25; }
.module-desc { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.65; position: relative; }
.module-arrow-top { position: absolute; top: 28px; right: 28px; width: 32px; height: 32px; border-radius: 50%; background: var(--ecru); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.module-card:hover .module-arrow-top { background: var(--forest); border-color: var(--forest); }
.module-arrow-top svg { width: 14px; height: 14px; stroke: var(--ink-muted); stroke-width: 2; fill: none; }
.module-card:hover .module-arrow-top svg { stroke: var(--white); }
.module-badge { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; position: relative; }
.badge-green { background: #EFF6F1; color: #2A6040; }
.badge-blue { background: #EEF3FD; color: #2A4070; }
.badge-amber { background: #FDF6EC; color: #8B6430; }
.badge-orange { background: #FEF0E7; color: #B84D12; border: 1px solid rgba(184,77,18,0.25); }
.badge-purple { background: #F2EEF9; color: #5A3A8A; }
.module-sub-parts { font-size: 0.75rem; color: var(--ink-faint); margin-top: 10px; position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.sub-part { display: inline-flex; align-items: center; gap: 4px; background: var(--ecru); border-radius: 100px; padding: 3px 10px; border: 1px solid var(--border); color: var(--ink-muted); font-weight: 500; }

/* landing footer */

/* ─── ANNOT ─── */
.sim-annot { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 0.75rem; color: var(--ink-faint); line-height: 1.5; }
.sim-annot svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; stroke: var(--ink-faint); fill: none; stroke-width: 2; }
.sim-annot-warning { background: #FEF3E7; border: 1px solid #F5A623; border-radius: var(--r-sm); padding: 10px 14px; color: #B35C00; }
.sim-annot-warning svg { stroke: #B35C00; fill: none; width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.sim-annot-warning strong { color: #B35C00; font-weight: 600; }

/* ─── STATUS SELECTOR ─── */
.status-selector { max-width: 780px; margin: 0 auto; padding: 24px 20px 0; }
.status-selector-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--white); font-size: 0.82rem; font-family: 'DM Sans', sans-serif; font-weight: 500; color: var(--ink-muted); cursor: pointer; transition: all 0.18s; }
.status-pill:hover { border-color: var(--forest-light); color: var(--forest); }
.status-pill.active { background: var(--forest); border-color: var(--forest); color: var(--white); }
.status-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.status-pill.active .status-pill-dot { opacity: 1; background: var(--gold); }
.status-cotis-detail { margin-top: 10px; padding: 10px 16px; background: var(--ecru); border-radius: var(--r-sm); border: 1px solid var(--border-soft); font-size: 0.75rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 12px; }
.status-cotis-detail span { display: inline-flex; align-items: center; gap: 4px; }
.status-cotis-detail strong { color: var(--ink-muted); }

/* ─── SHARED SITE FOOTER ─── */
.site-footer { background: var(--forest); padding: 32px 40px; text-align: center; margin-top: auto; }
.site-footer p { font-size: 0.82rem; color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.8; }
.site-footer a:hover { opacity: 1; }
/* Landing footer */
.landing-footer { background: var(--forest); padding: 40px; text-align: center; }
.landing-footer p { font-size: 0.82rem; color: var(--white); }
.landing-footer a { color: var(--white); text-decoration: none; opacity: 0.8; }
.landing-footer a:hover { opacity: 1; }
/* ─── FORCE LIGHT MODE — ignore dark mode preferences ─── */
:root { color-scheme: light only; }
html { background: var(--cream) !important; }
body { background: var(--cream) !important; color: var(--ink) !important; }
@media (prefers-color-scheme: dark) {
  html, body { background: var(--cream) !important; color: var(--ink) !important; }
  :root {
    --white: #FFFFFF;
    --cream: #FAF7F2;
    --ecru: #F5F0E8;
    --ink: #1A1A18;
    --ink-soft: #3D3D38;
    --ink-muted: #6B6B62;
    --ink-faint: #9B9B90;
    --border: rgba(28,56,41,0.12);
  }
}

@media (max-width: 700px) {
  .modules-grid { grid-template-columns: 1fr; }
  .landing-hero-stats { gap: 24px; }
  .salary-header { padding: 20px; flex-wrap: wrap; gap: 16px; }
  .sim-body { padding: 16px; }

  /* Bloc 01 — flow-row : 2×2 grid au lieu de masquer les 2 dernières cartes */
  .flow-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .flow-row .flow-card { }
  .flow-row .flow-arrow { display: none; }
  /* Repositionner les 4 cartes en grille 2×2 */
  .flow-row .flow-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .flow-row .flow-card:nth-child(3) { grid-column: 2; grid-row: 1; }
  .flow-row .flow-card:nth-child(5) { grid-column: 1; grid-row: 2; display: block; }
  .flow-row .flow-card:nth-child(7) { grid-column: 2; grid-row: 2; display: block; }

  /* Bloc 03 — stop-row : 2 lignes sur mobile (label+valeur / slider) */
  .stop-row { flex-wrap: wrap; gap: 6px; }
  .stop-row > span:first-child { flex: 1; min-width: 0; }
  .stop-row input[type="range"] { width: 100%; flex: 0 0 100%; order: 10; margin-top: 2px; }
  .stop-row .stop-input { margin-left: auto; }
  .stop-cap { width: 100%; order: 11; font-size: 0.8rem; }
  .stop-divider { display: none; }
  .stop-divider { display: none; }

  /* Bloc 03 — saving-badge toujours visible */
  .saving-badge { display: inline-flex; margin-top: 10px; }

  /* Simulateur 02 — cascade-main : empiler label et montant sur mobile */
  .cascade-main-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cascade-main-val { font-size: 1.2rem; }

  /* Simulateurs 02 & 03 — params-grid : 1 colonne sur mobile pour hauteurs égales */
  .params-grid { grid-template-columns: 1fr; }

  .dep-cols { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .site-nav { padding: 0 16px; }
  .landing-hero { padding: 60px 20px 40px; }
  .salary-computed { gap: 16px; flex-wrap: wrap; }
}
/* ─── SIM INTRO ─── */
.sim-intro { max-width: 780px; margin: 0 auto; padding: 20px 20px 0; }
.sim-intro-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.sim-intro h2 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; font-weight: 400; color: var(--forest); line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.3px; }
.sim-intro h2 em { font-style: italic; color: var(--forest-light); }
.sim-intro-desc { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.7; max-width: 640px; margin-bottom: 0; }
.sim-intro-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-intro-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; }
.sim-intro-pill::before { content: '✓'; color: var(--forest); font-size: 0.7rem; font-weight: 700; }

/* ─── MENTIONS LÉGALES ─── */
.mentions-section { margin-bottom: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.mentions-section-title { padding: 12px 20px; background: var(--ecru); border-bottom: 1px solid var(--border-soft); font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--forest); }
.mentions-body { padding: 16px 20px; }
.mentions-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.85rem; }
.mentions-row:last-child { border-bottom: none; }
.mentions-row span { color: var(--ink-muted); flex-shrink: 0; }
.mentions-row strong { color: var(--ink); font-weight: 500; text-align: right; }
.mentions-text p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 8px; }
.mentions-text p:last-child { margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-size: 0.9rem; font-weight: 500; color: var(--ink); cursor: pointer; gap: 12px; transition: color 0.18s; }
.faq-q:hover { color: var(--forest); }
.faq-arrow { font-size: 1rem; color: var(--ink-faint); transition: transform 0.25s; flex-shrink: 0; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 4px 14px; font-size: 0.85rem; color: var(--ink-muted); line-height: 1.75; }
.faq-a.open { display: block; }
