/* ============================================================================
   Slides Editor & Presenter Styles
   Thème unique : Clean-Light ultra-lisible sur écran et vidéoprojecteur.
   Briques modulaires : Chiffres clés, Cartes, Callout, Puces.
   Transitions Morph fluides & Mode Présentateur.
   ============================================================================ */

.theme-clean-light {
  background-color: #f3eee5;
  color: #0f172a;
}

/* ---------- Workspace ---------- */
.sl-workspace {
  display: flex;
  flex: 1;
  height: 100%;
  overflow: hidden;
  background-color: #f3eee5;
}

.sl-toolbar {
  height: 44px;
  background: #ffffff;
  border-bottom: 1px solid #ded7ca;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 10;
}

/* ---------- Filmstrip (gauche) ---------- */
.sl-filmstrip {
  width: 200px;
  background: #ede6d8;
  border-right: 1px solid #ded7ca;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
}

.sl-film-head {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #57534e;
  border-bottom: 1px solid #ded7ca;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sl-count {
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  color: #166534;
  border: 1px solid #cbd5e1;
}

.sl-film-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sl-thumb {
  background: #ffffff;
  border: 2px solid #ded7ca;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.sl-thumb:hover {
  border-color: #10b981;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sl-thumb.active {
  border-color: #047857;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px #047857, 0 4px 8px rgba(4, 120, 87, 0.12);
}

.sl-thumb.dragging {
  opacity: 0.4;
}

.sl-thumb.drop-before {
  border-top: 3px solid #047857;
}

.sl-thumb-num {
  font-size: 10px;
  font-weight: 800;
  color: #78716c;
  margin-bottom: 4px;
}

.sl-thumb.active .sl-thumb-num {
  color: #047857;
}

.sl-thumb-scale {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  position: relative;
}

.sl-thumb-inner {
  width: 960px;
  height: 540px;
  transform: scale(0.185);
  transform-origin: top left;
  pointer-events: none;
}

.sl-thumb-inner .sl-frame {
  margin: 0;
  max-width: none;
  box-shadow: none;
  border: none;
}

.sl-thumb-foot {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #57534e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-film-add {
  margin: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1.5px dashed #a8a29e;
  background: #ffffff;
  color: #44403c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.sl-film-add:hover {
  border-color: #047857;
  color: #047857;
  background: #f0fdf4;
}

/* ---------- Zone centrale & Canevas ---------- */
.sl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f3eee5;
}

.sl-canvas-wrap {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sl-canvas-inner {
  width: 100%;
  max-width: 960px;
}

/* ---------- Barre de notes présentateur ---------- */
.sl-notesbar {
  background: #ede6d8;
  border-top: 1px solid #ded7ca;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sl-notes-label {
  font-size: 11px;
  font-weight: 800;
  color: #57534e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.sl-notes-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #ded7ca;
  border-radius: 6px;
  padding: 5px 10px;
  color: #1c1917;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  min-width: 0;
  transition: border-color 0.15s;
}

.sl-notes-input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 1px #047857;
}

/* ---------- Cadre de diapositive (Clean-Light Moderne aux Nuances de Vert) ---------- */
.sl-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 440px;
  border-radius: 22px;
  padding: 34px 44px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1.5px solid #d1fae5;
  box-shadow: 0 16px 38px -8px rgba(6, 78, 59, 0.08), 0 4px 10px -2px rgba(6, 78, 59, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  container-type: inline-size;
  color: #0f172a;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}

.sl-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-top: 10px;
  border-top: 1px solid #e7f3ec;
  padding-top: 8px;
}

