/* === PRESENTER.CSS — Formation : Renaître v2 ===
   Mobile-first. Zoom projection + phone / tablet friendly.
   ======================================================= */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Root layout ────────────────────────────────────────────────────────── */
body#presenter-page {
  font-family: var(--font-body, 'Segoe UI', system-ui, sans-serif);
  background: #f7f5f0;
  color: var(--text, #1a2f50);
  min-height: 100dvh;
  overflow: hidden;
}

#prs-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100svh;
  position: relative;
  overflow: hidden;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */
#prs-topbar {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  background: #1a2f50;
  color: #fff;
  flex-shrink: 0;
  gap: 10px;
  z-index: 200;
  position: relative;
}

#prs-btn-home {
  color: #b8c9e0;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
#prs-btn-home:hover { background: rgba(255,255,255,.1); }

#prs-module-label {
  flex: 1;
  font-size: .85rem;
  font-weight: 700;
  color: #c9a227;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  transition: background .15s;
}
#prs-module-label:not(:disabled):hover { background: rgba(255,255,255,.08); }
#prs-module-label:disabled { cursor: default; }
#prs-module-label:not(:disabled)::after {
  content: '▾';
  margin-left: 6px;
  font-size: .7rem;
  opacity: .8;
}
#prs-module-label[aria-expanded="true"]::after { content: '▴'; }

#prs-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

#prs-counter {
  font-size: .75rem;
  color: #8aa3c0;
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

#prs-btn-video-toggle,
#prs-btn-notes,
#prs-btn-fullscreen {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 7px;
  font-size: .9rem;
  padding: 6px 9px;
  cursor: pointer;
  min-height: 36px;
  min-width: 36px;
  transition: background .15s;
}
#prs-btn-video-toggle:hover,
#prs-btn-notes:hover,
#prs-btn-fullscreen:hover { background: rgba(255,255,255,.2); }

/* ── Section navigation (slides within the current module) ──────────────── */
#prs-section-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(560px, calc(100vw - 24px));
  max-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px;
  background: #142744;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 199;
  transition: max-height .2s ease, opacity .15s ease, padding .2s ease, transform .2s ease;
}
#prs-section-nav.open {
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 14px;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.section-pill {
  flex-shrink: 0;
  max-width: 160px;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #a9bdd6;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.section-pill:hover { background: rgba(255,255,255,.12); color: #fff; }
.section-pill.active {
  background: #c9a227;
  border-color: #c9a227;
  color: #1a2f50;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
#prs-progress-wrap {
  height: 4px;
  background: rgba(26,47,80,.15);
  flex-shrink: 0;
}#prs-progress-fill {
  height: 100%;
  background: #c9a227;
  transition: width .35s ease;
}

/* ── Slide zone ─────────────────────────────────────────────────────────── */
#prs-slide-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

#prs-slide {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideIn .22s ease both;
  outline: none;
}
#prs-slide.reverse { animation: slideInBack .22s ease both; }

#prs-video-dock {
  position: absolute;
  right: 18px;
  bottom: 82px;
  width: min(340px, calc(100vw - 28px));
  max-height: min(52vh, 420px);
  background: rgba(11, 20, 33, 0.93);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(9,16,29,.35);
  z-index: 30;
  overflow: hidden;
}
#prs-video-dock.hidden { display: none; }

.prs-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(201, 162, 39, 0.12);
  color: #f9f3d9;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

#prs-video-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  opacity: .8;
}

#prs-video-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  overflow-y: auto;
  max-height: calc(min(52vh, 420px) - 48px);
}

.prs-video-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.prs-video-label {
  padding: 8px 10px 0;
  color: #dfe9f7;
  font-size: .74rem;
  font-weight: 700;
}

.prs-video-actions {
  display: flex;
  gap: 8px;
  padding: 10px 10px 0;
}

.prs-video-toggle,
.prs-video-stop,
.prs-video-open {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(201, 162, 39, 0.18);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.prs-video-stop {
  background: rgba(255,255,255,.06);
}

.prs-video-open {
  background: rgba(73, 164, 120, 0.18);
}

.prs-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b1526;
  margin-top: 8px;
}

.prs-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(11,21,38,.8), rgba(11,21,38,.95));
  z-index: 1;
}

.prs-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 2;
}

@keyframes slideIn     { from { opacity:0; transform: translateX(28px);  } to { opacity:1; transform: none; } }
@keyframes slideInBack { from { opacity:0; transform: translateX(-28px); } to { opacity:1; transform: none; } }

