/* Deck commercial — mise en page slides (réutilise les tokens de style.css). */
.deck-body { background: var(--bg-muted); }
.deck-toolbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--bg-surface); border-bottom: 1px solid var(--border);
}
.deck-title { font-weight: 600; color: var(--text-secondary); font-size: var(--text-sm); }
.deck { max-width: min(1500px, 94vw); margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 26px; }

.slide {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 56px; min-height: 86vh; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.slide-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 18px; margin-bottom: 28px; }
.slide-num { font-size: var(--text-sm); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slide-title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 800; margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
.slide-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 0; }
.slide-text { display: grid; gap: 26px; align-content: center; }
.slide-label { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.slide-block-reco .slide-label { color: var(--success); }
.slide-text p { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.4rem); line-height: 1.55; color: var(--text); margin: 0; }
.slide-block-reco p { font-weight: 600; }
.slide-viz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; width: 100%; }
.slide-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-muted); }

/* Visualisations */
.viz-gauge { width: 320px; height: auto; }
.viz-spark { width: 100%; max-width: 560px; height: 240px; }
.viz-donut { width: 240px; height: 240px; }
.viz-radar { width: 100%; max-width: 480px; height: auto; }
.viz-cap { font-size: var(--text-sm); color: var(--text-muted); text-align: center; }
.viz-empty { color: var(--text-muted); font-size: var(--text-sm); }
.viz-treemap { position: relative; width: 100%; height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--bg-muted); }
.viz-img { width: 100%; max-width: 560px; height: auto; border-radius: var(--radius-lg); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.viz-tm-cell { position: absolute; display: flex; flex-direction: column; justify-content: center; padding: 6px 8px; border: 1.5px solid var(--bg-surface); overflow: hidden; }
.viz-tm-n { font-weight: 700; font-size: var(--text-xs); line-height: 1.1; }
.viz-tm-v { font-size: 10px; opacity: .92; font-variant-numeric: tabular-nums; }
.viz-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.viz-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--border); }
.viz-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.viz-list { list-style: none; display: grid; gap: 12px; width: 100%; }
.viz-list li { display: flex; align-items: center; gap: 10px; font-size: var(--text-base); }
.viz-li-badge { background: var(--accent-bg); color: var(--accent); font-weight: 700; font-size: var(--text-xs); padding: 2px 9px; border-radius: 6px; flex-shrink: 0; }
.viz-gemini { width: 100%; min-height: 250px; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: var(--bg-muted); }
.viz-gemini-ico { font-size: 34px; color: var(--accent); line-height: 1; }
.viz-gemini-t { font-weight: 700; color: var(--text-secondary); }
.viz-gemini-p { font-size: var(--text-xs); color: var(--text-muted); max-width: 44ch; line-height: 1.55; font-style: italic; }

@media (max-width: 820px) {
  .slide { aspect-ratio: auto; padding: 22px; }
  .slide-body { grid-template-columns: 1fr; gap: 22px; }
  .slide-title { font-size: var(--text-xl); }
}

@media print {
  @page { size: A4 landscape; margin: 0; }
  .deck-toolbar { display: none !important; }
  .deck-body { background: white; }
  .deck { max-width: none; margin: 0; padding: 0; gap: 0; }
  .slide { aspect-ratio: auto; height: 100vh; border: none; border-radius: 0; box-shadow: none; page-break-after: always; }
  .slide:last-child { page-break-after: auto; }
}
