/* ============================================
   PDF DECK 16:9 - Rivaria Capital
   Format présentation client - 6 slides
   Charte graphique Rivaria - Design épuré
   ============================================ */

/* ==================
   VARIABLES & BASE
   ================== */

#pdfDeck,
#pdfDeck * { box-sizing: border-box; }

#pdfDeck.deck-container {
  /* Couleurs Rivaria */
  --deck-deep: #023A68;
  --deck-blue: #1870EF;
  --deck-ink: #0B1220;
  --deck-success: #2D7A4F;

  /* Fonds */
  --deck-bg: #FFFFFF;
  --deck-bg-alt: #F7FAFF;

  /* Textes */
  --deck-text: #0B1220;
  --deck-text-secondary: rgba(11, 18, 32, 0.68);
  --deck-text-muted: rgba(11, 18, 32, 0.52);
  --deck-text-inverse: #FFFFFF;

  /* Bordures */
  --deck-border: rgba(2, 58, 104, 0.10);
  --deck-border-strong: rgba(2, 58, 104, 0.18);

  /* Ombres */
  --deck-shadow: 0 4px 12px rgba(2, 58, 104, 0.08);

  --deck-font: 'Instrument Sans', -apple-system, sans-serif;

  display: none;
  font-family: var(--deck-font);
  background: var(--deck-bg);
  color: var(--deck-text);
  -webkit-font-smoothing: antialiased;
}

#pdfDeck.deck-exporting {
  display: block !important;
}

#pdfDeck.deck-exporting * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}

/* ==================
   STRUCTURE SLIDE
   ================== */

#pdfDeck .slide {
  width: 1123px;
  height: 632px;
  padding: 40px 50px;
  position: relative;
  overflow: hidden;
  background: var(--deck-bg);
  box-sizing: border-box;
  page-break-after: always;
  page-break-inside: avoid;
  break-after: page;
  break-inside: avoid;
}

#pdfDeck .slide:last-child {
  page-break-after: avoid;
  break-after: avoid;
}

/* ==================
   SLIDE 1: COVER
   ================== */

#pdfDeck .slide-cover {
  background: linear-gradient(135deg, var(--deck-deep) 0%, #0a4a7c 50%, var(--deck-blue) 100%);
  color: var(--deck-text-inverse);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#pdfDeck .cover-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

#pdfDeck .cover-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#pdfDeck .cover-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.55);
  margin: 0 0 16px;
}

#pdfDeck .cover-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

#pdfDeck .cover-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  margin: 0 0 32px;
  line-height: 1.4;
}

#pdfDeck .cover-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}

#pdfDeck .cover-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

#pdfDeck .cover-meta-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.5);
  min-width: 70px;
}

#pdfDeck .cover-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}

#pdfDeck .cover-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

#pdfDeck .cover-logo-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pdfDeck .cover-logo {
  height: 140px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ==================
   SLIDE HEADERS
   ================== */

#pdfDeck .slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--deck-blue);
}

/* Slides avec graphiques */
#pdfDeck .slide:has(.invest-layout-v2),
#pdfDeck .slide:has(.capital-layout-v2) {
  display: flex;
  flex-direction: column;
}

#pdfDeck .slide:has(.invest-layout-v2) .invest-layout-v2,
#pdfDeck .slide:has(.capital-layout-v2) .capital-layout-v2 {
  flex: 1;
  min-height: 0;
}

#pdfDeck .slide-number {
  font-size: 10px;
  font-weight: 600;
  color: var(--deck-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

#pdfDeck .slide-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--deck-deep);
  margin: 0;
  letter-spacing: -0.02em;
}

#pdfDeck .slide-logo-small {
  height: 44px;
}

/* ==================
   PAGE NUMBER
   ================== */

#pdfDeck .slide-page-number {
  position: absolute;
  bottom: 18px;
  right: 50px;
  font-size: 10px;
  font-weight: 500;
  color: var(--deck-text-muted);
  letter-spacing: 0.05em;
}

#pdfDeck .slide-cover .slide-page-number {
  color: rgba(255,255,255,.4);
}

/* ==================
   SLIDE 2: VOTRE SITUATION
   ================== */

#pdfDeck .situation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  height: calc(100% - 80px);
}

#pdfDeck .situation-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#pdfDeck .situation-section {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 16px;
}

#pdfDeck .situation-section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--deck-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .situation-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

#pdfDeck .situation-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#pdfDeck .situation-label {
  font-size: 11px;
  color: var(--deck-text-muted);
}

#pdfDeck .situation-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .situation-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#pdfDeck .situation-highlight {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-left: 3px solid var(--deck-blue);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pdfDeck .situation-highlight-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--deck-text-secondary);
}

#pdfDeck .situation-highlight-right {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#pdfDeck .situation-highlight-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--deck-blue);
  line-height: 1;
}

#pdfDeck .situation-highlight-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--deck-text-secondary);
  margin-left: 4px;
}

#pdfDeck .situation-hypothesis {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 12px;
  padding: 14px 16px;
}

#pdfDeck .situation-hypothesis-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deck-deep);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .situation-params {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#pdfDeck .situation-param {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .situation-param:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#pdfDeck .situation-param-label {
  font-size: 12px;
  color: var(--deck-text-secondary);
}

#pdfDeck .situation-param-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--deck-deep);
}

/* ==================
   SLIDE 2 V2: VOTRE SITUATION (REDESIGN)
   ================== */

#pdfDeck .slide-situation-v2 {
  display: flex;
  flex-direction: column;
}

#pdfDeck .situation-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

#pdfDeck .situation-left-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pdfDeck .situation-right-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Objectif - Mise en avant */
#pdfDeck .situation-objective {
  background: linear-gradient(135deg, var(--deck-deep) 0%, var(--deck-blue) 100%);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

#pdfDeck .situation-objective-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
}

#pdfDeck .situation-objective-icon svg {
  stroke: white;
  width: 20px;
  height: 20px;
}

#pdfDeck .situation-objective-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#pdfDeck .situation-objective-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

#pdfDeck .situation-objective-value {
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

/* Section V2 avec header et icône */
#pdfDeck .situation-section-v2 {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 8px;
  padding: 10px 12px;
}

#pdfDeck .situation-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .situation-section-header svg {
  stroke: var(--deck-blue);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

#pdfDeck .situation-section-title-v2 {
  font-size: 9px;
  font-weight: 600;
  color: var(--deck-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

#pdfDeck .situation-item-v2 {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#pdfDeck .situation-label-v2 {
  font-size: 8px;
  color: var(--deck-text-muted);
  font-weight: 500;
}

