body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.diaporama {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

.slides-container {
    width: 100%;
    height: 100%; /* Le conteneur des images prend toute la hauteur */
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: black; /* Ajoute un fond noir en cas de transparence */
}

.slide.active {
    opacity: 1;
}

#current-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10; /* Pour être au-dessus des images */
}

.controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.indicators {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out; /* Transition sur opacity et transform */
    background-color: black;
}

.slide.fade-in {
    animation: fadeIn 1s forwards;
}

.slide.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.slide.slide-left {
    transform: translateX(-100%);
    opacity: 0;
}
.slide.slide-left.active {
    transform: translateX(0%);
    opacity: 1;
}
.slide.slide-right {
    transform: translateX(100%);
    opacity: 0;
}
.slide.slide-right.active {
    transform: translateX(0%);
    opacity: 1;
}
.slide.zoom-in {
  transform: scale(0.5);
  opacity: 0;
}
.slide.zoom-in.active {
  transform: scale(1);
  opacity: 1;
}

.slide.zoom-out {
  transform: scale(1.5);
  opacity: 0;
}
.slide.zoom-out.active {
  transform: scale(1);
  opacity: 1;
}