:root{
    --white: #ffffff;
    --background-color: #1B1B1B;
}

body{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100vh;
}

img{
    width: 100%;
    height: auto;
    display: block;
}

video{
    max-width: 100%;
    max-height: 100%;
}

p{
    color: inherit;
}

/* Header ____________________________________________________ */
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 6vh;
    box-sizing: border-box;
}

.swiper-slide{
    background-image: url(../assets/images/Equans_background.png);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.swiper-nav{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.swiper-button-next, .swiper-button-prev{
    position: relative;
    top: 0;
}

.swiper-nav .material-symbols-outlined{
    cursor: pointer;
}


/* Desktop ____________________________________________________ */
#desktop {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    flex-grow: 1;
}

/* Slider */
.swiper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

/*Footer Taskbar ____________________________________________________ */
#taskbar{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: fit-content;
    padding: 1rem;
    box-sizing: border-box;
    background-color: var(--background-color);
    position: sticky;
    bottom: 0;
    z-index: 1000;
}
.taskbar-icons{
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-self: center;
    grid-row: 1;
    grid-column: 2;
}

.taskbar-icon{
    position: relative;
    padding: .2rem;
    border-radius: .3rem;
    box-sizing: border-box;
}

.taskbar-icon img{
    width: 2.6rem;
    padding: .2rem;
    box-sizing: border-box;
}

.taskbar-infos{
    display: flex;
    gap: 0.4rem;
    justify-self: right;
    grid-row: 1;
    grid-column: 3;
}

.taskbar-infos .material-symbols-outlined{
    color: var(--white);
}

.active, .active-window{
    background-color: var(--dark-grey-active);

}

.active img, .active-window img{
    border-bottom: solid 2px var(--white);
}

/* Animation de vibration */
@keyframes vibrate {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px);; }
    50% { transform: translateY(0);; }
    75% { transform: translateY(-5px);; }
    100% { transform: translateY(0);; }
}

/* Animation de clignotement */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.wiggle img{
    animation: vibrate 1.8s infinite, blink 1.5s infinite;
}

.taskbar-icon::after{
    content: '1';
    position: absolute;
    top: -13px;
    right: -13px;
    z-index: 100;
    width: 25px;
    height: 25px;
    background: red;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0;              /* invisible au départ */
    transform: scale(0);     /* réduit au départ */
    transition: all 0.4s ease-out;
}

.notification::after {
    opacity: 1;
    transform: scale(1);
    animation: vibrate 1.8s infinite;
}

/* responsive */
@media (max-width: 768px) {
    #taskbar{
        padding: .5rem;
        min-height: 70px;
    }
    .taskbar-icon img{
        width: 2.2rem;
    }
    .taskbar-infos{
        display: none;
    }
}

@media (max-width: 640px) {
    #taskbar{
        padding: .3rem;
        min-height: 60px;
    }
    .taskbar-icon img{
        width: 1.9rem;
    }
}