/* =========================
   SLIDE DE TITRE SOBRE
========================= */

.reveal .slides > section.title-slide {
  background: #f7f7f7;
  color: #33474b;

  display: flex !important;
  flex-direction: column;
  justify-content: center;

  padding: 3rem;
  text-align: center;
}

/* Titre principal */
.reveal .slides > section.title-slide h1 {
  font-size: 2.2em;
  color: #2A6DB0;
  margin-bottom: 0.4em;
  font-weight: 700;
}

/* Sous-titre */
.reveal .slides > section.title-slide .subtitle {
  font-size: 1.1em;
  color: #666;
  font-style: italic;
  margin-bottom: 2em;
}

/* Auteurs / infos */
.reveal .slides > section.title-slide p,
.reveal .slides > section.title-slide ul {
  font-size: 0.9em;
  line-height: 1.5;
}

/* =========================
   SLIDES PLUS COMPACTES
========================= */

/* Compact léger */
.reveal .slides section.compact {
  font-size: 0.88em;
}

.reveal .slides section.compact h2 {
  margin-bottom: 0.4em;
}

.reveal .slides section.compact p,
.reveal .slides section.compact li {
  line-height: 1.25;
  margin-bottom: 0.3em;
}

/* Compact fort */
.reveal .slides section.small {
  font-size: 0.75em;
}

.reveal .slides section.small h2,
.reveal .slides section.small h3 {
  margin-bottom: 0.3em;
}

.reveal .slides section.small p,
.reveal .slides section.small li {
  line-height: 1.15;
  margin-bottom: 0.2em;
}

/* Colonnes plus serrées */
.reveal .slides section.compact .columns,
.reveal .slides section.small .columns {
  gap: 0.8rem;
}


.reveal .slides > section {
  background: #ffffff;
  color: #333;
}

/* Titres */
.reveal .slides > section h1,
.reveal .slides > section h2,
.reveal .slides > section h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  margin-bottom: 20px;
  color: #33474b;
}

/* Paragraphes */
.reveal .slides > section p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Listes */
.reveal .slides > section ul,
.reveal .slides > section ol {
  padding-left: 1.2em;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Citations et blocs de code */
.reveal .slides > section blockquote,
.reveal .slides > section pre {
  background: #f8f8f8;
  border-left: 4px solid #EB811B;
  padding: 10px 15px;
  margin: 20px 0;
  font-size: 0.8em;
  color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Tableaux */
.reveal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85em;
  margin: 20px 0;
  table-layout: fixed;
}

.reveal table th,
.reveal table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
  word-wrap: break-word;
  max-width: 150px;
}

/* Images */
.reveal .slides > section img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Tables longues */
.scroll-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 60vh;
  max-width: 100%;
  font-size: 0.7em;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
  background: #fafafa;
}

.scroll-table-wrapper table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

/* Slides avec texte dense */
.reveal .slides section.compressed {
  font-size: 0.75em;
  line-height: 1.3;
}

.reveal .slides > section.auto-shrink {
  max-height: 100vh;
  overflow-y: auto;
}

.reveal .slides > section.auto-shrink * {
  font-size: calc(1em - 0.2vw);
}

/* Titre mis en valeur */
.highlight-title {
  color: #2A6DB0;
}

/* Slides de transition */
.section-transition {
  text-align: center;
  padding: 6rem 2rem;
}

.section-transition h2 {
  font-size: 4rem;
  color: #2A6DB0;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-transition h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background-color: #2A6DB0;
  margin-top: 0.8rem;
  border-radius: 2px;
}

.section-transition h3 {
  font-size: 2.2rem;
  color: #444;
  font-weight: 300;
  font-style: italic;
  margin-top: 1rem;
}

/* Slide de titre manuelle */
.reveal .slides > section:first-of-type {
  position: relative;
  min-height: 100%;
  padding-bottom: 120px;
}

/* Titre principal */
.reveal .slides > section:first-of-type .title-main {
  text-align: center;
  color: #33474b;
  font-size: 1.7em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

/* Sous-titre */
.reveal .slides > section:first-of-type .subtitle {
  text-align: center;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 2em;
}

/* Auteurs */
.reveal .slides > section:first-of-type .authors {
  font-size: 0.8em;
  text-align: center;
  line-height: 1.35;
  margin-top: 1.5em;
  margin-bottom: 0;
}

/* Logos bien en bas à droite */
.reveal .slides > section:first-of-type .logos {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

/* Taille et style des logos */
.reveal .slides > section:first-of-type .logos img {
  height: 65px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0;
  box-shadow: none;
  background: none;
}