.sl-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sl-foot-logo {
  height: 18px;
  max-width: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

.sl-cover-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sl-cover-logo {
  height: 38px;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

/* ==========================================================================
   VARIATIONS THÉMATIQUES SELON LE LAYOUT (Nuances de Vert & Lisibilité Écran)
   ========================================================================== */

/* 1. Page de Garde (Hero Slide - Charte Corporate MEDICADVANCED #0C0D10 & #50B237) */
.sl-frame.sl-layout-title {
  background: radial-gradient(ellipse at 85% 20%, #1e4618 0%, #0f240c 45%, #090d0a 100%);
  border: 2px solid #50B237;
  color: #ffffff;
  box-shadow: 0 24px 48px -12px rgba(12, 13, 16, 0.5), 0 0 0 1px rgba(80, 178, 55, 0.35);
}

.sl-frame.sl-layout-title .sl-cover-kicker {
  color: #50B237;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(80, 178, 55, 0.35);
}

.sl-frame.sl-layout-title .sl-cover-title-ro {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.sl-frame.sl-layout-title .sl-cover-sub,
.sl-frame.sl-layout-title .sl-cover-sub-ro {
  color: #E2EFD9;
  font-weight: 600;
}

.sl-frame.sl-layout-title .sl-cover-sub:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 0 0 1.5px #50B237;
}

.sl-frame.sl-layout-title .sl-foot {
  color: rgba(226, 239, 217, 0.85);
  border-top-color: rgba(80, 178, 55, 0.35);
}

/* 2. Chapitre / Section Transition (Charte MEDICADVANCED #E2EFD9 & #50B237) */
.sl-frame.sl-layout-section {
  background: linear-gradient(135deg, #E2EFD9 0%, #f4faf2 60%, #ffffff 100%);
  border: 1.5px solid #C5E0B4;
  border-left: 10px solid #50B237;
  box-shadow: 0 16px 36px -8px rgba(80, 178, 55, 0.14);
}

.sl-frame.sl-layout-section .sl-section-kicker {
  color: #50B237;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.sl-frame.sl-layout-section .sl-section-title,
.sl-frame.sl-layout-section .sl-section-title-ro {
  color: #0C0D10;
  text-shadow: 0 1px 2px rgba(12, 13, 16, 0.06);
}

.sl-frame.sl-layout-section .sl-section-sub {
  color: #538135;
  font-weight: 600;
}

.sl-frame.sl-layout-section .sl-section-title:focus,
.sl-frame.sl-layout-section .sl-section-sub:focus {
  background: #ffffff;
  box-shadow: 0 0 0 1.5px #059669;
}

.sl-frame.sl-layout-section .sl-foot {
  border-top-color: #a7f3d0;
  color: #047857;
}

/* 3. Page de Fin / Conclusion (Vert Sombre Somptueux) */
.sl-frame.sl-layout-end {
  background: radial-gradient(ellipse at 50% 15%, #065f46 0%, #064e3b 50%, #022c22 100%);
  border: 1.5px solid #059669;
  color: #ffffff;
  box-shadow: 0 24px 48px -12px rgba(2, 44, 34, 0.5);
}

.sl-frame.sl-layout-end .sl-end-kicker {
  color: #6ee7b7;
  letter-spacing: 0.2em;
  font-weight: 800;
}

.sl-frame.sl-layout-end .sl-end-title,
.sl-frame.sl-layout-end .sl-end-title-ro {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sl-frame.sl-layout-end .sl-end-sub,
.sl-frame.sl-layout-end .sl-end-sub-ro {
  color: #d1fae5;
}

.sl-frame.sl-layout-end .sl-end-title:focus,
.sl-frame.sl-layout-end .sl-end-sub:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 0 0 1.5px #6ee7b7;
}

.sl-frame.sl-layout-end .sl-callout-box {
  background: rgba(16, 185, 129, 0.16);
  border: 1.5px solid #34d399;
  color: #ffffff;
}

.sl-frame.sl-layout-end .sl-callout-lbl,
.sl-frame.sl-layout-end .sl-callout-lbl-ro {
  color: #a7f3d0;
}

.sl-frame.sl-layout-end .sl-callout-text,
.sl-frame.sl-layout-end .sl-callout-text-ro {
  color: #ffffff;
}

.sl-frame.sl-layout-end .sl-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.sl-frame.sl-layout-end .sl-card-title,
.sl-frame.sl-layout-end .sl-card-title-ro {
  color: #ffffff;
}

.sl-frame.sl-layout-end .sl-card-content,
.sl-frame.sl-layout-end .sl-card-content-ro {
  color: #d1fae5;
}

.sl-frame.sl-layout-end .sl-foot {
  color: rgba(209, 250, 229, 0.75);
  border-top-color: rgba(110, 231, 183, 0.25);
}

/* 4. Sommaire (voir static/kit-slides.css pour la charte officielle) */

/* 5. Citation (Quote Jade Glow) */
.sl-frame.sl-layout-quote {
  background: linear-gradient(140deg, #f7fcf9 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
}

.sl-frame.sl-layout-quote .sl-quote-text,
.sl-frame.sl-layout-quote .sl-quote-text-ro {
  border-left-color: #059669;
  color: #064e3b;
}

.sl-frame.sl-layout-quote .sl-quote-author,
.sl-frame.sl-layout-quote .sl-quote-author-ro {
  color: #047857;
}

/* 6. Frise Chronologique */
.sl-frame.sl-layout-timeline {
  background: linear-gradient(145deg, #ffffff 0%, #fbfdfc 100%);
}

.sl-frame.sl-layout-timeline .sl-timeline {
  border-left: 2.5px solid #059669;
}

.sl-frame.sl-layout-timeline .sl-mile-dot {
  background: #059669;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

.sl-frame.sl-layout-timeline .sl-mile-date,
.sl-frame.sl-layout-timeline .sl-mile-date-ro {
  color: #047857;
}

.sl-frame.sl-layout-timeline .sl-mile-title,
.sl-frame.sl-layout-timeline .sl-mile-title-ro {
  color: #064e3b;
}

/* ---------- Titres et sous-titres standards ---------- */
.sl-cover-kicker,
.sl-end-kicker,
.sl-section-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #059669;
  text-align: center;
  margin-bottom: 2px;
}

.sl-cover-title-ro {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.03em;
  padding: 4px 10px;
}

.sl-cover-sub,
.sl-end-sub {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: #334155;
  padding: 4px 8px;
  border-radius: 6px;
}

.sl-cover-sub:focus,
.sl-end-sub:focus,
.sl-slide-title:focus,
.sl-end-title:focus {
  background-color: #f0fdf4;
  box-shadow: 0 0 0 1.5px #059669;
}

.sl-cover-sub-ro,
.sl-end-sub-ro {
  font-size: 19px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  margin-top: 4px;
}

.sl-end-title {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  border-radius: 6px;
  padding: 4px;
}

.sl-end-title-ro {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
}

.sl-slide-title {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #064e3b;
  line-height: 1.25;
  padding: 2px 6px;
  border-radius: 6px;
}

.sl-slide-title-ro {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #064e3b;
  line-height: 1.25;
  margin-bottom: 4px;
}

/* ---------- Conteneur de briques modulaires ---------- */
.sl-bricks-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
  min-height: 0;
}

/* 1. Brique Chiffres Clés (Stats) */
.sl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.sl-stats-grid.single {
  max-width: 320px;
  margin: 0 auto;
}

.sl-stat-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  box-shadow: 0 2px 6px -1px rgba(6, 78, 59, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sl-stat-box:nth-child(2n) {
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  border-color: #6ee7b7;
}

.sl-stat-box:nth-child(3n) {
  background: linear-gradient(135deg, #f7fcf9 0%, #edf9f1 100%);
  border-color: #86efac;
}

.sl-stat-val {
  background: transparent;
  border: none;
  outline: none;
  font-size: 34px;
  font-weight: 900;
  color: #047857;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  padding: 1px 4px;
}

.sl-stat-val:focus,
.sl-stat-lbl:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 1.5px #059669;
}

.sl-stat-lbl {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 700;
  color: #14532d;
  line-height: 1.35;
  border-radius: 4px;
  padding: 1px 4px;
}

.sl-stat-val-ro {
  font-size: 34px;
  font-weight: 900;
  color: #047857;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.sl-stat-box:nth-child(2n) .sl-stat-val-ro,
.sl-stat-box:nth-child(2n) .sl-stat-val {
  color: #065f46;
}

.sl-stat-box:nth-child(3n) .sl-stat-val-ro,
.sl-stat-box:nth-child(3n) .sl-stat-val {
  color: #059669;
}

.sl-stat-lbl-ro {
  font-size: 13px;
  font-weight: 700;
  color: #14532d;
  line-height: 1.35;
}

/* 2. Brique Message Clé (Callout) */
.sl-callout-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #a7f3d0;
  border-left: 5px solid #059669;
  border-radius: 14px;
  padding: 14px 18px;
  position: relative;
  box-shadow: 0 4px 14px -3px rgba(4, 120, 87, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sl-callout-lbl {
  background: transparent;
  border: none;
  outline: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #047857;
  border-radius: 4px;
  padding: 1px 4px;
}

.sl-callout-text {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 700;
  color: #064e3b;
  line-height: 1.45;
  resize: none;
  border-radius: 4px;
  padding: 2px 4px;
  font-family: inherit;
}

.sl-callout-lbl:focus,
.sl-callout-text:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 1.5px #059669;
}

.sl-callout-lbl-ro {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #047857;
}

.sl-callout-text-ro {
  font-size: 16px;
  font-weight: 700;
  color: #064e3b;
  line-height: 1.45;
}

/* 3. Brique Cartes (Variations de Verts) */
.sl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sl-card {
  border-radius: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  box-shadow: 0 2px 8px -2px rgba(6, 78, 59, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Variantes Charte MEDICADVANCED pour cartes - Esprit papier chaud et sobre */
.sl-card.accent-primary {
  background: #f4f8f3 !important;
  border: 1px solid #c8dfc5 !important;
  border-left: 4px solid #50B237 !important;
  color: #1f2a1e !important;
}
.sl-card.accent-primary .sl-card-title,
.sl-card.accent-primary .sl-card-content,
.sl-card.accent-primary .sl-card-title-ro,
.sl-card.accent-primary .sl-card-content-ro {
  color: #1f2a1e !important;
}
.sl-card.accent-primary .sl-card-badge,
.sl-card.accent-primary .sl-card-badge-ro {
  background: #e2f0df !important;
  color: #275e1f !important;
  border: 1px solid #b7d9b2 !important;
}
.sl-card.accent-primary .sl-card-accent {
  background: #e2f0df !important;
  color: #275e1f !important;
  border-color: #b7d9b2 !important;
}
.sl-card.accent-primary textarea,
.sl-card.accent-primary input {
  color: #1f2a1e !important;
}
.sl-card.accent-primary textarea::placeholder,
.sl-card.accent-primary input::placeholder {
  color: rgba(31, 42, 30, 0.5) !important;
}

.sl-card.accent-secondary {
  background: #25221e !important;
  border: 1px solid #3d3730 !important;
  border-left: 4px solid #50B237 !important;
  color: #f5f2eb !important;
}
.sl-card.accent-secondary .sl-card-title,
.sl-card.accent-secondary .sl-card-content,
.sl-card.accent-secondary .sl-card-title-ro,
.sl-card.accent-secondary .sl-card-content-ro {
  color: #f5f2eb !important;
}
.sl-card.accent-secondary .sl-card-badge,
.sl-card.accent-secondary .sl-card-badge-ro {
  background: #332e28 !important;
  color: #8edc7c !important;
  border: 1px solid #4a433a !important;
}
.sl-card.accent-secondary .sl-card-accent {
  background: #332e28 !important;
  color: #8edc7c !important;
  border-color: #4a433a !important;
}
.sl-card.accent-secondary textarea,
.sl-card.accent-secondary input {
  color: #f5f2eb !important;
}
.sl-card.accent-secondary textarea::placeholder,
.sl-card.accent-secondary input::placeholder {
  color: rgba(245, 242, 235, 0.5) !important;
}

.sl-card.accent-accent {
  background: #fbf8f2 !important;
  border: 1px solid #ded7ca !important;
  border-left: 4px solid #b07d3b !important;
  color: #2a2723 !important;
}
.sl-card.accent-accent .sl-card-title,
.sl-card.accent-accent .sl-card-content,
.sl-card.accent-accent .sl-card-title-ro,
.sl-card.accent-accent .sl-card-content-ro {
  color: #2a2723 !important;
}
.sl-card.accent-accent .sl-card-badge,
.sl-card.accent-accent .sl-card-badge-ro {
  background: #f3ede2 !important;
  color: #805720 !important;
  border: 1px solid #dfd3c3 !important;
}
.sl-card.accent-accent .sl-card-accent {
  background: #f3ede2 !important;
  color: #805720 !important;
  border-color: #dfd3c3 !important;
}
.sl-card.accent-accent textarea,
.sl-card.accent-accent input {
  color: #2a2723 !important;
}
.sl-card.accent-accent textarea::placeholder,
.sl-card.accent-accent input::placeholder {
  color: rgba(42, 39, 35, 0.5) !important;
}

.sl-card.accent-muted {
  background: #ffffff !important;
  border: 1px solid #ded7ca !important;
  border-left: 4px solid #7c756b !important;
  color: #2a2723 !important;
}
.sl-card.accent-muted .sl-card-title,
.sl-card.accent-muted .sl-card-content,
.sl-card.accent-muted .sl-card-title-ro,
.sl-card.accent-muted .sl-card-content-ro {
  color: #2a2723 !important;
}
.sl-card.accent-muted .sl-card-badge,
.sl-card.accent-muted .sl-card-badge-ro {
  background: #f5f2ec !important;
  color: #5c554e !important;
  border: 1px solid #ded7ca !important;
}
.sl-card.accent-muted .sl-card-accent {
  background: #f5f2ec !important;
  color: #5c554e !important;
  border-color: #ded7ca !important;
}
.sl-card.accent-muted textarea,
.sl-card.accent-muted input {
  color: #2a2723 !important;
}
.sl-card.accent-muted textarea::placeholder,
.sl-card.accent-muted input::placeholder {
  color: rgba(42, 39, 35, 0.5) !important;
}

.sl-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sl-card-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
  outline: none;
}

.sl-card-accent {
  background: transparent;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  cursor: pointer;
}

.sl-card-title {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.3;
  border-radius: 4px;
  padding: 2px 4px;
}

.sl-card-content {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
  resize: none;
  font-family: inherit;
  border-radius: 4px;
  padding: 2px 4px;
}

.sl-card-title:focus,
.sl-card-content:focus {
  background-color: #f0fdf4;
  box-shadow: 0 0 0 1.5px #059669;
}

.sl-card-badge-ro {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  margin-bottom: 4px;
}

.sl-card-title-ro {
  font-size: 16px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.3;
}

.sl-card-content-ro {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
}

/* 4. Brique Puces (Bullets) */
.sl-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sl-bullet-row {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}

.sl-bullet-row.lvl-1 { margin-left: 28px; }
.sl-bullet-row.lvl-2 { margin-left: 56px; }

.sl-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.sl-bullet-row.lvl-1 .sl-bullet-dot {
  border-radius: 2px;
  width: 7px;
  height: 7px;
  background: #10b981;
  box-shadow: none;
}

.sl-bullet-row.lvl-2 .sl-bullet-dot {
  background: transparent;
  border: 2px solid #059669;
  width: 6px;
  height: 6px;
}

.sl-bullet-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 0;
}

.sl-bullet-input:focus {
  background-color: #f0fdf4;
  box-shadow: 0 0 0 1.5px #059669;
}

.sl-bullet-row.lvl-1 .sl-bullet-input { font-size: 15px; color: #1e293b; }
.sl-bullet-row.lvl-2 .sl-bullet-input { font-size: 14px; color: #334155; }

/* Boutons de suppression de brique */
.sl-brick-del,
.sl-card-del,
.sl-bullet-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.15s;
}

.sl-bullet-del {
  position: static;
  margin-left: 6px;
}

.sl-stat-box:hover .sl-brick-del,
.sl-callout-box:hover .sl-brick-del,
.sl-card:hover .sl-brick-del,
.sl-card:hover .sl-card-del,
.sl-bullet-row:hover .sl-bullet-del {
  display: flex;
}

.sl-brick-del:hover,
.sl-card-del:hover,
.sl-bullet-del:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Barre d'ajout de briques sur la diapositive */
.sl-brick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  margin-top: 6px;
}

.sl-brick-actions-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.sl-brick-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sl-brick-btn:hover {
  background: #f0fdf4;
  border-color: #047857;
  color: #047857;
}

.sl-mini-btn {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  cursor: pointer;
  margin-top: 4px;
}

.sl-mini-btn:hover {
  background: #f1f5f9;
}

.sl-mini-btn.danger {
  color: #dc2626;
  border-color: #fca5a5;
}

/* 5. Colonnes */
.sl-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  flex: 1;
}

.sl-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sl-col-heading,
.sl-col-heading-ro {
  font-size: 18px;
  font-weight: 800;
  color: #064e3b;
  padding-bottom: 6px;
  border-bottom: 2.5px solid #059669;
  margin-bottom: 6px;
}

.sl-col-heading {
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  outline: none;
  border-radius: 0;
  width: 100%;
}

.sl-col-heading:focus {
  background-color: #f8fafc;
}

/* 6. Image & Citation */
.sl-image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sl-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sl-image-empty {
  width: 100%;
  min-height: 180px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.sl-image-actions { display: flex; gap: 8px; }
.sl-image-url, .sl-image-caption {
  width: 100%;
  max-width: 480px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font-size: 12px;
  padding: 5px 8px;
}

.sl-image-caption-ro {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.sl-quote-text {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: #0f172a;
  border-left: 4px solid #047857;
  padding-left: 14px;
  resize: none;
  border-radius: 4px;
}

.sl-quote-author {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  text-align: right;
  padding: 2px 6px;
}

.sl-quote-text:focus,
.sl-quote-author:focus {
  background-color: #f8fafc;
}

.sl-quote-text-ro {
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: #0f172a;
  border-left: 4px solid #047857;
  padding-left: 14px;
}

.sl-quote-author-ro {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  text-align: right;
  margin-top: 6px;
}

/* ---------- Transitions Morph ---------- */
.trans-morph {
  view-transition-name: sl-slide-view;
  animation: slmorphIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slmorphIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

::view-transition-old(sl-slide-view) {
  animation: 200ms cubic-bezier(0.2, 0, 0, 1) both slmorphOut;
}

::view-transition-new(sl-slide-view) {
  animation: 250ms cubic-bezier(0.2, 0, 0, 1) both slmorphIn;
}

@keyframes slmorphOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.98) translateY(-6px);
  }
}

/* ---------- Mode Présentateur Plein Écran ---------- */
.sl-present-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #09090b;
  display: flex;
  gap: 20px;
  padding: 28px;
  overflow: auto;
}

.sl-present-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.sl-present-framewrap {
  width: 100%;
  max-width: 1100px;
}

.sl-present-framewrap .sl-frame {
  min-height: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sl-present-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sl-present-controls button {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sl-present-controls button:hover {
  background: #3f3f46;
  border-color: #52525b;
}

.sl-present-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sl-present-controls button.danger {
  background: #991b1b;
  border-color: #b91c1c;
}

.sl-present-controls button.danger:hover {
  background: #dc2626;
}

.sl-present-side {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #e4e4e7;
}

.sl-present-timer,
.sl-present-notes,
.sl-present-next {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 14px;
}

.sl-timer-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  margin-bottom: 6px;
}

.sl-timer-value {
  font-size: 38px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #10b981;
}

.sl-timer-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sl-timer-btns button,
.sl-present-next-thumb {
  cursor: pointer;
}

.sl-timer-btns button {
  flex: 1;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #fff;
  border-radius: 8px;
  padding: 6px;
  font-size: 12px;
  font-weight: 700;
}

.sl-timer-btns button:hover {
  background: #3f3f46;
}

.sl-present-notes-text {
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  color: #d4d4d8;
}

.sl-present-next-thumb .sl-frame {
  aspect-ratio: 16/9;
  min-height: 0;
  padding: 10px 12px;
  font-size: 8px;
}

.sl-present-next-thumb .sl-frame .sl-stat-val-ro { font-size: 14px; }
.sl-present-next-thumb .sl-frame .sl-stat-lbl-ro { font-size: 8px; }
.sl-present-next-thumb .sl-frame .sl-cover-title-ro,
.sl-present-next-thumb .sl-frame .sl-slide-title-ro,
.sl-present-next-thumb .sl-frame .sl-end-title-ro { font-size: 12px; }
.sl-present-next-thumb .sl-foot { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .sl-workspace { flex-direction: column; }
  .sl-filmstrip { width: 100%; border-right: none; border-bottom: 1px solid #ded7ca; }
  .sl-film-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .sl-thumb { flex-shrink: 0; }
  .sl-film-add { margin: 6px 10px; }
  .sl-frame { padding: 20px; min-height: 320px; }
  .sl-cover-title-ro { font-size: 28px; }
  .sl-slide-title, .sl-end-title { font-size: 20px; }
  .sl-cols { grid-template-columns: 1fr; }
  .sl-cards { grid-template-columns: 1fr; }
  .sl-present-overlay { flex-direction: column; }
  .sl-present-side { width: 100%; }
}

/* 9. Sommaire */
.sl-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-toc-item { display: flex; gap: 12px; align-items: baseline; font-size: 17px; font-weight: 600; color: #0f172a; }
.sl-toc-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 99px; background: #047857; color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; transform: translateY(2px); }
.sl-toc-empty { font-size: 14px; color: #64748b; font-style: italic; }
.sl-toc-hint { font-size: 11px; color: #64748b; margin-top: 4px; }

/* 10. Frise chronologique */
.sl-timeline { position: relative; margin: 4px 0 4px 8px; padding-left: 24px; border-left: 2px solid #047857; display: flex; flex-direction: column; gap: 16px; }
.sl-mile { position: relative; }
.sl-mile-dot { position: absolute; left: -31px; top: 5px; width: 12px; height: 12px; border-radius: 99px; background: #047857; border: 2px solid #fff; box-shadow: 0 0 0 2px #047857; }
.sl-mile-date, .sl-mile-title, .sl-mile-text { width: 100%; background: transparent; border: none; outline: none; padding: 1px 6px; border-radius: 4px; min-width: 0; }
.sl-mile-date { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #047857; }
.sl-mile-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.sl-mile-text { font-size: 13px; color: #334155; resize: vertical; font-family: inherit; }
.sl-mile-date:focus, .sl-mile-title:focus, .sl-mile-text:focus { background-color: #f8fafc; box-shadow: 0 0 0 1.5px #047857; }
.sl-mile-date-ro { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #047857; }
.sl-mile-title-ro { font-size: 16px; font-weight: 700; color: #0f172a; }
.sl-mile-text-ro { font-size: 13px; color: #334155; }

/* 11. Image + texte */
.sl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; flex: 1; min-height: 0; }
.sl-split-media { min-width: 0; }
.sl-split-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 820px) {
  .sl-split { grid-template-columns: 1fr; }
}

/* Chapitre : champs de saisie (Ã©taient des <input> bruts non stylÃ©s) */
.sl-section-title,
.sl-section-sub {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  color: #0f172a;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
}
.sl-section-title { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; }
.sl-section-sub { font-size: 18px; font-weight: 600; color: #334155; }
.sl-section-title:focus,
.sl-section-sub:focus { background-color: #f1f5f9; box-shadow: 0 0 0 1.5px #047857; }
.sl-section-title-ro { font-size: 38px; font-weight: 900; color: #0f172a; text-align: center; letter-spacing: -0.02em; }
.sl-mile-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
