﻿/* ================= MODE BUREAU ================= */

/* Ecran du faux bureau avec fond colore et hauteur presque plein ecran. */
    .desktop-screen {
      min-height: calc(100vh - 79px);
      padding: 0;
      position: relative;
      background:
        radial-gradient(circle at 15% 18%, rgba(34, 211, 238, 0.3), transparent 28%),
        radial-gradient(circle at 78% 22%, rgba(139, 92, 246, 0.32), transparent 26%),
        radial-gradient(circle at 52% 82%, rgba(250, 204, 21, 0.14), transparent 22%),
        linear-gradient(135deg, #020617, #0f172a 45%, #111827);
      overflow: hidden;
    }

/* Barre superieure du faux OS. */
    .os-topbar {
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      background: rgba(2, 6, 23, 0.7);
      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
      backdrop-filter: blur(14px);
      color: #cbd5e1;
      font-size: 13px;
    }

    .os-left,
    .os-right {
      display: flex;
      align-items: center;
      gap: 18px;
    }

/* Zone ou les icones et les fenetres sont positionnees. */
    .desktop-area {
      position: relative;
      min-height: calc(100vh - 79px - 38px - 62px);
      padding: 30px;
    }

/* Grille d'icones du bureau. */
    .desktop-icons {
      display: grid;
      grid-template-columns: repeat(2, 110px);
      gap: 20px;
      position: relative;
      z-index: 3;
      width: max-content;
    }

/* Une icone cliquable du bureau. */
    .desktop-icon {
      width: 108px;
      min-height: 104px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 1px solid transparent;
      border-radius: 16px;
      cursor: pointer;
      color: white;
      text-align: center;
      padding: 10px;
      user-select: none;
    }

/* Effet visuel quand la souris passe sur une icone. */
    .desktop-icon:hover {
      background: rgba(148, 163, 184, 0.13);
      border-color: rgba(148, 163, 184, 0.25);
    }

/* Carre qui contient l'emoji de chaque icone. */
    .desktop-icon .emoji {
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      font-size: 34px;
      border-radius: 18px;
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid rgba(148, 163, 184, 0.22);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    }

    .desktop-icon span {
      font-size: 13px;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    }

/* Note jaune placee sur le bureau. */
    .sticky-note {
      position: absolute;
      top: 44px;
      right: 42px;
      width: 270px;
      min-height: 190px;
      padding: 20px;
      border-radius: 12px;
      background: #facc15;
      color: #422006;
      transform: rotate(2deg);
      box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
      z-index: 2;
    }

    .sticky-note h3 {
      margin-bottom: 10px;
    }

    .sticky-note p {
      line-height: 1.55;
      font-size: 14px;
    }

/* Fenetre generique : cachee par defaut, positionnee dans le bureau. */
    .window {
      display: none;
      position: absolute;
      width: min(680px, calc(100vw - 60px));
      max-height: 74vh;
      overflow: hidden;
      border-radius: 18px;
      background: rgba(15, 23, 42, 0.98);
      border: 1px solid rgba(148, 163, 184, 0.28);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
      z-index: 10;
    }

/* Quand JavaScript ajoute .active, la fenetre devient visible. */
    .window.active {
      display: block;
    }

/* Positions de depart de chaque fenetre. */
    .window.about { left: 210px; top: 80px; }
    .window.projects { left: 280px; top: 120px; width: min(820px, calc(100vw - 60px)); }
    .window.terminal { left: 360px; top: 170px; width: min(760px, calc(100vw - 60px)); }
    .window.github { left: 320px; top: 90px; width: min(980px, calc(100vw - 60px)); }
    .window.cv { left: 250px; top: 130px; }
    .window.contact { left: 330px; top: 110px; }
    .window.links { left: 390px; top: 180px; }
    .window.trash { left: 430px; top: 160px; }

/* Barre du haut de chaque fenetre : titre + boutons. */
    .window-bar {
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 14px;
      background: rgba(2, 6, 23, 0.95);
      border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

/* Titre affiche dans la barre de fenetre. */
    .window-title {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #cbd5e1;
      font-size: 14px;
      font-weight: 700;
    }

/* Conteneur des boutons fermer/minimiser/agrandir. */
    .window-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }

/* Petits boutons ronds des fenetres. */
    .control {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
    }

/* Corps d'une fenetre, avec scroll si le contenu est trop long. */
    .window-body {
      padding: 24px;
      max-height: calc(74vh - 44px);
      overflow-y: auto;
    }

    .window-body h2 {
      margin-bottom: 12px;
      color: #f8fafc;
    }

    .window-body p {
      color: #cbd5e1;
      line-height: 1.65;
      margin-bottom: 16px;
    }

/* Grille de cartes utilisee dans les fenetres type dossier. */
    .folder-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 18px;
    }

