/* ============================================
   PDF DECK 16:9 - Rivaria Capital
   Simulateur Assurance-Vie - Présentation client
   ============================================ */

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

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

#pdfDeckAV.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;
}

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

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

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

#pdfDeckAV .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;
}

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

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

#pdfDeckAV .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;
}

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

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

#pdfDeckAV .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;
}

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

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

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

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

#pdfDeckAV .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;
}

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

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

#pdfDeckAV .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;
}

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

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

#pdfDeckAV .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);
}

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

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

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

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

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

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

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

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

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

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

#pdfDeckAV .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);
}

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

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

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

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

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

#pdfDeckAV .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;
}

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

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

#pdfDeckAV .situation-hypothesis {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 12px;
  padding: 12px 14px 6px 14px;
  flex: 1;
  max-width: 100%;
}

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

#pdfDeckAV .situation-params {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 0;
}

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

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

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

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

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

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

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

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

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

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

#pdfDeckAV .situation-objective-icon svg {
  stroke: white;
}

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

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

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

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

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

#pdfDeckAV .situation-section-header svg {
  stroke: var(--deck-blue);
  flex-shrink: 0;
}

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

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

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

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

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

/* Durée d'investissement V2 */
#pdfDeckAV .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: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

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

#pdfDeckAV .situation-hypothesis-header svg {
  stroke: var(--deck-deep);
  flex-shrink: 0;
}

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

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

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

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

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

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

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

/* Assureur V2 */
#pdfDeckAV .situation-assureur {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#pdfDeckAV .situation-assureur-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;
}

#pdfDeckAV .situation-assureur-icon svg {
  stroke: white;
}

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

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

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

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

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

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

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

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

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

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

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

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

#pdfDeckAV .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;
}

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

/* ==================
   SLIDE 4 V3: CE QUE VOUS INVESTISSEZ (REDESIGN)
   ================== */

#pdfDeckAV .invest-layout-v3 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100% - 60px);
}

/* KPIs en ligne */
#pdfDeckAV .invest-kpis-v3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex-shrink: 0;
}

/* KPI Cards V3 */
#pdfDeckAV .invest-kpi-v3 {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#pdfDeckAV .invest-kpi-v3.invest-kpi-highlight-v3 {
  background: linear-gradient(135deg, rgba(24, 112, 239, 0.06) 0%, rgba(2, 58, 104, 0.04) 100%);
  border: 2px solid var(--deck-blue);
}

#pdfDeckAV .invest-kpi-icon-v3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--deck-bg);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  flex-shrink: 0;
}

#pdfDeckAV .invest-kpi-icon-v3 svg {
  stroke: var(--deck-blue);
}

#pdfDeckAV .invest-kpi-icon-v3.icon-highlight {
  background: linear-gradient(135deg, var(--deck-deep) 0%, var(--deck-blue) 100%);
  border: none;
}

#pdfDeckAV .invest-kpi-icon-v3.icon-highlight svg {
  stroke: white;
}

#pdfDeckAV .invest-kpi-content-v3 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

#pdfDeckAV .invest-kpi-label-v3 {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--deck-text-muted);
}

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

#pdfDeckAV .invest-kpi-value-v3.value-highlight {
  color: var(--deck-blue);
}

#pdfDeckAV .invest-kpi-detail-v3 {
  font-size: 9px;
  color: var(--deck-text-secondary);
  margin-top: 1px;
}

/* Chart V3 - pleine largeur */
#pdfDeckAV .invest-chart-v3 {
  flex: 1;
  min-height: 0;
  background: var(--deck-bg);
  border: 1px solid var(--deck-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* ==================
   SLIDE 3: RÉPARTITION ACTIFS (Premium)
   ================== */

#pdfDeckAV .allocation-slide-content {
  display: flex;
  gap: 50px;
  height: calc(100% - 90px);
  padding: 0 40px;
  align-items: center;
}

#pdfDeckAV .allocation-list-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 420px;
}

#pdfDeckAV .allocation-list-title {
  font-size: 15px;
  font-weight: 700;
  color: #023A68;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(2, 58, 104, 0.1);
  letter-spacing: -0.01em;
}

#pdfDeckAV .allocation-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#pdfDeckAV .allocation-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 10px;
  border: 1px solid rgba(2, 58, 104, 0.06);
  box-shadow:
    0 2px 8px rgba(2, 58, 104, 0.04),
    0 1px 2px rgba(2, 58, 104, 0.02);
}

#pdfDeckAV .allocation-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#pdfDeckAV .allocation-list-icon svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

#pdfDeckAV .allocation-list-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

#pdfDeckAV .allocation-list-value {
  font-size: 13px;
  font-weight: 700;
  color: #023A68;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 4px 10px;
  border-radius: 14px;
  min-width: 45px;
  text-align: center;
}

#pdfDeckAV .allocation-chart-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#pdfDeckAV .allocation-chart-wrapper {
  position: relative;
  width: 390px;
  height: 390px;
  flex-shrink: 0;
  overflow: visible;
}