#pdfDeck .situation-value-v2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .situation-value-v2.value-highlight {
  color: var(--deck-blue);
}

/* Durée d'investissement V2 */
#pdfDeck .situation-highlight-v2 {
  background: linear-gradient(135deg, rgba(24, 112, 239, 0.08) 0%, rgba(2, 58, 104, 0.06) 100%);
  border: 2px solid var(--deck-blue);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pdfDeck .situation-highlight-label-v2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--deck-deep);
}

#pdfDeck .situation-highlight-right {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

#pdfDeck .situation-highlight-value-v2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--deck-blue);
  line-height: 1;
}

#pdfDeck .situation-highlight-unit-v2 {
  font-size: 12px;
  font-weight: 500;
  color: var(--deck-text-secondary);
}

/* Hypothèses V2 */
#pdfDeck .situation-hypothesis-v2 {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 8px;
  padding: 10px 12px;
}

#pdfDeck .situation-hypothesis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .situation-hypothesis-header svg {
  stroke: var(--deck-deep);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

#pdfDeck .situation-hypothesis-title-v2 {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deck-deep);
}

#pdfDeck .situation-params-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#pdfDeck .situation-param-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .situation-param-v2:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#pdfDeck .situation-param-label-v2 {
  font-size: 10px;
  color: var(--deck-text-secondary);
}

#pdfDeck .situation-param-value-v2 {
  font-size: 12px;
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .situation-param-value-v2.value-accent {
  color: var(--deck-success);
}

/* Section IS - Style compact */
#pdfDeck .situation-section-is {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  padding: 8px 12px;
}

#pdfDeck .situation-section-is .situation-section-header {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

#pdfDeck .situation-section-is .situation-section-header svg {
  stroke: #1d4ed8;
  width: 14px;
  height: 14px;
}

#pdfDeck .situation-section-is .situation-section-title-v2 {
  font-size: 8px;
  color: #1e40af;
}

#pdfDeck .situation-section-is .situation-grid-2 {
  gap: 4px 12px;
}

#pdfDeck .situation-section-is .situation-label-v2 {
  font-size: 7px;
}

#pdfDeck .situation-section-is .situation-value-v2 {
  font-size: 11px;
}

#pdfDeck .situation-section-is .situation-value-v2.value-highlight {
  color: #1d4ed8;
  font-size: 9px;
}

/* Ajustements quand section IS visible - mode compact */
#pdfDeck .situation-left-v2.mode-is {
  gap: 6px;
}

#pdfDeck .situation-left-v2.mode-is .situation-objective {
  padding: 10px 14px;
}

#pdfDeck .situation-left-v2.mode-is .situation-objective-icon {
  width: 32px;
  height: 32px;
}

#pdfDeck .situation-left-v2.mode-is .situation-objective-label {
  font-size: 8px;
}

#pdfDeck .situation-left-v2.mode-is .situation-objective-value {
  font-size: 13px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) {
  padding: 8px 12px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) .situation-section-header {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) .situation-section-header svg {
  width: 14px;
  height: 14px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) .situation-section-title-v2 {
  font-size: 8px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) .situation-grid-2 {
  gap: 4px 12px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) .situation-label-v2 {
  font-size: 7px;
}

#pdfDeck .situation-left-v2.mode-is .situation-section-v2:not(.situation-section-is) .situation-value-v2 {
  font-size: 12px;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 {
  padding: 8px 12px;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 .situation-hypothesis-header {
  margin-bottom: 6px;
  padding-bottom: 5px;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 .situation-hypothesis-header svg {
  width: 12px;
  height: 12px;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 .situation-hypothesis-title-v2 {
  font-size: 8px;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 .situation-param-v2 {
  padding: 4px 0;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 .situation-param-label-v2 {
  font-size: 9px;
}

#pdfDeck .situation-left-v2.mode-is .situation-hypothesis-v2 .situation-param-value-v2 {
  font-size: 10px;
}

/* Plafond déduction V2 */
#pdfDeck .situation-plafond {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#pdfDeck .situation-plafond-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--deck-deep) 0%, var(--deck-blue) 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

#pdfDeck .situation-plafond-icon svg {
  stroke: white;
}

#pdfDeck .situation-plafond-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#pdfDeck .situation-plafond-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--deck-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#pdfDeck .situation-plafond-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--deck-deep);
}

/* Info box */
#pdfDeck .situation-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: auto;
}

#pdfDeck .situation-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

#pdfDeck .situation-info-icon svg {
  stroke: white;
  width: 10px;
  height: 10px;
}

#pdfDeck .situation-info-text {
  font-size: 9px;
  line-height: 1.4;
  color: #166534;
  font-weight: 500;
}

/* ==================
   SLIDE 3: CE QUE VOUS INVESTISSEZ
   ================== */

#pdfDeck .invest-layout-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% - 60px);
}

#pdfDeck .invest-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

#pdfDeck .invest-kpi {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

/* Premier encadré - Versements totaux - bordure bleu vif */
#pdfDeck .invest-kpi:first-child {
  border-color: var(--deck-blue);
  border-width: 1px;
}

#pdfDeck .invest-kpi:first-child .invest-kpi-value {
  color: var(--deck-blue);
}

#pdfDeck .invest-kpi.invest-kpi-highlight {
  border-color: var(--deck-success);
  border-width: 1px;
}

#pdfDeck .invest-kpi-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deck-text-secondary);
  margin-bottom: 4px;
}

#pdfDeck .invest-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--deck-deep);
  line-height: 1.2;
}

#pdfDeck .invest-kpi-value.value-success {
  color: var(--deck-success);
}

#pdfDeck .invest-kpi-detail {
  font-size: 9px;
  color: var(--deck-text-muted);
  margin-top: 2px;
}

#pdfDeck .invest-chart {
  flex: 1;
  min-height: 0;
  background: var(--deck-bg);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pdfDeck .invest-chart img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==================
   SLIDE 3: AMORTISSEMENT
   ================== */

#pdfDeck .slide-amortissement {
  padding: 28px 44px 16px 44px;
  background: #f8fafc;
}

#pdfDeck .slide-amortissement .slide-header {
  margin-bottom: 16px;
}

/* Résumé crédit premium - style carte glassmorphism */
#pdfDeck .amortissement-summary {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: -0.2cm;
  padding: 0;
}

#pdfDeck .amortissement-summary .summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 28px;
  background: white;
  border-radius: 12px;
  border-top: 3px solid var(--deck-deep);
  box-shadow: 0 2px 8px rgba(2, 58, 104, 0.08);
  min-width: 120px;
}

