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

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;
    background-color: rgba(0, 0, 0, 0.55);
    padding: 20px;
    border-radius: 10px;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

p {
    font-size: 1.5em;
}

.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: blur(10px); /* Flou initial */
    animation: fade 60s infinite; /* Durée ajustée en fonction du nombre d'images */
    will-change: transform, opacity, filter;
}

/* Animation de fondu avec zoom et retrait du flou */
@keyframes fade {
    0% { opacity: 0; transform: scale(1.05); filter: blur(10px); }
    8% { opacity: 1; transform: scale(1); filter: blur(0); }
    33% { opacity: 1; transform: scale(1.05); }
    41% { opacity: 0; transform: scale(1.1); filter: blur(10px); }
    100% { opacity: 0; }
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 6s;
}

.slide:nth-child(3) {
    animation-delay: 12s;
}

.slide:nth-child(4) {
    animation-delay: 18s;
}

.slide:nth-child(5) {
    animation-delay: 24s;
}

.slide:nth-child(6) {
    animation-delay: 30s;
}

.slide:nth-child(7) {
    animation-delay: 36s;
}

.slide:nth-child(8) {
    animation-delay: 42s;
}

.slide:nth-child(9) {
    animation-delay: 48s;
}

.slide:nth-child(10) {
    animation-delay: 54s;
}