/* ===== Desktop ===== */
.desktop {
    height: 100vh;
    position: relative;
    overflow: hidden;
    transition: none;
}

.wallpaper {
    position: absolute;
    inset: 0;
    background: url('../background.jfif') center center / cover no-repeat;
    filter: blur(3px) brightness(0.35);
    z-index: 0;
    transform: scale(1.05);
    transition: none;
}

.wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(108, 92, 231, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(162, 155, 254, 0.15) 0%, transparent 50%);
    z-index: 1;
}

/* ===== Desktop Icons ===== */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 70px; /* Espace pour la taskbar */
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    z-index: 1;
    max-height: calc(100vh - 100px); /* Hauteur max = écran - taskbar - marges */
    overflow: visible;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 90px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.05);
}

.desktop-icon:active {
    transform: scale(0.95);
}

.desktop-icon.selected {
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid var(--accent);
}

.icon-img {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    font-size: 1.4rem;
    transition: none;
}

.icon-img.terminal-icon {
    background: linear-gradient(135deg, #1e1e2e, #2d2d3f);
    border: 1px solid var(--border);
}

.desktop-icon span {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
