* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: system-ui, sans-serif;
    background-size: cover;
    padding: 10px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid layout pour la page d'accueil */
.grid-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr minmax(180px, 200px);
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    min-height: 100vh;
    position: relative;
    margin: 0 auto;
}

.grid-layout .left, .grid-layout .right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    min-height: 100px;

}

/* ========== WINDOWS 98 TITLE BAR ========== */
.window-box {
    background: silver;
    border: 2px outset #fff;
    box-shadow: 1px 1px 0 #000;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
    pointer-events: auto;
}

.web-buttons-window .window-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 10px !important;
}

.web-buttons-window .window-content img {
    max-width: 88px !important;
    height: auto !important;
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
}

.web-buttons-window .window-content img:hover {
    transform: scale(1.05) !important;
    transition: transform 0.2s ease !important;
    filter: brightness(1.1) !important;
}

.web-buttons-window.minimized .window-content {
    display: none !important;
}

.web-buttons-window.minimized {
    height: 22px;
}

/* Empêcher la sélection de texte pendant le drag */
.window-box.dragging,
.window-box.dragging * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Effet visuel pendant le drag */
.window-box.dragging {
    opacity: 0.9;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    will-change: transform;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Empêcher les interactions pendant le drag */
.window-box.dragging .window-content {
    pointer-events: none;
}

/* Style pour les fenêtres fermées */
.window-box[style*="display: none"] {
    pointer-events: none;
}

/* Forcer les styles des web buttons même en position fixed */
.window-box[style*="position: fixed"] .window-content {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.window-box .window-content img[width="88"] {
    max-width: 88px !important;
    height: auto !important;
    border: 1px solid #ccc !important;
    border-radius: 2px !important;
    display: inline-block !important;
}

.window-box .window-content img[width="88"]:hover {
    transform: scale(1.05) !important;
    transition: transform 0.2s ease !important;
    filter: brightness(1.1) !important;
}

/* Container des web buttons doit rester en flex */
body > .window-box:first-of-type .window-content,
.window-box[style*="position: fixed"]:has(img[width="88"]) .window-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 10px !important;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #1a1a2e, #16213e, #0f3460);
    pointer-events: none;
}

.title-bar {
    cursor: grab;
    background: linear-gradient(to right, #000080, #1084d0);
    padding: 2px 2px 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 22px;
    user-select: none;
    cursor: -webkit-grab;
}

.title-bar:active,
.window-box.dragging .title-bar {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.title-bar-text {
    color: white;
    font-size: 11px;
    font-weight: bold;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-bar-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

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

.title-bar-button {
    width: 16px;
    height: 14px;
    background: silver;
    border: 1px outset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.title-bar-button:focus {
    outline: 1px dotted #000;
    outline-offset: -2px;
}

.title-bar-button:active {
    border-style: inset;
}

.title-bar-button.minimize {
    padding-bottom: 4px;
}

.title-bar-button.close:hover {
    background: #c0c0c0;
}

.window-content {
    padding: 14px;
    background: silver;
    border-top: none;
    box-shadow:
        inset 1px 1px #0a0a0a,
        inset 2px 2px grey,
        inset -1px -1px #fff,
        inset -2px -2px #dfdfdf;
    flex: 1;
    max-height: 70vh;
    min-height: 100px;
    overflow: auto;
    overflow-y: auto !important;
    overflow-x: hidden;
    max-height: calc(100vh - 150px); /* Éviter que les fenêtres soient trop hautes */
    scrollbar-width: thin;
    scrollbar-color: silver #c0c0c0;
}

.window-content::-webkit-scrollbar {
    width: 16px;
}

.window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border-left: 1px solid #808080;
    border-right: 1px solid #fff;
}

.window-content::-webkit-scrollbar-thumb {
    background: silver;
    border: 2px outset #fff;
    min-height: 30px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

.window-content::-webkit-scrollbar-thumb:active {
    border-style: inset;
}

.window-content::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 2px outset #fff;
    height: 16px;
}

.window-content::-webkit-scrollbar-button:active {
    border-style: inset;
}

/* Box plus utilisée maintenant */
.box {
    padding: 14px;
    background: silver;
    border: 0.5px solid #808080;
    width: 100%;
    min-height: 100px;
    box-shadow:
        inset 1px 1px #fff,
        inset 2px 2px #dfdfdf,
        inset -1px -1px #0a0a0a,
        inset -2px -2px grey;
    box-sizing: border-box;
    display: flex;
    justify-content: none;
    align-items: center;
    border-radius: 2px;
}

.grid-layout .center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative;
    min-height: 100px;
}

/* Styles spécifiques pour les boutons 88x31 dans la colonne gauche */
.left .window-box:first-child .window-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.left .window-box:first-child .window-content img {
    max-width: 88px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.left .window-box:first-child .window-content img:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
    filter: brightness(1.1);
}

@media (max-width: 1100px) {
    .grid-layout {
        grid-template-columns: 260px 1fr;
    }

    .grid-layout .right {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .grid-layout .right .window-box {
        width: calc(50% - 10px);
    }
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        min-height: 80vh;
    }
    .grid-layout .left,
    .grid-layout .right {
        flex-direction: row;
    }
    .grid-layout .center {
        order: 1;
    }
    .grid-layout .left {
        order: 2;
    }
    .grid-layout .right {
        order: 3;
    }
}

@media (max-width: 600px) {
    body {
        padding: 5px;
    }
    .page-container {
        padding: 20px;
    }
    .grid-layout {
        gap: 15px;
        width: 100%;
    }
    .grid-layout .left,
    .grid-layout .right {
        flex-direction: column;
    }
    .window-content {
        padding: 15px;
    }
    .window-box {
        min-height: 150px;
    }
    .left .window-box:first-child .window-content {
        gap: 4px;
        padding: 8px;
    }

    .left .window-box:first-child .window-content img {
        max-width: 70px;
    }

    .controls {
        flex-wrap: wrap;
        padding: 8px;
    }

    .title-bar-text {
        font-size: 11px;
    }

    .window-content img {
        max-width: 100%;
        height: auto;
    }
}

/* ========== BLOG LIST STYLES ========== */
.blog-container {
    width: 100%;
    font-family: system-ui, sans-serif;
}

.blog-header {
    margin: 0 !important;
    font-size: 16px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 4px;
}

.status-bar-field {
    color: #333;
}

.blog-post {
    padding: 12px;
    border-bottom: 1px solid #c0c0c0;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-post:hover {
    background-color: #f0f0f0;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-post a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-title {
    font-size: 14px;
    font-weight: bold;
}

.blog-date {
    font-size: 12px;
    color: #808080;
    margin-top: 4px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.view-all {
    text-align: right;
    margin-top: 15px;
}

.view-all a button {
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
}

/* ========== TABS STYLES ========== */
.tabs-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.tabs-header {
    flex-shrink: 0;
}

.tabs-list {
    position: relative;
    margin: 0;
    list-style-type: none;
    display: flex;
    padding-left: 0;
}

.tabs-list button {
    padding: 6px 14px;
    font-size: 15px;
    border: 2px outset #fff;
    background-color: #e0e0e0;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s, border-style 0.3s;
}

.tabs-list button:hover {
    background-color: #d8d8d8;
}

.tabs-list button.active {
    background-color: #d0d0d0;
    border-style: inset;
    font-weight: bold;
}

.tabs-content {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    position: relative;
    overflow-y: auto !important;
    max-height: none;
}

.tab-content {
    padding: 14px;
    background: silver;
    border: none;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 150px;
    height: auto;
    box-shadow:
        inset 1px 1px #fff,
        inset 2px 2px #dfdfdf,
        inset -1px -1px #0a0a0a,
        inset -2px -2px grey;
}

.tab-content > * {
    max-width: 100%;
    box-sizing: border-box;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s, transform 0.1s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.social-link img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* ========== STYLES POUR LES ONGLETS ========== */
.tab-content h2 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #c0c0c0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.tab-content h3 {
    font-size: 15px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.tab-content p {
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.tab-content ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.tab-content ul li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #333;
    font-weight: bold;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

/* ========== PARTICLES BACKGROUND ========== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #1a1a2e, #16213e, #0f3460);
}

/* ========== MUSIC PLAYER =========== */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0;
}
.lcd-display {
    background: #1a3a1a;
    border: 2px inset #808080;
    padding: 5px 6px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}
.track-info {
    color: #00cc00;
    font-size: 10px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 2px #00cc00;
}
.time-display {
    color: #00cc00;
    font-size: 10px;
    font-weight: bold;
    text-align: right;
    text-shadow: 0 0 2px #00cc00;
}
.separator {
    margin: 0 3px;
}
.track-container {
    width: 100%;
    position: relative;
}
.track-container input[type="range"] {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #0000ff 0%, #0000ff var(--progress, 0%), #fff var(--progress, 0%), #fff 100%);
    border: 2px inset #808080;
    outline: none;
}
.track-container input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 10px;
    background: transparent;
    border: none;
}
.track-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
}
.track-container input[type="range"]::-moz-range-track {
    width: 100%;
    height: 10px;
    background: transparent;
    border: none;
}
.track-container input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
}
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 5px;
    background: rgba(192, 192, 192, 0.15);
    border-radius: 2px;
}
.control-btn {
    width: 28px;
    height: 28px;
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #000;
    transition: none;
}
.control-btn.large {
    width: 34px;
    height: 34px;
    font-size: 15px;
}
.control-btn:hover {
    background: #d4d4d4;
}
.control-btn:active {
    border-style: inset;
    background: #a0a0a0;
}
.control-btn i {
    pointer-events: none;
}
.volume-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(192, 192, 192, 0.2);
    border: 1px solid #c0c0c0;
    border-radius: 2px;
}
.volume-section label {
    font-size: 10px;
    font-weight: bold;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    color: #000;
    min-width: 26px;
}
.volume-section input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px inset #808080;
    outline: none;
}
.volume-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 18px;
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
    box-shadow: 1px 1px 0 #808080;
}
.volume-section input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 18px;
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
    box-shadow: 1px 1px 0 #808080;
}
#volume-value {
    font-size: 9px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    color: #000;
    min-width: 32px;
    text-align: right;
}
#pause-button, #stop-button {
    display: none;
}

