body {
    display: flex;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #000000;
    min-height: 100vh;
    background: linear-gradient(-45deg, #fffddb, #ffd4d4, #cefbfe, #eeffe0);
    background-size: 400% 400%;
    animation: gradient-animation 40s ease infinite;
    min-height: 200vh;
}

.titre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}




main {
    padding: 0px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}






/* =========== Menu =========== */

.screenMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("../assets/desktop_bliss_optimized.webp");
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.screenMenu.visible {
    opacity: 1;
    visibility: visible;
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
}

.menuIcon {
    width: 100px;
    height: 100px;
    display: flex;
    gap: 5px !important;
    justify-content: center;
    align-items: center;
    flex-direction: column !important;
    position: relative;
    z-index: 1;
}

.menuIcon img {
    width: 80px;
    height: 80px;
    min-width: 80px !important;
    min-height: 80px !important;
    border-radius: 10px;
    overflow: hidden;
}

.menuIcon p {
    font-size: 20px;
    margin: 0;
    color: white;
    text-align: center;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    font-weight: bold;
}

/* ========================== ANIMATION ========================== */

/* Intro wrapper (aligned to the left of the IDE box, centered on the screen) */
.home-intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 650px;
    width: 90%;
    margin: 0 auto;
    z-index: 1;
}

/* Welcome small tag above name */
.welcome-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--normal-ide-tag, #0284c7);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    margin-left: 10px;
    text-transform: uppercase;
    background: rgba(2, 132, 199, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dark-mode .welcome-tag {
    color: var(--dark-ide-tag, #3a93ff);
    background: rgba(58, 147, 255, 0.12);
}

/* Owner name (styled like a sleek modern title) */
.owner-name {
    font-family: 'Inter', sans-serif;
    font-size: 46px;
    font-weight: 800;
    margin: 0 0 8px 10px;
    color: #0f172a;
    letter-spacing: -1.5px;
    transition: color 0.3s ease;
    line-height: 1.1;
}

.dark-mode .owner-name {
    color: #ffffff;
}

/* Home description subtitle under name */
.home-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #475569;
    margin: 0 0 25px 10px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 520px;
    transition: color 0.3s ease;
}

.dark-mode .home-subtitle {
    color: #94a3b8;
}

/* Tech grid overlay background on .titre */
.titre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

.titre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.dark-mode .titre::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Glowing background circles for visual depth */
.glow-orb {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
    animation: float-orb 12s ease-in-out infinite alternate;
}

.orb-1 {
    top: 15%;
    left: 8%;
}

.orb-2 {
    bottom: 12%;
    right: 8%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(236, 72, 153, 0) 70%);
    animation-delay: -6s;
}

@keyframes float-orb {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-25px) scale(1.08);
    }
}

