/**
 * Theme EFS basé sur la structure ABM avec les couleurs EFS
 */
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
@import url("https://fonts.cdnfonts.com/css/geograph-edit-black");
@font-face {
  font-family: "Geomanist", sans-serif;
}
/**
 * Couleurs EFS selon la charte graphique
 */
html * {
  color-profile: sRGB;
  rendering-intent: auto;
}

section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
  color: #484847;
}

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
  --r-background-color: #FFFFFF;
  --r-main-font: Lato, sans-serif;
  --r-main-font-size: 40px;
  --r-main-color: #002f6c;
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 20px 0;
  --r-heading-font: Geomanist, sans-serif;
  --r-heading-color: #002f6c;
  --r-heading-line-height: 1.2;
  --r-heading-letter-spacing: normal;
  --r-heading-text-transform: uppercase;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 700;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 3.77em;
  --r-heading2-size: 2.11em;
  --r-heading3-size: 1.55em;
  --r-heading4-size: 1em;
  --r-code-font: monospace;
  --r-link-color: #002f6c;
  --r-link-color-dark: #000e20;
  --r-link-color-hover: #005bd2;
  --r-selection-background-color: #009ee3;
  --r-selection-color: #fff;
  
}

/* Arrière-plan noir pour isoler la présentation */
body {
  background: #000000 !important;
  background-color: #000000 !important;
}

.reveal-viewport {
  background: #000000;
  background-color: #000000;
}

/* Zone de présentation centrale avec fond blanc pour isoler les slides */
.reveal {
  background: #FFFFFF;
  background-color: var(--r-background-color);
  max-width: 85%;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: normal;
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
  line-height: 1.3;
  font-weight: inherit;
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  word-wrap: break-word;
}

.reveal h1 {
  font-size: var(--r-heading1-size);
}

.reveal h2 {
  font-size: var(--r-heading2-size);
}

.reveal h3 {
  font-size: var(--r-heading3-size);
}

.reveal h4 {
  font-size: var(--r-heading4-size);
}

.reveal h1 {
  text-shadow: var(--r-heading1-text-shadow);
}

/*********************************************
 * OTHER
 *********************************************/
.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.3;
}

/* Remove trailing margins after titles */
.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}

.reveal strong,
.reveal b {
  font-weight: bold;
}

