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

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.image-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* cursor: pointer; */
    display: flex;
    justify-content: center;
    align-items: center;
}

#artwork {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    /* box-shadow: 0 10px 50px rgba(255, 255, 255, 0.1); */
}







/* Bouton son : coin bas droite, fixe */
.sound-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;

    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
    opacity: 1;
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.6);
}

.sound-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.sound-toggle:active {
    transform: scale(0.96);
}

.sound-toggle .icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Muet (aria-pressed="false") : on montre l'icône barrée */
.sound-toggle .icon-unmuted { display: none; }
.sound-toggle[aria-pressed="true"] .icon-muted { display: none; }
.sound-toggle[aria-pressed="true"] .icon-unmuted { display: block; }

@media (max-width: 600px) {
    .sound-toggle {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
        opacity: 0.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sound-toggle { transition: none; }
    .sound-toggle:hover,
    .sound-toggle:focus-visible,
    .sound-toggle:active { transform: none; }
}


/* Préchargement des images */
.preload {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}