:root {
  /* ==========================================================================
     WEBIUM TOOLS — DESIGN SYSTEM FINTECH (Light Mode par défaut)
     ========================================================================== */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-hover: #eef2ff;
  --header-bg: rgba(255, 255, 255, 0.88);
  --sticky-bg: rgba(255, 255, 255, 0.95);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-focus: rgba(79, 70, 229, 0.55);

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.10);

  --color-success: #059669;
  --bg-success: rgba(5, 150, 105, 0.10);
  --color-warning: #d97706;
  --bg-warning: rgba(217, 119, 6, 0.10);
  --color-danger: #dc2626;
  --bg-danger: rgba(220, 38, 38, 0.10);
  --color-info: #2563eb;
  --bg-info: rgba(37, 99, 235, 0.10);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(79, 70, 229, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Alias rétrocompatibles pour les 100 calculateurs existants */
  --bg: var(--bg-primary);
  --card: var(--bg-surface);
  --card2: var(--bg-elevated);
  --card-hover: var(--bg-hover);
  --bd: var(--border-subtle);
  --bd-focus: var(--border-focus);
  --tx: var(--text-main);
  --mu: var(--text-muted);
  --gr: var(--color-success);
  --gr-bg: var(--bg-success);
  --rd: var(--color-danger);
  --rd-bg: var(--bg-danger);
  --am: var(--color-warning);
  --am-bg: var(--bg-warning);
  --bl: var(--color-info);
  --bl-bg: var(--bg-info);
  --bl2: var(--color-info);
  --pu: #7c3aed;
  --pu-bg: rgba(124, 58, 237, 0.10);
  --in: var(--accent);
  --r: var(--radius-lg);
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --bg-elevated: #1a2333;
  --bg-hover: #1f2a40;
  --header-bg: rgba(11, 15, 25, 0.88);
  --sticky-bg: rgba(13, 17, 30, 0.95);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-focus: rgba(99, 102, 241, 0.6);

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.16);

  --color-success: #10b981;
  --bg-success: rgba(16, 185, 129, 0.14);
  --color-warning: #fbbf24;
  --bg-warning: rgba(251, 191, 36, 0.14);
  --color-danger: #f87171;
  --bg-danger: rgba(248, 113, 113, 0.14);
  --color-info: #60a5fa;
  --bg-info: rgba(96, 165, 250, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.35);

  --pu: #a855f7;
  --pu-bg: rgba(168, 85, 247, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0; padding: 0; min-height: 100%;
  width: 100%; max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg-primary); color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.5;
  display: flex; flex-direction: column;
  transition: background-color 0.2s ease, color 0.15s ease;
}

.tabular-nums { font-variant-numeric: tabular-nums; }

button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 15px; max-width: 100%; box-sizing: border-box; }

/* En-tête Global MyFinance */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--sat)) 20px 10px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.brand-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--tx);
  min-width: 0;
}
.brand-link img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.4); flex-shrink: 0; }
.brand-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.brand-badge {
  font-size: 11px; font-weight: 700; color: #a855f7;
  background: rgba(168, 85, 247, 0.15); padding: 2px 8px; border-radius: 99px;
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.theme-toggle-btn .theme-icon { display: inline-flex; align-items: center; color: var(--accent); }
@media (max-width: 600px) {
  .theme-toggle-btn { padding: 0 9px; height: 34px; }
  .theme-toggle-btn .theme-label { display: none; }
}
.btn-header-app {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap; flex-shrink: 0;
}
.btn-header-app:hover { transform: translateY(-1px); opacity: 0.95; }

@media (max-width: 600px) {
  .site-header {
    padding: calc(8px + var(--sat)) 12px 8px;
    gap: 8px;
  }
  .brand-link { gap: 6px; }
  .brand-title { font-size: 15px; }
  .brand-badge { font-size: 10px; padding: 2px 6px; }
  .btn-header-app { padding: 6px 11px; font-size: 12px; }
}
@media (max-width: 420px) {
  .brand-badge { display: none; }
}

/* Conteneur Principal */
.tool-page {
  max-width: 1100px; width: 100%; min-width: 0;
  margin: 0 auto; padding: 20px 16px calc(110px + var(--sab));
  flex: 1; box-sizing: border-box;
}
@media (max-width: 480px) {
  .tool-page { padding: 16px 12px calc(100px + var(--sab)); }
}

/* Fil d'Ariane SEO */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--mu); margin-bottom: 16px;
}
.breadcrumbs a { color: var(--mu); text-decoration: none; transition: color .15s; }
.breadcrumbs a:hover { color: var(--tx); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: var(--bl2); font-weight: 600; }

