/* ==========================================================================
   Apparence Néo-brutalisme (html[data-theme="brutal"]) : surcharge de Windows 7 (style.css)
   Aplats de couleurs franches, bordures noires épaisses, ombres dures décalées sans flou,
   typographie grasse. Aucun dégradé visible, aucun flou, aucune transparence vitrée.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fond « Brut » : aplat jaune, quadrillage, grandes formes cernées de noir.
   Disponible sur toutes les apparences.
   Les cercles sont en « closest-side » : leur rayon suit la taille de l'élément
   (bureau comme vignette). L'ombre dure de chaque cercle est un disque noir
   au centre légèrement décalé vers le bas à droite, de même rayon final.
   -------------------------------------------------------------------------- */
[data-wall="brut"] {
  --wallpaper:
    /* Petit cercle cyan (rayon fixé par le bas : 22 % de la hauteur) */
    radial-gradient(circle closest-side at 34% 78%, #5ce1e6 0 31.5%, #000 31.5% 35%, transparent 35.3%),
    radial-gradient(circle closest-side at 34.8% 79.4%, #000 0 37.4%, transparent 37.7%),
    /* Grand cercle rose, avec un anneau blanc au centre (rayon fixé par le haut : 30 % de la hauteur) */
    radial-gradient(circle closest-side at 78% 30%, transparent 0 20%, #000 20% 22.5%, #fff 22.5% 30%, #000 30% 32.5%, transparent 32.8%),
    radial-gradient(circle closest-side at 78% 30%, #ff6b9d 0 60%, #000 60% 62.5%, transparent 62.8%),
    radial-gradient(circle closest-side at 79% 32%, #000 0 58.6%, transparent 58.9%),
    /* Bloc violet sortant du coin inférieur droit, bordé de noir en haut et à gauche */
    conic-gradient(from 90deg at 70% 66%, #a685ff 0 90deg, transparent 90deg),
    conic-gradient(from 90deg at calc(70% - 5px) calc(66% - 5px), #000 0 90deg, transparent 90deg),
    /* Bande vert citron en diagonale, bordée de noir */
    linear-gradient(-24deg, transparent 0 57%, #000 57% calc(57% + 5px), #b8f35a calc(57% + 5px) 68%, #000 68% calc(68% + 5px), transparent calc(68% + 5px)),
    /* Quadrillage */
    repeating-linear-gradient(0deg, #ecc63f 0 2px, transparent 2px 48px),
    repeating-linear-gradient(90deg, #ecc63f 0 2px, transparent 2px 48px),
    #ffde59;
}

/* Personnalisation : vignette */
[data-preview="brutal"] .tp {
  background:
    radial-gradient(circle at 80% 26%, #ff6b9d 0 16px, #000 16px 18px, transparent 18.5px),
    linear-gradient(-24deg, transparent 0 60%, #000 60% calc(60% + 2px), #b8f35a calc(60% + 2px) 72%, #000 72% calc(72% + 2px), transparent calc(72% + 2px)),
    #ffde59;
  box-shadow: 0 0 0 2px #000;
}
[data-preview="brutal"] .tp-win { background: #fff; border: 2px solid #000; border-radius: 2px; box-shadow: 4px 4px 0 #000; }
[data-preview="brutal"] .tp-win i { height: 10px; background: #ff6b9d; border-bottom: 2px solid #000; }
[data-preview="brutal"] .tp-bar { height: 13px; background: #5ce1e6; border-top: 2px solid #000; }
[data-preview="brutal"] .tp-bar b { left: 3px; top: 2px; bottom: 2px; width: 22px; background: #ffde59; border: 2px solid #000; }

/* --------------------------------------------------------------------------
   Variables de l'apparence
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] {
  --taskbar-h: 52px;
  --font: Arial, Helvetica, "Liberation Sans", sans-serif;
  --b-head: "Arial Black", "Arial Bold", Gadget, Arial, Helvetica, sans-serif;
  --b-ink: #000; --b-paper: #fffbea; --b-yel: #ffde59; --b-pink: #ff6b9d; --b-cyan: #5ce1e6; --b-lime: #b8f35a; --b-vio: #a685ff;
  --btn-face: #fff; --accent: #a685ff; --text: #000; --link: #000;
  /* Sélections et survols de style.css : des aplats au lieu des dégradés */
  --sel-bg: #5ce1e6; --sel-border: #000;
  --hover-bg: #ffde59; --hover-border: #000;
}
html[data-theme="brutal"] body { font-weight: 400; }
html[data-theme="brutal"] a { color: #000; text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   Démarrage, session et arrêt
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] #boot { background: #ffde59; }
html[data-theme="brutal"] #boot::before {
  content: "STEVE.OS"; margin-bottom: 48px; padding: 10px 26px; color: #000; background: #fff;
  font: 900 44px/1 var(--b-head); letter-spacing: -1px; border: 4px solid #000; box-shadow: 8px 8px 0 #000;
}
html[data-theme="brutal"] .spinner {
  width: 34px; height: 34px; border-radius: 0; border: 4px solid #000; background: #ff6b9d; box-shadow: 5px 5px 0 #000;
  animation: brutSpin 1.2s steps(4) infinite;
}
@keyframes brutSpin { to { transform: rotate(360deg); } }
html[data-theme="brutal"] #logon, html[data-theme="brutal"] #shutdown {
  color: #000;
  background:
    radial-gradient(circle at 12% 20%, #ff6b9d 0 90px, #000 90px 95px, transparent 95.5px),
    radial-gradient(circle at calc(12% + 12px) calc(20% + 12px), #000 0 95px, transparent 95.5px),
    radial-gradient(circle at 88% 82%, #ffde59 0 130px, #000 130px 135px, transparent 135.5px),
    radial-gradient(circle at calc(88% + 14px) calc(82% + 14px), #000 0 135px, transparent 135.5px),
    repeating-linear-gradient(0deg, #4fcfd4 0 2px, transparent 2px 48px),
    repeating-linear-gradient(90deg, #4fcfd4 0 2px, transparent 2px 48px),
    #5ce1e6;
}
html[data-theme="brutal"] #shutdown {
  background:
    radial-gradient(circle at 85% 18%, #ffde59 0 110px, #000 110px 115px, transparent 115.5px),
    radial-gradient(circle at calc(85% + 12px) calc(18% + 12px), #000 0 115px, transparent 115.5px),
    repeating-linear-gradient(0deg, #ef5c8e 0 2px, transparent 2px 48px),
    repeating-linear-gradient(90deg, #ef5c8e 0 2px, transparent 2px 48px),
    #ff6b9d;
}
html[data-theme="brutal"] #logon::before, html[data-theme="brutal"] #shutdown::before { display: none; }
html[data-theme="brutal"] .logon-user { border-radius: 0; }
html[data-theme="brutal"] .logon-user .avatar-frame {
  width: 168px; height: 168px; padding: 0; border-radius: 0; background: #fff; border: 4px solid #000; box-shadow: 10px 10px 0 #000;
  transition: transform .08s, box-shadow .08s;
}
html[data-theme="brutal"] .logon-user .avatar-frame img { border: 0; border-radius: 0; }
html[data-theme="brutal"] .logon-user:hover .avatar-frame { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 #000; }
html[data-theme="brutal"] .logon-user:active .avatar-frame { transform: translate(10px, 10px); box-shadow: 0 0 0 #000; }
html[data-theme="brutal"] .logon-name {
  margin-top: 26px; padding: 6px 18px; color: #000; background: #fff; border: 3px solid #000; box-shadow: 6px 6px 0 #000;
  font: 900 26px var(--b-head); text-transform: uppercase; text-shadow: none;
}
html[data-theme="brutal"] .logon-hint { margin-top: 22px; padding: 4px 10px; color: #000; background: #ffde59; border: 2px solid #000; font-weight: 700; }
html[data-theme="brutal"] .logon-welcome { color: #000; font: 900 30px var(--b-head); text-transform: uppercase; text-shadow: none; gap: 22px; }
html[data-theme="brutal"] #off { background: #000; }
html[data-theme="brutal"] .off-text { color: #ffde59; font-weight: 700; }

/* --------------------------------------------------------------------------
   Icônes du bureau : étiquettes blanches cernées de noir
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] .dicon { border: 2px solid transparent; border-radius: 0; }
html[data-theme="brutal"] .dicon .ico svg { filter: none; }
html[data-theme="brutal"] .dicon .lbl {
  margin-top: 4px; padding: 1px 4px; color: #000; background: #fff; border: 2px solid #000; text-shadow: none; font-weight: 700; font-size: 11px;
}
html[data-theme="brutal"] .dicon:hover { background: none; border-color: transparent; }
html[data-theme="brutal"] .dicon:hover .lbl { background: #b8f35a; }
html[data-theme="brutal"] .dicon.sel { background: none; border-color: #000; border-style: dashed; }
html[data-theme="brutal"] .dicon.sel .lbl { background: #5ce1e6; box-shadow: 3px 3px 0 #000; }

/* --------------------------------------------------------------------------
   Barre des tâches : bande cyan bordée de noir, blocs ombrés
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] #taskbar {
  align-items: center; padding: 0 0 0 8px; gap: 8px; color: #000;
  background: #5ce1e6; border: 0; border-top: 3px solid #000; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="brutal"] #orb {
  width: auto; height: 36px; padding: 0 14px 0 10px; gap: 8px; margin: 0 6px 0 0;
  background: #ffde59; border: 3px solid #000; border-radius: 4px; box-shadow: 4px 4px 0 #000;
  transition: transform .06s, box-shadow .06s;
}
html[data-theme="brutal"] #orb::before {
  width: 16px; height: 16px; margin: 0; border-radius: 0; filter: none; transition: none;
  background: conic-gradient(#ff6b9d 0 25%, #5ce1e6 0 50%, #b8f35a 0 75%, #a685ff 0); border: 2px solid #000; box-shadow: none;
}
html[data-theme="brutal"] #orb:hover::before, html[data-theme="brutal"] #orb.active::before { filter: none; box-shadow: none; }
html[data-theme="brutal"] .orb-label { display: block; color: #000; font: 900 14px var(--b-head); text-transform: uppercase; letter-spacing: .5px; }
html[data-theme="brutal"] #orb:hover { background: #fff; }
html[data-theme="brutal"] #orb:active, html[data-theme="brutal"] #orb.active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; background: #ff6b9d; }
html[data-theme="brutal"] #tasks { align-items: center; gap: 8px; padding: 0 4px 4px 0; height: 100%; }
html[data-theme="brutal"] .task {
  width: auto; max-width: 170px; height: 36px; margin: 0; padding: 0 6px; gap: 6px; justify-content: flex-start; color: #000;
  background: #fff; border: 2px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000; transition: transform .06s, box-shadow .06s;
}
html[data-theme="brutal"] .task .ico { width: 22px; height: 22px; flex: none; }
html[data-theme="brutal"] .task .ico svg { filter: none; }
html[data-theme="brutal"] .task .tlabel { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 12px; }
html[data-theme="brutal"] .task:not(.running) { width: 36px; padding: 0; justify-content: center; }
html[data-theme="brutal"] .task:not(.running) .tlabel { display: none; }
html[data-theme="brutal"] .task.running { width: 170px; background: #fff; border-color: #000; box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] .task:hover { background: #b8f35a; border-color: #000; box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] .task.active { background: #ff6b9d; box-shadow: 0 0 0 #000; transform: translate(3px, 3px); }
html[data-theme="brutal"] .task:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
html[data-theme="brutal"] .task.multi::after { right: -7px; top: 4px; bottom: 4px; width: 4px; border: 2px solid #000; border-left: 0; border-radius: 0; background: #ffde59; }
@keyframes brutFlash { to { background: #ffde59; } }
html[data-theme="brutal"] .task.flash { animation: brutFlash .5s 4 alternate; }
html[data-theme="brutal"] #tray {
  height: 36px; margin-bottom: 4px; padding: 0 2px 0 8px; gap: 2px; color: #000;
  background: #fff; border: 2px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000;
}
html[data-theme="brutal"] .tray-ico { height: 28px; border-radius: 0; }
html[data-theme="brutal"] .tray-ico svg { filter: invert(1); }
html[data-theme="brutal"] .tray-app svg { filter: none; }
html[data-theme="brutal"] .tray-ico:hover, html[data-theme="brutal"] #clock:hover { background: #ffde59; box-shadow: none; }
html[data-theme="brutal"] #clock { height: 30px; padding: 0 8px; border-radius: 2px; color: #000; text-shadow: none; font-weight: 700; font-size: 11px; line-height: 1.25; }
html[data-theme="brutal"] #showdesk {
  align-self: stretch; width: 14px; background: #a685ff; border: 0; border-left: 3px solid #000; box-shadow: none;
}
html[data-theme="brutal"] #showdesk:hover { background: #ff6b9d; }
html[data-theme="brutal"] .tb-popup {
  bottom: calc(var(--taskbar-h) + 10px); color: #000; background: #fffbea; border: 3px solid #000; border-radius: 4px;
  box-shadow: 6px 6px 0 #000; backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="brutal"] .tb-thumb { color: #000; border: 2px solid transparent; border-radius: 2px; font-weight: 700; }
html[data-theme="brutal"] .tb-thumb:hover { background: #ffde59; border-color: #000; }
html[data-theme="brutal"] .tb-thumb .p { border: 2px solid #000; }

/* Calendrier */
html[data-theme="brutal"] #calendar {
  right: 10px; bottom: calc(var(--taskbar-h) + 10px); color: #000; background: #fff; border: 3px solid #000; border-radius: 4px; box-shadow: 7px 7px 0 #000;
}
html[data-theme="brutal"] .cal-now { color: #000; font-weight: 700; border-bottom: 3px solid #000; }
html[data-theme="brutal"] .cal-now b { color: #000; font: 900 24px var(--b-head); }
html[data-theme="brutal"] .cal-head { font-weight: 700; }
html[data-theme="brutal"] .cal-head button { color: #000; border: 2px solid #000; background: #fff; box-shadow: 2px 2px 0 #000; font-weight: 700; }
html[data-theme="brutal"] .cal-head button:hover { background: #ffde59; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .cal-head button:active { transform: translate(2px, 2px); box-shadow: none; }
html[data-theme="brutal"] .cal-grid .dow { color: #000; font-weight: 700; }
html[data-theme="brutal"] .cal-grid .other { color: #999; }
html[data-theme="brutal"] .cal-grid .today { background: #ff6b9d; border: 2px solid #000; color: #000; font-weight: 700; }

/* --------------------------------------------------------------------------
   Menu Démarrer : carte crème, colonne de droite violette
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] #startmenu {
  left: 8px; bottom: calc(var(--taskbar-h) + 10px); width: 440px; height: 540px; max-height: calc(100% - var(--taskbar-h) - 20px);
  padding: 10px; gap: 10px; color: #000;
  background: #fffbea; border: 3px solid #000; border-radius: 6px; box-shadow: 8px 8px 0 #000;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="brutal"] .sm-left { margin: 0; background: #fff; border: 2px solid #000; border-radius: 4px; box-shadow: 4px 4px 0 #000; overflow: hidden; }
html[data-theme="brutal"] .sm-item { border: 2px solid transparent; border-radius: 3px; font-weight: 700; }
html[data-theme="brutal"] .sm-item small { color: #444; font-weight: 400; }
html[data-theme="brutal"] .sm-item:hover, html[data-theme="brutal"] .sm-item.kbd { background: #ffde59; border-color: #000; }
html[data-theme="brutal"] .sm-sep { height: 2px; background: #000; margin: 6px 4px; }
html[data-theme="brutal"] .sm-folder .sm-label, html[data-theme="brutal"] .sm-label { color: #000 !important; font-weight: 900; }
html[data-theme="brutal"] .sm-allprog { margin: 0; padding: 8px 10px; border-top: 2px solid #000; border-radius: 0; font-weight: 900; text-transform: uppercase; font-size: 11px; }
html[data-theme="brutal"] .sm-allprog .arrow { color: #000; }
html[data-theme="brutal"] .sm-allprog:hover { background: #b8f35a; box-shadow: none; }
html[data-theme="brutal"] .sm-search { padding: 8px; background: #5ce1e6; border-top: 2px solid #000; border-radius: 0; }
html[data-theme="brutal"] .sm-search input { height: 32px; border: 2px solid #000; border-radius: 3px; background: #fff; font: 700 12px var(--font); color: #000; }
html[data-theme="brutal"] .sm-search input::placeholder { color: #555; }
html[data-theme="brutal"] .sm-search input:focus { box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] .sm-right {
  width: 150px; padding: 10px 8px 8px; color: #000; background: #a685ff; border: 2px solid #000; border-radius: 4px; box-shadow: 4px 4px 0 #000;
}
html[data-theme="brutal"] .sm-avatar {
  width: 64px; height: 64px; margin: 0 auto 10px; padding: 0; border-radius: 0; background: #fff; border: 3px solid #000; box-shadow: 4px 4px 0 #000;
}
html[data-theme="brutal"] .sm-avatar img { border: 0; border-radius: 0; }
html[data-theme="brutal"] #sm-links li { padding: 5px 8px; margin-bottom: 3px; border: 2px solid transparent; border-radius: 3px; color: #000; font-weight: 700; text-shadow: none; }
html[data-theme="brutal"] #sm-links li:hover { background: #fff; border-color: #000; box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] #sm-links .sep { height: 2px; padding: 0; margin: 6px 4px; background: #000; border: 0; box-shadow: none; }
html[data-theme="brutal"] #sm-links .sep:hover { background: #000; box-shadow: none; }
html[data-theme="brutal"] .sm-shutdown { margin: 8px 0 0; }
html[data-theme="brutal"] .sm-shutdown button {
  color: #000; background: #ff6b9d; border: 2px solid #000; text-shadow: none; box-shadow: 3px 3px 0 #000; font-weight: 900; padding: 5px 10px;
}
html[data-theme="brutal"] #sm-off { flex: 1; border-radius: 3px 0 0 3px; text-transform: uppercase; font-size: 11px; }
html[data-theme="brutal"] #sm-off-more { border-radius: 0 3px 3px 0; border-left: 0; padding: 5px 7px; }
html[data-theme="brutal"] .sm-shutdown button:hover { background: #ffde59; box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] .sm-shutdown button:active { transform: translate(3px, 3px); box-shadow: none; }
html[data-theme="brutal"] #sm-off-menu { left: calc(100% + 10px); margin-left: 0; }

/* --------------------------------------------------------------------------
   Fenêtres : des cartes à grosse bordure et grosse ombre
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] .win {
  padding: 0; background: #fff; border: 3px solid #000; border-radius: 6px; box-shadow: 8px 8px 0 #000;
  backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible;
}
html[data-theme="brutal"] .win.inactive { background: #fff; box-shadow: 5px 5px 0 #000; }
html[data-theme="brutal"] .titlebar {
  height: 38px; padding: 0 6px 0 10px; background: #ff6b9d; border-bottom: 3px solid #000; border-radius: 3px 3px 0 0;
}
html[data-theme="brutal"] .win.inactive .titlebar { background: #e8e1cc; }
html[data-theme="brutal"] .titlebar .ticon { width: 18px; height: 18px; margin-right: 8px; }
html[data-theme="brutal"] .titlebar .title { color: #000; text-shadow: none; font: 900 13px var(--b-head); letter-spacing: .2px; }
html[data-theme="brutal"] .win.inactive .titlebar .title { color: #444; }
html[data-theme="brutal"] .caption { align-self: center; margin: 0 0 0 8px; gap: 6px; }
html[data-theme="brutal"] .caption button,
html[data-theme="brutal"] .caption .bmin, html[data-theme="brutal"] .caption .bclose {
  width: 26px; height: 26px; margin: 0; color: #000; background: #fff; border: 2px solid #000; border-radius: 3px;
  box-shadow: 2px 2px 0 #000; filter: none; transition: transform .05s, box-shadow .05s;
}
html[data-theme="brutal"] .caption .bclose { background: #ffde59; }
html[data-theme="brutal"] .caption button svg { display: none; }
html[data-theme="brutal"] .caption .g { display: block; width: 12px; height: 12px; }
html[data-theme="brutal"] .caption .bmin:hover { background: #5ce1e6; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .caption .bmax:hover { background: #b8f35a; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .caption .bclose:hover { background: #000; color: #fff; box-shadow: 2px 2px 0 #ffde59; }
html[data-theme="brutal"] .caption button:active, html[data-theme="brutal"] .caption .bclose:active { transform: translate(2px, 2px); box-shadow: none; filter: none; }
html[data-theme="brutal"] .win.inactive .caption button:not(:hover) { background: #fff; }
html[data-theme="brutal"] .caption button:disabled { opacity: .4; }
/* Pictogrammes épais */
html[data-theme="brutal"] .caption .bmin .g::before { left: 1px; bottom: 1px; width: 10px; height: 3px; }
html[data-theme="brutal"] .caption .bmax .g::before { inset: 0; border: 2px solid currentColor; border-top-width: 4px; }
html[data-theme="brutal"] .win.max .caption .bmax .g::before { left: 3px; top: 0; right: auto; bottom: auto; width: 9px; height: 8px; border-width: 2px; border-top-width: 3px; }
html[data-theme="brutal"] .win.max .caption .bmax .g::after { left: 0; top: 4px; width: 9px; height: 8px; border: 2px solid currentColor; border-top-width: 3px; background: #fff; }
html[data-theme="brutal"] .win.max .caption .bmax:hover .g::after { background: #b8f35a; }
html[data-theme="brutal"] .caption .bclose .g::before, html[data-theme="brutal"] .caption .bclose .g::after { left: 4.5px; top: -2px; width: 3px; height: 16px; }
/* Fenêtre agrandie : plus de bord ni d'ombre, la barre de titre garde son trait */
html[data-theme="brutal"] .win.max { border: 0; border-radius: 0; box-shadow: none; }
html[data-theme="brutal"] .win.max .titlebar { height: 34px; border-radius: 0; }
html[data-theme="brutal"] .client, html[data-theme="brutal"] .explorer .ex-frame, html[data-theme="brutal"] .ie .ie-frame { border: 0; box-shadow: none; }
html[data-theme="brutal"] .client { border-radius: 0 0 3px 3px; }
html[data-theme="brutal"] .win.max .client { border-radius: 0; }
html[data-theme="brutal"] .ex-top, html[data-theme="brutal"] .ie .ie-bar { margin: 0; padding: 6px 8px; background: #fffbea; border-bottom: 2px solid #000; }
html[data-theme="brutal"] .ie .ie-tabs { background: #fffbea; }

/* --------------------------------------------------------------------------
   Commandes, menus et contrôles
   -------------------------------------------------------------------------- */
html[data-theme="brutal"] .menubar, html[data-theme="brutal"] .menubar.plain { background: #fffbea; border-bottom: 2px solid #000; padding: 2px 4px; }
html[data-theme="brutal"] .menubar > span { border: 2px solid transparent; border-radius: 3px; font-weight: 700; }
html[data-theme="brutal"] .menubar > span:hover, html[data-theme="brutal"] .menubar > span.open { background: #ffde59; border-color: #000; }
html[data-theme="brutal"] .statusbar { background: #fffbea; border-top: 2px solid #000; color: #000; font-weight: 700; }
html[data-theme="brutal"] .statusbar span { border-left: 2px solid #000; }
html[data-theme="brutal"] .statusbar span:first-child { border: 0; }

html[data-theme="brutal"] .dialog-body { background: #fff; }
html[data-theme="brutal"] .dialog-body .dmsg { color: #000; }
html[data-theme="brutal"] .dialog-body .dmsg .main { color: #000; font: 900 16px var(--b-head); }
html[data-theme="brutal"] .dialog-foot { gap: 12px; padding: 12px 14px 14px; background: #fffbea; border-top: 2px solid #000; }

/* Boutons qui s'enfoncent */
html[data-theme="brutal"] .btn7 {
  height: 28px; padding: 0 14px; color: #000; font-weight: 700; background: #fff;
  border: 2px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000; transition: transform .05s, box-shadow .05s;
}
html[data-theme="brutal"] .btn7:hover { background: #ffde59; border-color: #000; }
html[data-theme="brutal"] .btn7:active { background: #ffde59; border-color: #000; box-shadow: 0 0 0 #000; transform: translate(3px, 3px); }
html[data-theme="brutal"] .btn7:focus-visible { outline: 2px dashed #000; outline-offset: 2px; }
html[data-theme="brutal"] .btn7.default { background: #b8f35a; border-color: #000; box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] .btn7.default:hover { background: #ffde59; }
html[data-theme="brutal"] .btn7.default:active { box-shadow: 0 0 0 #000; }
html[data-theme="brutal"] .btn7:disabled { color: #888; background: #eee; border-color: #888; box-shadow: 3px 3px 0 #888; transform: none; }

html[data-theme="brutal"] input.txt7, html[data-theme="brutal"] select.sel7, html[data-theme="brutal"] textarea.txt7,
html[data-theme="brutal"] .ex-search, html[data-theme="brutal"] .addr {
  border: 2px solid #000; border-radius: 3px; background: #fff; box-shadow: none; color: #000;
}
html[data-theme="brutal"] input.txt7:hover, html[data-theme="brutal"] input.txt7:focus, html[data-theme="brutal"] select.sel7:focus,
html[data-theme="brutal"] textarea.txt7:focus, html[data-theme="brutal"] .ex-search:focus {
  border-color: #000; background: #fffbea; box-shadow: 3px 3px 0 #000;
}
html[data-theme="brutal"] .ex-search, html[data-theme="brutal"] .addr { height: 28px; }
html[data-theme="brutal"] .crumb { border: 2px solid transparent; border-radius: 2px; font-weight: 700; }
html[data-theme="brutal"] .crumb:hover { background: #ffde59; border-color: #000; }

/* Menus contextuels */
html[data-theme="brutal"] .ctx {
  padding: 4px; color: #000; background: #fff; border: 2px solid #000; border-radius: 4px; box-shadow: 5px 5px 0 #000; font-weight: 700;
}
html[data-theme="brutal"] .ctx li { padding: 4px 26px 4px 30px; border: 2px solid transparent; border-radius: 2px; }
html[data-theme="brutal"] .ctx li:hover:not(.sep):not(.disabled) { background: #ffde59; border-color: #000; }
html[data-theme="brutal"] .ctx li.sep { height: 2px; padding: 0; margin: 4px 2px; background: #000; border: 0; }
html[data-theme="brutal"] .ctx li.disabled { color: #999; }
html[data-theme="brutal"] .ctx li.bold { font-weight: 900; }
html[data-theme="brutal"] .ctx li .key { color: #555; }
html[data-theme="brutal"] .ctx li > .ctx { top: -6px; }

/* Barre d'outils, navigation et Explorateur */
html[data-theme="brutal"] .cmdbar { height: 38px; gap: 6px; padding: 2px 8px; background: #fffbea; border-bottom: 2px solid #000; }
html[data-theme="brutal"] .cmdbar button { height: 28px; color: #000; font-weight: 700; border: 2px solid transparent; border-radius: 3px; }
html[data-theme="brutal"] .cmdbar button:hover { background: #ffde59; border-color: #000; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .cmdbar button:active { transform: translate(2px, 2px); box-shadow: none; }
html[data-theme="brutal"] .navbtns { gap: 6px; margin-right: 4px; }
html[data-theme="brutal"] .navbtn {
  width: 28px; height: 28px; margin: 0; border-radius: 3px; background: #fff; border: 2px solid #000; box-shadow: 2px 2px 0 #000; filter: none;
}
html[data-theme="brutal"] .navbtn svg path { stroke: #000; stroke-width: 2; }
html[data-theme="brutal"] .navbtn:hover:not(:disabled) { background: #5ce1e6; filter: none; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .navbtn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
html[data-theme="brutal"] .navbtn:disabled { background: #eee; border-color: #999; box-shadow: none; opacity: .6; }
html[data-theme="brutal"] .ex-nav { background: #fffbea; border-right: 2px solid #000; font-weight: 700; }
html[data-theme="brutal"] .ex-nav .item, html[data-theme="brutal"] .ex-item { border: 2px solid transparent; border-radius: 3px; }
html[data-theme="brutal"] .ex-nav .item:hover, html[data-theme="brutal"] .ex-item:hover { background: #ffde59; border-color: #000; }
html[data-theme="brutal"] .ex-nav .item.cur, html[data-theme="brutal"] .ex-item.sel { background: #5ce1e6; border-color: #000; box-shadow: 3px 3px 0 #000; }
html[data-theme="brutal"] .ex-lib { border-bottom: 2px solid #000; }
html[data-theme="brutal"] .ex-lib h2 { color: #000; font: 900 17px var(--b-head); }
html[data-theme="brutal"] .ex-lib div { color: #333; }
html[data-theme="brutal"] .ex-item.tile .bar { border: 2px solid #000; background: #fff; }
html[data-theme="brutal"] .ex-item.tile .bar i { background: #a685ff; }
html[data-theme="brutal"] .ex-item .ico img { border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .ex-details { background: #fffbea; border-top: 2px solid #000; }
html[data-theme="brutal"] .ex-details b { font-weight: 900; }
html[data-theme="brutal"] .ex-details span { color: #333; }

/* Pages (Panneau de configuration, Personnalisation…) */
html[data-theme="brutal"] .page-head { background: #ffde59; border-bottom: 3px solid #000; }
html[data-theme="brutal"] .page-head h1 { color: #000; font: 900 22px var(--b-head); text-transform: uppercase; }
html[data-theme="brutal"] .page-head p { color: #000; font-weight: 700; }
html[data-theme="brutal"] .page h2 { color: #000; font: 900 15px var(--b-head); border-bottom: 2px solid #000; }
html[data-theme="brutal"] .theme-card { border: 3px solid transparent; border-radius: 4px; font-weight: 700; }
html[data-theme="brutal"] .theme-card .tp { box-shadow: 0 0 0 2px #000; }
html[data-theme="brutal"] .theme-card:hover .tp { box-shadow: 0 0 0 2px #000, 4px 4px 0 2px #000; }
html[data-theme="brutal"] .theme-card.on { border-color: #ff6b9d; }
html[data-theme="brutal"] .wall { border-radius: 4px; }
html[data-theme="brutal"] .wall.on { border-color: #ff6b9d; }
html[data-theme="brutal"] .wall span { background: #000; color: #fff; font-weight: 700; }

/* Calculatrice et démineur : aplats */
html[data-theme="brutal"] .calc { background: #fffbea !important; }
html[data-theme="brutal"] .calc-disp { background: #fff; border: 2px solid #000; border-radius: 3px; box-shadow: none; }
html[data-theme="brutal"] .calc-disp .val { font: 900 28px var(--b-head); }
html[data-theme="brutal"] .calc-keys button { color: #000; font-weight: 700; background: #fff; border: 2px solid #000; border-radius: 3px; box-shadow: 2px 2px 0 #000; }
html[data-theme="brutal"] .calc-keys button:hover { background: #ffde59; }
html[data-theme="brutal"] .calc-keys button:active, html[data-theme="brutal"] .calc-keys button.press { transform: translate(2px, 2px); box-shadow: none; }
html[data-theme="brutal"] .calc-keys [data-k="="] { background: #ff6b9d; }
html[data-theme="brutal"] .mines { background: #fffbea !important; }
html[data-theme="brutal"] .paint .ribbon, html[data-theme="brutal"] .viewer .vbar { background: #fffbea; border-color: #000; }

/* Aperçu de l'ancrage : cadre en pointillés, sans flou */
html[data-theme="brutal"] #snap-preview {
  border: 3px dashed #000; border-radius: 6px; background: rgba(166,133,255,.35); box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Barres de défilement : piste crème, curseur jaune cerné de noir.
   :where() garde une priorité faible pour laisser les applications qui ont les leurs. */
:where(html[data-theme="brutal"]) ::-webkit-scrollbar { width: 14px; height: 14px; background: #fffbea; }
:where(html[data-theme="brutal"]) ::-webkit-scrollbar-track { background: #fffbea; box-shadow: inset 2px 0 #000; }
:where(html[data-theme="brutal"]) ::-webkit-scrollbar-track:horizontal { box-shadow: inset 0 2px #000; }
:where(html[data-theme="brutal"]) ::-webkit-scrollbar-thumb { background: #ffde59; border: 2px solid #000; border-radius: 3px; }
:where(html[data-theme="brutal"]) ::-webkit-scrollbar-thumb:hover { background: #ff6b9d; }
:where(html[data-theme="brutal"]) ::-webkit-scrollbar-button { display: none; }
:where(html[data-theme="brutal"]) ::-webkit-scrollbar-corner { background: #fffbea; }

/* --------------------------------------------------------------------------
   Petits écrans
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  html[data-theme="brutal"] #taskbar { gap: 6px; padding-left: 6px; }
  html[data-theme="brutal"] #orb { padding: 0 9px; }
  html[data-theme="brutal"] .orb-label { display: none; }
  html[data-theme="brutal"] #tasks { gap: 6px; }
  html[data-theme="brutal"] .task, html[data-theme="brutal"] .task.running { width: 36px; padding: 0; justify-content: center; }
  html[data-theme="brutal"] .task .tlabel { display: none; }
  html[data-theme="brutal"] #startmenu { left: 0; width: 100%; height: calc(100% - var(--taskbar-h)); bottom: var(--taskbar-h); border-radius: 0; border-width: 3px 0 0; box-shadow: none; }
  html[data-theme="brutal"] .sm-right { width: 130px; }
  html[data-theme="brutal"] .titlebar { height: 40px; }
  html[data-theme="brutal"] .caption button, html[data-theme="brutal"] .caption .bmin, html[data-theme="brutal"] .caption .bclose { width: 30px; height: 30px; }
  html[data-theme="brutal"] .win { box-shadow: 5px 5px 0 #000; }
}