#pdfDeckAV .allocation-chart-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 50%;
  padding: 15px;
  box-shadow:
    0 8px 32px rgba(2,58,104,.12),
    0 2px 8px rgba(2,58,104,.06),
    inset 0 -2px 6px rgba(2,58,104,.03);
}

#pdfDeckAV .allocation-chart-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

#pdfDeckAV .allocation-chart-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#pdfDeckAV .chart-label-on-slice {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

#pdfDeckAV .chart-label-on-slice .slice-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pdfDeckAV .chart-label-on-slice .slice-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

#pdfDeckAV .chart-label-on-slice .slice-percent {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1;
}

#pdfDeckAV .chart-label-on-slice.small .slice-percent {
  font-size: 10px;
}

/* Élément central premium du camembert */
#pdfDeckAV .chart-center-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 4px 20px rgba(2,58,104,.12),
    0 2px 8px rgba(2,58,104,.06),
    inset 0 2px 4px rgba(255,255,255,.9),
    inset 0 -2px 6px rgba(2,58,104,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#pdfDeckAV .chart-center-element svg {
  width: 28px;
  height: 28px;
  stroke: #023A68;
  stroke-width: 1.5;
  fill: none;
}

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

#pdfDeckAV .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;
}

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

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

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

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

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

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

#pdfDeckAV .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);
}

#pdfDeckAV .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);
}

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

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

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

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

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

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

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

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

/* ==================
   SLIDE 6: TRANSMISSION
   ================== */

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

#pdfDeckAV .transmission-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pdfDeckAV .transmission-highlight {
  background: linear-gradient(135deg, var(--deck-deep) 0%, var(--deck-blue) 100%);
  color: var(--deck-text-inverse);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pdfDeckAV .transmission-highlight-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
}

#pdfDeckAV .transmission-highlight-value {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
}

#pdfDeckAV .transmission-highlight-sub {
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

#pdfDeckAV .transmission-info {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 16px;
  flex: 1;
}

#pdfDeckAV .transmission-info-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--deck-deep);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeckAV .transmission-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--deck-border);
}

#pdfDeckAV .transmission-info-row:last-child {
  border-bottom: none;
}

#pdfDeckAV .transmission-info-label {
  font-size: 12px;
  color: var(--deck-text-secondary);
}

#pdfDeckAV .transmission-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--deck-deep);
}

#pdfDeckAV .transmission-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pdfDeckAV .transmission-advantage {
  background: var(--deck-bg-alt);
  border: 1px solid var(--deck-border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

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

#pdfDeckAV .transmission-advantage-content {
  flex: 1;
}

#pdfDeckAV .transmission-advantage-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--deck-deep);
  margin-bottom: 4px;
}

#pdfDeckAV .transmission-advantage-text {
  font-size: 11px;
  color: var(--deck-text-secondary);
  line-height: 1.4;
}

/* ==================
   SLIDE 7: SYNTHESE
   ================== */

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

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

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

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

#pdfDeckAV .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;
}

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

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

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

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

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

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

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

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

#pdfDeckAV .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;
}

#pdfDeckAV .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;
}

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

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

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

#pdfDeckAV .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);
}

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

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

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

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

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

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

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

/* Slides avec disclaimer */
#pdfDeckAV .slide:not(.slide-cover) {
  padding-bottom: 50px;
}

/* ==================
   SLIDE 8: PROJECTION ANNUELLE
   ================== */

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

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

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

#pdfDeckAV .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);
}

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

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

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

#pdfDeckAV .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);
}

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

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

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

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

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

#pdfDeckAV .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;
}

#pdfDeckAV .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;
}

#pdfDeckAV .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;
}

#pdfDeckAV .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;
}

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

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

/* Arrondis coins inférieurs de la table */
#pdfDeckAV .projection-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

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

/* Couleurs des colonnes - même style que PER */
/* Colonne 2: Versements (bleu foncé) */
#pdfDeckAV .projection-table td:nth-child(2) {
  color: var(--deck-deep);
  font-weight: 600;
}

/* Colonne 3: Valeur (bleu foncé) */
#pdfDeckAV .projection-table td:nth-child(3) {
  color: var(--deck-deep);
  font-weight: 600;
}

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

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

/* ==================
   SLIDE 9: GLOSSAIRE
   ================== */

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

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

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

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

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

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

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

/* Classes de valeur pour les tableaux */
#pdfDeckAV .value-success { color: var(--deck-success) !important; font-weight: 600; }
#pdfDeckAV .value-danger { color: #D9534F !important; font-weight: 600; }

/* ==================
   FORMAT A4 (SLIDE 8)
   ================== */

/* Override dimensions for A4 format slide */
#pdfDeckAV .slide-a4 {
  width: 794px;  /* A4 width in pixels at 96 DPI */
  height: 1123px; /* A4 height in pixels at 96 DPI */
  padding: 30px 35px;
}

#pdfDeckAV .slide-a4 .slide-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

#pdfDeckAV .slide-a4 .slide-title {
  font-size: 20px;
}

#pdfDeckAV .slide-a4 .slide-logo-small {
  height: 36px;
}

#pdfDeckAV .slide-a4 .slide-page-number {
  bottom: 15px;
  right: 35px;
}