.reveal em {
  font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ol {
  list-style-type: decimal;
}

.reveal ul {
  list-style-type: disc;
}

.reveal ul ul {
  list-style-type: square;
}

.reveal ul ul ul {
  list-style-type: circle;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal dt {
  font-weight: bold;
}

.reveal dd {
  margin-left: 40px;
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: var(--r-block-margin) auto;
  padding: 5px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline-block;
}

.reveal q {
  font-style: italic;
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: 0.55em;
  font-family: var(--r-code-font);
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.reveal code {
  font-family: var(--r-code-font);
  text-transform: none;
  tab-size: 2;
}

.reveal pre code {
  display: block;
  padding: 5px;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
}

.reveal .code-wrapper {
  white-space: normal;
}

.reveal .code-wrapper code {
  white-space: pre;
}

.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.reveal table th {
  font-weight: bold;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.2em 0.5em 0.2em 0.5em;
  border-bottom: 1px solid;
}

.reveal table th[align=center],
.reveal table td[align=center] {
  text-align: center;
}

.reveal table th[align=right],
.reveal table td[align=right] {
  text-align: right;
}

.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal sup {
  vertical-align: super;
  font-size: smaller;
}

.reveal sub {
  vertical-align: sub;
  font-size: smaller;
}

.reveal small {
  display: inline-block;
  font-size: 0.6em;
  line-height: 1.2em;
  vertical-align: top;
}

.reveal small * {
  vertical-align: top;
}

.reveal img {
  margin: var(--r-block-margin) 0;
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-shadow: none;
  border: none;
}

.reveal .roll span:after {
  color: #fff;
  background: var(--r-link-color-dark);
}

/*********************************************
 * Frame helper
 *********************************************/
.reveal .r-frame {
  border: 4px solid var(--r-main-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.reveal a .r-frame {
  transition: all 0.15s linear;
}

.reveal a:hover .r-frame {
  border-color: var(--r-link-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}

/*********************************************
 * NAVIGATION CONTROLS
 *********************************************/
.reveal .controls {
  color: #e30015;
  z-index: 200;
}

.reveal .controls .controls-arrow {
  color: #e30015;
}

.reveal .controls .controls-arrow:hover {
  color: #e30015;
  opacity: 0.8;
}

.reveal .controls .controls-arrow:before {
  border-color: #e30015;
}


/*********************************************
 * VAGUE ROUGE EFS POUR PAGE TITRE
 *********************************************/
/* Classe optionnelle pour vague rouge sur page titre */
.title-page.with-red-wave {
  position: relative;
  overflow: hidden;
}

/* Forcer la hauteur du container parent quand on a une grande section */
section[style*="min-height"] .container {
  min-height: inherit; /* Hérite de la hauteur de la section */
}

/* Vague traversant toute la diapositive */
.title-page.with-red-wave::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 110.83146'%3E%3Cpath d='m 0,44.587482 c 1.9032,0.05277 23.27436,2.097082 31.61744,1.406739 38.205535,-3.161297 44.742366,-13.603723 82.983507,-13.615151 24.471868,-0.0073 50.802944,15.889528 88.632267,42.028586 31.556931,21.805003 57.090466,29.702924 71.810436,29.933764 29.45226,0.46186 61.50946,-19.9592 63.61444,-19.944166 L 400,30 L 500,35 L 600,25 L 700,40 L 800,20 L 900,45 L 1000,30' stroke='%23e30015' stroke-width='1.32292' fill='none' opacity='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

/*********************************************
 * PRINT BACKGROUND & PDF EXPORT
 *********************************************/
@media print {
  .backgrounds {
    background-color: var(--r-background-color);
  }
  
  /* Fond blanc pour l'export PDF */
  body {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
  }
  
  .reveal-viewport {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
  }
  
  /* Corriger le positionnement en print */
  .reveal {
    max-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
  }
  
  /* Vague rouge adaptée pour l'impression */
  .title-page.with-red-wave::before {
    opacity: 0.3;
    width: 300px;
    height: 80px;
  }
  
  /* Corriger les marges négatives en impression */
  .title-page h2, .title-page h3, .title-page h4 {
    margin-left: 0 !important;
  }
  
  /* Footer plus discret en impression */
  .line.bottom {
    height: 20px;
    bottom: 20px;
  }
  
  /* Supprimer toutes les bordures EFS en print */
  .line {
    display: none !important;
  }
}

/* Règles spécifiques pour print-pdf (Reveal.js PDF export) */
.reveal.print-pdf .title-page.with-red-wave::before {
  opacity: 0.4;
  width: 300px;
  height: 80px;
}

/* Fond blanc pour le mode print-pdf de Reveal.js */
.reveal.print-pdf body,
body.print-pdf {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}

.reveal.print-pdf .reveal-viewport,
.print-pdf .reveal-viewport {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}

/* Corriger le centrage et les marges en mode print-pdf */
.reveal.print-pdf {
  max-width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
}

.reveal.print-pdf .slides {
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.reveal.print-pdf .slides section {
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Forcer left: 0 pour toutes les sections en print-pdf avec spécificité maximale */
.reveal.print-pdf .slides section[style*="left"][style*="top"][style*="width"] {
  left: 0 !important;
  margin-left: 0 !important;
  transform: translateX(0) !important;
  position: relative !important;
}

.reveal.print-pdf .slides section.center {
  left: 0 !important;
  margin-left: 0 !important;
  transform: translateX(0) !important;
  position: relative !important;
}

.reveal.print-pdf .slides section {
  left: 0 !important;
  margin-left: 0 !important;
  transform: translateX(0) !important;
}

.reveal.print-pdf .slides section .container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  left: 0 !important;
  transform: none !important;
}

/* Forcer l'alignement à gauche pour tous les éléments Bootstrap en print-pdf */
.reveal.print-pdf .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.reveal.print-pdf .col,
.reveal.print-pdf [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 15px !important;
}

/* Forcer la suppression des bordures EFS en print-pdf */
.reveal.print-pdf .line,
.print-pdf .line {
  display: none !important;
}


/* Masquer seulement les contrôles en print-pdf */
.reveal.print-pdf .controls,
.print-pdf .controls {
  display: none !important;
}

/* Corriger le débordement de texte en PDF export */
.reveal.print-pdf .title-page h2,
.reveal.print-pdf .title-page h3, 
.reveal.print-pdf .title-page h4 {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Désactiver les bordures en mode PDF */
.reveal.print-pdf .line {
  display: none;
}

/* Structure ABM avec couleurs EFS */
.line {
  content: "";
  position: fixed;
  background: #002f6c;
  z-index: 105;
}
.line.top {
  left: 0;
  top: 0;
  width: 100%;
  height: 30px;
}
@media (max-width: 840px) {
  .line.top {
    height: 15px;
  }
}
.line.bottom {
  left: 0;
  top: auto;
  bottom: 60px; /* Plus haut */
  width: 100%;
  height: 40px; /* Un peu plus épais */
}
@media (max-width: 840px) {
  .line.bottom {
    height: 20px;
    bottom: 30px;
  }
}
.line.left {
  left: 0;
  top: 0;
  width: 30px;
  height: 200%;
}
@media (max-width: 840px) {
  .line.left {
    width: 15px;
  }
}
.line.right {
  left: auto;
  right: 0;
  top: 0;
  width: 30px;
  height: 200%;
}
@media (max-width: 840px) {
  .line.right {
    width: 15px;
  }
}

/*********************************************
 * FOOTER BLEU EFS VIA SLIDE BACKGROUND
 *********************************************/
.slide-background-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background: #002f6c;
  z-index: 1;
}

/*********************************************
 * BARRE DE PROGRESSION
 *********************************************/
.reveal .progress {
  background: rgba(0, 0, 0, 0.2);
  color: #e30015;
  z-index: 100;
}

.reveal .progress span {
  background: #e30015;
}

.reveal:before {
  display: none;
}

.reveal h1, .reveal h2 {
  color: #002f6c;
  font-family: "Gotham", "Arial", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

.reveal h3, .reveal h4 {
  color: #002f6c;
  font-family: "Freight Macro", "Arial", serif;
  font-weight: semi-bold;
}

.reveal p {
  color: #002f6c;
  font-family: "Gotham", "Arial", sans-serif;
  font-weight: normal;
}