/* En-tête de l'outil */
.tool-hero {
  margin-bottom: 24px; text-align: left;
}
.tool-category-pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: 3px 10px; border-radius: 99px;
  background: var(--pu-bg); color: #c084fc; margin-bottom: 8px;
}
.tool-title {
  font-size: clamp(22px, 4.5vw, 34px); font-weight: 900;
  letter-spacing: -.6px; line-height: 1.25; margin-bottom: 8px;
  overflow-wrap: break-word; word-break: break-word;
}
.tool-lead {
  font-size: 15px; color: var(--text-secondary); max-width: 820px; line-height: 1.5;
}

/* Grille de Calculateur */
.calculator-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px;
  align-items: start; margin-bottom: 36px;
  width: 100%; min-width: 0; max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 860px) {
  .calculator-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Cartes */
.card {
  background: var(--card); border: 1px solid var(--bd);
  border-radius: var(--r); padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
@media (max-width: 480px) {
  .card { padding: 16px 14px; }
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bd);
  flex-wrap: wrap; gap: 8px; min-width: 0;
}
.card-title {
  font-size: 15px; font-weight: 800; color: var(--tx);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; overflow-wrap: anywhere; word-break: break-word;
  min-width: 0; max-width: 100%;
}

/* Formulaires & Champs */
.form-group { margin-bottom: 16px; }
.form-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px;
  flex-wrap: wrap; gap: 4px;
}
.form-hint { font-size: 11px; font-weight: 400; color: var(--mu); }
.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-field {
  width: 100%; height: 46px; border-radius: 12px;
  border: 1px solid var(--bd); background: #0d1424;
  padding: 0 40px 0 14px; color: var(--tx); font-size: 15px; font-weight: 600;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input-field:focus { border-color: var(--in); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.input-suffix {
  position: absolute; right: 14px; font-size: 13px; font-weight: 700;
  color: var(--mu); pointer-events: none;
}

/* Sliders & Range */
.range-wrap { margin-top: 8px; }
.range-slider {
  width: 100%; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.1); outline: none;
  accent-color: #8b5cf6; cursor: pointer;
}
.range-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--mu); margin-top: 4px;
}

/* Choix par Boutons / Pills */
.choice-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px;
  width: 100%; min-width: 0;
}
@media (max-width: 360px) {
  .choice-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}
.choice-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 8px; border-radius: 10px; border: 1px solid var(--bd);
  background: var(--bg-elevated); color: var(--tx); font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .15s ease; text-align: center;
  min-width: 0;
}
.choice-btn.active, .choice-btn:active {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}
.choice-btn small { font-size: 10.5px; color: var(--mu); margin-top: 2px; }