#pdfDeck .amortissement-summary .summary-label {
  font-size: 6.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  margin-bottom: 4px;
}

#pdfDeck .amortissement-summary .summary-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--deck-deep);
  letter-spacing: -0.2px;
}

#pdfDeck .amortissement-summary .summary-highlight {
  color: var(--deck-blue);
}

/* Layout deux colonnes premium */
#pdfDeck .amortissement-dual-layout {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: flex-start;
  margin-top: -0.6cm;
}

#pdfDeck .amortissement-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#pdfDeck .amortissement-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: visible;
}

#pdfDeck .amortissement-table-wrapper {
  overflow: hidden;
  border-radius: 12px;
  border: none;
  background: transparent;
  box-shadow:
    0 1px 2px rgba(2, 58, 104, 0.03),
    0 4px 16px rgba(2, 58, 104, 0.08);
}

#pdfDeck .amortissement-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 8.5px;
  border-radius: 12px;
  overflow: hidden;
}

#pdfDeck .amortissement-table thead tr {
  background: var(--deck-deep);
}

#pdfDeck .amortissement-table th {
  padding: 10px 10px;
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#pdfDeck .amortissement-table th:first-child {
  border-radius: 12px 0 0 0;
  padding-left: 14px;
}

#pdfDeck .amortissement-table th:last-child {
  border-radius: 0 12px 0 0;
  padding-right: 14px;
  border-right: none;
}

#pdfDeck .amortissement-table th.th-annee {
  text-align: center;
  width: 44px;
}

#pdfDeck .amortissement-table th.th-capital,
#pdfDeck .amortissement-table th.th-interets,
#pdfDeck .amortissement-table th.th-assurance {
  text-align: right;
}

#pdfDeck .amortissement-table .th-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}

#pdfDeck .amortissement-table .dot-capital {
  background: rgba(255, 255, 255, 0.9);
}

#pdfDeck .amortissement-table .dot-interets {
  background: var(--deck-blue);
}

#pdfDeck .amortissement-table .dot-assurance {
  background: #95a5a6;
}

#pdfDeck .amortissement-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

#pdfDeck .amortissement-table tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}

#pdfDeck .amortissement-table td {
  padding: 4px 8px;
  text-align: right;
  border: none;
  border-bottom: 1px solid rgba(2, 58, 104, 0.04);
  border-right: 1px solid rgba(2, 58, 104, 0.06);
  color: var(--deck-text);
  line-height: 1.3;
  font-size: 8.5px;
  transition: background 0.15s ease;
}

#pdfDeck .amortissement-table td:first-child {
  text-align: center;
  padding-left: 10px;
}

#pdfDeck .amortissement-table td:last-child {
  padding-right: 10px;
  border-right: none;
}

#pdfDeck .amortissement-table .annee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e2e8f0;
  color: var(--deck-deep);
  border-radius: 5px;
  font-weight: 700;
  font-size: 7.5px;
}

#pdfDeck .amortissement-table .annee-badge-last {
  background: var(--deck-deep);
  color: white;
}

#pdfDeck .amortissement-table tbody tr:nth-child(odd) {
  background: white;
}

#pdfDeck .amortissement-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

#pdfDeck .amortissement-table tbody tr:last-child {
  background: rgba(2, 58, 104, 0.06);
}

#pdfDeck .amortissement-table tbody tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  padding-top: 9px;
  padding-bottom: 9px;
}

#pdfDeck .amortissement-table .capital-cell {
  color: var(--deck-deep);
  font-weight: 600;
}

#pdfDeck .amortissement-table .interets-cell {
  color: var(--deck-text);
  font-weight: 500;
}

#pdfDeck .amortissement-table .annuite-cell {
  color: var(--deck-blue);
  font-weight: 700;
}

#pdfDeck .amortissement-table .assurance-cell {
  color: #64748b;
  font-weight: 500;
}

#pdfDeck .amortissement-table .restant-cell {
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .amortissement-table .progress-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

#pdfDeck .amortissement-table .progress-bar {
  width: 36px;
  height: 4px;
  background: rgba(2, 58, 104, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

#pdfDeck .amortissement-table .progress-fill {
  height: 100%;
  background: var(--deck-blue);
  border-radius: 2px;
}

/* ==================
   SLIDE COMPARATIF IR vs IS
   ================== */

#pdfDeck .slide-comparatif-ir-is {
  padding: 12px 40px 6px 40px;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

#pdfDeck .slide-comparatif-ir-is .slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--deck-blue);
  flex-shrink: 0;
}

#pdfDeck .slide-comparatif-ir-is .slide-header .slide-title {
  font-size: 16px;
}

#pdfDeck .slide-comparatif-ir-is .slide-header .slide-logo-small {
  order: 2;
  flex-shrink: 0;
}

/* Layout deux colonnes - identique à flux-globale */
#pdfDeck .comparatif-dual-layout {
  display: flex;
  gap: 10px;
  flex: 1;
  align-items: flex-start;
  margin-top: 0.5cm;
}

#pdfDeck .comparatif-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

#pdfDeck .slide-comparatif-ir-is .comparatif-table-wrapper {
  overflow: visible;
  border-radius: 6px;
  border: none;
  background: white;
  box-shadow:
    0 1px 2px rgba(2, 58, 104, 0.03),
    0 3px 12px rgba(2, 58, 104, 0.06);
}

/* Style tableau compact pour 25 lignes */
#pdfDeck .comparatif-table-v2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 6px;
  border-radius: 6px;
  overflow: visible;
}

#pdfDeck .comparatif-table-v2 tbody {
  overflow: visible;
}

#pdfDeck .comparatif-table-v2 thead tr:first-child th {
  background: var(--deck-deep);
  color: white;
  padding: 5px 2px;
  text-align: center;
  font-weight: 700;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 6px 6px 0 0;
}

#pdfDeck .comparatif-table-v2 thead tr:nth-child(2) th {
  background: var(--deck-deep);
  padding: 3px 2px;
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 5.5px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#pdfDeck .comparatif-table-v2 thead tr:nth-child(2) th:first-child {
  text-align: center;
  width: 24px;
}

#pdfDeck .comparatif-table-v2 thead tr:nth-child(2) th:last-child {
  border-right: none;
}

#pdfDeck .comparatif-table-v2 tbody tr:nth-child(odd) {
  background: white;
}

#pdfDeck .comparatif-table-v2 tbody tr:nth-child(even) {
  background: #f8fafc;
}