/* Premium IDE window style */
.ide-window {
    width: 100%;
    background: var(--normal-ide-bg, #ffffff);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    transition: all 0.3s ease;
}

.dark-mode .ide-window {
    background: var(--dark-ide-bg, #1e1e1e);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* IDE header with macOS-style control dots */
.ide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .ide-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ide-dots {
    display: flex;
    gap: 6px;
}

.ide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ide-dot.red {
    background-color: #ff5f56;
}

.ide-dot.yellow {
    background-color: #ffbd2e;
}

.ide-dot.green {
    background-color: #27c93f;
}

.ide-title {
    font-size: 12px;
    color: #888;
    margin-right: auto;
    margin-left: 15px;
    font-weight: 500;
}

/* IDE body styling */
.ide-body {
    display: flex;
    padding: 20px;
    align-items: center;
}

.ide-line-numbers {
    color: rgba(0, 0, 0, 0.25);
    margin-right: 15px;
    user-select: none;
    font-size: 20px;
    font-family: inherit;
}

.dark-mode .ide-line-numbers {
    color: rgba(255, 255, 255, 0.15);
}

/* Conteneur principal */
.texte-anime {
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--normal-ide-tag, #0284c7);
    width: 0;
    color: var(--normal-ide-text, #0f172a);
    animation:
        typing 3s steps(50, end) forwards,
        blink 0.75s step-end infinite;
}

.dark-mode .texte-anime {
    color: var(--dark-ide-text, #ffffff);
    border-right: 3px solid var(--dark-ide-tag, #3a93ff);
}

/* Le mot ciblé */
.mot-couleur {
    color: var(--normal-ide-tag, #0284c7);
    transition: color 0.3s ease;
}

.dark-mode .mot-couleur {
    color: var(--dark-ide-tag, #3a93ff);
}

/* Scroll indicator style */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--normal-scroll-color, #333333);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    text-transform: uppercase;
}

.dark-mode .scroll-down-indicator {
    color: var(--dark-scroll-color, #ffffff);
}

.scroll-text {
    opacity: 0.8;
    letter-spacing: 0.8px;
}

.scroll-arrow {
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Animation fond dégradé */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animation d'effet de dactylographie (typing) */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 37ch;
        /* 37 caractères pour '<div> Développeur FullStack </div>' */
    }
}

/* Clignotement du curseur */
@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: currentColor;
    }
}


/* =============================================================== */

/* ==================== STYLE EXPLORATEUR ==================== */

.xp-window {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    max-width: 95vw;
    background-color: #ece9d8;
    border: 3px solid #0058e6;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    font-family: "Tahoma", "Geneva", sans-serif;
    user-select: none;
    overflow: hidden;
}

.xp-window.open {
    display: flex;
}

/* En-tête bleu dégradé XP */
.xp-window-header {
    background: linear-gradient(to right, #0058e6 0%, #3a93ff 50%, #0058e6 100%);
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 1px #000;
    cursor: move;
    height: 28px;
    border-bottom: 1px solid #002d84;
}

.xp-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-window-icon {
    font-size: 16px;
    text-shadow: none;
}

.xp-window-controls {
    display: flex;
    gap: 3px;
}

.xp-window-controls button {
    width: 21px;
    height: 21px;
    border-radius: 3px;
    border: 1px solid #fff;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.3);
}

.xp-btn-min,
.xp-btn-max {
    background: linear-gradient(to bottom, #3a93ff 0%, #0058e6 100%);
}

.xp-btn-close {
    background: linear-gradient(to bottom, #f96d51 0%, #e82c0c 100%) !important;
}

.xp-btn-close:hover {
    background: linear-gradient(to bottom, #ff8c75 0%, #ff4b2b 100%) !important;
}

/* Barre de menus classique XP */
.xp-menu-bar {
    background-color: #ece9d8;
    border-bottom: 1px solid #d6d3c2;
    padding: 4px 10px;
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.xp-menu-bar span {
    cursor: pointer;
    padding: 2px 5px;
    color: #000;
}

.xp-menu-bar span:hover {
    background-color: #316ac5;
    color: white;
    border-radius: 2px;
}

/* Barre d'adresse */
.xp-address-bar {
    background-color: #ece9d8;
    border-bottom: 2px solid #b5b2a1;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.xp-address-label {
    color: #555;
    font-weight: bold;
}

.xp-address-input {
    flex: 1;
    background-color: white;
    border: 1px solid #7f9db9;
    padding: 3px 8px;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.xp-go-btn {
    border: 1px solid #b5b2a1;
    background-color: #ece9d8;
    padding: 2px 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
}

.xp-go-btn:hover {
    background-color: #e0e0d0;
}

/* Zone de contenu blanche */
.xp-window-content {
    background-color: white;
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    border: 2px inset #d6d3c2;
}

.xp-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
}

.xp-project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease-in-out;
    padding: 10px 5px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.xp-project-item:hover {
    background-color: #c1d2ee;
    border-color: #316ac5;
}

.xp-item-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.xp-item-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.xp-item-name {
    margin: 0;
    font-size: 12px;
    color: #000;
    word-break: break-word;
    line-height: 1.3;
}

.xp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #555;
    gap: 12px;
    text-align: center;
}

/* Barre d'état */
.xp-status-bar {
    background-color: #ece9d8;
    border-top: 1px solid #d6d3c2;
    padding: 4px 10px;
    font-size: 11px;
    color: #444;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d6d3c2;
}

/* ==========================================================================
   DESACTIVATION DES ANIMATIONS
   ========================================================================== */
.no-animations * {
    transition: none !important;
    animation: none !important;
}

/* ==========================================================================
   THEME MODE SOMBRE (DARK MODE)
   ========================================================================== */
/* Effet noirci appliqué uniquement sur les pages de détails de projets en mode sombre (normal ou simple) */
body.dark-mode.project-page-body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
    pointer-events: none;
}

/* Effet noirci appliqué uniquement sur le fond du bureau interactif XP en mode sombre */
.dark-mode .screenMenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 0;
    pointer-events: none;
}

/* Icônes bureau assombries */
.dark-mode .menuIcon {
    filter: opacity(0.75) saturate(0.6);
    transition: filter 0.2s ease;
}

.dark-mode .menuIcon:hover {
    filter: none;
}

/* Fenêtres standards et XP */
.dark-mode .xp-window,
.dark-mode .paint-window,
.dark-mode .xp-menu-bar,
.dark-mode .paint-menu-bar,
.dark-mode .xp-address-bar,
.dark-mode .xp-status-bar,
.dark-mode .paint-status-bar,
.dark-mode .paint-toolbar,
.dark-mode .paint-palette-area,
.dark-mode .paint-tool-options {
    background-color: var(--dark-bg, #242424) !important;
    color: var(--dark-text, #ffffff) !important;
    border-color: #444 !important;
}

/* Titres des fenêtres */
.dark-mode .xp-window-header,
.dark-mode .paint-title-bar {
    background: linear-gradient(to right, #111 0%, var(--dark-bg, #242424) 100%) !important;
    border-bottom: 1px solid var(--dark-accent, #3a93ff) !important;
}

.dark-mode .xp-window-header {
    border: 1px solid var(--dark-accent, #3a93ff) !important;
    border-bottom: none !important;
}

/* Menus déroulants et liens d'adresse */
.dark-mode .xp-menu-bar span,
.dark-mode .paint-menu-item span,
.dark-mode .xp-address-label {
    color: var(--dark-text, #ffffff) !important;
}

.dark-mode .xp-menu-bar span:hover,
.dark-mode .paint-menu-item:hover {
    background-color: var(--dark-accent, #3a93ff) !important;
    color: #fff !important;
}

.dark-mode .xp-address-input {
    background-color: #111 !important;
    border: 1px solid #444 !important;
    color: var(--dark-text, #ffffff) !important;
}

/* Contenu des fenêtres et dossiers */
.dark-mode .xp-window-content,
.dark-mode .paint-canvas-area {
    background-color: #111 !important;
    border-color: #333 !important;
    color: var(--dark-text, #ffffff) !important;
}

/* Éléments de projets en grille */
.dark-mode .xp-project-item {
    color: var(--dark-text, #ffffff) !important;
}

.dark-mode .xp-item-name {
    color: var(--dark-text, #ffffff) !important;
}

.dark-mode .xp-project-item:hover {
    background-color: #222 !important;
    border-color: var(--dark-accent, #3a93ff) !important;
}

/* Canevas MS Paint et contenu */
.dark-mode .paint-canvas {
    background-color: #242424 !important;
    color: var(--dark-text, #ffffff) !important;
    border-color: #444 !important;
}

.dark-mode .paint-project-title {
    color: var(--dark-text, #ffffff) !important;
}

.dark-mode .paint-project-date {
    color: #aaa !important;
}

.dark-mode .paint-divider {
    border-top-color: #444 !important;
}

/* Éditeur HTML interne et texte TinyMCE */
.dark-mode .rich-text-content {
    color: #e0e0e0 !important;
}

.dark-mode .rich-text-content h1,
.dark-mode .rich-text-content h2,
.dark-mode .rich-text-content h3 {
    color: var(--dark-accent, #3a93ff) !important;
    border-bottom-color: #444 !important;
}

.dark-mode .rich-text-content a {
    color: var(--dark-accent, #3a93ff) !important;
}

.dark-mode .rich-text-content table th {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

.dark-mode .rich-text-content table td {
    border-color: #444 !important;
}

.dark-mode .rich-text-content blockquote {
    border-left-color: var(--dark-accent, #3a93ff) !important;
    background-color: #2b2b2b !important;
    color: #ccc !important;
}

/* Outils Paint en mode sombre */
.dark-mode .paint-tool-btn {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

.dark-mode .paint-tool-btn:active,
.dark-mode .paint-tool-btn.active {
    background-color: #111 !important;
    border-color: #444 !important;
}

/* Palette de couleurs */
.dark-mode .paint-color-selector {
    background-color: #222 !important;
    border-color: #444 !important;
}

.dark-mode .status-panel {
    border-right-color: #444 !important;
    color: #aaa !important;
}

/* Menus déroulants Paint */
.dark-mode .paint-dropdown-menu {
    background-color: var(--dark-bg, #242424) !important;
    border-color: #444 !important;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .paint-dropdown-menu a {
    color: var(--dark-text, #ffffff) !important;
}

.dark-mode .paint-dropdown-menu a:hover {
    background-color: var(--dark-accent, #3a93ff) !important;
    color: #fff !important;
}

.dark-mode .paint-dropdown-menu hr {
    border-top-color: #444 !important;
}

/* Mode Simple en mode sombre */
.dark-mode .simple-view-card {
    background-color: #242424 !important;
    color: var(--dark-text, #ffffff) !important;
    border-color: #333 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .simple-project-title {
    color: var(--dark-accent, #3a93ff) !important;
}

.dark-mode .simple-divider {
    border-top-color: #444 !important;
}

.dark-mode .simple-back-btn,
.dark-mode .simple-toggle-btn {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

.dark-mode .simple-back-btn:hover {
    background-color: #444 !important;
}

.dark-mode .simple-toggle-btn {
    background-color: var(--dark-accent, #3a93ff) !important;
    border-color: var(--dark-accent, #3a93ff) !important;
}

.dark-mode .simple-toggle-btn:hover {
    background-color: #2c7ddb !important;
}

/* ==========================================================================
   CLASSES D'ACCESSIBILITE ET PANNEAU DE CONFIGURATION
   ========================================================================== */
.xp-settings-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f0;
    padding: 10px;
    border: 1px solid #d6d3c2;
    border-radius: 4px;
}

.dark-mode .xp-settings-group {
    background-color: #2b2b2b !important;
    border-color: #444 !important;
}

.dark-mode .xp-settings-group span {
    color: #bbb !important;
}

.simple-info-box {
    background-color: #f7f9fa;
    border-left: 4px solid #0058e6;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.dark-mode .simple-info-box {
    background-color: #222 !important;
    border-left-color: var(--dark-accent, #3a93ff) !important;
    color: #ccc !important;
}

.simple-project-list-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
    background: #fff;
}

.simple-project-list-item:hover {
    background-color: #fcfdfe;
}

.dark-mode .simple-project-list-item {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

.dark-mode .simple-project-list-item:hover {
    background-color: #222 !important;
}

.simple-pref-box {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark-mode .simple-pref-box {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

.dark-mode .simple-pref-box span {
    color: #bbb !important;
}

/* ==========================================================================
   BUGS & STYLING IMPROVEMENTS
   ========================================================================== */

/* 1. Scrolling Bug in Simple Mode */
body.simple-mode-active {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
    display: block !important;
    background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #e2e8f0 100%) !important;
}

body.simple-mode-active.dark-mode {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%) !important;
}

/* 2. Paint Canvas Area & Wrapper dark background fix */
.dark-mode .paint-canvas-area,
.dark-mode .paint-canvas-border-wrapper {
    background-color: #1a1a1a !important;
}

/* 3. Premium Modern Simple Mode Aesthetics */
.simple-mode-main {
    min-height: 100vh;
    padding: 80px 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.dark-mode .simple-mode-main {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%) !important;
}

.simple-profile-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.dark-mode .simple-profile-header {
    background-color: #0f172a !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
}

.simple-header-logo {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dark-mode .simple-header-logo {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.simple-btn-modern.active {
    background: #64748b !important;
    cursor: default;
    pointer-events: none;
}
.dark-mode .simple-btn-modern.active {
    background: #334155 !important;
}

.simple-profile-preview-card {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.06) 0%, rgba(30, 60, 114, 0.02) 100%);
    border: 1px solid rgba(30, 60, 114, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.simple-profile-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.08);
}
.dark-mode .simple-profile-preview-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.04) 100%) !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
}

.simple-container {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.simple-hero-modern {
    text-align: center;
    margin-bottom: 40px;
}

.simple-hero-modern h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.dark-mode .simple-hero-modern h1 {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.simple-hero-modern p {
    font-size: 16px;
    color: #475569;
    margin: 0;
    font-weight: 500;
}

.dark-mode .simple-hero-modern p {
    color: #94a3b8;
}

.simple-card-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.dark-mode .simple-card-modern {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
}

/* Make headings, strong tags, spans and paragraphs crisp white inside dark-mode simple-card */
.dark-mode .simple-card-modern h2,
.dark-mode .simple-card-modern strong,
.dark-mode .simple-card-modern span,
.dark-mode .simple-card-modern p {
    color: #f8fafc !important;
}

/* Enlever l'effet de filtre noirci global sur le mode simple (uniquement sur l'accueil, pas sur les projets) */
body.simple-mode-active.dark-mode:not(.project-page-body)::before {
    display: none !important;
}

.simple-info-modern {
    background-color: #f1f5f9;
    border-left: 4px solid #1e3c72;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 35px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.6;
}

.dark-mode .simple-info-modern {
    background-color: rgba(30, 41, 59, 0.4) !important;
    border-left-color: #38bdf8 !important;
    color: #cbd5e1 !important;
}

.simple-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.project-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.project-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(30, 60, 114, 0.08);
    border-color: #cbd5e1;
}

.dark-mode .project-card-modern {
    background: rgba(30, 41, 59, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

.dark-mode .project-card-modern:hover {
    border-color: rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.1) !important;
}

.project-card-modern-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-card-modern-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.dark-mode .project-card-modern-icon {
    border-color: rgba(255, 255, 255, 0.08);
}

.project-card-modern-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.dark-mode .project-card-modern-title {
    color: #f8fafc;
}

.project-card-modern-date {
    font-size: 11px;
    color: #64748b;
}

.dark-mode .project-card-modern-date {
    color: #94a3b8;
}

.simple-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 60, 114, 0.15);
    align-self: flex-start;
}

.simple-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 60, 114, 0.25);
}

.dark-mode .simple-btn-modern {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
}

.dark-mode .simple-btn-modern:hover {
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3);
}

.simple-dock-modern {
    margin-top: 40px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dark-mode .simple-dock-modern {
    background: rgba(30, 41, 59, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.simple-dock-pref-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.dark-mode .simple-dock-pref-item {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.simple-dock-pref-item strong {
    font-size: 13px;
    color: #334155;
}

.dark-mode .simple-dock-pref-item strong {
    color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* 1. TABLET LAYOUT (max-width: 768px) */
@media (max-width: 768px) {

    /* Splash Screen Page d'accueil */
    .owner-name {
        font-size: 38px;
    }

    .home-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .texte-anime {
        font-size: 20px;
    }

    /* Simple Mode main layout spacing */
    .simple-mode-main {
        padding: 40px 15px !important;
    }

    .simple-card-modern {
        padding: 25px;
        border-radius: 16px;
    }

    .simple-hero-modern h1 {
        font-size: 32px;
    }
}

/* 2. MOBILE LAYOUT (max-width: 600px) */
@media (max-width: 600px) {

    /* Splash Screen Page d'accueil */
    .home-intro-wrapper {
        width: 92%;
        align-items: center;
        text-align: center;
    }

    .welcome-tag {
        margin-left: 0;
    }

    .owner-name {
        font-size: 32px;
        margin-left: 0;
        text-align: center;
    }

    .home-subtitle {
        font-size: 14px;
        margin-left: 0;
        text-align: center;
        margin-bottom: 15px;
    }

    .ide-window {
        width: 100%;
    }

    .ide-body {
        padding: 12px;
    }

    .ide-line-numbers {
        font-size: 14px;
        margin-right: 8px;
    }

    .texte-anime {
        font-size: 14px;
        /* Evite les overflows horizontaux du texte anime */
    }

    /* Retro Desktop screenMenu icons spacing & responsiveness */
    .screenMenu.visible {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 15px !important;
        overflow-y: auto !important;
    }

    .menuIcon {
        width: 90px;
        height: 90px;
    }

    .menuIcon img {
        width: 60px;
        height: 60px;
        min-width: 60px !important;
        min-height: 60px !important;
    }

    .menuIcon p {
        font-size: 14px;
    }

    /* layout adjustments for small viewports */
    .xp-window {
        width: 95vw !important;
        max-width: 95vw !important;
        top: 5% !important;
        left: 2.5vw !important;
        transform: none !important;
    }

    .xp-address-bar {
        font-size: 11px;
    }

    .xp-menu-bar {
        flex-wrap: wrap;
        gap: 5px;
        padding: 5px;
    }

    /* Simple Mode home enhancements */
    .simple-card-modern {
        padding: 20px;
    }

    .simple-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-card-modern {
        height: auto;
        min-height: 180px;
    }

    .simple-dock-pref-item {
        width: 100%;
        justify-content: space-between;
        display: flex;
    }

    /* Scroll down indicator spacing */
    .scroll-down-indicator {
        bottom: 15px;
    }
}

/* ==================== STYLE DU RETRO DESKTOP (BARRE DES TÂCHES & MENU DÉMARRER) ==================== */

/* Padding pour le bureau afin d'éviter le chevauchement avec la barre des tâches */
.screenMenu {
    padding-bottom: 30px !important;
    box-sizing: border-box !important;
}

/* ==================== TASKBAR ==================== */
.xp-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #1e56c5 55%, #123e9c 100%);
    border-top: 2px solid #3c82e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-family: "Tahoma", "Geneva", sans-serif;
    user-select: none;
    box-sizing: border-box;
}

.dark-mode .xp-taskbar {
    background: linear-gradient(to bottom, #1f1f1f 0%, #3a3a3a 9%, #1f1f1f 18%, #161616 55%, #0d0d0d 100%) !important;
    border-top: 2px solid #4f4f4f !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4) !important;
}

/* Start button styling */
.xp-start-btn {
    height: 100%;
    background: linear-gradient(to bottom, #388e3c 0%, #4caf50 12%, #388e3c 24%, #2e7d32 60%, #1b5e20 100%);
    border: none;
    border-right: 1px solid #1b5e20;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: white;
    cursor: pointer;
    font-style: italic;
    font-weight: 900;
    font-size: 14.5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.xp-start-btn:hover {
    filter: brightness(1.1);
}

.xp-start-btn:active {
    background: linear-gradient(to bottom, #1b5e20 0%, #2e7d32 100%);
}

.dark-mode .xp-start-btn {
    background: linear-gradient(to bottom, #111111 0%, #333333 12%, #111111 24%, #0a0a0a 60%, #000000 100%) !important;
    border-right-color: #222 !important;
}

.xp-start-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 6px;
}

.xp-start-text {
    letter-spacing: 0.5px;
}

/* Middle active tasks tabs styling */
.xp-taskbar-tasks {
    flex: 1;
    display: flex;
    gap: 5px;
    padding: 0 10px;
    overflow: hidden;
    height: 100%;
    align-items: center;
}

.xp-task-tab {
    height: 22px;
    background: #3c82e6;
    border: 1px solid #1a49a5;
    border-radius: 3px;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    max-width: 130px;
    gap: 6px;
    cursor: pointer;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.xp-task-tab:hover {
    background: #5296f5;
}

.xp-task-tab.active {
    background: #1e56c5;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
    border-color: #0b2e75;
}

.dark-mode .xp-task-tab {
    background: #2a2a2a !important;
    border-color: #111111 !important;
}

.dark-mode .xp-task-tab.active {
    background: #111111 !important;
}

.xp-tab-icon {
    font-size: 11px;
}

.xp-tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* System Tray (Clock) styling */
.xp-system-tray {
    height: 100%;
    background: #0f80ff;
    border-left: 1px solid #123e9c;
    background-image: linear-gradient(to bottom, #092e62 0%, #1e56c5 10%, #092e62 100%);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.dark-mode .xp-system-tray {
    background: #111111 !important;
    border-left: 1px solid #000 !important;
    background-image: linear-gradient(to bottom, #080808 0%, #1f1f1f 10%, #080808 100%) !important;
}

.xp-tray-icon {
    font-size: 12px;
    cursor: pointer;
}

.xp-clock {
    font-size: 11px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    margin-left: 5px;
}

/* ==================== START MENU ==================== */
.xp-start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 350px;
    background-color: #245edb;
    border: 2px solid #3c82e6;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    display: none;
    flex-direction: column;
    z-index: 9998;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    font-family: "Tahoma", "Geneva", sans-serif;
    overflow: visible;
    /* Prevent avatar clipping */
    user-select: none;
    box-sizing: border-box;
}

.xp-start-menu.open {
    display: flex;
}

.dark-mode .xp-start-menu {
    background-color: #1f1f1f !important;
    border-color: #4f4f4f !important;
}

.xp-start-menu-header {
    background: linear-gradient(to bottom, #245edb 0%, #1e56c5 100%);
    padding: 10px 15px 10px 70px;
    /* Space for overlapping avatar container */
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #3c82e6;
    height: 52px;
    position: relative;
    box-sizing: border-box;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
}

.dark-mode .xp-start-menu-header {
    background: linear-gradient(to bottom, #1f1f1f 0%, #111111 100%) !important;
    border-bottom-color: #4f4f4f !important;
}

.xp-avatar-container {
    position: absolute;
    top: -18px;
    left: 12px;
    width: 46px;
    height: 46px;
    border-radius: 5px;
    border: 2px solid #fff;
    background: #fff;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.xp-user-avatar {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 3px;
}

.xp-user-name {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.xp-start-menu-body {
    display: flex;
    background-color: #ffffff;
}

.dark-mode .xp-start-menu-body {
    background-color: #1e1e1e !important;
}

/* Left side of Start Menu */
.xp-start-left {
    flex: 1.2;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xp-start-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    gap: 10px;
    transition: background 0.15s;
    box-sizing: border-box;
}

.xp-start-item:hover {
    background-color: #3c82e6;
    color: white;
}

.xp-start-item:hover .xp-item-details span {
    color: rgba(255, 255, 255, 0.8);
}

.dark-mode .xp-start-item {
    color: #cbd5e1 !important;
}

.dark-mode .xp-start-item:hover {
    background-color: #333333 !important;
}

.xp-item-icon {
    font-size: 20px;
}

.xp-item-details {
    display: flex;
    flex-direction: column;
}

.xp-item-details strong {
    font-size: 12px;
}

.xp-item-details span {
    font-size: 10px;
    color: #777;
}

.dark-mode .xp-item-details span {
    color: #94a3b8 !important;
}

/* Right side of Start Menu */
.xp-start-right {
    flex: 0.8;
    background-color: #d3e5fa;
    border-left: 1px solid #a6c9f2;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dark-mode .xp-start-right {
    background-color: #151c27 !important;
    border-left-color: rgba(255, 255, 255, 0.05) !important;
}

.xp-right-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    color: #0b2e75;
    font-size: 11px;
    font-weight: bold;
    gap: 8px;
    border-radius: 4px;
}

.xp-right-item:hover {
    background-color: #3c82e6;
    color: white;
}

.dark-mode .xp-right-item {
    color: #38bdf8 !important;
}

.dark-mode .xp-right-item:hover {
    background-color: #333 !important;
    color: white !important;
}

.xp-right-icon {
    font-size: 14px;
}

.xp-start-divider {
    border: none;
    border-top: 1px solid #b5d5f9;
    margin: 6px 4px;
}

.dark-mode .xp-start-divider {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

/* Start Menu Footer */
.xp-start-menu-footer {
    background: linear-gradient(to bottom, #245edb 0%, #123e9c 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #3c82e6;
}

.dark-mode .xp-start-menu-footer {
    background: linear-gradient(to bottom, #1f1f1f 0%, #0d0d0d 100%) !important;
    border-top-color: #4f4f4f !important;
}

.xp-logoff-btn,
.xp-shutdown-btn {
    background: none;
    border: none;
    color: white;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
}

.xp-logoff-btn:hover,
.xp-shutdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.xp-footer-btn-icon {
    font-size: 12px;
}

/* Responsivité de la barre des tâches */
@media (max-width: 600px) {
    .xp-taskbar {
        height: 35px;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }

    .xp-start-btn {
        padding: 0 10px;
        font-size: 13px;
    }

    .xp-taskbar-tasks {
        display: none;
        /* Cache les onglets intermédiaires sur mobile pour laisser la place au bouton et à l'horloge */
    }

    .xp-start-menu {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        bottom: 35px;
        position: fixed !important;
        z-index: 99998 !important;
    }

    .xp-balloon-tip {
        position: fixed !important;
        bottom: 45px !important;
        right: 10px !important;
        z-index: 100000 !important;
    }
}

/* ===============================================================
   NEW RETRO BUREAU STYLES & INTERACTIONS
   =============================================================== */

/* Subtle desktop grid overlay for depth */
.xp-desktop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: 0;
    pointer-events: none;
}

/* Grid of desktop icons (vertical stack) */
.xp-desktop-grid {
    position: absolute;
    top: 30px;
    left: 20px;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(auto-fill, 105px);
    grid-template-columns: repeat(auto-fill, 110px);
    max-height: calc(100vh - 110px);
    gap: 15px;
    z-index: 5;
    box-sizing: border-box;
}

/* Mobile responsive desktop grid */
@media (max-width: 600px) {
    .xp-desktop-grid {
        position: absolute;
        top: 15px;
        left: 10px;
        grid-auto-flow: column;
        grid-template-rows: auto;
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        width: calc(100% - 20px) !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 0 !important;
    }

    .xp-desktop-grid .menuIcon {
        width: 80px !important;
        height: 85px !important;
    }

    .xp-desktop-grid .menuIcon svg {
        width: 44px !important;
        height: 44px !important;
    }

    .xp-desktop-grid .menuIcon p {
        font-size: 11px !important;
    }
}

.xp-desktop-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.15s ease-in-out;
}

.menuIcon:hover .xp-desktop-icon {
    filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.4));
}

.menuIcon p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), -1px -1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Start Menu Favicon Container */
.xp-start-icon-container {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 50% 50%, #ffffff 40%, #e0e0e0 100%);
    border: 1px solid #1e5e20;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.xp-start-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-right: 0 !important;
}

.dark-mode .xp-start-icon-container {
    background: radial-gradient(circle at 50% 50%, #3a3a3a 40%, #1a1a1a 100%) !important;
    border-color: #333333 !important;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Balloon Tip Notification style */
.xp-balloon-tip {
    position: absolute;
    bottom: 42px;
    right: 15px;
    width: 260px;
    background: #ffffe1;
    color: #000;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    box-sizing: border-box;
}

.xp-balloon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #e1e1b1;
    padding-bottom: 4px;
    margin-bottom: 6px;
    color: #000;
}

.xp-balloon-title {
    font-weight: bold;
    font-size: 11px;
}

.xp-balloon-close {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 10px;
    color: #555;
    padding: 0;
}

.xp-balloon-close:hover {
    color: #000;
}

.xp-balloon-body {
    line-height: 1.4;
    color: #333;
}

.xp-balloon-arrow {
    position: absolute;
    bottom: -10px;
    right: 35px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #000;
}

.xp-balloon-arrow::after {
    content: "";
    position: absolute;
    top: -11px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #ffffe1;
}

@keyframes balloonSlideUp {
    from {
        transform: translateY(80px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes balloonFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Shutdown overlay and stand-by grayscale effect */
.xp-shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15000;
    backdrop-filter: grayscale(0.8) contrast(0.8) brightness(0.65);
    transition: all 0.5s ease;
}

body.xp-standby-active {
    overflow: hidden !important;
}

.xp-shutdown-dialog {
    width: 330px;
    background: linear-gradient(to right, #002d84 0%, #1e56c5 50%, #002d84 100%);
    border: 2px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.xp-shutdown-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.xp-shutdown-logo {
    height: 18px;
    object-fit: contain;
    background: white;
    border-radius: 2px;
    padding: 1px 3px;
}

.xp-shutdown-dialog-body {
    background: radial-gradient(circle, #7ea5f0 0%, #3065d6 100%);
    padding: 20px 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.xp-shutdown-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 80px;
    text-align: center;
}

.xp-shutdown-action-btn p {
    margin: 0;
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 1px #000;
}

.xp-shutdown-action-btn:hover p {
    text-decoration: underline;
}

.xp-shutdown-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease-in-out;
}

.xp-shutdown-action-btn:hover .xp-shutdown-icon-circle {
    transform: scale(1.1);
}

.xp-shutdown-icon-circle.standby {
    background: linear-gradient(135deg, #ffb300, #ff6f00);
}

.xp-shutdown-icon-circle.shutdown {
    background: linear-gradient(135deg, #f44336, #b71c1c);
}

.xp-shutdown-icon-circle.restart {
    background: linear-gradient(135deg, #4caf50, #1b5e20);
}

.xp-shutdown-dialog-footer {
    background: #ece9d8;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    box-shadow: inset 0 1px 0 #fff;
}

.xp-shutdown-cancel-btn {
    background: linear-gradient(to bottom, #fff 0%, #ece9d8 100%);
    border: 1px solid #7f9db9;
    border-radius: 3px;
    padding: 3px 15px;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.xp-shutdown-cancel-btn:hover {
    background: #f5f5f0;
}

/* Dialog Standard Button styling (e.g. Run prompt OK/Cancel) */
.xp-dialog-btn {
    background: linear-gradient(to bottom, #fff 0%, #ece9d8 100%);
    border: 1px solid #7f9db9;
    border-radius: 3px;
    padding: 3px 12px;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    min-width: 75px;
    text-align: center;
    box-shadow: inset 1px 1px 0 #fff, 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.xp-dialog-btn:hover {
    background: #f5f5f0;
    border-color: #555;
}

.xp-dialog-btn:active {
    background: #ece9d8;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===============================================================
   DARK MODE "ROYALE NOIR / ZUNE" THEME SPECIFICS
   =============================================================== */
.dark-mode .xp-shutdown-overlay {
    background-color: rgba(0, 0, 0, 0.65) !important;
}

.dark-mode .xp-shutdown-dialog {
    background: linear-gradient(to right, #111111 0%, #333333 50%, #111111 100%) !important;
    border-color: #4f4f4f !important;
}

.dark-mode .xp-shutdown-dialog-header {
    border-bottom-color: #4f4f4f !important;
}

.dark-mode .xp-shutdown-dialog-body {
    background: radial-gradient(circle, #333333 0%, #1a1a1a 100%) !important;
}

.dark-mode .xp-shutdown-dialog-footer {
    background: #1f1f1f !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .xp-shutdown-cancel-btn {
    background: linear-gradient(to bottom, #2b2b2b 0%, #1e1e1e 100%) !important;
    border-color: #4f4f4f !important;
    color: #ffffff !important;
}

.dark-mode .xp-shutdown-cancel-btn:hover {
    background: #333333 !important;
}

.dark-mode .xp-dialog-btn {
    background: linear-gradient(to bottom, #2b2b2b 0%, #1e1e1e 100%) !important;
    border-color: #4f4f4f !important;
    color: #ffffff !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .xp-dialog-btn:hover {
    background: #333333 !important;
    border-color: #777 !important;
}

.dark-mode .xp-balloon-tip {
    background: #2b2b2b !important;
    border-color: #4f4f4f !important;
    color: #ffffff !important;
}

.dark-mode .xp-balloon-header {
    border-bottom-color: #4f4f4f !important;
    color: #ffffff !important;
}

.dark-mode .xp-balloon-close {
    color: #aaa !important;
}

.dark-mode .xp-balloon-close:hover {
    color: #fff !important;
}

.dark-mode .xp-balloon-body {
    color: #ccc !important;
}

.dark-mode .xp-balloon-arrow {
    border-top-color: #4f4f4f !important;
}

.dark-mode .xp-balloon-arrow::after {
    border-top-color: #2b2b2b !important;
}

/* ==========================================================================
   OPTIMISATION PERFORMANCES MOBILE (LCP)
   Désactivation des animations non composées bloquantes sur petits écrans
   ========================================================================== */
@media (max-width: 768px) {
    body {
        /* On fige le dégradé pour éviter le recalcul permanent du background-position */
        animation: none !important;
        background-position: center !important;
    }

    .texte-anime {
        /* On désactive l'effet machine à écrire qui provoque des "layout shifts" */
        animation: none !important;
        width: auto !important;
        border-right: none !important;
        white-space: normal !important;
    }

    /* Les glow-orbs avec filtre blur() + animation font surchauffer le GPU sur mobile */
    .glow-orb {
        display: none !important;
        animation: none !important;
    }

    /* Désactiver les animations inutiles sur mobile */
    .scroll-down-indicator {
        animation: none !important;
    }
    
    .scroll-arrow {
        animation: none !important;
    }
}