/* Switch Toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border-subtle);
  gap: 8px;
}
.switch {
  position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider-switch {
  position: absolute; cursor: pointer; inset: 0;
  background-color: var(--border-strong); border-radius: 34px;
  transition: .2s ease;
}
.slider-switch:before {
  position: absolute; content: ""; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background-color: white;
  border-radius: 50%; transition: .2s ease;
}
input:checked + .slider-switch { background-color: var(--gr); }
input:checked + .slider-switch:before { transform: translateX(20px); }

/* Zone de Résultats */
.results-hero {
  background: linear-gradient(135deg, var(--bg-success), var(--bg-surface));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px; padding: 18px; margin-bottom: 16px;
  text-align: center;
  min-width: 0;
}
.results-hero-label {
  font-size: 12px; font-weight: 800; color: var(--color-success); text-transform: uppercase; letter-spacing: .5px;
}
.results-hero-val {
  font-size: clamp(24px, 6vw, 38px); font-weight: 900;
  color: var(--color-success); letter-spacing: -1px; margin: 4px 0; font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
.results-hero-sub { font-size: 12.5px; color: var(--text-muted); }

/* Grille KPI Secondaires */
.kpi-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
  width: 100%; min-width: 0;
}
@media (max-width: 350px) {
  .kpi-row { grid-template-columns: 1fr; gap: 8px; }
}
.kpi-card {
  background: var(--bg-elevated); border: 1px solid var(--bd);
  border-radius: 12px; padding: 12px;
  min-width: 0;
}
.kpi-card .k-label { font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; }
.kpi-card .k-val { font-size: 19px; font-weight: 800; color: var(--tx); margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.kpi-card .k-sub { font-size: 11px; color: var(--mu); margin-top: 2px; }

/* Table Récapitulative */
.breakdown-table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px;
  word-break: break-word;
}
.breakdown-table tr { border-bottom: 1px solid var(--border-subtle); }
.breakdown-table tr:last-child { border-bottom: none; }
.breakdown-table td { padding: 9px 4px; }
.breakdown-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.breakdown-table .row-total {
  font-weight: 800; font-size: 14px; color: var(--tx); border-top: 1px solid var(--bd);
}

/* Graphique */
.chart-box {
  position: relative; height: 210px; margin-top: 14px;
}

/* Section Contenu SEO / Guide & FAQ */
.seo-section {
  border-top: 1px solid var(--bd); padding-top: 36px; margin-top: 20px;
}
.seo-section h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; color: var(--text-main);
}
.seo-section h3 {
  font-size: 17px; font-weight: 700; margin: 20px 0 8px; color: var(--text-main);
}
.seo-section p {
  color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px;
}
.seo-section ul, .seo-section ol {
  color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; margin-left: 20px; margin-bottom: 14px;
}
.seo-section li { margin-bottom: 6px; }

.callout-box {
  background: rgba(99, 102, 241, 0.08); border-left: 4px solid var(--in);
  border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 20px 0; font-size: 13.5px; color: #e0e7ff;
}

/* FAQ Accordéon */
.faq-grid { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.faq-card {
  background: var(--card); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden;
}
.faq-card summary {
  padding: 14px 16px; font-size: 14.5px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--tx);
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary:after { content: "＋"; font-size: 16px; color: var(--mu); }
.faq-card[open] summary:after { content: "−"; }
.faq-content { padding: 0 16px 14px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* Maillage Interne Autres Outils */
.related-tools {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--bd);
  width: 100%; min-width: 0;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px;
  width: 100%; min-width: 0;
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
.tool-link-card {
  background: var(--card); border: 1px solid var(--bd); border-radius: 12px;
  padding: 14px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s;
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.tool-link-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.5); }
.tool-link-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); overflow-wrap: break-word; }
.tool-link-card p { font-size: 12px; color: var(--mu); line-height: 1.4; overflow-wrap: break-word; }

/* Sticky CTA Banner en bas d'écran */
.sticky-lead-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--sticky-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
  padding: calc(10px + var(--sab)/2) 16px calc(10px + var(--sab));
  animation: slideUp 0.3s ease-out;
  max-width: 100vw;
  box-sizing: border-box;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sticky-lead-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-width: 0; width: 100%; box-sizing: border-box;
}
.sticky-lead-text {
  display: flex; align-items: center; gap: 12px; font-size: 13.5px;
  min-width: 0;
}
.sticky-lead-icon { font-size: 24px; flex-shrink: 0; }
.sticky-lead-title { font-weight: 800; color: var(--text-main); line-height: 1.3; overflow-wrap: break-word; }
.sticky-lead-desc { color: var(--text-secondary); font-size: 12px; }
.sticky-lead-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; text-decoration: none;
  font-size: 13.5px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff; box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
  transition: transform .15s, box-shadow .15s; flex-shrink: 0;
}
.sticky-lead-cta:hover { transform: scale(1.02); box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6); }

