* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;

  opacity: 0;
  transition: opacity 1s ease-in-out;

  z-index: 1;
}

.slide.active {
  opacity: 1;

  z-index: 2;
}


.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);

  z-index: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 2;
} 

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 80px;

  padding: 1rem 2rem;

  display: flex;
  align-items: center;        /* centrage vertical */
  justify-content: flex-start;    /* centrage horizontal */

  padding: 1rem 2rem;
  z-index: 3;

  color: #fff;
  text-align: center;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  text-shadow: 0 1px 3px rgba(0,0,0,0.6);

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0)
    );

    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.caption.hidden {
  opacity: 0;
  transform: translateY(10px);
}

/* texte bien centré */
.caption-text {
  flex: 0 1 auto;
  text-align: center;
  white-space: nowrap;
  font-size: 2rem;
}

/* logo à droite */
.caption-logo-iut {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.caption-logo-iut img {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
}

/* logo à gauche */
.caption-logo-mmi {
  flex: 0;
  display: flex;
  justify-content: flex-start;
}

.caption-logo-mmi img {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.controls {

  position: absolute;
  top : 10px;
  right: 10px;
  /* width: 10%; */
  z-index: 4;
  /* background-color: blue; */
  border-radius: 10px;
  text-align: center;
  /* box-shadow: 10px 10px 10px lightgray; */
  opacity: 0.3;

}

#croix {
  position: absolute;
  top : 10px;
  left: 10px;
  /* width: 10%; */
  z-index: 4;
  /* background-color: blue; */
  border-radius: 10px;
  text-align: center;
  /* box-shadow: 10px 10px 10px lightgray; */
  opacity: 0.3;

}

/* :fullscreen #fullscreen {
  display: none;
} */
