/**
 * Vellao Fiscalité — CSS spécifique
 * Charge en complément de vellao-style.css
 * Composants : warning-block, info-callout, exemple, pillars, fiscal-table, calc, etc.
 */

/* HERO FISCALITÉ */
.vfisc-page .hero-fiscal {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.vfisc-page .hero-fiscal::before {
  content: ""; position: absolute; inset: -10% -5%; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,212,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,212,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 30% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 30% 50%, #000 20%, transparent 75%);
}
.vfisc-page .hero-fiscal > * { position: relative; z-index: 1; }

.vfisc-page .update-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0F1F1A; border: 1px solid var(--green);
  color: var(--green);
  padding: 6px 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 2px; margin-bottom: 18px;
}
.vfisc-page .update-pill::before { content: "●"; font-size: 14px; }

/* WARNING BLOCK (rouge - 2026 changes, AMF, sanctions) */
.vfisc-page .warning-block {
  background: #1A0F0F;
  border: 1px solid #DC2626;
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  border-radius: 2px;
  margin: 32px 0;
  max-width: 880px;
}
.vfisc-page .warning-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 700; color: var(--red);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
}
.vfisc-page .warning-title::before { content: "⚠ "; }
.vfisc-page .warning-block p { font-size: 15.5px; color: var(--text); margin-bottom: 12px; }
.vfisc-page .warning-block p:last-child { margin-bottom: 0; }
.vfisc-page .warning-block strong { color: #FCA5A5; }

/* INFO CALLOUT (jaune - explications, alertes douces) */
.vfisc-page .info-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  padding: 20px 24px;
  border-radius: 2px;
  margin: 24px 0;
  max-width: 880px;
}
.vfisc-page .info-callout-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--yellow);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 10px;
}
.vfisc-page .info-callout p { font-size: 15px; color: var(--text-muted); margin: 0; }
.vfisc-page .info-callout p strong { color: var(--text); }

/* PILLARS GRID (3 colonnes) */
.vfisc-page .pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; margin: 28px 0;
}
@media (max-width: 900px) { .vfisc-page .pillars { grid-template-columns: 1fr; } }
.vfisc-page .pillar {
  background: var(--surface);
  padding: 24px 26px;
}
.vfisc-page .pillar-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: var(--yellow);
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.vfisc-page .pillar h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; line-height: 1.25;
}
.vfisc-page .pillar p {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.55;
}
.vfisc-page .pillar p strong { color: var(--text); }

/* FISCAL TABLE */
.vfisc-page .fiscal-table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
}
.vfisc-page .fiscal-table th {
  background: var(--surface-2); color: var(--yellow);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.vfisc-page .fiscal-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); vertical-align: middle;
}
.vfisc-page .fiscal-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text); font-weight: 600;
}
.vfisc-page .fiscal-table tr:last-child td { border-bottom: 0; }
.vfisc-page .fiscal-table tr.highlight {
  background: linear-gradient(90deg, rgba(255,212,0,0.06), transparent 80%);
  box-shadow: inset 2px 0 0 var(--yellow);
}
.vfisc-page .fiscal-table tr.highlight td { color: var(--text); }
.vfisc-page .fiscal-table .verdict-cell {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.vfisc-page .fiscal-table .verdict-cell.pfu-win { color: var(--yellow); }

/* EXEMPLE BLOCK */
.vfisc-page .example {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; padding: 28px 32px;
  margin: 32px 0; max-width: 880px;
}
.vfisc-page .example-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 700; color: var(--yellow);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 14px;
}
.vfisc-page .example-title::before { content: "Σ "; }
.vfisc-page .example h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text);
}
.vfisc-page .example p {
  font-size: 15px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 12px;
}
.vfisc-page .example p:last-child { margin-bottom: 0; }
.vfisc-page .example .calc-line {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg); padding: 10px 14px;
  border-radius: 2px; border: 1px solid var(--border-bright);
  margin: 8px 0; font-size: 13.5px; color: var(--text);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.vfisc-page .example .calc-line .label { color: var(--text-dim); }
.vfisc-page .example .calc-line .value { color: var(--yellow); font-weight: 700; }
.vfisc-page .example .calc-line.total {
  background: rgba(255,212,0,0.05);
  border-color: var(--yellow);
}
.vfisc-page .example .calc-line.total .value { font-size: 16px; }

/* STEPS NUMBERED */
.vfisc-page .steps {
  list-style: none; counter-reset: step;
  padding: 0; max-width: 880px; margin: 24px 0;
}
.vfisc-page .steps li {
  counter-increment: step; position: relative;
  padding: 20px 24px 20px 80px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; margin-bottom: 12px;
  font-size: 15px; line-height: 1.6; color: var(--text-muted);
}
.vfisc-page .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 24px; top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px; font-weight: 700; color: var(--yellow);
}
.vfisc-page .steps li strong { color: var(--text); font-weight: 600; }
.vfisc-page .steps li code {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg); color: var(--yellow);
  padding: 2px 6px; border-radius: 2px;
  font-size: 13px; border: 1px solid var(--border);
}