#pdfDeck .comparatif-table-v2 tbody td {
  padding: 1.4px 2px;
  text-align: right;
  border-bottom: 1px solid rgba(2, 58, 104, 0.04);
  border-right: 1px solid rgba(2, 58, 104, 0.06);
  color: var(--deck-text);
  line-height: 1.05;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 tbody td:first-child {
  text-align: center;
  width: 24px;
  padding: 1.4px 1px;
}

#pdfDeck .comparatif-table-v2 tbody td:last-child {
  padding-right: 4px;
  border-right: none;
}

/* Badge année */
#pdfDeck .comparatif-table-v2 .annee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  height: 11px;
  padding: 0 2px;
  background: #e2e8f0;
  color: var(--deck-deep);
  border-radius: 3px;
  font-weight: 700;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .annee-badge-last {
  background: var(--deck-deep);
  color: white;
}

/* Styles pour les colonnes spécifiques */
#pdfDeck .comparatif-table-v2 .loyer-cell {
  color: var(--deck-success);
  font-weight: 600;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .mensualite-cell {
  color: var(--deck-deep);
  font-weight: 500;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .charges-cell {
  color: #7c3aed;
  font-weight: 500;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .impots-cell {
  color: #64748b;
  font-weight: 500;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .effort-cell {
  font-weight: 700;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .effort-cell.effort-negatif {
  color: #b45309;
}

#pdfDeck .comparatif-table-v2 .effort-cell.effort-positif {
  color: var(--deck-success);
}

#pdfDeck .comparatif-table-v2 .capital-cell {
  color: var(--deck-deep);
  font-weight: 600;
  font-size: 5.5px;
}

#pdfDeck .comparatif-table-v2 .tri-cell {
  font-weight: 700;
  color: var(--deck-blue);
  font-size: 5.5px;
}

/* Ligne finale */
#pdfDeck .comparatif-table-v2 tbody tr.row-final,
#pdfDeck .comparatif-table-v2 tbody tr.row-final:nth-child(odd),
#pdfDeck .comparatif-table-v2 tbody tr.row-final:nth-child(even) {
  background: rgba(2, 58, 104, 0.10) !important;
}

#pdfDeck .comparatif-table-v2 tbody tr.row-final td {
  font-weight: 700 !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  border-top: 1.5px solid var(--deck-deep) !important;
  border-bottom: 1.5px solid var(--deck-deep) !important;
  border-right: none !important;
}

#pdfDeck .comparatif-table-v2 tbody tr.row-final td:first-child {
  border-left: 1.5px solid var(--deck-deep) !important;
  border-radius: 4px 0 0 4px !important;
}

#pdfDeck .comparatif-table-v2 tbody tr.row-final td:last-child {
  border-right: 1.5px solid var(--deck-deep) !important;
  border-radius: 0 4px 4px 0 !important;
}

/* ==================
   SLIDE 4: FLUX DE TRÉSORERIE - VUE GLOBALE
   ================== */

#pdfDeck .slide-flux-globale {
  padding: 28px 44px 16px 44px;
  background: #f8fafc;
}

#pdfDeck .slide-flux-globale .slide-header {
  margin-bottom: 16px;
}

/* Layout deux colonnes premium - identique à amortissement */
#pdfDeck .flux-globale-dual-layout {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: flex-start;
  margin-top: -0.4cm;
}

#pdfDeck .flux-globale-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

#pdfDeck .flux-globale-table-wrapper {
  overflow: visible;
  border-radius: 12px;
  border: none;
  background: white;
  box-shadow:
    0 1px 2px rgba(2, 58, 104, 0.03),
    0 4px 16px rgba(2, 58, 104, 0.08);
}

#pdfDeck .flux-globale-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 8.5px;
  border-radius: 12px;
  overflow: visible;
}

#pdfDeck .flux-globale-table tbody {
  overflow: visible;
}

#pdfDeck .flux-globale-table thead tr {
  background: var(--deck-deep);
}

#pdfDeck .flux-globale-table th {
  padding: 8px 6px;
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: none;
}

#pdfDeck .flux-globale-table th:first-child {
  border-radius: 12px 0 0 0;
  text-align: center;
  padding-left: 10px;
}

#pdfDeck .flux-globale-table th:last-child {
  border-radius: 0 12px 0 0;
  padding-right: 10px;
}

#pdfDeck .flux-globale-table th.th-annee {
  text-align: center;
  width: 44px;
}

#pdfDeck .flux-globale-table td {
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(2, 58, 104, 0.04);
  border-right: 1px solid rgba(2, 58, 104, 0.06);
  color: var(--deck-text);
  line-height: 1.4;
  font-size: 8.5px;
}

#pdfDeck .flux-globale-table td:first-child {
  text-align: center;
  width: 36px;
}

#pdfDeck .flux-globale-table td:last-child {
  padding-right: 8px;
  border-right: none;
}

#pdfDeck .flux-globale-table th {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#pdfDeck .flux-globale-table th:last-child {
  border-right: none;
}

/* Largeur colonne Année fixe, autres colonnes auto */
#pdfDeck .flux-globale-table .th-annee,
#pdfDeck .flux-globale-table td:first-child { width: 38px; }

#pdfDeck .flux-globale-table .annee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e2e8f0;
  color: var(--deck-deep);
  border-radius: 5px;
  font-weight: 700;
  font-size: 7.5px;
}

#pdfDeck .flux-globale-table .annee-badge-last {
  background: var(--deck-deep);
  color: white;
}

#pdfDeck .flux-globale-table tbody tr:nth-child(odd) {
  background: white;
}

#pdfDeck .flux-globale-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Ligne finale - Année 25 */
#pdfDeck .flux-globale-table tbody tr.row-final,
#pdfDeck .flux-globale-table tbody tr.row-final:nth-child(odd),
#pdfDeck .flux-globale-table tbody tr.row-final:nth-child(even),
#pdfDeck .flux-globale-column .flux-globale-table tbody tr.row-final {
  background: rgba(2, 58, 104, 0.10) !important;
  position: relative !important;
  z-index: 1 !important;
}

#pdfDeck .flux-globale-table tbody tr.row-final td,
#pdfDeck .flux-globale-column .flux-globale-table tbody tr.row-final td {
  font-weight: 700 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-top: 2px solid var(--deck-deep) !important;
  border-bottom: 2px solid var(--deck-deep) !important;
  border-right: none !important;
  background-clip: padding-box !important;
}

#pdfDeck .flux-globale-table tbody tr.row-final td:first-child,
#pdfDeck .flux-globale-column .flux-globale-table tbody tr.row-final td:first-child {
  border-left: 2px solid var(--deck-deep) !important;
  border-radius: 6px 0 0 6px !important;
  background: rgba(2, 58, 104, 0.10) !important;
  background-clip: padding-box !important;
}

