/* === Base === */
body {
    background: teal;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
}

/* === Fenêtre type "My Computer" === */
.window {
    width: 90%;
    max-width: 400px;
    background: lightgray;
    border: 3px solid gray;
    margin: 50px auto 10px auto; /* espace en bas */
    padding: 10px;
    box-shadow: 5px 5px gray;
}

.title-bar {
    background: navy;
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.buttons .close {
    cursor: pointer;
    color: red;
}

/* === Icônes du bureau === */
.desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
    justify-content: center;
}

.icon {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border: 2px solid transparent;
}

.icon img {
    width: 50px;
    height: 50px;
}

.icon p {
    font-size: 14px;
}

.icon:hover {
    border: 2px solid black;
    background: white;
}

.icon.locked {
    cursor: not-allowed;
    opacity: 0.5;
}

/* === Barre de wallet fixe en bas === */
.wallet-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: #333;      /* Fond sombre */
    color: #fff;           /* Texte blanc */
    text-align: center;
    font-family: monospace;
}

/* Bouton Windows rétro (sans coins arrondis) */
.wallet-bar button {
    background-color: #C0C0C0;       /* Gris clair Windows 95 */
    color: #000;
    border: 2px solid #fff;         /* Blanc en haut/gauche */
    border-right-color: #404040;    /* Gris foncé à droite */
    border-bottom-color: #404040;   /* Gris foncé en bas */
    border-radius: 0;               /* Pas d'arrondi */
    font-family: monospace;
    padding: 4px 8px;
    cursor: pointer;
}

.wallet-bar button:active {
    border-top-color: #404040;
    border-left-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

/* === Forum/Chat container === */
.forum-container {
    display: none;           /* caché par défaut, on l’affiche via JS */
    background: #eee;
    border: 2px solid #aaa;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    text-align: left;
}

/* Zone des messages */
.chat-messages {
    height: 200px;              /* hauteur fixe pour la scroll */
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    margin-bottom: 10px;
}

/* Zone de saisie en bas */
.chat-input-area {
    display: flex;
    gap: 5px;
}
.chat-input-area input[type="text"] {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
}
.chat-input-area button {
    padding: 5px 10px;
    font-family: monospace;
    cursor: pointer;
    background-color: #C0C0C0;
    border: 2px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    border-radius: 0;
}
.chat-input-area button:active {
    border-top-color: #404040;
    border-left-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
}