/* ==========================================================
   MISE EN PAGE GÉNÉRALE
   ========================================================== */

body{
    background-color: #000000;
}
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box; /* Ajouté */
    padding-bottom: 30px; /* Ajouté pour la barre des tâches */
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative; /* Ajouté */
}

.background-image {
    background-position: center bottom;
    z-index: -1;
}

.hidden {
    display: none !important;
}

/* ==========================================================
   NOUVEAU BOUTON RENCONTRER l'AVATAR STYLE WIN98
   ========================================================== */
.win98-button {
    /* Style de base du bouton Win98 */
    background-color: #C0C0C0;
    border: 1px solid #000;
    box-shadow: 1.5px 1.5px 0px #000, inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 50;
    position: relative;
    display: inline-block;
}
    
/* Style pour le texte à l'intérieur du bouton */
.win98-button a {
    /* Style du texte */
    font-family: 'MS Sans Serif', 'Tahoma', Arial, sans-serif;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    
    /* Anti-aliasing pour un look pixelisé */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    
}


/* Effet de bouton pressé */
.win98-button:active {
    box-shadow: inset 1px 1px 0px #000;
    transform: translate(1.5px, 1.5px);
}


/* ==========================================================
   STYLES COMMUNS AUX FENÊTRES
   ========================================================== */
.win98-window {
    background-color: #C0C0C0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-family: 'MS Sans Serif', 'Tahoma', Arial, sans-serif;
    border: 2px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #404040;
    border-bottom-color: #404040;
    position: absolute;
    z-index: 100;
    border-radius: 0;
}

.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    height: 18px;
    font-size: 12px;
}

.title-bar-controls {
    display: flex;
    gap: 3px;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    border: 1px solid;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    border-right-color: #000;
    border-bottom-color: #000;
    background-color: #C0C0C0;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: black;
    font-size: 10px;
    line-height: 10px;
}

button[data-action="minimize-console"] {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='6' height='2' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h6v2H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* On rend le sélecteur plus spécifique pour ne cibler que les boutons dans la barre de titre */
.title-bar-controls button[data-action*="close"]::before,
.title-bar-controls button[data-action*="close"]::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 3px;
    width: 8px;
    height: 2px;
    background-color: #000;
}
.title-bar-controls button[data-action*="close"]::before { transform: rotate(45deg); }
.title-bar-controls button[data-action*="close"]::after { transform: rotate(-45deg); }


/* ==========================================================
   BARRE DES TÂCHES
   ========================================================== */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    z-index: 200;
    padding: 2px 4px;
    display: flex; /* Ajout pour aligner les onglets */
    gap: 4px; /* Ajout pour espacer les onglets */
}

.taskbar-tab {
    height: 24px;
    padding: 0 10px;
    border: 2px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #404040;
    border-bottom-color: #404040;
    background-color: #C0C0C0;
    cursor: pointer;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 1rem;
    color: black; /* Ajout pour uniformiser le style des liens */
    text-decoration: none; /* Ajout pour retirer le soulignement des liens */
    display: flex; /* Ajout pour centrer le contenu verticalement */
    align-items: center; /* Ajout pour centrer le contenu verticalement */
}

.taskbar-tab.blinking {
    /* L'ancienne animation est retirée au profit de la nouvelle notification */
    animation: none;
}

/* --- Notification de nouveau message --- */
.message-popup {
    position: fixed;
    bottom: -100px; /* Caché en dehors de l'écran */
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
    background: #c0c0c0;
    border: 2px solid;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #000000;
    border-bottom-color: #000000;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Au-dessus de la barre des tâches */
    cursor: pointer;
    transition: bottom 0.5s ease-out;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.message-popup.show {
    bottom: 40px; /* Position visible au-dessus de la barre des tâches */
    animation: attention-grabbing-popup 1.2s infinite ease-in-out;
}


.message-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    /* Icône de mail style pixel art */
    background-image: url('data:image/gif;base64,R0lGODlhGgAUAOYAAExl2Uxn2kxo201p3E1p3U5q3k9r31Fr31Ns4FRu41Vv5Fdw5Vhx5llz51p06Fp16Vt26l136l5561967GB77GF87WN97mR+72V/8GmA8WqC8myD8m2E826F9G+G9XCH9XGI9nKJ9nOK93SL93WM+HaM+HeN+HmO+XuP+XyQ+X2R+n+T/IGV/YOY/YSa/Yeb/Yic/Yme/oqh/oyi/o2k/pCo/pGr/pOs/pWv/pev/pmz/p22/qS6/6e8/6i9/6q+/6y//7G//7PA/7XC/7bE/7jG/7vJ/7zL/7/N/8DP/8HQ/8LR/8PU/8TW/8bX/8jZ/8na/8rb/8vc/8zd/8/f/9Hg/9Ph/9Ti/9Xj/9bk/9fl/9jn/9no/9rp/9vq/9zr/93s/+Dt/+Hu/+Lv/+Pw//Lz//T0//X1//b2//f3//j4//n5//r6//v7//z8//7+////AAAAACH5BAEAAFEALAAAAAAaABQAAAfagECCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5yZjp6goaKjpKWmp6ipqqusra6vrLCwsbO0tba3uLm6u7y9vr/AuL/CxMe/yMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7+/v6/Dx8vP09fb3+Pn6+/z9/v8AAwocSLCgwYMIEypcyLChw4cQI0qcSLGixYsYM2rcyLGjx48gQ4ocSbKkyZMoU6pcybKly5cwY8qcSbOmzZs4c+rcybOnz59AgwodSrSo0aNIkypdyrSp06dQo0qdSrWq1alVq1bdqgAAOw==');
    background-repeat: no-repeat;
    background-position: center;
}

.message-text {
    font-family: 'W95FA', sans-serif;
    color: #000;
}


@keyframes attention-grabbing-popup {
    0% {
        transform: translateY(0);
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 5px rgba(255, 255, 180, 0);
    }
    50% {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6), 0 0 25px 8px rgba(255, 255, 180, 0.7);
    }
    100% {
        transform: translateY(0);
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 5px rgba(255, 255, 180, 0);
    }
}



/* --- Fenêtre de Console --- */