.reveal .slides > section:not(:first-of-type) {
  background: #ffffff;
  color: #333;
}

/* Titres bien espacés et harmonisés */
.reveal .slides > section:not(:first-of-type) h1,
.reveal .slides > section:not(:first-of-type) h2,
.reveal .slides > section:not(:first-of-type) h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  margin-bottom: 20px;
  color: #33474b;
}

/* Tentative d'auto-ajustement de la taille de texte dans les slides trop longues */
.reveal .slides > section.auto-shrink * {
  font-size: calc(1em - 0.2vw);
}

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

/* Paragraphes avec lisibilité augmentée */
.reveal .slides > section:not(:first-of-type) p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Listes élégantes */
.reveal .slides > section:not(:first-of-type) ul,
.reveal .slides > section:not(:first-of-type) ol {
  padding-left: 1.2em;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Encadré pour les blocs de code ou citations */
.reveal .slides > section:not(:first-of-type) blockquote,
.reveal .slides > section:not(:first-of-type) 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 simples et sobres */
.reveal .slides > section:not(:first-of-type) table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85em;
  margin: 20px 0;
}

.reveal .slides > section:not(:first-of-type) th,
.reveal .slides > section:not(:first-of-type) td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

/* Images avec ombre légère */
.reveal .slides > section:not(:first-of-type) img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Wrapper de tableaux longs */
.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%;
}

/* Style général pour les tableaux */
.reveal table {
  table-layout: fixed;
  width: 100%;
  font-size: inherit;
}

/* Ajustement des cellules pour éviter débordement */
.reveal table td,
.reveal table th {
  word-wrap: break-word;
  max-width: 150px;
  padding: 6px 8px;
}

/* =========================================================
   PREMIÈRE DIAPO
========================================================= */

/* Image de fond */
.reveal .slides > section:first-of-type {
  background-image: url('img/Visuel_1.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  position: relative;

  padding-top: 10px;
  padding-bottom: 120px;   /* réserve une vraie zone pour les logos */
  box-sizing: border-box;
}

/* Titre principal */
.title-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 18px;
  border-radius: 8px;
  font-size: 1.6em;   /* au lieu de 1.8em */
  font-weight: bold;
  text-align: center;
  line-height: 1.15;
  max-width: 86%;
  margin: 0 auto 14px auto;
  color: white;
}

/* Sous-titre */
.subtitle-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.85em;
  text-align: center;
  margin: 0 auto 14px auto;   /* centre le bloc horizontalement */
  font-style: italic;
  max-width: 82%;
  color: white;
}

/* Auteurs */
.authors {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.78em;      /* réduit */
  text-align: center;
  margin: 0 auto 18px auto;
  max-width: 74%;
  color: white;
  line-height: 1.3;
}


/* Slide avec position relative pour contenir les éléments absolus */
.reveal .slide:first-of-type {
  position: relative;
}

/* Bloc événement */

.event-info {
  font-size: 0.52em;      /* réduit */
  text-align: center;
  color: white;
  margin-bottom: 0;
  font-style: italic;
  z-index: 1;
  line-height: 1.2;
  max-width: 72%;
  margin-left: auto;
  margin-right: auto;
}
/* Logos en bas à droite */
.reveal .slides > section:first-of-type .logos {
  position: absolute;
  bottom: 18px;
  right: 25px;
  display: flex;
  gap: 14px;
  z-index: 2;
  align-items: center;
}

/* Logos sans effet visuel superflu */
.reveal .slides > section:first-of-type .logos img {
  height: 42px;
  max-width: 95px;
  object-fit: contain;
  background: none;
  filter: none;
  box-shadow: none;
  margin: 0;
}

/* =========================================================
   COULEURS / TITRES
========================================================= */

.highlight-title {
  color: #2A6DB0;
}

/* Slide compressée — texte plus petit pour éviter le scroll */
.reveal .slides section.compressed {
  font-size: 0.75em;
  line-height: 1.3;
}

/* =========================================================
   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;
}
