#realisations {
  display: flex;
  flex-direction: column; /* empile Titre puis Slideshow */
  box-sizing: border-box;
}

#realisations > h3 {
  flex: 0 0 auto;
}

#slideshow-container {
    max-width: 90vw;
    margin: 0px auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#image-container {
    position: relative;
    width: 90vw;
    height: auto;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: auto;
}

/* L'image affichée est positionnée par-dessus et prend la même taille */
#image-container img.display {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    border-radius: 12px; /* ou la valeur souhaitée */
}

#image-cache {
    visibility: hidden;
    display: none;
}

#title-labels {
  position: relative;
}

#title-labels > span {
    left: 0;
    transition: opacity 1s ease-in-out
}

/* realisations.css */
/* --- Section Réalisations --- */
/* ... autres styles ... */

#slideshow-container .controls {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 0.2em;
}

#slideshow-container button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease;
}

#slideshow-container button:hover {
    transform: scale(1.1);
}

#slideshow-container button img {
    width: 30px;
    height: 30px;
    display: block;
}