/* ==========================================================================
   ESPACES DE MONÉTISATION, PUBLICITÉ ET AFFILIATION PARTENAIRE
   ========================================================================== */

/* Encart publicitaire supérieur (AdSense / Espace Partenaire) */
.ad-slot-top {
  margin: 14px 0 20px;
  width: 100%;
}
.ad-placeholder-banner {
  background: var(--bg-elevated);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.ad-placeholder-banner:hover {
  border-color: rgba(99, 102, 241, 0.55);
}
.ad-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mu);
}
.ad-badge-tag {
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ad-info-link {
  font-size: 10.5px;
  color: var(--mu);
}
.ad-banner-body {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.ad-icon-box {
  font-size: 22px;
  flex-shrink: 0;
}
.ad-text-box {
  flex: 1;
  min-width: 0;
}
.ad-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.ad-subline {
  font-size: 11.5px;
  color: var(--mu);
  margin-top: 1px;
}
.ad-cta-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.ad-cta-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Bloc de Monétisation sous le résultat */
.monetization-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.monetization-card {
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-surface));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.monetization-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.25);
}
.monetization-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-partner {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.16);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-pill-hot {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  padding: 2px 8px;
  border-radius: 99px;
}
.badge-pill-verified {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(52, 211, 153, 0.14);
  padding: 2px 8px;
  border-radius: 99px;
}
.badge-pill-new {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
  padding: 2px 8px;
  border-radius: 99px;
}
.monetization-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
}
.monetization-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.monetization-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.monetization-perks li {
  font-size: 12.5px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.monetization-action-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-monetization-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.btn-monetization-cta:hover {
  transform: translateY(-1px);
}
.btn-monetization-cta.stripe-cta {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.btn-monetization-cta.stripe-cta:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}
.btn-monetization-cta.partner-cta {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.btn-monetization-cta.partner-cta:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.btn-monetization-cta.app-cta {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.btn-monetization-cta.app-cta:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}
.cta-arrow {
  font-size: 15px;
  transition: transform .15s ease;
}
.btn-monetization-cta:hover .cta-arrow {
  transform: translateX(3px);
}
.monetization-guarantee {
  font-size: 11.5px;
  color: var(--mu);
  text-align: center;
}

@media (max-width: 640px) {
  .ad-placeholder-banner { padding: 10px 12px; }
  .monetization-card { padding: 14px 12px; }
  .ad-banner-body { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ad-cta-btn { width: 100%; text-align: center; }
  .btn-monetization-cta { font-size: 13px; padding: 11px 14px; width: 100%; justify-content: center; }
}

@media (max-width: 720px) {
  .sticky-lead-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; }
  .sticky-lead-text { justify-content: center; }
  .sticky-lead-desc { display: none; }
  .sticky-lead-cta { width: 100%; justify-content: center; }
}


/* ==========================================================================
   EXPORT RAPPORT PDF & FOOTER LÉGAL / SOURCES OFFICIELLES 2026
   ========================================================================== */

.tool-pdf-legal-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-pdf-action-bar {
  display: flex;
  width: 100%;
}

.btn-export-pdf-report {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(30, 41, 59, 0.92));
  color: #ecfdf5;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-export-pdf-report:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, 0.75);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(30, 41, 59, 0.98));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.22);
}

.btn-export-pdf-report:active {
  transform: translateY(0);
}

.btn-pdf-icon {
  font-size: 16px;
  line-height: 1;
}

.btn-pdf-label {
  letter-spacing: -0.2px;
}

.btn-pdf-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

@media (max-width: 460px) {
  .btn-pdf-badge { display: none; }
}

.tool-legal-sources-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-left: 3px solid #6366f1;
  border-radius: 10px;
  padding: 12px 14px;
}

.tool-legal-sources-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tool-sources-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-sources-list li {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.tool-sources-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #818cf8;
  font-weight: bold;
}

