/* 
   SLIDES GÉNÉRALES
 */

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

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

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

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

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

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

/* Blocs */
.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 */
.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 */
.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);
}

/* Scroll tableaux */
.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%;
}

/* Table fix */
.reveal table {
  table-layout: fixed;
  width: 100%;
}

.reveal table td,
.reveal table th {
  word-wrap: break-word;
  max-width: 150px;
  padding: 6px 8px;
}

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

.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;
}

/* Voile global */
.reveal .slides > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

/* Contenu au-dessus */
.reveal .slides > section:first-of-type > * {
  position: relative;
  z-index: 1;
}

/* =========================
   TITRE (sans rectangle)
========================= */

.title-box {
  background: none;
  padding: 0;
  border-radius: 0;

  font-size: 2em;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;

  max-width: 85%;
  margin: 0 auto 25px auto;
  color: white;

  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

/* Sous-titre */
.title-box .subtitle {
  display: block;
  font-size: 0.5em;   /* avant ~0.6 → plus discret */
  font-style: italic;
  font-weight: 400;
  margin-top: 12px;
  opacity: 0.9;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}


.authors {
  background: none;
  padding: 0;
  border-radius: 0;

  font-size: 0.6em;
  text-align: center;

  margin-bottom: 80px;

  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);

  transform: translateY(2.5em); /* descend les auteurs */
}

/* Event info */
.event-info {
  font-size: 0.65em;  /* avant ~0.75 */
  text-align: center;
  color: white;
  margin-bottom: 20px;
  font-style: italic;
  opacity: 0.85;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Positionnement */
.reveal .slide:first-of-type {
  position: relative;
}

/* 
   LOGOS SLIDE DE TITRE
*/

/* Conteneur */
.reveal .slides > section:first-of-type .logos {
  position: absolute;
  bottom: 20px;
  right: 30px;

  display: flex;
  align-items: center;
  gap: 12px;

  z-index: 2;
}

/* Images logos */
.reveal .slides > section:first-of-type .logos img {
  height: 40px;        
  width: auto;
  max-width: 110px;

  object-fit: contain;

  opacity: 0.9;        
  margin: 0;

  /* important : pas de style parasite */
  background: none;
  box-shadow: none;
  filter: none;
}
/* =========================
   ÉLÉMENTS SPÉCIAUX
========================= */

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

.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;
}

/* 
   CORRECTION ALIGNEMENT SLIDES */

/* Toutes les slides sauf la slide de titre commencent en haut */
.reveal .slides > section:not(:first-of-type) {
  top: 0 !important;
  transform: none !important;

  height: 100%;
  box-sizing: border-box;

  padding-top: 45px;
  padding-left: 55px;
  padding-right: 55px;
}

/* Le titre de slide: pas repoussé vers le bas */
.reveal .slides > section:not(:first-of-type) h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.reveal .slides > section:not(:first-of-type) > *:first-child {
  margin-top: 0;
}

/* =========================
   CORRECTIONS JA-MATÉ
========================= */

/* Taille générale des slides */
.reveal {
  font-size: 36px;
}

/* Slides ordinaires */
.reveal .slides > section:not(:first-of-type) {
  height: 100%;
  padding: 28px 50px 28px 50px !important;
  box-sizing: border-box;
}