/* FAQ */
.vfisc-page .faq-list { max-width: 880px; margin: 24px 0; }
.vfisc-page .faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; margin-bottom: 8px; overflow: hidden;
}
.vfisc-page .faq-item summary {
  cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 15px; color: var(--text);
  list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.vfisc-page .faq-item summary::after {
  content: "+"; font-family: 'IBM Plex Mono', monospace;
  font-size: 22px; color: var(--yellow);
}
.vfisc-page .faq-item summary::-webkit-details-marker { display: none; }
.vfisc-page .faq-item summary:hover { background: var(--surface-2); }
.vfisc-page .faq-item[open] summary::after { content: "−"; }
.vfisc-page .faq-item .faq-content {
  padding: 0 22px 20px; font-size: 14.5px;
  color: var(--text-muted); line-height: 1.6;
}
.vfisc-page .faq-item .faq-content strong { color: var(--text); }
.vfisc-page .faq-item .faq-content a { color: var(--yellow); }

/* CTA BANNER */
.vfisc-page .cta-banner {
  background: linear-gradient(135deg, var(--yellow) 0%, #FFA500 100%);
  margin: 48px auto 0; max-width: 1240px;
  padding: 48px 32px; border-radius: 2px;
  text-align: center; position: relative; overflow: hidden;
}
.vfisc-page .cta-banner h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; color: var(--bg);
  line-height: 1.1; margin-bottom: 14px;
}
.vfisc-page .cta-banner p {
  font-size: 15.5px; color: rgba(0,0,0,0.7);
  max-width: 560px; margin: 0 auto 22px;
}
.vfisc-page .cta-banner-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--yellow);
  padding: 14px 26px; font-weight: 600; font-size: 14px;
  font-family: 'IBM Plex Mono', monospace; border-radius: 2px;
}
.vfisc-page .cta-banner-btn::after { content: "→"; }

/* CALCULATEUR (vfisc-calc) */
.vfisc-page .calc-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; padding: 32px;
  margin: 24px 0; position: relative; overflow: hidden;
}
.vfisc-page .calc-block::before {
  content: ""; position: absolute; top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,212,0,0.10), transparent 70%);
  pointer-events: none;
}
.vfisc-page .calc-inner { position: relative; z-index: 1; }
.vfisc-page .calc-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--yellow);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px;
}
.vfisc-page .calc-header::before { content: "// "; }
.vfisc-page .calc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 28px;
}
@media (max-width: 780px) { .vfisc-page .calc-grid { grid-template-columns: 1fr; } }
.vfisc-page .calc-input-group { display: flex; flex-direction: column; gap: 8px; }
.vfisc-page .calc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; justify-content: space-between; align-items: baseline;
}
.vfisc-page .calc-label .val {
  color: var(--yellow); font-size: 18px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}
.vfisc-page .calc-input-row { display: flex; align-items: center; gap: 12px; }
.vfisc-page .calc-slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px;
  background: var(--border-bright); border-radius: 3px; outline: none;
}
.vfisc-page .calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; background: var(--yellow);
  border-radius: 2px; cursor: pointer;
}
.vfisc-page .calc-slider::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--yellow);
  border-radius: 2px; cursor: pointer; border: none;
}
.vfisc-page .calc-input-num {
  background: var(--bg); border: 1px solid var(--border-bright);
  color: var(--text); padding: 10px 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  border-radius: 2px; width: 130px; text-align: right; outline: none;
}
.vfisc-page .calc-input-num:focus { border-color: var(--yellow); }
.vfisc-page .tmi-selector { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vfisc-page .tmi-btn {
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border-bright);
  padding: 8px 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500;
  border-radius: 2px; cursor: pointer; transition: all 0.15s;
}
.vfisc-page .tmi-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.vfisc-page .tmi-btn.active {
  background: var(--yellow); color: var(--bg);
  border-color: var(--yellow); font-weight: 700;
}
.vfisc-page .calc-results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden; margin-top: 8px;
}
@media (max-width: 780px) { .vfisc-page .calc-results { grid-template-columns: 1fr; } }
.vfisc-page .calc-result {
  background: var(--bg); padding: 24px 26px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.vfisc-page .calc-result.winner::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 3px; height: 100%; background: var(--green);
}
.vfisc-page .calc-result-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em;
}
.vfisc-page .calc-result-amount {
  font-family: 'IBM Plex Mono', monospace; font-size: 32px; font-weight: 700;
  color: var(--text); letter-spacing: -0.025em;
}
.vfisc-page .calc-result-amount.tax { color: var(--red); }
.vfisc-page .calc-result-amount.net { color: var(--green); }
.vfisc-page .calc-result-detail {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--text-muted); margin-top: 4px;
}
.vfisc-page .calc-verdict {
  margin-top: 18px;
  background: rgba(255,212,0,0.06);
  border: 1px solid rgba(255,212,0,0.3);
  padding: 16px 20px; border-radius: 2px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: var(--text); line-height: 1.6;
}
.vfisc-page .calc-verdict::before { content: "$ "; color: var(--yellow); font-weight: 700; }
.vfisc-page .calc-verdict strong { color: var(--yellow); }

/* HUB FISCALITÉ - cards */
.vfisc-page .pages-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; margin: 28px 0;
}
.vfisc-page .page-card {
  background: var(--surface); padding: 24px 26px;
  display: flex; flex-direction: column; gap: 8px;
  color: inherit; transition: all 0.18s;
}
.vfisc-page .page-card:hover {
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(255,212,0,0.3);
}
.vfisc-page .page-card-cat {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--yellow); text-transform: uppercase; letter-spacing: 0.1em;
}
.vfisc-page .page-card h3 {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.vfisc-page .page-card p {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
}
.vfisc-page .page-card-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--text-dim); margin-top: auto; padding-top: 10px;
}
.vfisc-page .page-card-cta::after { content: " →"; }
.vfisc-page .page-card:hover .page-card-cta { color: var(--yellow); }