.tool-legal-sources-text {
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

/* Conteneur d'impression A4 dédié (masqué à l'écran, exclusif en @media print) */
#webium-print-report {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 14mm;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body > *:not(#webium-print-report) {
    display: none !important;
  }

  #webium-print-report {
    display: block !important;
    width: 100% !important;
    color: #0f172a !important;
    background: #ffffff !important;
  }

  .wpr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 2px solid #0f172a;
    margin-bottom: 16px;
  }

  .wpr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .wpr-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #0f172a;
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.5px;
  }

  .wpr-brand-name {
    font-size: 15pt;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1.1;
  }

  .wpr-brand-sub {
    font-size: 8.5pt;
    color: #475569;
    font-weight: 600;
    margin-top: 2px;
  }

  .wpr-meta {
    text-align: right;
    font-size: 8.5pt;
    color: #334155;
  }

  .wpr-meta-ref {
    font-weight: 800;
    color: #0f172a;
    font-size: 9pt;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 3px;
  }

  .wpr-title-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .wpr-cat-pill {
    font-size: 8pt;
    font-weight: 800;
    text-transform: uppercase;
    color: #047857;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
  }

  .wpr-tool-title {
    font-size: 14pt;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
  }

  .wpr-tool-lead {
    font-size: 9pt;
    color: #475569;
    margin: 0;
  }

  .wpr-hero-box {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wpr-hero-label {
    font-size: 9pt;
    font-weight: 800;
    text-transform: uppercase;
    color: #065f46;
    letter-spacing: 0.4px;
  }

  .wpr-hero-sub {
    font-size: 8.5pt;
    color: #047857;
    margin-top: 2px;
  }

  .wpr-hero-val {
    font-size: 18pt;
    font-weight: 900;
    color: #065f46;
    text-align: right;
  }

  .wpr-section-title {
    font-size: 10.5pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0f172a;
    padding-bottom: 5px;
    border-bottom: 1.5px solid #cbd5e1;
    margin: 14px 0 8px 0;
  }

  .wpr-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 9.5pt;
  }

  .wpr-table th,
  .wpr-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
  }

  .wpr-table tr:nth-child(even) td {
    background: #f8fafc;
  }

  .wpr-table td.wpr-val-col {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
  }

  .wpr-footer {
    margin-top: 20px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 8pt;
    color: #475569;
    line-height: 1.4;
    page-break-inside: avoid;
  }

  .wpr-footer strong {
    color: #0f172a;
  }

  .wpr-sources-box {
    margin: 12px 0;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 3.5px solid #0f172a;
    border-radius: 4px;
    page-break-inside: avoid;
  }

  .wpr-sources-title {
    font-size: 8.5pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #0f172a;
    margin-bottom: 4px;
  }

  .wpr-sources-list {
    margin: 0;
    padding-left: 16px;
    font-size: 8pt;
    color: #334155;
    line-height: 1.4;
  }

  .wpr-sources-list li {
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   FOOTER GLOBAL UNIFIÉ MYFINANCE / WEBIUM (PORTAIL, OUTILS & PAGES LÉGALES)
   ========================================================================== */
.site-footer-global {
  margin-top: 60px;
  background: #090d16;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  font-size: 13px;
  padding: 48px 20px 32px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.3fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col-brand .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.footer-brand-by {
  font-size: 12px;
  color: #818cf8;
  margin-left: 6px;
  font-weight: 600;
}

.footer-mission-text {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.footer-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: #a5b4fc;
}

.footer-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.footer-col-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: #f8fafc;
  transform: translateX(2px);
}

.footer-legal-link {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.footer-security-note {
  margin-top: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-success);
}

.footer-security-note strong {
  color: #6ee7b7;
}

.footer-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.12);
  margin: 28px 0;
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.55;
  color: #64748b;
}

.footer-disclaimer strong {
  color: #94a3b8;
}

.footer-bottom-credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.08);
}

.footer-bottom-credits strong {
  color: var(--text-secondary);
}

.footer-copyright-line {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: #818cf8;
}

.footer-bottom-links .sep {
  color: #475569;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-credits {
    flex-direction: column;
    align-items: flex-start;
  }
}