/* Titres */
.reveal .slides > section:not(:first-of-type) h2 {
  font-size: 1.45em;
  line-height: 1.15;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.reveal .slides > section:not(:first-of-type) h3 {
  font-size: 1.05em;
  margin-bottom: 8px;
}

/* Texte */
.reveal .slides > section:not(:first-of-type) p {
  font-size: 0.9em;
  line-height: 1.35;
  margin-bottom: 0.65em;
}

.reveal .slides > section:not(:first-of-type) ul,
.reveal .slides > section:not(:first-of-type) ol {
  font-size: 0.9em;
  line-height: 1.3;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
}

/* Citations */
.reveal .slides > section:not(:first-of-type) blockquote {
  font-size: 0.8em;
  line-height: 1.25;
  margin: 12px 0;
  padding: 8px 14px;
}

/* Colonnes */
.reveal .columns {
  gap: 1.2em;
}

.reveal .column p {
  margin-bottom: 0.3em;
}

/* Images */
.reveal .slides > section:not(:first-of-type) img {
  margin: 8px 0;
}

/* Légendes d’images */
.reveal figure figcaption,
.reveal .column em {
  font-size: 0.55em;
  line-height: 1.15;
  color: #666;
  text-align: center;
  display: block;
  margin-top: 0.1em;
}

/* Texte spécifique slide Lexis */
.lexis-text {
  font-size: 1.08em;
  line-height: 1.35;
}

.lexis-text blockquote {
  font-size: 0.9em !important;
}

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

.reveal .slides > section:first-of-type {
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
}

.titleslide {
  position: relative;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 85px 70px 95px 70px;
}

/* Titre principal */
.title-box {
  font-size: 2.05em;
  line-height: 1.15;
  margin: 0 auto 28px auto;
  max-width: 88%;
}

/* Sous-titre */
.title-box .subtitle {
  font-size: 0.52em;
  margin-top: 10px;
}

/* Auteurs */
.authors {
  font-size: 0.68em;
  line-height: 1.35;
  margin-top: 18px;
  margin-bottom: 28px;
  transform: none !important;
}

/* Événement */
.event-info {
  font-size: 0.68em;
  margin-top: 18px;
  margin-bottom: 0;
}

/* Logos en bas à droite */
.titleslide .logos {
  position: absolute !important;
  right: 30px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  z-index: 10;
}

.titleslide .logos img {
  height: 34px !important;
  width: auto !important;
  max-width: 95px !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* =========================
   SLIDE GRAMMAIRE : FIT HEIGHT
========================= */

.grammar-slide {
  font-size: 0.96em;
}

/* Titre */
.grammar-slide h2 {
  font-size: 1.15em !important;
  margin-bottom: 8px !important;
}

/* Colonnes : très compactes */
.grammar-slide .columns {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
  gap: 0.7em;
}

/* Listes */
.grammar-slide ul {
  font-size: 0.9em !important;
  line-height: 1.18 !important;
  margin-top: 0.1em;
  margin-bottom: 0.2em;
}

/* Paragraphes */
/* On aligne le texte sur les listes */
.grammar-slide p {
  font-size: 0.82em !important;
  line-height: 1.28;
  margin-bottom: 0.4em;
}

/* Bloc citation → pas trop petit */
.grammar-slide blockquote {
  font-size: 0.9em !important;
  line-height: 1.25;
  margin: 6px 0;
  padding: 6px 10px;
}

.grammar-slide img {
  margin: 4px 0 !important;
}

.grammar-slide ul {
  font-size: 0.88em !important;
  line-height: 1.2 !important;
  margin-top: 0.1em;
  margin-bottom: 0.2em;
}

/* Titres de colonnes (Mesurer / Situer / Suivre) */
.grammar-slide strong {
  font-size: 0.95em;
}

/* =========================
   SLIDE GRAMMAIRE : LISTES COMPACTES
========================= */

/* Liste globale */
.grammar-slide ul {
  font-size: 0.88em !important;
  line-height: 1.15 !important;
  margin-top: 0.05em;
  margin-bottom: 0.15em;
  padding-left: 1em;  /* réduit l'indentation */
}

/* Espacement entre les points */
.grammar-slide li {
  margin-bottom: 0.06em;  
}

/* Supprime l’espace après le dernier item */
.grammar-slide li:last-child {
  margin-bottom: 0;
}

/* =========================
   ITALIQUES LECTURE NORMALE
========================= */

.reveal .slides em {
  font-size: 1em !important;
  font-style: italic;
}

/* =========================
   SLIDE PLAN
========================= */

.plan-slide .columns {
  align-items: stretch;
  gap: 0.25em;
}

.plan-card {
  padding: 14px 16px;
  border: 2px solid #d8e0e3;
  border-radius: 18px;
  background: #fafafa;
  min-height: 230px;
  box-sizing: border-box;
}

.plan-card h3 {
  text-align: center;
  font-size: 0.9em !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.plan-card ul {
  font-size: 0.66em !important;
  line-height: 1.18 !important;
  padding-left: 1em;
  margin-top: 0.2em;
  margin-bottom: 0.6em;
}

.plan-card li {
  margin-bottom: 0.1em;
}

.plan-card p:last-child {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 2px solid #e5e5e5;
  text-align: center;
  color: #2A6DB0;
  font-size: 0.7em !important;
  font-weight: 600;
}

.plan-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: #2A6DB0;
}  

.mediumsmall {
  font-size: 0.9em;
}

.time-card {
  border-left: 5px solid #4C6A92;
  background-color: #f7f8fa;
  padding: 0.8em 1em;
  border-radius: 10px;
  margin-bottom: 0.5em;
  min-height: 95px;
}

.time-card p {
  margin: 0;
}

.time-card strong {
  display: block;
  font-size: 1.05em;
  margin-bottom: 0.4em;
} 


/* =========================
   SLIDES DE PARTIE
========================= */

.section-slide {
  text-align: center;
  padding-top: 18%;
}

.section-kicker {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-corail);
  margin-bottom: 1.5em;
}

.section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--bleu-envie);
  line-height: 1.1;
  margin-bottom: 0.2em;
}

.section-title::after {
  content: "●────●────●";
  display: block;
  color: var(--accent-corail);
  font-size: 0.45em;
  letter-spacing: 0.3em;
  margin-top: 0.5em;
}

.section-subtitle {
  margin-top: 1.5em;
  font-size: 1.1em;
  font-style: italic;
  color: #666;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}  

/* =========================
   SLIDES DE SOUS-PARTIE
========================= */

.subsection-content-slide {
  padding-top: 5%;
}

.subsection-content-slide h2 {
  display: none;
}

.subsection-code {
  color: var(--accent-corail);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.3em;
}

.subsection-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--bleu-envie);
  line-height: 1.05;
  margin-bottom: 0.1em;
}

.subsection-subtitle {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  margin-bottom: 0.8em;
}

.question-box {
  margin-top: 0.8em;
  padding: 0.5em 0.8em;
  border-left: 4px solid var(--accent-corail);
  background: rgba(230,120,90,0.08);
  font-size: 0.9em;
}

/* =========================
   LOGOS SLIDE TITRE
========================= */

.titleslide .logos {
  position: absolute !important;
  right: 30px !important;
  bottom: 22px !important;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 14px;
  z-index: 10;
}

.titleslide .logos img {
  height: 50px !important;
  width: auto !important;
  max-width: 150px !important;

  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Petit visuel humoristique slide titre */
.titleslide .cow-logo {
  position: absolute !important;
  left: 50px !important;
  bottom: 22px !important;
  z-index: 10;
}

.titleslide .cow-logo img {
  height: 170px !important;
  width: auto !important;
  max-width: 170px !important;

  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.kaplan-easter-egg {
  position: absolute;

  right: -10px;
  bottom: 55px;

  width: 32%;

  background: white;
  padding: 4px;

  border: 1px solid #ddd;
  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* =========================
   SLIDE GRAMMAIRE
========================= */

.grammar-slide {
  margin-top: -12px;
}

.grammar-slide h2 {
  margin-bottom: 4px !important;
}

.grammar-slide .columns {
  margin-top: 0 !important;
}

.grammar-slide p:first-of-type {
  margin-bottom: 0.4em !important;
}