/* Carte individuelle dans une fenetre. */
    .folder-card {
      padding: 16px;
      border-radius: 16px;
      background: rgba(30, 41, 59, 0.75);
      border: 1px solid rgba(148, 163, 184, 0.18);
    }

    .folder-card h3 {
      margin-bottom: 8px;
      color: var(--cyan);
      font-size: 16px;
    }

    .folder-card p {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .github-project {
      border-color: rgba(34, 197, 94, 0.42);
      background:
        linear-gradient(rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.03)),
        rgba(30, 41, 59, 0.75);
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 14px;
      padding: 9px 12px;
      border: none;
      border-radius: 12px;
      color: #052e16;
      background: #22c55e;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .project-link:hover {
      background: #86efac;
    }

/* Fenetre navigateur GitHub. */
    .browser-body {
      padding: 0;
      background: #0d1117;
    }

    .browser-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
      background: #161b22;
    }

    .browser-dot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 18px 0 #eab308, 36px 0 #ef4444;
      flex: 0 0 auto;
    }

    .browser-url {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 8px 12px 8px 42px;
      border-radius: 999px;
      color: #c9d1d9;
      background: #0d1117;
      border: 1px solid rgba(148, 163, 184, 0.2);
      font-size: 13px;
    }

    .browser-bar a {
      padding: 8px 10px;
      border-radius: 10px;
      color: #052e16;
      background: #22c55e;
      font-size: 13px;
      font-weight: 800;
    }

    .github-preview {
      padding: 22px;
      color: #c9d1d9;
      background: #0d1117;
    }

    .repo-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 12px;
    }

    .repo-owner {
      color: #7d8590;
      font-size: 13px;
    }

    .repo-header h2 {
      margin: 3px 0 0;
      color: #2f81f7;
      font-size: 28px;
    }

    .repo-visibility {
      padding: 4px 9px;
      border: 1px solid #30363d;
      border-radius: 999px;
      color: #7d8590;
      font-size: 12px;
      font-weight: 800;
    }

    .repo-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 18px 0;
    }

    .repo-stats span {
      padding: 8px 10px;
      border: 1px solid #30363d;
      border-radius: 999px;
      color: #c9d1d9;
      background: #161b22;
      font-size: 13px;
    }

    .repo-files {
      overflow: hidden;
      border: 1px solid #30363d;
      border-radius: 12px;
      background: #0d1117;
    }

    .repo-file {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 12px 14px;
      border-bottom: 1px solid #30363d;
      color: #c9d1d9;
      font-size: 14px;
    }

    .repo-file:last-child {
      border-bottom: none;
    }

    .github-note {
      margin-top: 16px;
      color: #7d8590;
      font-size: 14px;
    }

/* Style du faux terminal. */
    .terminal-body {
      background: #020617;
      border-radius: 14px;
      border: 1px solid rgba(34, 211, 238, 0.24);
      padding: 18px;
      color: #a7f3d0;
      font-family: Consolas, Monaco, monospace;
      line-height: 1.7;
      font-size: 14px;
    }

    .terminal-body .cmd {
      color: var(--cyan);
    }

/* Ligne de saisie dans le terminal. */
    .terminal-input-row {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-top: 16px;
      color: var(--cyan);
    }

