/*
 * Xi — Simulateur smartphone (desktop uniquement)
 * Fichier partagé entre tous les wagons.
 * Inclure via : <link rel="stylesheet" href="../css/simulator.css">
 *
 * Quand l'écran est > 500px (desktop / laptop), l'app s'affiche
 * dans un cadre iPhone 375×812px centré sur fond sombre.
 * Sur mobile réel, ce CSS ne s'applique pas.
 */

@media (min-width: 500px) {
    html {
        background: #1a1a1a !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    body {
        width: 375px !important;
        min-width: 375px !important;
        max-width: 375px !important;
        height: 812px !important;
        min-height: 812px !important;
        max-height: 812px !important;
        overflow: hidden !important;
        border-radius: 40px !important;
        box-shadow: 0 0 0 6px #333, 0 0 0 8px #555, 0 16px 48px rgba(0,0,0,0.6);
        position: relative !important;
        /* translateZ(0) = containing block pour position:fixed à l'intérieur du cadre */
        transform: translateZ(0) scale(0.85);
        transform-origin: center center;
    }
    /* Encoche iPhone */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 24px;
        background: #000;
        border-radius: 0 0 14px 14px;
        z-index: 99999;
        pointer-events: none;
    }
}
