/* ===================================================
   Thème REX Lyon Craft — Indigo & Sable
   Identité visuelle Didier ERIN
   =================================================== */

:root {
  --indigo-deep: #1b1040;
  --indigo: #3a2d7d;
  --indigo-light: #5e4db2;
  --sable: #e8b944;
  --sable-light: #f2d06b;
  --sable-pale: #fdf0d0;
  --terre: #c47a2a;
  --ivoire: #faf6ee;
  --text-main: #f0ece4;
  --text-muted: #b8b0c8;
}

/* ---- Fond global ---- */
.reveal-viewport {
  background: linear-gradient(160deg, var(--indigo-deep) 0%, #0f0a28 100%) !important;
}

/* ---- Éviter le contenu coupé en bas ---- */
.reveal .slides section {
  padding: 5px 15px !important;
  box-sizing: border-box;
}

/* ---- Typographie ---- */
.reveal {
  color: var(--text-main) !important;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 36px !important;
}

.reveal .slides section p {
  margin: 0.3em 0 !important;
}

.reveal h1 {
  color: var(--sable) !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 12px rgba(232, 185, 68, 0.25) !important;
  font-size: 2.2em !important;
}

.reveal h2 {
  color: var(--sable-light) !important;
  font-weight: 700 !important;
  border-bottom: 3px solid var(--sable);
  padding-bottom: 0.2em;
  margin-bottom: 0.3em !important;
  display: inline-block;
}

.reveal h3 {
  color: var(--terre) !important;
  font-weight: 600 !important;
}

/* ---- Accentuations ---- */
.reveal strong {
  color: var(--sable) !important;
}

.reveal em {
  color: var(--sable-pale) !important;
  font-style: italic;
}

.reveal a {
  color: var(--sable-light) !important;
  text-decoration: underline;
}

/* ---- Blockquotes (thèses & punchlines) ---- */
.reveal blockquote {
  background: linear-gradient(135deg, rgba(58, 45, 125, 0.5), rgba(27, 16, 64, 0.7)) !important;
  border-left: 5px solid var(--sable) !important;
  border-radius: 8px;
  padding: 0.5em 1em !important;
  margin: 0.4em auto !important;
  max-width: 85%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: var(--ivoire) !important;
  font-size: 1.1em !important;
}

.reveal blockquote p {
  color: var(--ivoire) !important;
}

/* ---- Tableaux ---- */
.reveal table {
  border-collapse: collapse;
  margin: 0.4em auto;
}

.reveal table th,
.reveal table td {
  border: 1px solid var(--indigo-light) !important;
  padding: 0.3em 0.8em !important;
  color: var(--text-main) !important;
}

.reveal table th {
  background: var(--indigo) !important;
  color: var(--sable) !important;
}

.reveal table tr:nth-child(even) {
  background: rgba(58, 45, 125, 0.2);
}

/* ---- Frise des phases (slide 10) ---- */
.frise-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  margin: 0.5em auto;
  max-width: 70%;
}

.frise-phase {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-light)) !important;
  border-radius: 8px;
  border: 2px solid var(--sable);
  padding: 0.4em 0.6em;
}

.frise-phase--warning {
  background: linear-gradient(135deg, #4a1942, #6b2158) !important;
  border-color: var(--terre) !important;
}

.frise-label {
  font-weight: 700 !important;
  font-size: 0.9em !important;
  color: var(--sable) !important;
}

.frise-duree {
  font-size: 0.75em !important;
  color: var(--text-muted) !important;
  margin-top: 0.2em;
}

/* ---- Listes ---- */
.reveal ul,
.reveal ol {
  text-align: left;
}

.reveal li {
  margin-bottom: 0.4em;
  color: var(--text-main) !important;
}

.reveal li::marker {
  color: var(--sable) !important;
}

/* ---- Slides d'acte (data-background) ---- */
.reveal section[data-background-color="#1a1a2e"],
.reveal section[data-background="#1a1a2e"] {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---- Slide de titre ---- */
.reveal .slides > section:first-child h1 {
  font-size: 2.6em !important;
  margin-bottom: 0.2em;
}

/* ---- Photos speakers ---- */
.speaker-row {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2em;
  margin: 0.5em 0;
}

.speaker-card {
  text-align: center;
  max-width: 400px;
}

.speaker-card img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--sable) !important;
  box-shadow: 0 4px 16px rgba(232, 185, 68, 0.3) !important;
}

.speaker-card p {
  margin-top: 0.3em;
  font-size: 0.8em;
  color: var(--text-muted) !important;
}

/* ---- Images (défaut) ---- */
.reveal section img {
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
  background: none !important;
}

/* ---- Photos speakers (override) ---- */
.reveal .speaker-card img {
  border-radius: 50% !important;
  border: 3px solid var(--sable) !important;
  box-shadow: 0 4px 16px rgba(232, 185, 68, 0.3) !important;
}

/* ---- Séparateurs d'acte ---- */
.acte-header {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep)) !important;
  border-radius: 16px;
  padding: 1.5em 2em;
  border: 2px solid var(--sable);
  box-shadow: 0 4px 24px rgba(232, 185, 68, 0.15);
  display: inline-block;
}


/* ---- Numéro de slide ---- */
.reveal .slide-number {
  color: var(--sable) !important;
  background: rgba(27, 16, 64, 0.7) !important;
  font-size: 0.7em;
  border-radius: 4px;
  padding: 4px 8px;
}

/* ---- Slide Merci ---- */
.reveal section:last-child h2 {
  color: var(--sable) !important;
  font-size: 2.4em !important;
}

/* ---- Slides accentuées (transitions d'acte, titre, conclusion) ---- */
.slide-accent {
  background: var(--indigo-deep) !important;
}

.slide-accent h1,
.slide-accent h2 {
  color: var(--sable) !important;
}

/* ---- Progress bar ---- */
.reveal .progress span {
  background: var(--sable) !important;
}

/* ---- Controls ---- */
.reveal .controls .navigate-left,
.reveal .controls .navigate-right,
.reveal .controls .navigate-up,
.reveal .controls .navigate-down {
  color: var(--sable) !important;
}