#pdfDeck .flux-globale-table tbody tr.row-final td:last-child,
#pdfDeck .flux-globale-column .flux-globale-table tbody tr.row-final td:last-child {
  border-right: 2px solid var(--deck-deep) !important;
  border-radius: 0 6px 6px 0 !important;
  background: rgba(2, 58, 104, 0.10) !important;
  background-clip: padding-box !important;
}

/* Styles pour les colonnes spécifiques */
#pdfDeck .flux-globale-table .loyer-cell {
  color: var(--deck-success);
  font-weight: 600;
}

#pdfDeck .flux-globale-table .mensualite-cell {
  color: var(--deck-deep);
  font-weight: 500;
}

#pdfDeck .flux-globale-table .charges-sci-cell {
  color: #7c3aed;
  font-weight: 500;
}

#pdfDeck .flux-globale-table .impots-cell {
  color: #64748b;
  font-weight: 500;
}

#pdfDeck .flux-globale-table .effort-cell {
  font-weight: 700;
}

#pdfDeck .flux-globale-table .effort-cell.effort-negatif {
  color: #b45309;
}

#pdfDeck .flux-globale-table .effort-cell.effort-positif {
  color: var(--deck-success);
}

#pdfDeck .flux-globale-table .capital-cell {
  color: var(--deck-deep);
  font-weight: 600;
}

#pdfDeck .flux-globale-table .tri-cell {
  font-weight: 700;
  color: var(--deck-blue);
}

/* ==================
   SLIDE 4: FLUX DE TRÉSORERIE ANNUEL
   ================== */

#pdfDeck .slide-flux-annuel {
  padding: 25px 80px 10px 80px;
}

#pdfDeck .slide-flux-annuel .slide-header {
  margin-bottom: 6px;
}

#pdfDeck .flux-annuel-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: visible;
}

#pdfDeck .flux-annuel-table-wrapper {
  overflow: visible;
  border-radius: 6px;
  border: 1px solid rgba(2, 58, 104, 0.12);
  background: var(--deck-bg);
  box-shadow: 0 2px 6px rgba(2, 58, 104, 0.04);
}

#pdfDeck .flux-annuel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 5.5px;
  border-radius: 6px;
  overflow: hidden;
}

#pdfDeck .flux-annuel-table thead tr {
  background: var(--deck-deep);
}

#pdfDeck .flux-annuel-table th {
  padding: 5px 4px;
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 5.5px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border: none;
}

#pdfDeck .flux-annuel-table th:first-child {
  border-radius: 5px 0 0 0;
  text-align: center;
}

#pdfDeck .flux-annuel-table th:last-child {
  border-radius: 0 5px 0 0;
}

#pdfDeck .flux-annuel-table td {
  padding: 1.5px 4px;
  text-align: right;
  border: none;
  border-bottom: 1px solid rgba(2, 58, 104, 0.03);
  color: var(--deck-text);
  line-height: 1.1;
  font-size: 5.5px;
}

#pdfDeck .flux-annuel-table td:first-child {
  text-align: center;
}

#pdfDeck .flux-annuel-table .annee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  background: rgba(2, 58, 104, 0.08);
  color: var(--deck-deep);
  border-radius: 3px;
  font-weight: 700;
  font-size: 5.5px;
}

#pdfDeck .flux-annuel-table .annee-badge-last {
  background: var(--deck-deep);
  color: white;
}

#pdfDeck .flux-annuel-table tbody tr:nth-child(even) {
  background: rgba(2, 58, 104, 0.02);
}

#pdfDeck .flux-annuel-table tbody tr:last-child {
  background: rgba(2, 58, 104, 0.05);
}

#pdfDeck .flux-annuel-table tbody tr:last-child td {
  font-weight: 600;
  border-bottom: none;
}

#pdfDeck .flux-annuel-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 5px;
}

#pdfDeck .flux-annuel-table tbody tr:last-child td:last-child {
  border-radius: 0 0 5px 0;
}

/* Colonnes spécifiques */
#pdfDeck .flux-annuel-table .loyer-cell {
  color: var(--deck-success);
  font-weight: 500;
}

#pdfDeck .flux-annuel-table .charges-cell {
  color: var(--deck-deep);
}

#pdfDeck .flux-annuel-table .th-charges-sci,
#pdfDeck .flux-annuel-table .charges-sci-cell {
  color: #7c3aed;
}

#pdfDeck .flux-annuel-table .impots-cell {
  color: #64748b;
}

#pdfDeck .flux-annuel-table .flux-cell {
  font-weight: 600;
}

#pdfDeck .flux-annuel-table .flux-cell.flux-negatif {
  color: #dc2626;
}

#pdfDeck .flux-annuel-table .flux-cell.flux-positif {
  color: var(--deck-success);
}

#pdfDeck .flux-annuel-table .capital-cell {
  color: var(--deck-deep);
  font-weight: 600;
}

/* ==================
   SLIDE 5: FLUX PREMIÈRE ANNÉE (conditionnel - si franchise)
   ================== */

#pdfDeck .slide-flux-premiere {
  padding: 25px 60px 10px 60px;
}

#pdfDeck .slide-flux-premiere .slide-header {
  margin-bottom: 6px;
}

#pdfDeck .flux-premiere-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: visible;
}

#pdfDeck .flux-premiere-table-wrapper {
  overflow: visible;
  border-radius: 12px;
  border: none;
  background: white;
  box-shadow:
    0 1px 2px rgba(2, 58, 104, 0.03),
    0 4px 16px rgba(2, 58, 104, 0.08);
}

#pdfDeck .flux-premiere-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 7px;
  border-radius: 12px;
  overflow: visible;
}

#pdfDeck .flux-premiere-table thead tr {
  background: var(--deck-deep);
}

#pdfDeck .flux-premiere-table th {
  padding: 8px 8px;
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 6.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#pdfDeck .flux-premiere-table th:first-child {
  border-radius: 12px 0 0 0;
  text-align: center;
  padding-left: 10px;
}

#pdfDeck .flux-premiere-table th:last-child {
  border-radius: 0 12px 0 0;
  padding-right: 10px;
  border-right: none;
}

#pdfDeck .flux-premiere-table td {
  padding: 6px 2px;
  text-align: right;
  border-bottom: 1px solid rgba(2, 58, 104, 0.04);
  border-right: 1px solid rgba(2, 58, 104, 0.06);
  color: var(--deck-text);
  line-height: 1.4;
  font-size: 9px;
}