@media (max-width: 600px) {
    .control-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    .control-btn.large {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ========== HERO SECTION ========== */
.hero-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.hero-logo {
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 200px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
}

@keyframes float {
0%, 100% {
    transform: translateY(0px);
}
50% {
    transform: translateY(-10px);
}
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    font-family: system-ui, sans-serif;
}

.hero-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    max-width: 500px;
}

.scroll-container {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border-right: 2px solid transparent;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-text 5s linear infinite;
}

@keyframes scroll-text {
0% {
    transform: translateX(100%);
}
100% {
    transform: translateX(-100%);
}
}

/* Responsive Hero */
@media (max-width: 600px) {
    .hero-logo {
        max-width: 80px; 
        max-height: 80px;
        width: auto;
        height: auto;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

/* ========== GITHUB ACTIVITY STYLES ========== */
.github-activity {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: system-ui, sans-serif;
}

.github-header {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    padding-bottom: 4px;
    border-bottom: 1px solid #c0c0c0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.github-stats {
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    border: 1px solid #c0c0c0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.activity-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-repo {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 9px;
    color: #808080;
}

/* Scrollbar Windows 98 style pour GitHub Activity */
.activity-list::-webkit-scrollbar {
    width: 14px;
}

.activity-list::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #808080;
}

.activity-list::-webkit-scrollbar-thumb {
    background: silver;
    border: 1px solid #808080;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #0a0a0a;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

/* ========== CV DOWNLOAD STYLES ========== */
.cv-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px;
}

.cv-icon {
    font-size: 64px;
    color: #000080;
    animation: float 3s ease-in-out infinite;
}

.cv-info {
    text-align: center;
}

.cv-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.cv-details {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.win98-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
    transition: all 0.1s;
}

.win98-button:hover {
    background: #d4d4d4;
}

.win98-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #808080;
    padding: 7px 15px 5px 17px;
}

.win98-button i {
    font-size: 16px;
}

/* ========== HOBBIES STYLES ========== */
.interests-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #c0c0c0;
    border-radius: 2px;
}

