/* 1. Fond de page neutre */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000; /* Le fond de la page reste noir */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    color: white;
    overflow: hidden;
}

/* Conteneur de mise à l'échelle pour l'écran moderne */
#screen-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Remplacez background-color: #000; par ceci : */
    background-color: transparent; 
}

#cerebral-os {
    width: 640px;
    height: 480px;
    background-image: url('background.svg');
    background-size: cover;
    background-position: center;
    
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    image-rendering: pixelated;
    transform: scale(calc(min(100vw / 640, 100vh / 480)));
    transform-origin: center center;
    
    /* Ligne supprimée : border: 2px solid white; */
    border: none; 
}

#header {
    padding: 10px;
    font-weight: bold;
    font-style: italic;
    font-size: 18px;
}

#workspace {
    flex-grow: 1;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#status-bar {
    height: 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    font-style: italic;
    font-weight: bold;
}

/* --- Menu Principal (Launcher) --- */
.launcher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
    border: 2px solid white;
}

.category {
    border-right: 2px solid white;
    display: flex;
    flex-direction: column;
}

.category:last-child {
    border-right: none;
}

.category-title {
    text-align: center;
    border-bottom: 2px solid white;
    padding: 8px;
    font-style: italic;
    font-weight: bold;
    font-size: 18px;
}

.app-list {
    padding: 15px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-item {
    font-style: italic;
    font-weight: bold;
    font-size: 16px;
    padding: 5px;
}

/* Élément ciblé par la navigation clavier */
.app-item.focused {
    background-color: white;
    color: #0000FF;
}

/* --- Vue Application --- */
.app-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    text-align: center;
}

.app-view h1 { 
    font-style: italic; 
}

.app-view p { 
    font-size: 16px; 
}
