/* Configuration de la page : Fond noir et Centrage */
body {
    background-color: black;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;           /* Flexbox pour centrer */
    flex-direction: column;  /* Éléments les uns sous les autres */
    justify-content: center; /* Centrage vertical */
    align-items: center;     /* Centrage horizontal */
    overflow: hidden;        /* Pas de scroll */
}

/* Style de la vidéo "Propre" */
video {
    /* On limite la taille pour que ce soit agréable à regarder */
    /* La vidéo gardera ses proportions naturelles (carré ou autre) */
    max-width: 50vw;  /* Maximum la moitié de la largeur de l'écran */
    max-height: 80vh; /* Maximum 80% de la hauteur de l'écran */
    
    width: auto;
    height: auto;

    /* Finitions esthétiques */
    border-radius: 8px; /* Un léger arrondi sur les coins, c'est plus moderne */
    border: none;
    outline: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Une petite ombre discrète */
    display: block;
}

/* Le lien pour retourner au jeu */
.retour-btn {
    margin-top: 30px;
    color: #666; /* Gris discret */
    text-decoration: none;
    font-family: sans-serif;
    font-size: 0.9em;
    transition: color 0.3s;
}

.retour-btn:hover {
    color: #fff; /* Devient blanc au survol */
}

.sys-return-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 9999; / Toujours au-dessus /
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(5, 5, 5, 0.85); / Fond sombre /
    border: 1px solid #555; / Bordure grise /
    color: #aaa;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace; / Assurez-vous d'avoir importé la police /
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.sys-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/ Interaction au survol /
.sys-return-btn:hover {
    border-color: #fff;
    color: #050505; / Texte noir /
    background: #fff; / Fond blanc /
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.sys-return-btn:hover .sys-icon {
    transform: translateX(-5px);
}

/ Effet de passage lumineux (Glitch) /
.sys-return-btn .sys-glitch {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.sys-return-btn:hover .sys-glitch {
    left: 100%;
    transition: 0.5s;
}

/ Adaptation Mobile /
@media (max-width: 768px) {
    .sys-return-btn {
        top: 20px; left: 20px;
        padding: 10px 15px;
        font-size: 11px;
    }
    .sys-text {
        display: none; / Cache le texte long sur mobile /
    }
    .sys-return-btn::after {
        content: 'RETURN'; / Affiche un texte court */
        display: block;
        margin-left: 5px;
    }
}