/* ── Bottom navigation ──────────────────────────────────────────────────── */
#prs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  background: #fff;
  border-top: 1px solid #e5e0d8;
  flex-shrink: 0;
  gap: 12px;
}

#prs-btn-prev,
#prs-btn-next {
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  min-width: 100px;
  border: none;
  transition: background .15s, transform .1s;
}
#prs-btn-prev {
  background: #f0eee9;
  color: #1a2f50;
}
#prs-btn-prev:hover:not(:disabled) { background: #e5e0d8; }
#prs-btn-next {
  background: #1a2f50;
  color: #fff;
}
#prs-btn-next:hover:not(:disabled) { background: #253f6a; }
#prs-btn-prev:disabled,
#prs-btn-next:disabled {
  opacity: .35;
  cursor: not-allowed;
}
#prs-btn-prev:active:not(:disabled),
#prs-btn-next:active:not(:disabled) { transform: scale(.96); }

#prs-nav-counter {
  font-size: .8rem;
  color: #8a9bae;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDE TYPES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Cover ──────────────────────────────────────────────────────────────── */
.slide-cover {
  background: linear-gradient(150deg, #1a2f50 0%, #2d4a7a 60%, #1e3a6e 100%);
  color: #fff;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
}
.cover-inner { max-width: 760px; }
.cover-title {
  font-family: var(--font-head, Georgia, serif);
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  white-space: nowrap;
}
.cover-subtitle {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  color: #b8c9e0;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Objectives ─────────────────────────────────────────────────────────── */
.slide-objectives { padding: 32px 28px; }
.slide-objectives .slide-title { margin-bottom: 24px; }
.objectives-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.objectives-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f7f5f0;
  border-left: 4px solid #c9a227;
  padding: 13px 18px;
  border-radius: 0 8px 8px 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.55;
  color: #1a2f50;
}
.objectives-list li::before {
  content: '✓';
  color: #c9a227;
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Module banner ──────────────────────────────────────────────────────── */
.slide-module-banner {
  background: #1a2f50;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 14px;
}
.module-banner-img {
  max-width: min(260px, 65vw);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.module-banner-placeholder {
  min-width: 202px;
  padding: 12px 28px;
  border-radius: 10px;
  background: #2a7cbe;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.module-banner-title {
  font-family: var(--font-head, Georgia, serif);
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.slide-content { padding: 32px 28px; }

.slide-module-tag {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #c9a227;
  margin-bottom: 8px;
}
.slide-title {
  font-family: var(--font-head, Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #1a2f50;
  margin-bottom: 22px;
  line-height: 1.25;
  border-bottom: 2px solid #c9a227;
  padding-bottom: 12px;
}
.slide-body {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  color: #2c3e55;
}
.slide-body ul, .slide-body ol {
  padding-left: 22px;
  margin: 12px 0;
}
.slide-body li { margin-bottom: 9px; }
.slide-body strong { color: #1a2f50; }
.slide-body p { margin-bottom: 14px; }
.slide-body p:last-child { margin-bottom: 0; }
.slide-quote {
  margin-top: 18px;
  padding: 16px 20px;
  background: #f0ebe0;
  border-left: 4px solid #c9a227;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #1a2f50;
}

.slide-question {
  margin-top: 20px;
  padding: 14px 22px;
  background: #1a55a0;
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
}

.croyances-img {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
  object-position: center bottom;
  margin-top: 18px;
}

/* ── Visual ──────────────────────────────────────────────────────────────── */
.slide-visual {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Quand une diapo visuelle a du texte en plus (ex: triangle+analyse),
   on passe en layout côte-à-côte : image à gauche, texte à droite.
   height strict + overflow:hidden = jamais de débordement. */
.slide-visual-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  height: calc(100vh - 295px);
  overflow: hidden;
}
.slide-visual-split .slide-visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  mix-blend-mode: multiply;
  clip-path: inset(0 0 8% 0);
}
.slide-visual-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
}
/* Layout 3 colonnes : image1 | texte | image2 */
.slide-visual-tri {
  display: grid;
  grid-template-columns: 5fr 4fr 5fr;
  gap: 40px;
  align-items: center;
  height: calc(100vh - 295px);
  overflow: hidden;
}
.slide-visual-tri-img {
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.slide-visual-tri-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.slide-visual-tri-caption {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2f50;
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}
.slide-visual-tri-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  overflow: hidden;
}
.slide-visual-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-visual-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  margin: 0 auto 12px;
  display: block;
}
.slide-caption {
  font-size: clamp(.9rem, 2vw, 1rem);
  color: #5a6a7a;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}
.slide-visual-body {
  margin-top: 0;
  padding-top: 0;
}
.triangle-analysis-title {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 16px;
  color: #1a2f50;
}
.triangle-analysis ul {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.triangle-analysis li {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: #2c3e55;
}
/* ── Triangle ────────────────────────────────────────────────────────────── */
.slide-triangle { padding: 24px 28px; text-align: center; }
.triangle-stage {
  display: flex;
  justify-content: center;
  margin: 16px auto 8px;
}
.triangle-canvas-wrap {
  position: relative;
  width: min(620px, 92vw);
  height: min(520px, 80vw);
}
#prs-triangle-canvas {
  width: 100%;
  height: 100%;
}
.triangle-caption {
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: #5a6a7a;
  font-style: italic;
  margin-top: 10px;
}
.triangle-replay-btn {
  display: block;
  margin: 16px auto 0;
  background: #1a2f50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.triangle-replay-btn:hover { background: #253f6a; }

/* ── Synthesis ───────────────────────────────────────────────────────────── */
.slide-synthesis { padding: 32px 28px; }
.synthesis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.synthesis-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26,47,80,.07);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.55;
  color: #1a2f50;
}
.synthesis-list li::before {
  content: '◆';
  color: #c9a227;
  font-size: .68rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   EXERCISE SLIDES — amber background, distinct visual
   ══════════════════════════════════════════════════════════════════════════ */
.slide-exercise {
  flex: 1;
  background: #fff8e7;
  padding: 28px 28px 40px;
  border-top: 4px solid #c9a227;
}

.ex-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ex-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #c9a227;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.ex-duration {
  font-size: .76rem;
  color: #7a6020;
  font-weight: 600;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.4);
  padding: 4px 10px;
  border-radius: 14px;
}

.ex-title {
  font-family: var(--font-head, Georgia, serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: #1a2f50;
  line-height: 1.25;
  margin-bottom: 6px;
}
.ex-subtitle {
  font-size: clamp(.92rem, 2.2vw, 1.05rem);
  color: #6b5c30;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.55;
}

.ex-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  margin: 0 auto 14px;
  display: block;
}

.ex-instruction {
  font-size: clamp(.95rem, 2.2vw, 1.08rem);
  font-weight: 600;
  color: #4a3c10;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-instruction::before { content: '✍'; font-size: 1.15em; }

/* Question tabs */
.ex-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.ex-tab {
  flex: 1;
  padding: 11px 16px;
  border: 2px solid #c9a227;
  border-radius: 8px;
  background: transparent;
  color: #c9a227;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.ex-tab.active {
  background: #c9a227;
  color: #fff;
}
.ex-tab:hover:not(.active) {
  background: #fdf3d8;
}
.ex-tab-panel {
  display: none;
}
.ex-tab-panel.active {
  display: block;
}

/* Question list */
.ex-questions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ex-question {
  background: #fff;
  border-radius: 10px;
  padding: 13px 18px;
  border-left: 4px solid #c9a227;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.ex-q-num {
  font-size: .78rem;
  font-weight: 700;
  color: #c9a227;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ex-q-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: #1a2f50;
  line-height: 1.45;
}
.ex-q-title {
  color: #173a63;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.ex-q-hint {
  font-size: clamp(.85rem, 2vw, .95rem);
  color: #8a7040;
  font-style: italic;
  line-height: 1.45;
}

/* Checklist exercise */
.ex-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (min-width: 540px) {
  .ex-checklist-grid { grid-template-columns: 1fr 1fr; }
}
.ex-checklist-col { display: flex; flex-direction: column; gap: 6px; }
.ex-checklist-header {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.ex-checklist-header.neg { background: #fdeaea; color: #a03030; border-left: 4px solid #e57373; }
.ex-checklist-header.pos { background: #eaf5ea; color: #2a7a2a; border-left: 4px solid #66bb6a; }
.ex-checklist-item {
  font-size: clamp(.9rem, 2vw, 1rem);
  padding: 8px 14px;
  background: #fff;
  border-radius: 8px;
  color: #1a2f50;
  line-height: 1.5;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Auto-évaluation axes */
.ex-axes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ex-axis {
  background: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ex-axis-num {
  font-size: .95rem;
  font-weight: 700;
  color: #c9a227;
  flex-shrink: 0;
  width: 20px;
}
.ex-axis-content { flex: 1; }
.ex-axis-name {
  display: block;
  font-weight: 700;
  color: #1a2f50;
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  margin-bottom: 3px;
}
.ex-axis-q {
  display: block;
  font-size: clamp(.88rem, 2vw, 1rem);
  color: #5a6a7a;
  line-height: 1.45;
  margin-bottom: 8px;
}
.ex-scale-visual {
  display: flex;
  gap: 5px;
}
.ex-scale-visual span {
  width: 26px;
  height: 26px;
  border: 2px solid #c9a227;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 700;
  color: #c9a227;
  flex-shrink: 0;
}

/* ── Notes panel ─────────────────────────────────────────────────────────── */
#prs-notes-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: #1a2f50;
  color: #e8ecf2;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  max-height: 50dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform .28s ease;
}
#prs-notes-panel.hidden { transform: translateY(110%); }

#prs-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
#prs-notes-header span {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #c9a227;
}
#prs-notes-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#prs-notes-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  font-size: clamp(.86rem, 2vw, .96rem);
  line-height: 1.65;
  color: #c8d5e8;
}

/* ── Desktop ─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  #prs-topbar { padding: 0 24px; gap: 16px; height: 56px; }
  .slide-content,
  .slide-visual,
  .slide-triangle,
  .slide-objectives,
  .slide-synthesis,
  .slide-exercise { padding: 40px 52px; }
  .slide-cover { padding: 64px 56px; }
  .slide-module-banner { padding: 60px 56px; }
  #prs-btn-notes { padding: 6px 14px; }
  #prs-btn-notes::before { content: ''; }
}

@media (min-width: 1100px) {
  #prs-notes-panel {
    position: fixed;
    top: 56px; right: 0; bottom: 60px;
    left: auto;
    width: 340px;
    max-height: none;
    border-radius: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,.2);
    transform: translateX(0);
    transition: transform .28s ease;
  }
  #prs-notes-panel.hidden { transform: translateX(110%); }
}

/* ── Fullscreen ──────────────────────────────────────────────────────────── */
:fullscreen #prs-app, :-webkit-full-screen #prs-app { height: 100vh; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.modal-box h3 {
  font-family: var(--font-head, Georgia, serif);
  font-size: 1.2rem;
  color: #1a2f50;
  margin-bottom: 10px;
}
.modal-box p {
  font-size: .95rem;
  color: #3a4a5a;
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Closing slide ─────────────────────────────────────────────────────── */
.slide-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--clr-dark, #1a2f50);
  text-align: center;
  padding: 40px;
}
.closing-question-mark {
  font-size: 9rem;
  font-weight: 900;
  color: #c9a227;
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(201,162,39,.35);
}
.closing-title {
  font-family: var(--font-head, Georgia, serif);
  font-size: 3.2rem;
  color: #fff;
  margin: 0 0 16px;
}
.closing-subtitle {
  font-size: 1.6rem;
  color: #a8c4e0;
  margin: 0;
  letter-spacing: 0.04em;
}
.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 900px;
  margin-top: 34px;
}
.closing-restart-btn {
  padding: 14px 32px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-head, Georgia, serif);
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, border-color .2s;
}
.closing-restart-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}
.closing-module-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  color: #a8c4e0;
  font-size: .95rem;
}
.closing-module-choice select {
  min-height: 46px;
  padding: 0 34px 0 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: #1a2f50;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.closing-module-choice select:focus-visible,
.closing-restart-btn:focus-visible {
  outline: 3px solid #c9a227;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .closing-actions {
    flex-direction: column;
    width: min(100%, 360px);
  }
  .closing-restart-btn,
  .closing-module-choice,
  .closing-module-choice select {
    width: 100%;
  }
  .closing-module-choice {
    flex-direction: column;
  }
}

/* ── Module lock panel ───────────────────────────────────────────────────── */
#prs-lock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 20px;
  background: #0f1e35;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}

#prs-lock-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#prs-lock-label {
  color: #7a9cbd;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

#prs-module-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.pill-open {
  background: rgba(42,154,90,.25);
  color: #5fcc8a;
  border: 1px solid rgba(42,154,90,.4);
}
.pill-locked {
  background: rgba(255,255,255,.05);
  color: #4a6580;
  border: 1px solid rgba(255,255,255,.08);
}

#prs-lock-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.prs-lock-btn {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: #7a9cbd;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.prs-lock-btn:hover:not(:disabled)  { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.4); color: #a8c4e0; }
.prs-lock-btn:active:not(:disabled) { transform: translateY(1px); }
.prs-lock-btn:disabled { opacity: .3; cursor: not-allowed; }

.prs-unlock-btn {
  padding: 5px 14px;
  background: #2a9a5a;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.prs-unlock-btn:hover  { background: #228a4e; }
.prs-unlock-btn:active { transform: translateY(1px); }