.interest-item.coming-soon {
    opacity: 0.65;
    background: rgba(255, 255, 255, 0.15);
}

.interest-icon {
    font-size: 20px;
    display: block;
}

.interest-label {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-align: center;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    line-height: 1.2;
}

.interest-label small {
    font-size: 8px;
    font-weight: normal;
    color: #666;
    font-style: italic;
}

@media (max-width: 600px) {
    .interests-container {
        gap: 4px;
    }

    .interest-item {
        padding: 5px 3px;
    }

    .interest-icon {
        font-size: 18px;
    }

    .interest-label {
        font-size: 9px;
    }
}

/* PROJECT TAB */
.desktop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: silver;
}

.desktop-icon-wrapper {
    display: inline-block;
    position: relative; 
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 64px;
    cursor: default;
    font-family: 'MS Sans Serif';
    font-size: 12px;
    text-align: center;
    user-select: none;
    padding: 4px 2px;
    border-radius: 2px;
    transition: background 0.1s;
}

.desktop-icon:hover { background: rgba(250,250,235,0.3); }

.desktop-icon img { 
    width: 48px; 
    height: 48px; 
    margin-bottom: 2px; 
}

.desktop-icon span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.desktop-icon.selected {
    outline: 1px dotted #000;
    outline-offset: -2px;
    background: rgba(0,120,215,0.2);
}

.window-box.project-window {
    position: absolute;
    width: 520px;
    border: 2px outset #fff;
    background: silver;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    font-family: 'MS Sans Serif', sans-serif;
    position: relative;
}

.project-image-container {
    flex-shrink: 0;
    width: 100%;
    height: 200px;
    border: 2px inset #808080;
    background: #000;
    overflow: hidden;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease;
}

.project-info {
    background: #dcdcdc;
    border: 2px inset #fff;
    padding: 12px;
    padding-bottom: 50px;
    min-height: auto;
    height: auto;
    overflow: visible;
    box-shadow:
        inset 1px 1px #fff,
        inset 2px 2px #dfdfdf,
        inset -1px -1px #0a0a0a,
        inset -2px -2px grey;
}

.project-info h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #000080;
    font-weight: bold;
}

.project-date {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: #555;
    font-style: italic;
}

.project-description {
    margin: 0;
    font-size: 13px;
    color: #000;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-links {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 10px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: black;
    background: #c0c0c0;
    border: 2px outset #fff;
    border-radius: 2px;
    transition: all 0.2s;
    text-decoration: none;
}

.project-link:hover {
    background: #0078d7;
    color: #fff;
    border-style: inset;
}

.project-link:active {
    border-style: inset;
    background: #005a9e;
}

@media (max-width: 600px) {
    .desktop-grid {
        gap: 15px;
        padding: 15px;
    }

    .desktop-icon {
        width: 56px;
    }

    .desktop-icon img {
        width: 40px;
        height: 40px;
    }
}

#oneko {
    z-index: 9999 !important;
    pointer-events: none; /* Le chat ne bloque pas les clics */
}
