/* Page de garde — plein écran à l'ouverture */
html.ag-splash-frame-root,
html.ag-splash-frame-root body {
    height: 100%;
    width: 100%;
    margin: 0;
}

.ag-splash {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    margin: 0;
    padding: 0;
    background: #0b4f5c;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Cadre mobile-preview (iframe) : absolute = contenu dans le cadre, pas la fenêtre du navigateur */
.ag-splash.ag-splash--in-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.ag-splash img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Tablette / iPad / écran plus large : image entière visible (même rendu que cadre mobile-preview) */
@media (min-width: 600px), (min-aspect-ratio: 10/16) {
    .ag-splash img {
        object-fit: contain;
        object-position: center center;
    }
}

.ag-splash.ag-splash--hide {
    opacity: 0;
    pointer-events: none;
}

body.ag-splash-active {
    overflow: hidden;
}

body.ag-splash-active.ag-splash-body-frame {
    position: relative;
    min-height: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .ag-splash {
        transition: none;
    }
}