#pdfDeck .flux-premiere-table td:first-child {
  text-align: center;
  width: 70px;
}

#pdfDeck .flux-premiere-table td:last-child {
  padding-right: 4px;
  border-right: none;
}

#pdfDeck .flux-premiere-table .mois-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 22px;
  padding: 0;
  background: #e2e8f0;
  color: var(--deck-deep);
  border-radius: 5px;
  font-weight: 700;
  font-size: 9px;
}

#pdfDeck .flux-premiere-table .mois-badge-last {
  background: var(--deck-deep);
  color: white;
}

#pdfDeck .flux-premiere-table tbody tr:nth-child(odd) {
  background: white;
}

#pdfDeck .flux-premiere-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Ligne finale du tableau première année - style premium */
#pdfDeck .flux-premiere-table tbody tr.row-final,
#pdfDeck .flux-premiere-table tbody tr.row-final:nth-child(odd),
#pdfDeck .flux-premiere-table tbody tr.row-final:nth-child(even) {
  background: rgba(2, 58, 104, 0.10) !important;
  position: relative !important;
  z-index: 1 !important;
}

#pdfDeck .flux-premiere-table tbody tr.row-final td {
  font-weight: 700 !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  border-top: 2px solid var(--deck-deep) !important;
  border-bottom: 2px solid var(--deck-deep) !important;
  border-right: none !important;
  background-clip: padding-box !important;
}

#pdfDeck .flux-premiere-table tbody tr.row-final td:first-child {
  border-left: 2px solid var(--deck-deep) !important;
  border-radius: 6px 0 0 6px !important;
  background: rgba(2, 58, 104, 0.10) !important;
  background-clip: padding-box !important;
}

#pdfDeck .flux-premiere-table tbody tr.row-final td:last-child {
  border-right: 2px solid var(--deck-deep) !important;
  border-radius: 0 6px 6px 0 !important;
  background: rgba(2, 58, 104, 0.10) !important;
  background-clip: padding-box !important;
}

/* Colonnes spécifiques */
#pdfDeck .flux-premiere-table .loyer-cell {
  color: var(--deck-success);
  font-weight: 600;
}

#pdfDeck .flux-premiere-table .mensualite-cell {
  color: var(--deck-deep);
  font-weight: 500;
}

#pdfDeck .flux-premiere-table .charges-sci-cell {
  color: #7c3aed;
  font-weight: 500;
}

#pdfDeck .flux-premiere-table .impots-cell {
  color: #64748b;
  font-weight: 500;
}

#pdfDeck .flux-premiere-table .effort-cell {
  font-weight: 700;
}

#pdfDeck .flux-premiere-table .effort-cell.effort-negatif {
  color: #b45309;
}

#pdfDeck .flux-premiere-table .effort-cell.effort-positif {
  color: var(--deck-success);
}

#pdfDeck .flux-premiere-table .capital-cell {
  color: var(--deck-deep);
  font-weight: 600;
}

/* Footer du tableau - masqué */
#pdfDeck .flux-premiere-table tfoot {
  display: none;
}

#pdfDeck .flux-premiere-table tfoot tr {
  background: var(--deck-deep);
}

#pdfDeck .flux-premiere-table tfoot td {
  padding: 8px 10px;
  font-weight: 600;
  color: white;
  border-bottom: none;
  border-right: none;
  font-size: 7px;
}

#pdfDeck .flux-premiere-table tfoot td:first-child {
  border-radius: 0 0 0 12px;
  text-align: left;
}

#pdfDeck .flux-premiere-table tfoot td:last-child {
  border-radius: 0 0 12px 0;
}

#pdfDeck .flux-premiere-table tfoot .footer-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#pdfDeck .flux-premiere-table tfoot .effort-negatif {
  color: #fca5a5;
}

#pdfDeck .flux-premiere-table tfoot .effort-positif {
  color: #86efac;
}

/* ==================
   SLIDE 5: VOTRE SYNTHESE (nouvelle version)
   ================== */

#pdfDeck .slide-synthese-v2 {
  padding: 16px 40px 12px 40px;
  display: flex;
  flex-direction: column;
}

#pdfDeck .slide-synthese-v2 .slide-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

#pdfDeck .slide-synthese-v2 .slide-header .slide-title {
  font-size: 24px;
}

#pdfDeck .slide-synthese-v2 .slide-page-number {
  flex-shrink: 0;
}

#pdfDeck .synthese-v2-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero: Patrimoine à terme */
#pdfDeck .synthese-v2-hero {
  background: linear-gradient(135deg, var(--deck-deep) 0%, #1e5a8a 50%, #2d7ab0 100%);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(2, 58, 104, 0.25);
}

#pdfDeck .synthese-v2-hero-main {
  text-align: center;
  min-width: 180px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#pdfDeck .synthese-v2-hero-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  font-weight: 600;
}

#pdfDeck .synthese-v2-hero-value {
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#pdfDeck .synthese-v2-hero-sublabel {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 5px;
  font-weight: 500;
}

#pdfDeck .synthese-v2-hero-cards {
  display: flex;
  gap: 16px;
  flex: 1;
}

#pdfDeck .synthese-v2-hero-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

#pdfDeck .synthese-v2-hero-card-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-weight: 500;
}

#pdfDeck .synthese-v2-hero-card-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

#pdfDeck .synthese-v2-hero-card-sub {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

/* Projections par horizon */
#pdfDeck .synthese-v2-projections {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(2, 58, 104, 0.12);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(2, 58, 104, 0.06);
}

#pdfDeck .synthese-v2-projections-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--deck-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#pdfDeck .synthese-v2-projections-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--deck-blue);
  border-radius: 2px;
}

#pdfDeck .synthese-v2-projections-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

#pdfDeck .synthese-v2-projection-card {
  background: white;
  border: 1px solid rgba(2, 58, 104, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(2, 58, 104, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

#pdfDeck .synthese-v2-projection-card.card-last {
  border: 2px solid var(--deck-deep);
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
  box-shadow: 0 3px 12px rgba(2, 58, 104, 0.12);
}

#pdfDeck .synthese-v2-projection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(2, 58, 104, 0.08);
}

#pdfDeck .synthese-v2-projection-year {
  font-size: 13px;
  font-weight: 800;
  color: var(--deck-deep);
}

#pdfDeck .synthese-v2-projection-badge {
  font-size: 7px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#pdfDeck .synthese-v2-projection-badge.badge-negatif {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

#pdfDeck .synthese-v2-projection-badge.badge-bon {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

#pdfDeck .synthese-v2-projection-badge.badge-excellent {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