/* Champ de texte du terminal. */
    .terminal-input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: #a7f3d0;
      font-family: Consolas, Monaco, monospace;
      font-size: 14px;
    }

/* Apercu du CV dans la fenetre CV. */
    .cv-preview {
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 18px;
      align-items: start;
      padding: 20px;
      border-radius: 18px;
      background: white;
      color: #0f172a;
      margin-top: 16px;
    }

/* Bloc avatar dans le faux CV. */
    .cv-avatar {
      height: 140px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--cyan), var(--violet));
      display: grid;
      place-items: center;
      font-size: 48px;
    }

    .cv-preview h3 {
      margin-bottom: 8px;
    }

    .cv-preview ul {
      margin-left: 18px;
      line-height: 1.8;
    }

/* Lecteur PDF dans la fenetre CV. */
    .pdf-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }

    .pdf-toolbar h2 {
      margin: 0;
    }

    .pdf-viewer {
      width: 100%;
      height: min(62vh, 720px);
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 12px;
      background: #0f172a;
    }

/* Liste des moyens de contact dans la fenetre Mail. */
    .mail-box {
      display: grid;
      gap: 14px;
    }

    .mail-row {
      padding: 16px;
      border-radius: 16px;
      background: rgba(30, 41, 59, 0.72);
      border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .mail-row strong {
      color: white;
    }

    .mail-row span {
      display: block;
      color: var(--muted);
      margin-top: 5px;
      font-size: 14px;
    }

/* Barre des taches en bas du bureau. */
    .taskbar {
      height: 62px;
      position: relative;
      z-index: 30;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      background: rgba(2, 6, 23, 0.82);
      border-top: 1px solid rgba(148, 163, 184, 0.18);
      backdrop-filter: blur(16px);
    }

/* Groupes gauche, centre et droite de la barre des taches. */
    .taskbar-left,
    .taskbar-center,
    .taskbar-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

/* Boutons de la barre des taches. */
    .start-btn,
    .task-app {
      height: 40px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      background: rgba(30, 41, 59, 0.88);
      color: white;
      border-radius: 14px;
      padding: 0 14px;
      cursor: pointer;
    }

/* Boutons d'applications raccourcis au centre de la barre des taches. */
    .task-app {
      min-width: 42px;
      display: grid;
      place-items: center;
      font-size: 19px;
    }

    .clock {
      color: #cbd5e1;
      font-size: 13px;
      text-align: right;
      line-height: 1.3;
    }

/* ================= VARIANTE LINUX ================= */

    .icon-sprite {
      display: none;
    }

    .linux-icon,
    .window-icon,
    .dock-icon,
    .inline-icon {
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .linux-icon {
      width: 34px;
      height: 34px;
    }

    .window-icon,
    .inline-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }

    .dock-icon {
      width: 23px;
      height: 23px;
    }

    .inline-icon {
      margin-right: 7px;
      vertical-align: -3px;
    }

/* Fond plus proche d'un environnement Linux moderne : sombre, sobre et utile. */
    .desktop-screen {
      background:
        linear-gradient(rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.5)),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.22), transparent 24%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.22), transparent 28%),
        linear-gradient(135deg, #111827, #020617 62%, #0f172a);
    }

