/* Style de base et fond d'écran du bureau */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Empêche le défilement du bureau */
    font-family: Arial, sans-serif;
}

#desktop {
    height: 100%;
    width: 100%;
    background: url('../images/bureau-solitaire.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

/* Style de la fenêtre principale */
#main-window {
    width: 80%;
    max-width: 800px;
    height: 70%;
    background-color: #f0f0f0;
    border: 2px solid #000;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    margin: 2% auto; /* Remonté un peu */
}

.title-bar {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move; /* Pour une future fonctionnalité de déplacement */
}

.title-bar .buttons {
    display: flex;
}

.title-bar .button {
    width: 20px;
    height: 20px;
    background-color: #ccc;
    border: 1px solid #000;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

.content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto; /* Permet de faire défiler le contenu si nécessaire */
    background-color: #fff;
}

/* Style de la barre des tâches flottante (Dock) */
#dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #555;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-height: 40px; /* Hauteur minimale pour être visible */
    min-width: 300px; /* Largeur minimale pour le dock */
    box-sizing: border-box;
}

/* Style du bouton de menu, maintenant indépendant */
#start-button {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #4CAF50; /* Vert Linux Mint */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1001; /* S'assurer qu'il est au-dessus du dock si jamais ils se chevauchent */
}

#start-button:hover {
    background-color: #45a049;
}

/* Style du menu démarrer, maintenant plus grand */
#start-menu {
    display: none; /* Caché par défaut */
    position: fixed; /* Changé pour fixed pour être indépendant */
    bottom: 55px; /* Juste au-dessus du nouveau bouton */
    left: 10px;
    background-color: #333;
    border: 1px solid #555;
    width: 250px; /* Agrandissement */
    padding: 10px 0;
    border-radius: 8px;
    z-index: 1000;
}

#start-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#start-menu li a {
    display: block;
    color: white;
    padding: 12px 20px; /* Plus d'espace */
    text-decoration: none;
    font-size: 16px; /* Police plus grande */
}

#start-menu li a:hover {
    background-color: #575757;
}

#start-menu .separator {
    height: 1px;
    background-color: #555;
    margin: 4px 15px;
}