#pdfDeck .synthese-v2-projection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #64748b;
  margin-bottom: 4px;
}

#pdfDeck .synthese-v2-projection-row:last-of-type {
  margin-bottom: 0;
}

#pdfDeck .synthese-v2-projection-row-value {
  font-weight: 700;
  color: var(--deck-text);
}

#pdfDeck .synthese-v2-projection-row-value.value-positive {
  color: var(--deck-success);
}

#pdfDeck .synthese-v2-projection-row-value.value-negative {
  color: #dc2626;
}

#pdfDeck .synthese-v2-projection-tri {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(2, 58, 104, 0.12);
  font-size: 11px;
  font-weight: 800;
  color: var(--deck-blue);
  text-align: center;
  background: rgba(2, 58, 104, 0.03);
  border-radius: 4px;
  padding: 5px;
  margin-left: -4px;
  margin-right: -4px;
}

/* Revenus passifs - Thème émeraude */
#pdfDeck .synthese-v2-revenus {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.12);
}

#pdfDeck .synthese-v2-revenus-header {
  min-width: 180px;
  padding-right: 20px;
  border-right: 1px solid rgba(5, 150, 105, 0.2);
}

#pdfDeck .synthese-v2-revenus-title {
  font-size: 14px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 3px;
}

#pdfDeck .synthese-v2-revenus-subtitle {
  font-size: 9px;
  color: #047857;
  font-weight: 500;
}

#pdfDeck .synthese-v2-revenus-cards {
  display: flex;
  gap: 14px;
  flex: 1;
}

#pdfDeck .synthese-v2-revenus-card {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

#pdfDeck .synthese-v2-revenus-card-highlight {
  border: 2px solid #059669;
  background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%);
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.18);
}

#pdfDeck .synthese-v2-revenus-card-label {
  font-size: 8px;
  color: #047857;
  margin-bottom: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#pdfDeck .synthese-v2-revenus-card-value {
  font-size: 16px;
  font-weight: 800;
  color: #059669;
}

#pdfDeck .synthese-v2-revenus-card-sub {
  font-size: 7px;
  color: #059669;
  margin-top: 3px;
  font-weight: 600;
}

/* ==================
   SLIDE 6: ANCIENNE SYNTHESE (conservé pour compatibilité)
   ================== */

#pdfDeck .capital-layout-v3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% - 60px);
}

#pdfDeck .capital-top {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#pdfDeck .capital-banner-v2 {
  flex: 1;
  background: linear-gradient(135deg, var(--deck-deep) 0%, var(--deck-blue) 100%);
  color: var(--deck-text-inverse);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#pdfDeck .capital-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}

#pdfDeck .capital-banner-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

#pdfDeck .capital-banner-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
}

#pdfDeck .capital-banner-amount {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
}

#pdfDeck .capital-banner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.2);
}

#pdfDeck .capital-banner-meta-label {
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
}

#pdfDeck .capital-banner-meta-value {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

#pdfDeck .capital-banner-meta-sub {
  font-size: 9px;
  color: rgba(255,255,255,.7);
}

#pdfDeck .capital-kpis {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
}

#pdfDeck .capital-kpi {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 140px;
}

#pdfDeck .capital-kpi.capital-kpi-highlight {
  border-color: var(--deck-success);
  background: rgba(45, 122, 79, 0.04);
}

#pdfDeck .capital-kpi-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--deck-text-muted);
}

#pdfDeck .capital-kpi-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .capital-kpi-value.value-success {
  color: var(--deck-success);
}

#pdfDeck .capital-chart {
  flex: 1;
  min-height: 0;
  background: var(--deck-bg);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pdfDeck .capital-chart img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==================
   SLIDE 5: OPTIONS DE SORTIE
   ================== */

/* Intro slide 5 */
#pdfDeck .exit-intro {
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-left: 3px solid var(--deck-blue);
  border-radius: 8px;
}

#pdfDeck .exit-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--deck-text-secondary);
}

#pdfDeck .exit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

#pdfDeck .exit-icon {
  margin-bottom: 10px;
  color: var(--deck-deep);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#pdfDeck .exit-icon svg {
  stroke: var(--deck-deep);
}

#pdfDeck .exit-option {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

#pdfDeck .exit-option.exit-recommended {
  border: 2px solid var(--deck-blue);
  position: relative;
}

#pdfDeck .exit-badge {
  position: absolute;
  top: -9px;
  left: 20px;
  background: var(--deck-blue);
  color: white;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(24, 112, 239, 0.25);
}

#pdfDeck .exit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--deck-deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .exit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .exit-row:last-child {
  border-bottom: none;
}

#pdfDeck .exit-row-label {
  font-size: 13px;
  color: var(--deck-text-secondary);
}

#pdfDeck .exit-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--deck-deep);
}

#pdfDeck .exit-total {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--deck-deep);
}

#pdfDeck .exit-total .exit-row-label {
  font-weight: 600;
  color: var(--deck-deep);
}

#pdfDeck .exit-total .exit-row-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .exit-total .exit-row-value.value-success {
  color: var(--deck-success);
}

/* ==================
   SLIDE 6: SYNTHESE
   ================== */

#pdfDeck .synthesis-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: calc(100% - 70px);
}

#pdfDeck .synthesis-left {
  display: flex;
  flex-direction: column;
}

#pdfDeck .synthesis-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#pdfDeck .synthesis-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

#pdfDeck .synthesis-metric {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

#pdfDeck .synthesis-metric.synthesis-metric-highlight {
  border-color: var(--deck-success);
  background: rgba(45, 122, 79, 0.04);
}

#pdfDeck .synthesis-metric-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deck-deep);
}

#pdfDeck .synthesis-metric-icon svg {
  stroke: var(--deck-deep);
}

#pdfDeck .synthesis-metric-highlight .synthesis-metric-icon svg {
  stroke: var(--deck-success);
}

#pdfDeck .synthesis-metric-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

#pdfDeck .synthesis-metric-label {
  font-size: 11px;
  color: var(--deck-text-muted);
}

#pdfDeck .synthesis-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--deck-deep);
}

#pdfDeck .synthesis-metric-value.value-success {
  color: var(--deck-success);
}

#pdfDeck .synthesis-takeaway {
  background: linear-gradient(135deg, var(--deck-deep) 0%, var(--deck-blue) 100%);
  color: var(--deck-text-inverse);
  border-radius: 12px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1.4;
}

#pdfDeck .synthesis-takeaway-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}

#pdfDeck .synthesis-takeaway-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
  margin: 0;
}

#pdfDeck .synthesis-takeaway-text strong {
  color: #FFFFFF;
  font-weight: 700;
}

