/* Splash plein écran */
#splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--splash-bg);
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 2s forwards; /* 2s d’attente + 1s de fondu = 3s */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#splash img {
    width: min(28vh, 220px);
    height: auto;
    animation: popIn 2s ease-in-out;
    -webkit-user-drag: none;
    user-drag: none;
}

@keyframes popIn {
    0% {
        transform: scale(.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Respect accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
    #splash {
        animation: none;
    }

    #splash img {
        animation: none;
    }
}