/* Les 5 fonds d'ecran disponibles. JavaScript change la classe du bureau. */
    .desktop-screen.wallpaper-1 {
      background:
        linear-gradient(rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.5)),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.22), transparent 24%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.22), transparent 28%),
        linear-gradient(135deg, #111827, #020617 62%, #0f172a);
    }

    .desktop-screen.wallpaper-2 {
      background:
        linear-gradient(rgba(8, 47, 73, 0.2), rgba(2, 6, 23, 0.5)),
        radial-gradient(circle at 22% 18%, rgba(14, 165, 233, 0.34), transparent 26%),
        radial-gradient(circle at 75% 72%, rgba(45, 212, 191, 0.2), transparent 28%),
        linear-gradient(140deg, #082f49, #020617 58%, #0f172a);
    }

    .desktop-screen.wallpaper-3 {
      background:
        linear-gradient(rgba(24, 24, 27, 0.18), rgba(2, 6, 23, 0.5)),
        radial-gradient(circle at 75% 20%, rgba(168, 85, 247, 0.28), transparent 26%),
        radial-gradient(circle at 18% 76%, rgba(244, 63, 94, 0.22), transparent 28%),
        linear-gradient(135deg, #18181b, #12071f 55%, #020617);
    }

    .desktop-screen.wallpaper-4 {
      background:
        linear-gradient(rgba(20, 83, 45, 0.16), rgba(2, 6, 23, 0.5)),
        radial-gradient(circle at 18% 26%, rgba(132, 204, 22, 0.28), transparent 24%),
        radial-gradient(circle at 80% 70%, rgba(22, 163, 74, 0.22), transparent 30%),
        linear-gradient(145deg, #052e16, #022c22 48%, #020617);
    }

    .desktop-screen.wallpaper-5 {
      background:
        linear-gradient(rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.54)),
        radial-gradient(circle at 50% 18%, rgba(250, 204, 21, 0.2), transparent 24%),
        radial-gradient(circle at 16% 78%, rgba(251, 146, 60, 0.22), transparent 26%),
        linear-gradient(145deg, #1c1917, #0f172a 50%, #020617);
    }

    .os-topbar {
      height: 34px;
      padding: 0 14px;
      background: rgba(2, 6, 23, 0.92);
      border-bottom-color: rgba(148, 163, 184, 0.28);
      font-size: 13px;
      z-index: 80;
      position: relative;
    }

    .os-left,
    .os-right {
      gap: 8px;
    }

    .activities-btn,
    .os-menu-item,
    .system-pill {
      height: 25px;
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 0 11px;
      color: #e5e7eb;
      background: transparent;
      cursor: pointer;
      font: inherit;
    }

    .activities-btn {
      background: rgba(34, 197, 94, 0.16);
      border-color: rgba(34, 197, 94, 0.34);
      color: #bbf7d0;
      font-weight: 800;
    }

    .os-menu-item:hover,
    .system-pill:hover,
    .activities-btn:hover {
      background: rgba(148, 163, 184, 0.16);
    }

/* Lanceur d'applications type GNOME. */
    .start-menu {
      display: none;
      position: absolute;
      left: 50%;
      top: 58px;
      width: min(760px, calc(100vw - 36px));
      transform: translateX(-50%);
      z-index: 90;
      padding: 20px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 24px;
      background: rgba(15, 23, 42, 0.96);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(20px);
    }

    .start-menu.active,
    .control-center.active,
    .notification-center.active {
      display: block;
    }

    .start-search {
      height: 44px;
      display: flex;
      align-items: center;
      padding: 0 16px;
      margin-bottom: 18px;
      border-radius: 999px;
      color: #94a3b8;
      background: rgba(2, 6, 23, 0.75);
      border: 1px solid rgba(148, 163, 184, 0.18);
    }

    .start-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 12px;
    }

    .start-grid button {
      min-height: 96px;
      border: 1px solid transparent;
      border-radius: 18px;
      color: white;
      background: transparent;
      cursor: pointer;
      text-align: center;
    }

    .start-grid .linux-icon {
      display: block;
      margin: 0 auto 8px;
      color: #bbf7d0;
    }

    .start-grid button:hover {
      background: rgba(148, 163, 184, 0.14);
      border-color: rgba(148, 163, 184, 0.2);
    }

    .start-grid span {
      display: grid;
      place-items: center;
      margin-bottom: 8px;
      color: #bbf7d0;
      font-size: 0;
    }

    .start-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid rgba(148, 163, 184, 0.18);
      color: #cbd5e1;
    }

    .start-footer button {
      border: 1px solid rgba(239, 68, 68, 0.35);
      border-radius: 999px;
      padding: 8px 12px;
      color: #fecaca;
      background: rgba(239, 68, 68, 0.12);
      cursor: pointer;
    }

/* Panneaux systeme Linux-like. */
    .control-center,
    .notification-center {
      display: none;
      position: absolute;
      right: 14px;
      top: 44px;
      width: 310px;
      z-index: 95;
      padding: 16px;
      border-radius: 18px;
      background: rgba(15, 23, 42, 0.96);
      border: 1px solid rgba(148, 163, 184, 0.25);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
      backdrop-filter: blur(18px);
    }

    .quick-toggles {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 14px;
    }

    .quick-toggle,
    .range-row input {
      width: 100%;
    }

    .quick-toggle {
      height: 40px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 14px;
      color: #cbd5e1;
      background: rgba(30, 41, 59, 0.75);
      cursor: pointer;
    }

    .quick-toggle.active {
      color: #052e16;
      background: #22c55e;
      border-color: #86efac;
      font-weight: 800;
    }

    .range-row {
      display: grid;
      gap: 8px;
      margin-top: 12px;
      color: #cbd5e1;
      font-size: 13px;
    }

    .wallpaper-picker {
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid rgba(148, 163, 184, 0.18);
      color: #cbd5e1;
      font-size: 13px;
    }

    .wallpaper-options {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
      margin-top: 10px;
    }

    .wallpaper-option {
      height: 42px;
      border: 2px solid rgba(148, 163, 184, 0.24);
      border-radius: 12px;
      cursor: pointer;
    }

    .wallpaper-option.active {
      border-color: #22c55e;
      box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22);
    }

    .wallpaper-option-1 { background: linear-gradient(135deg, #111827, #22c55e); }
    .wallpaper-option-2 { background: linear-gradient(135deg, #082f49, #2dd4bf); }
    .wallpaper-option-3 { background: linear-gradient(135deg, #18181b, #a855f7, #f43f5e); }
    .wallpaper-option-4 { background: linear-gradient(135deg, #052e16, #84cc16); }
    .wallpaper-option-5 { background: linear-gradient(135deg, #1c1917, #facc15, #fb923c); }

    .notification-center h3 {
      margin-bottom: 12px;
    }

    .notification {
      display: grid;
      gap: 5px;
      margin-top: 10px;
      padding: 13px;
      border-radius: 14px;
      background: rgba(30, 41, 59, 0.78);
      border: 1px solid rgba(148, 163, 184, 0.17);
    }

    .notification span {
      color: #94a3b8;
      font-size: 13px;
    }

/* Bureau Linux : icones plus compactes, widget systeme, dock en bas. */
    .desktop-area {
      min-height: calc(100vh - 34px - 76px);
      padding: 26px 110px 26px 28px;
    }

    .desktop-icons {
      grid-template-columns: 96px;
      gap: 14px;
    }

    .desktop-icon {
      width: 96px;
      min-height: 92px;
      border-radius: 12px;
    }

    .desktop-icon .emoji {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      background: rgba(2, 6, 23, 0.76);
      color: #bbf7d0;
      font-size: 0;
      font-weight: 900;
      letter-spacing: 0;
    }

    .desktop-icon .emoji .linux-icon {
      width: 30px;
      height: 30px;
    }

    .sticky-note {
      display: none;
    }

    .desktop-widget {
      position: absolute;
      top: 28px;
      right: 28px;
      width: 270px;
      padding: 18px;
      border-radius: 18px;
      color: #e5e7eb;
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.22);
      box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
      backdrop-filter: blur(14px);
    }

    .desktop-widget h3 {
      margin-bottom: 8px;
    }

    .desktop-widget p,
    .desktop-widget small {
      color: #94a3b8;
    }

    .widget-meter {
      height: 8px;
      margin: 14px 0 8px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.2);
    }

    .widget-meter span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #22c55e, #38bdf8);
    }

    .taskbar {
      position: absolute;
      left: 50%;
      bottom: 14px;
      height: 58px;
      width: max-content;
      max-width: calc(100vw - 28px);
      transform: translateX(-50%);
      gap: 14px;
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 22px;
      background: rgba(2, 6, 23, 0.78);
      box-shadow: 0 20px 70px rgba(0, 0, 0, 0.46);
    }

    .taskbar-right {
      display: none;
    }

    .taskbar-left {
      display: flex;
    }

    .taskbar-center {
      gap: 8px;
    }

    .start-btn,
    .task-app {
      width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 14px;
      background: rgba(30, 41, 59, 0.82);
      color: #d1fae5;
      font-size: 0;
      font-weight: 900;
      letter-spacing: 0;
    }

    .start-btn {
      width: auto;
      padding: 0 14px;
    }

    .task-app.active {
      background: rgba(34, 197, 94, 0.24);
      border-color: rgba(34, 197, 94, 0.55);
      box-shadow: inset 0 -3px 0 #22c55e;
    }

/* Fenetres style Linux. */
    .window {
      resize: both;
      min-width: 320px;
      min-height: 220px;
      border-radius: 10px;
      background: rgba(17, 24, 39, 0.98);
      border-color: rgba(148, 163, 184, 0.34);
    }

    .window.focused {
      border-color: rgba(34, 197, 94, 0.68);
      box-shadow: 0 32px 95px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(34, 197, 94, 0.28);
    }

    .window.minimized {
      display: none;
    }

    .window.maximized {
      left: 12px !important;
      top: 46px !important;
      width: calc(100vw - 24px) !important;
      height: calc(100vh - 128px) !important;
      max-height: none;
      resize: none;
    }

    .window.maximized .window-body {
      max-height: calc(100vh - 188px);
    }

    .window-bar {
      height: 38px;
      cursor: grab;
      background: linear-gradient(#1f2937, #111827);
    }

    .window-bar:active {
      cursor: grabbing;
    }

    .window-title {
      font-size: 13px;
    }

    .control.red { background: #ef4444; }
    .control.yellow { background: #eab308; }
    .control.green { background: #22c55e; }

    .terminal-body {
      background: #050505;
      color: #86efac;
      border-color: rgba(34, 197, 94, 0.38);
    }

/* ================= NOUVELLES FONCTIONNALITES ================= */

/* Animation d'ouverture des fenetres. */
    @keyframes windowOpen {
      from { opacity: 0; transform: scale(0.95) translateY(-8px); }
      to   { opacity: 1; transform: scale(1)    translateY(0);    }
    }

    .window.opening {
      animation: windowOpen 0.18s ease-out;
    }

/* Terminal sans padding, directement au bord de la fenetre. */
    .terminal-window-body {
      padding: 0;
    }

    .terminal-window-body .terminal-body {
      border-radius: 0;
      border-left: none;
      border-right: none;
      border-bottom: none;
      min-height: 260px;
    }

    .terminal-response {
      color: #a7f3d0;
    }

    .neofetch-art {
      color: #22c55e;
      font-family: Consolas, Monaco, monospace;
      font-size: 11px;
      line-height: 1.3;
      margin: 0 0 6px;
    }

    .neofetch-info { margin-top: 4px; border-collapse: collapse; }
    .nf-key { color: #22c55e; padding-right: 16px; }

/* Barre de recherche du lanceur convertie en input. */
    input.start-search {
      display: block;
      outline: none;
      font: inherit;
      width: 100%;
      box-sizing: border-box;
      caret-color: #38bdf8;
    }

/* Widget systeme : lignes CPU / RAM. */
    .widget-stat {
      margin-top: 12px;
    }

    .widget-stat-label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5px;
      font-size: 12px;
      color: #94a3b8;
    }

    .widget-meter span {
      transition: width 0.8s ease;
    }

/* Menu contextuel au clic droit sur le bureau. */
    .context-menu {
      display: none;
      position: absolute;
      z-index: 100;
      width: 218px;
      padding: 6px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.97);
      border: 1px solid rgba(148, 163, 184, 0.28);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(20px);
    }

    .context-menu.active {
      display: block;
      animation: windowOpen 0.14s ease-out;
    }

    .context-item {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: #e2e8f0;
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      text-align: left;
    }

    .context-item:hover {
      background: rgba(148, 163, 184, 0.15);
    }

    .context-separator {
      height: 1px;
      background: rgba(148, 163, 184, 0.18);
      margin: 5px 8px;
    }