#pdfDeck .synthesis-advantages {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 12px;
  padding: 18px 22px;
}

#pdfDeck .synthesis-advantages-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deck-text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .synthesis-advantage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--deck-text);
}

#pdfDeck .synthesis-advantage-item:not(:last-child) {
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeck .synthesis-advantage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#pdfDeck .synthesis-advantage-icon svg {
  stroke: var(--deck-success);
}

/* ==================
   DISCLAIMER
   ================== */

#pdfDeck .slide-disclaimer {
  position: absolute;
  bottom: 16px;
  left: 50px;
  right: 50px;
  font-size: 8px;
  color: var(--deck-text-muted);
  line-height: 1.3;
  padding-top: 8px;
  border-top: 1px solid var(--deck-border);
}

#pdfDeck .slide-disclaimer strong {
  color: var(--deck-text-secondary);
  font-weight: 600;
}

/* Slides avec disclaimer - padding bottom augmenté */
#pdfDeck .slide:not(.slide-cover) {
  padding-bottom: 70px;
}

#pdfDeck .slide-final {
  padding-bottom: 70px;
}

/* ==================
   UTILITIES
   ================== */

#pdfDeck .text-success { color: var(--deck-success); }
#pdfDeck .text-deep { color: var(--deck-deep); }
#pdfDeck .font-bold { font-weight: 700; }

/* ==================
   SLIDE 7: PROJECTION ANNUELLE
   ================== */

#pdfDeck .projection-layout {
  height: calc(100% - 70px);
  display: flex;
  flex-direction: column;
}

#pdfDeck .projection-tables-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

#pdfDeck .projection-tables-wrapper.single-column {
  grid-template-columns: 1fr;
}

#pdfDeck .projection-table-container {
  overflow: visible;
  border-radius: 12px;
  border: none;
  background: white;
  box-shadow:
    0 1px 2px rgba(2, 58, 104, 0.03),
    0 4px 16px rgba(2, 58, 104, 0.08);
}

#pdfDeck .projection-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 8.5px;
  border-radius: 12px;
  overflow: visible;
}

#pdfDeck .projection-table tbody {
  overflow: visible;
}

#pdfDeck .projection-table thead tr {
  background: var(--deck-deep);
}

#pdfDeck .projection-table th {
  padding: 8px 6px;
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#pdfDeck .projection-table th:first-child {
  text-align: center;
  width: 38px;
  border-radius: 12px 0 0 0;
}

#pdfDeck .projection-table th:last-child {
  border-radius: 0 12px 0 0;
  border-right: none;
}

#pdfDeck .projection-table tbody tr:nth-child(odd) {
  background: white;
}

#pdfDeck .projection-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Ligne finale avec encadré - uniquement pour .row-final (année 25) */
#pdfDeck .projection-table tbody tr.row-final {
  background: rgba(2, 58, 104, 0.10) !important;
  position: relative !important;
  z-index: 1 !important;
}

#pdfDeck .projection-table tbody tr.row-final td {
  font-weight: 700 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-top: 2px solid var(--deck-deep) !important;
  border-bottom: 2px solid var(--deck-deep) !important;
  border-right: none !important;
  background-clip: padding-box !important;
}

#pdfDeck .projection-table tbody tr.row-final td:first-child {
  background: rgba(2, 58, 104, 0.10) !important;
  border-left: 2px solid var(--deck-deep) !important;
  border-radius: 6px 0 0 6px !important;
  background-clip: padding-box !important;
}

#pdfDeck .projection-table tbody tr.row-final td:last-child {
  background: rgba(2, 58, 104, 0.10) !important;
  border-right: 2px solid var(--deck-deep) !important;
  border-radius: 0 6px 6px 0 !important;
  background-clip: padding-box !important;
}

#pdfDeck .projection-table td {
  padding: 6px 8px;
  text-align: right;
  font-size: 8.5px;
  color: var(--deck-text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(2, 58, 104, 0.04);
  border-right: 1px solid rgba(2, 58, 104, 0.06);
  line-height: 1.4;
}

#pdfDeck .projection-table td:first-child {
  text-align: center;
  width: 36px;
}

#pdfDeck .projection-table td:last-child {
  border-right: none;
  padding-right: 8px;
}

/* Badge année pour projection-table */
#pdfDeck .projection-table .annee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e2e8f0;
  color: var(--deck-deep);
  border-radius: 5px;
  font-weight: 700;
  font-size: 7.5px;
}

#pdfDeck .projection-table .annee-badge-last {
  background: var(--deck-deep);
  color: white;
}

/* Couleurs des colonnes - même style que flux-globale-table SCPI Dette */
/* Colonne 2: Capital investi */
#pdfDeck .projection-table td:nth-child(2) {
  color: var(--deck-deep);
  font-weight: 600;
}

/* Colonne 3: Loyer (vert) */
#pdfDeck .projection-table td:nth-child(3) {
  color: var(--deck-success);
  font-weight: 600;
}

/* Colonne 4: Impôts (gris) */
#pdfDeck .projection-table td:nth-child(4) {
  color: #64748b;
  font-weight: 500;
}

/* Colonne 5: Loyer net (vert) */
#pdfDeck .projection-table td:nth-child(5) {
  color: var(--deck-success);
  font-weight: 600;
}

/* Colonne 6: Capital dispo (bleu foncé) */
#pdfDeck .projection-table td:nth-child(6) {
  color: var(--deck-deep);
  font-weight: 600;
}

/* Colonne 7: TRI (bleu) */
#pdfDeck .projection-table td:nth-child(7) {
  color: var(--deck-blue);
  font-weight: 700;
}

/* ==================
   SLIDE 8: GLOSSAIRE
   ================== */

#pdfDeck .glossary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

#pdfDeck .glossary-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#pdfDeck .glossary-item {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 8px;
  padding: 16px 18px;
}

#pdfDeck .glossary-term {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--deck-deep);
  margin-bottom: 6px;
}

#pdfDeck .glossary-def {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--deck-text-secondary);
}

#pdfDeck .glossary-note {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(2, 58, 104, 0.06) 0%, rgba(0, 119, 182, 0.04) 100%);
  border: 1px solid var(--deck-border);
  border-left: 3px solid var(--deck-blue);
  border-radius: 8px;
  padding: 14px 18px;
}

#pdfDeck .glossary-note-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--deck-deep);
  margin-bottom: 8px;
}

#pdfDeck .glossary-note-content {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--deck-text-secondary);
}

#pdfDeck .glossary-note-content strong {
  color: var(--deck-deep);
  font-weight: 600;
}
