body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: url('assets/imgetc/aero.png') no-repeat center center fixed;
    background-size: cover; /* L'image couvre tout l'écran */
}

#splash {
    background-color: black;
    color: #00FF00;
    font-family: 'VT323', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    cursor: pointer;
    font-size: 2rem;
    user-select: none;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 4s ease, visibility 0s linear 4s; /* Transition sur l'opacité et visibilité */
}



#splash.hidden {
    opacity: 0;
    visibility: hidden; /* Masque le splash après la transition */
    pointer-events: none; /* Empêche l'interaction quand il est caché */
}

#splash span {
    transition: color 0.3s ease;
}

#splash span:hover {
    color: red;
}

.desktop-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 72px;
    padding: 6px 2px;
    box-sizing: content-box;
    text-align: center;
    pointer-events: auto;
    user-select: none;
    cursor: default;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

.desktop-icon:hover {
    background-color: rgba(0, 120, 215, 0.3);
    outline: 1px solid rgba(0, 120, 215, 0.75);
}

.desktop-icon img {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto 4px auto;
}

.icon-label {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 2px black;
    margin: 0;
    line-height: 1.2;
}

.desktop-icon,
.desktop-icon * {
    outline: none !important;
    box-shadow: none !important;
}

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 500;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0.8;
    /* Transition améliorée */
    transition: all 0.3s ease-in-out; /* 'all' pour animer toutes les propriétés qui changent */
}

#taskbar:hover {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    opacity: 1;
}

#clock {
    margin-left: auto;
    color: white;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 13px;
    padding: 0 40px 0 10px; /* Plus de marge à droite */
    text-align: right;
    line-height: 1.2;
    text-shadow: 1px 1px 2px black;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}


/* Logo Windows sur la taskbar */
#windows-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px; /* Pour le positionner à gauche dans la taskbar */
}

#windows-logo img {
    width: 50px;
    height: 50px;
    transition: filter 0.2s ease;
}

/* Effet de survol sur le logo */
#windows-logo img:hover {
    filter: brightness(1.4); /* Augmentation de la luminosité du logo */
}

/* Cacher l'élément splash après un certain temps */
#splash {
    background-color: black;
    color: #00FF00;
    font-family: 'VT323', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    cursor: pointer;
    font-size: 2rem;
    user-select: none;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 4s ease, visibility 0s linear 4s; /* Transition sur l'opacité et visibilité */
}

#splash.hidden {
    opacity: 0;
    visibility: hidden; /* Masque le splash après la transition */
    pointer-events: none; /* Empêche l'interaction quand il est caché */
}
