/* ==========================================================================
   Apparence « Bootstrap (tableau de bord) » : html[data-theme="bs"], adresse /bootstrap
   Imitation de Bootstrap 5, propre au site (tableau de bord d'administration, couleurs claires) :
   barre latérale à gauche (menu Démarrer, os/theme-bootstrap.js), barre du haut (la barre
   des tâches déplacée), accueil en cartes, fenêtres en cartes ou en pages. Aucune ressource
   extérieure. Le mode application (?app=1, html.appmode) garde son affichage habituel.
   ========================================================================== */

/* Éléments propres à cette apparence : cachés partout ailleurs */
#bs-side, #bs-home, #bs-backdrop, #bs-user { display: none; }

[data-wall="bs"] { --wallpaper: #f4f6f9; }

/* Personnalisation : vignette (barre latérale blanche, barre du haut, cartes) */
[data-preview="bs"] .tp { background: #f4f6f9; }
[data-preview="bs"] .tp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: #fff; border-right: 1px solid #dee2e6; }
[data-preview="bs"] .tp::after { content: ""; position: absolute; left: 20%; right: 0; top: 0; height: 12%; background: #fff; border-bottom: 1px solid #dee2e6; }
[data-preview="bs"] .tp-win { left: 26%; top: 22%; width: 68%; height: 60%; border: 1px solid #dee2e6; border-radius: 3px; }
[data-preview="bs"] .tp-win i { height: 8px; border-bottom: 1px solid #e9ecef; background: linear-gradient(90deg, #0d6efd 0 18%, transparent 18%); }
[data-preview="bs"] .tp-bar { display: none; }

html[data-theme="bs"]:not(.appmode) {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --taskbar-h: 0px;
  --bs-side-w: 250px;
  --bs-top-h: 56px;
}

/* --------------------------------------------------------------------------
   Écrans de démarrage et d'ouverture de session
   -------------------------------------------------------------------------- */
html[data-theme="bs"]:not(.appmode) #boot, html[data-theme="bs"]:not(.appmode) #logon, html[data-theme="bs"]:not(.appmode) #shutdown, html[data-theme="bs"]:not(.appmode) #off { background: #f4f6f9; color: #212529; }
html[data-theme="bs"]:not(.appmode) #logon::before, html[data-theme="bs"]:not(.appmode) #shutdown::before { display: none; }
html[data-theme="bs"]:not(.appmode) .logon-box { background: #fff; border: 1px solid #dee2e6; border-radius: .75rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); padding: 28px 44px 30px; }
html[data-theme="bs"]:not(.appmode) .logon-name, html[data-theme="bs"]:not(.appmode) .logon-welcome { color: #212529; text-shadow: none; }
html[data-theme="bs"]:not(.appmode) .logon-hint, html[data-theme="bs"]:not(.appmode) .off-text { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .logon-box .avatar-frame { border-radius: 50%; padding: 4px; background: #fff; border: 0; box-shadow: 0 0 0 1px #dee2e6; }
html[data-theme="bs"]:not(.appmode) .logon-box .avatar-frame img { border-radius: 50%; }
html[data-theme="bs"]:not(.appmode) .logon-user:hover .avatar-frame { box-shadow: 0 0 0 1px #86b7fe, 0 0 0 .3rem rgba(13,110,253,.25); }

/* --------------------------------------------------------------------------
   Mise en page : barre latérale, barre du haut, zone principale
   -------------------------------------------------------------------------- */
html[data-theme="bs"]:not(.appmode) #desktop { background: #f4f6f9; }
html[data-theme="bs"]:not(.appmode) #icons, html[data-theme="bs"]:not(.appmode) #icons-right, html[data-theme="bs"]:not(.appmode) #icons-near, html[data-theme="bs"]:not(.appmode) #icons-center, html[data-theme="bs"]:not(.appmode) #icons-milieu,
html[data-theme="bs"]:not(.appmode) #startmenu, html[data-theme="bs"]:not(.appmode) #showdesk, html[data-theme="bs"]:not(.appmode) #macbar { display: none !important; }

html[data-theme="bs"]:not(.appmode) #bs-side {
  display: flex; flex-direction: column; position: absolute; top: 0; left: 0; bottom: 0; width: var(--bs-side-w); z-index: 5002;
  background: #fff; border-right: 1px solid #dee2e6; font-size: 14px; line-height: 1.5; color: #212529;
  transition: transform .2s ease;
}
html[data-theme="bs"]:not(.appmode) #taskbar {
  top: 0; bottom: auto; left: var(--bs-side-w); right: 0; height: var(--bs-top-h);
  background: #fff; border: 0; border-bottom: 1px solid #dee2e6; box-shadow: 0 .125rem .25rem rgba(0,0,0,.04);
  backdrop-filter: none; -webkit-backdrop-filter: none; align-items: center; gap: 8px; padding: 0 12px 0 10px;
  transition: left .2s ease;
}
html[data-theme="bs"]:not(.appmode) #windows, html[data-theme="bs"]:not(.appmode) #bs-home { top: var(--bs-top-h); right: 0; bottom: 0; left: var(--bs-side-w); transition: left .2s ease; }
html[data-theme="bs"]:not(.appmode) #bs-home { display: block; position: absolute; overflow: auto; z-index: 1; font-size: 14px; line-height: 1.5; color: #212529; -webkit-overflow-scrolling: touch; }

/* Barre latérale repliée (bouton « menu ») */
html[data-theme="bs"].bs-mini:not(.appmode) #bs-side { transform: translateX(-100%); }
html[data-theme="bs"].bs-mini:not(.appmode) #taskbar,
html[data-theme="bs"].bs-mini:not(.appmode) #windows,
html[data-theme="bs"].bs-mini:not(.appmode) #bs-home { left: 0; }

/* Bouton « menu » (à la place du bouton Démarrer) */
html[data-theme="bs"]:not(.appmode) #orb { width: 40px; height: 40px; border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) #orb:hover { background: #f1f3f5; }
html[data-theme="bs"]:not(.appmode) #orb::before, html[data-theme="bs"]:not(.appmode) #orb:hover::before, html[data-theme="bs"]:not(.appmode) #orb.active::before {
  content: ""; width: 20px; height: 14px; margin: 0; border-radius: 0; box-shadow: none; filter: none;
  background:
    linear-gradient(#495057, #495057) left top / 100% 2px no-repeat,
    linear-gradient(#495057, #495057) left center / 100% 2px no-repeat,
    linear-gradient(#495057, #495057) left bottom / 100% 2px no-repeat;
}

/* Programmes ouverts et épinglés : boutons de la barre du haut */
html[data-theme="bs"]:not(.appmode) #tasks { gap: 4px; padding: 0; align-items: center; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
html[data-theme="bs"]:not(.appmode) #tasks::-webkit-scrollbar { display: none; }
html[data-theme="bs"]:not(.appmode) .task {
  width: auto; min-width: 36px; height: 36px; margin: 0; padding: 0 10px; gap: 7px; flex: none;
  border: 1px solid transparent; border-radius: .375rem; background: none; box-shadow: none; color: #495057; cursor: pointer;
}
html[data-theme="bs"]:not(.appmode) .task .ico { width: 20px; height: 20px; }
html[data-theme="bs"]:not(.appmode) .task .ico svg { filter: none; }
html[data-theme="bs"]:not(.appmode) .task .tlabel { display: block; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
html[data-theme="bs"]:not(.appmode) .task:not(.running) { padding: 0 8px; }
html[data-theme="bs"]:not(.appmode) .task:not(.running) .tlabel { display: none; }
html[data-theme="bs"]:not(.appmode) .task.running { background: #f8f9fa; border-color: #dee2e6; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .task:hover { background: #f1f3f5; border-color: #dee2e6; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .task.active { background: #e7f1ff; border-color: #b6d4fe; color: #0a58ca; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .task.multi::after { display: none; }
html[data-theme="bs"]:not(.appmode) #tray { color: #6c757d; gap: 4px; padding: 0 4px; }
html[data-theme="bs"]:not(.appmode) #tray svg [fill="#fff"] { fill: #6c757d; }
html[data-theme="bs"]:not(.appmode) #tray svg [stroke="#fff"] { stroke: #6c757d; }
html[data-theme="bs"]:not(.appmode) .tray-ico { width: 30px; height: 34px; border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .tray-ico:hover, html[data-theme="bs"]:not(.appmode) #clock:hover { background: #f1f3f5; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) #clock { color: #495057; text-shadow: none; height: 40px; border-radius: .375rem; font-size: 12px; }
html[data-theme="bs"]:not(.appmode) #bs-user { display: flex; align-items: center; gap: 8px; flex: none; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 2rem; font: 500 14px var(--font); color: #212529; cursor: pointer; }
html[data-theme="bs"]:not(.appmode) #bs-user:hover { background: #f1f3f5; }
html[data-theme="bs"]:not(.appmode) #bs-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Aperçus, calendrier et menus contextuels : sous la barre du haut, façon « dropdown » */
html[data-theme="bs"]:not(.appmode) .tb-popup { top: calc(var(--bs-top-h) + 4px); bottom: auto; background: #fff; color: #212529; border: 1px solid rgba(0,0,0,.15); border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-theme="bs"]:not(.appmode) .tb-thumb { color: #212529; }
html[data-theme="bs"]:not(.appmode) .tb-thumb:hover { background: #f1f3f5; border-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .tb-thumb .p { border-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) #calendar { top: calc(var(--bs-top-h) + 6px); bottom: auto; right: 10px; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }
html[data-theme="bs"]:not(.appmode) .ctx { background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .375rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); padding: 6px 0; font-size: 13px; }
html[data-theme="bs"]:not(.appmode) .ctx li { border: 0; border-radius: 0; padding: 5px 30px 5px 32px; }
html[data-theme="bs"]:not(.appmode) .ctx li:hover:not(.sep):not(.disabled) { background: #e9ecef; border-color: transparent; }
html[data-theme="bs"]:not(.appmode) .ctx li.sep { margin: 6px 0; background: #dee2e6; border: 0; height: 1px; padding: 0; }

/* --------------------------------------------------------------------------
   Fenêtres : cartes (boîtes de dialogue) ou pages agrandies dans la zone principale
   -------------------------------------------------------------------------- */
html[data-theme="bs"]:not(.appmode) .win {
  padding: 0; background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; overflow: hidden;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15); backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="bs"]:not(.appmode) .win.inactive { background: #fff; box-shadow: 0 .25rem .75rem rgba(0,0,0,.08); }
html[data-theme="bs"]:not(.appmode) .win.max { border-radius: 0; border: 0; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .titlebar, html[data-theme="bs"]:not(.appmode) .win.max .titlebar { height: 48px; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid #dee2e6; }
html[data-theme="bs"]:not(.appmode) .titlebar .ticon { width: 20px; height: 20px; margin-right: 10px; }
html[data-theme="bs"]:not(.appmode) .titlebar .title { color: #212529; font-size: 16px; font-weight: 500; text-shadow: none; }
html[data-theme="bs"]:not(.appmode) .win.inactive .titlebar .title { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .caption { align-self: center; margin: 0 0 0 8px; }
html[data-theme="bs"]:not(.appmode) .caption button, html[data-theme="bs"]:not(.appmode) .caption .bmin, html[data-theme="bs"]:not(.appmode) .caption .bclose, html[data-theme="bs"]:not(.appmode) .win.inactive .caption button:not(:hover) {
  width: 34px; height: 32px; margin: 0 0 0 2px; border: 0; border-radius: .375rem; background: transparent; box-shadow: none;
  color: #6c757d; position: relative; cursor: pointer;
}
html[data-theme="bs"]:not(.appmode) .caption button svg { display: none; }
/* Fenêtres principales toujours agrandies : pas de bouton « Agrandir » / « Niveau inférieur » (os.js : lockedMax, winMenu) */
html[data-theme="bs"]:not(.appmode) .caption .bmax { display: none; }
html[data-theme="bs"]:not(.appmode) .caption button::before, html[data-theme="bs"]:not(.appmode) .caption button::after { content: ""; position: absolute; }
html[data-theme="bs"]:not(.appmode) .caption .bmin::before { left: 11px; right: 11px; top: 19px; height: 2px; background: currentColor; }
html[data-theme="bs"]:not(.appmode) .caption .bmax::before { left: 11px; top: 10px; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 2px; box-sizing: border-box; }
html[data-theme="bs"]:not(.appmode) .win.max .caption .bmax::before { left: 10px; top: 13px; width: 10px; height: 10px; }
html[data-theme="bs"]:not(.appmode) .win.max .caption .bmax::after { left: 13px; top: 9px; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: border-box; }
html[data-theme="bs"]:not(.appmode) .caption .bclose::before, html[data-theme="bs"]:not(.appmode) .caption .bclose::after { left: 16px; top: 8px; width: 2px; height: 16px; background: currentColor; transform: rotate(45deg); }
html[data-theme="bs"]:not(.appmode) .caption .bclose::after { transform: rotate(-45deg); }
html[data-theme="bs"]:not(.appmode) .caption button:hover { background: #e9ecef; color: #212529; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .caption .bclose:hover { background: #dc3545; color: #fff; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .client, html[data-theme="bs"]:not(.appmode) .win.max .client { border: 0; box-shadow: none; }

/* Pages et boutons des applications : mêmes couleurs que Bootstrap */
html[data-theme="bs"]:not(.appmode) .page-head { background: #fff; border-bottom: 1px solid #dee2e6; }
html[data-theme="bs"]:not(.appmode) .page-head h1 { color: #212529; font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .page-head p { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .menubar { background: #f8f9fa; border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .menubar > span:hover, html[data-theme="bs"]:not(.appmode) .menubar > span.open { background: #e9ecef; border-color: transparent; border-radius: .25rem; }
html[data-theme="bs"]:not(.appmode) .btn7 { background: #fff; border: 1px solid #ced4da; border-radius: .375rem; color: #212529; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .btn7:hover { background: #e9ecef; border-color: #adb5bd; }
html[data-theme="bs"]:not(.appmode) .btn7:active { background: #dee2e6; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .btn7.default { background: #0d6efd; border-color: #0d6efd; color: #fff; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .btn7.default:hover { background: #0b5ed7; border-color: #0a58ca; }
html[data-theme="bs"]:not(.appmode) .btn7:disabled { color: #adb5bd; background: #f8f9fa; border-color: #dee2e6; }

/* --------------------------------------------------------------------------
   Composants « Bootstrap » (préfixe bs- : n'entrent pas en conflit avec les applications)
   -------------------------------------------------------------------------- */
html[data-theme="bs"]:not(.appmode) .bs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px;
  font: 400 14px/1.5 var(--font); border: 1px solid transparent; border-radius: .375rem; cursor: pointer;
  background: transparent; color: #212529; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
html[data-theme="bs"]:not(.appmode) .bs-btn-sm { padding: 3px 9px; font-size: 13px; border-radius: .25rem; }
html[data-theme="bs"]:not(.appmode) .bs-btn-primary { background: #0d6efd; border-color: #0d6efd; color: #fff; }
html[data-theme="bs"]:not(.appmode) .bs-btn-primary:hover { background: #0b5ed7; border-color: #0a58ca; }
html[data-theme="bs"]:not(.appmode) .bs-btn-outline-primary { border-color: #0d6efd; color: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .bs-btn-outline-primary:hover { background: #0d6efd; color: #fff; }
html[data-theme="bs"]:not(.appmode) .bs-btn-outline-secondary { border-color: #6c757d; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .bs-btn-outline-secondary:hover { background: #6c757d; color: #fff; }
html[data-theme="bs"]:not(.appmode) .bs-btn-outline-danger { border-color: #dc3545; color: #dc3545; }
html[data-theme="bs"]:not(.appmode) .bs-btn-outline-danger:hover { background: #dc3545; color: #fff; }
html[data-theme="bs"]:not(.appmode) .bs-btn-light { background: #f8f9fa; border-color: #e9ecef; color: #212529; }
html[data-theme="bs"]:not(.appmode) .bs-btn-light:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bs-link { border: 0; background: none; padding: 0; font: inherit; color: #0d6efd; text-decoration: underline; cursor: pointer; }
html[data-theme="bs"]:not(.appmode) .bs-form-control {
  width: 100%; height: 36px; padding: 6px 12px; font: 14px var(--font); color: #212529; background: #fff;
  border: 1px solid #ced4da; border-radius: .375rem; outline: 0; transition: border-color .15s, box-shadow .15s;
}
html[data-theme="bs"]:not(.appmode) .bs-form-control:focus { border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
html[data-theme="bs"]:not(.appmode) .bs-badge { display: inline-block; padding: .35em .65em; margin: 0 4px 4px 0; font-size: 12px; font-weight: 600; line-height: 1; color: #495057; background: #e9ecef; border-radius: .375rem; white-space: nowrap; }
html[data-theme="bs"]:not(.appmode) .bs-card-tools .bs-badge { margin: 0; }
html[data-theme="bs"]:not(.appmode) .bs-badge-soft { background: #e7f1ff; color: #0a58ca; }
html[data-theme="bs"]:not(.appmode) .bs-badge-primary { background: #0d6efd; color: #fff; }
html[data-theme="bs"]:not(.appmode) .bs-badge-success { background: #198754; color: #fff; }
html[data-theme="bs"]:not(.appmode) .bs-muted { color: #6c757d; }

/* Barre latérale */
html[data-theme="bs"]:not(.appmode) .bs-brand { height: var(--bs-top-h); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid #dee2e6; }
html[data-theme="bs"]:not(.appmode) .bs-logo { width: 34px; height: 34px; flex: none; border-radius: .5rem; background: #0d6efd; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
html[data-theme="bs"]:not(.appmode) .bs-brand b { display: block; font-size: 15px; line-height: 1.2; }
html[data-theme="bs"]:not(.appmode) .bs-brand small { display: block; font-size: 12px; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .bs-search { flex: none; padding: 12px 14px 4px; }
html[data-theme="bs"]:not(.appmode) .bs-nav-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 10px 12px; -webkit-overflow-scrolling: touch; }
html[data-theme="bs"]:not(.appmode) .bs-nav, html[data-theme="bs"]:not(.appmode) .bs-sub { list-style: none; margin: 0; padding: 0; }
html[data-theme="bs"]:not(.appmode) .bs-nav-head { padding: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .bs-nav-divider { height: 1px; background: #e9ecef; margin: 6px 10px; }
html[data-theme="bs"]:not(.appmode) .bs-nav-link {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0;
  border: 0; border-radius: .375rem; background: none; color: #495057; font: 14px/1.4 var(--font); text-align: left; cursor: pointer;
}
html[data-theme="bs"]:not(.appmode) .bs-nav-link:hover { background: #f1f3f5; color: #212529; }
html[data-theme="bs"]:not(.appmode) .bs-nav-link.active { background: #e7f1ff; color: #0a58ca; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .bs-ico { width: 20px; height: 20px; flex: none; display: flex; }
html[data-theme="bs"]:not(.appmode) .bs-ico svg { width: 100%; height: 100%; }
html[data-theme="bs"]:not(.appmode) .bs-ico-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; }
html[data-theme="bs"]:not(.appmode) .bs-ico-dash i { background: #0d6efd; border-radius: 2px; }
html[data-theme="bs"]:not(.appmode) .bs-ico-dash i:nth-child(2), html[data-theme="bs"]:not(.appmode) .bs-ico-dash i:nth-child(3) { opacity: .45; }
html[data-theme="bs"]:not(.appmode) .bs-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="bs"]:not(.appmode) .bs-txt small { display: block; font-size: 12px; color: #6c757d; font-weight: 400; }
html[data-theme="bs"]:not(.appmode) .bs-chev { width: 7px; height: 7px; flex: none; margin-right: 4px; border-right: 2px solid #adb5bd; border-bottom: 2px solid #adb5bd; transform: rotate(-45deg); transition: transform .15s; }
html[data-theme="bs"]:not(.appmode) .bs-folder.open > .bs-nav-link .bs-chev { transform: rotate(45deg); }
html[data-theme="bs"]:not(.appmode) .bs-sub { display: none; margin: 2px 0 6px 19px; padding-left: 8px; border-left: 1px solid #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bs-folder.open > .bs-sub { display: block; }
html[data-theme="bs"]:not(.appmode) .bs-sub .bs-nav-link { padding: 5px 10px; font-size: 13.5px; }
html[data-theme="bs"]:not(.appmode) .bs-hide { display: none !important; }
html[data-theme="bs"]:not(.appmode) .bs-empty { margin: 16px 10px; color: #6c757d; font-size: 13px; }
html[data-theme="bs"]:not(.appmode) .bs-searching .bs-nav-head, html[data-theme="bs"]:not(.appmode) .bs-searching .bs-nav-divider { display: none; }
html[data-theme="bs"]:not(.appmode) .bs-side-foot { flex: none; display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #dee2e6; }
html[data-theme="bs"]:not(.appmode) .bs-side-foot .bs-btn { flex: 1; }

/* Accueil : tableau de bord */
html[data-theme="bs"]:not(.appmode) .bs-container { padding: 24px 28px 8px; max-width: 1480px; }
html[data-theme="bs"]:not(.appmode) .bs-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
html[data-theme="bs"]:not(.appmode) .bs-pagehead h1 { margin: 2px 0; font-size: 26px; font-weight: 500; line-height: 1.2; }
html[data-theme="bs"]:not(.appmode) .bs-pagehead p { margin: 0; }
html[data-theme="bs"]:not(.appmode) .bs-pagehead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-theme="bs"]:not(.appmode) .bs-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
html[data-theme="bs"]:not(.appmode) .bs-row > div { padding: 0 10px; box-sizing: border-box; }
html[data-theme="bs"]:not(.appmode) .bs-col { flex: 1 1 25%; min-width: 230px; }
html[data-theme="bs"]:not(.appmode) .bs-col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
html[data-theme="bs"]:not(.appmode) .bs-col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
html[data-theme="bs"]:not(.appmode) .bs-col-6 { flex: 0 0 50%; max-width: 50%; }
html[data-theme="bs"]:not(.appmode) .bs-card { display: block; background: #fff; border: 1px solid rgba(0,0,0,.125); border-radius: .5rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.04); margin-bottom: 20px; overflow: hidden; }
html[data-theme="bs"]:not(.appmode) .bs-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 8px 16px; border-bottom: 1px solid rgba(0,0,0,.125); }
html[data-theme="bs"]:not(.appmode) .bs-card-header h2 { margin: 0; font-size: 16px; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .bs-card-tools { display: flex; align-items: center; gap: 8px; }
html[data-theme="bs"]:not(.appmode) .bs-card-body { padding: 16px; }

html[data-theme="bs"]:not(.appmode) .bs-stat { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; border-left: 4px solid var(--c); transition: box-shadow .15s, transform .15s; }
html[data-theme="bs"]:not(.appmode) .bs-stat:disabled { cursor: default; }
html[data-theme="bs"]:not(.appmode) .bs-stat:hover:not(:disabled) { box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); transform: translateY(-1px); }
html[data-theme="bs"]:not(.appmode) .bs-stat-primary { --c: #0d6efd; --cb: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .bs-stat-success { --c: #198754; --cb: #e8f5ee; }
html[data-theme="bs"]:not(.appmode) .bs-stat-warning { --c: #e0a800; --cb: #fff6dc; }
html[data-theme="bs"]:not(.appmode) .bs-stat-info { --c: #0aa2c0; --cb: #e3f8fc; }
html[data-theme="bs"]:not(.appmode) .bs-stat-ico { width: 52px; height: 52px; flex: none; padding: 10px; border-radius: .5rem; background: var(--cb); }
html[data-theme="bs"]:not(.appmode) .bs-stat-ico svg { width: 100%; height: 100%; display: block; }
html[data-theme="bs"]:not(.appmode) .bs-stat-txt small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
html[data-theme="bs"]:not(.appmode) .bs-stat-txt b { display: block; font-size: 26px; font-weight: 600; line-height: 1.2; color: #212529; }
html[data-theme="bs"]:not(.appmode) .bs-stat-txt em { display: block; font-style: normal; font-size: 13px; color: #6c757d; }

html[data-theme="bs"]:not(.appmode) .bs-profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
html[data-theme="bs"]:not(.appmode) .bs-profile h3 { margin: 0; font-size: 22px; font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .bs-avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px #dee2e6; }
html[data-theme="bs"]:not(.appmode) .bs-btn-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
html[data-theme="bs"]:not(.appmode) .bs-quote { margin: 18px 0; padding: 10px 16px; border-left: 4px solid #0d6efd; background: #f8f9fa; color: #495057; font-style: italic; border-radius: 0 .375rem .375rem 0; }
html[data-theme="bs"]:not(.appmode) .bs-subtitle { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .bs-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-theme="bs"]:not(.appmode) .bs-sum { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid #e9ecef; border-radius: .5rem; }
html[data-theme="bs"]:not(.appmode) .bs-sum img { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .bs-sum b { display: block; }
html[data-theme="bs"]:not(.appmode) .bs-sum span { color: #6c757d; font-size: 13px; }

html[data-theme="bs"]:not(.appmode) .bs-list-group { border: 1px solid rgba(0,0,0,.125); border-radius: .375rem; overflow: hidden; }
html[data-theme="bs"]:not(.appmode) .bs-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #212529; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.125); }
html[data-theme="bs"]:not(.appmode) .bs-list-item:last-child { border-bottom: 0; }
html[data-theme="bs"]:not(.appmode) .bs-list-item:hover { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .bs-list-item small { display: block; color: #6c757d; font-size: 12px; }
html[data-theme="bs"]:not(.appmode) .bs-badge-round { width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
html[data-theme="bs"]:not(.appmode) .bs-skill h5 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .bs-skill + .bs-skill { margin-top: 12px; }

html[data-theme="bs"]:not(.appmode) .bs-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
html[data-theme="bs"]:not(.appmode) .bs-proj { display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.125); border-radius: .5rem; overflow: hidden; background: #fff; transition: box-shadow .15s; }
html[data-theme="bs"]:not(.appmode) .bs-proj:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }
html[data-theme="bs"]:not(.appmode) .bs-proj-img { position: relative; height: 150px; flex: none; background: #f1f3f5; border-bottom: 1px solid #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bs-proj-img > img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
html[data-theme="bs"]:not(.appmode) .bs-proj-icon { position: absolute; left: 12px; bottom: -18px; width: 42px; height: 42px; padding: 4px; border-radius: .5rem; background: #fff; box-shadow: 0 .125rem .5rem rgba(0,0,0,.2); }
html[data-theme="bs"]:not(.appmode) .bs-proj-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
html[data-theme="bs"]:not(.appmode) .bs-proj-body { flex: 1; padding: 26px 16px 10px; }
html[data-theme="bs"]:not(.appmode) .bs-proj-body h3 { margin: 6px 0; font-size: 16px; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .bs-proj-body h3 .proj-annee { font-weight: 400; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .bs-proj-body p { margin: 0; color: #6c757d; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html[data-theme="bs"]:not(.appmode) .bs-proj-badges .bs-badge { font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .bs-proj-meta { margin-top: 8px; display: flex; gap: 12px; align-items: center; font-size: 12px; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .bs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
html[data-theme="bs"]:not(.appmode) .bs-dot-primary { background: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .bs-dot-success { background: #198754; }
html[data-theme="bs"]:not(.appmode) .bs-proj-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 10px 16px; border-top: 1px solid #e9ecef; background: #f8f9fa; }

html[data-theme="bs"]:not(.appmode) .bs-timeline { list-style: none; margin: 0 0 0 6px; padding: 0 0 0 18px; border-left: 2px solid #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bs-timeline li { position: relative; padding: 0 0 14px 6px; }
html[data-theme="bs"]:not(.appmode) .bs-timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #0d6efd; }
html[data-theme="bs"]:not(.appmode) .bs-timeline li:last-child { padding-bottom: 0; }
html[data-theme="bs"]:not(.appmode) .bs-tl-when { display: block; font-size: 12px; font-weight: 600; color: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .bs-timeline b { display: block; }
html[data-theme="bs"]:not(.appmode) .bs-timeline .bs-muted { display: block; font-size: 13px; }

html[data-theme="bs"]:not(.appmode) .bs-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
html[data-theme="bs"]:not(.appmode) .bs-quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid #e9ecef; border-radius: .5rem; background: #fff; font: 13px/1.3 var(--font); color: #212529; cursor: pointer; text-align: center; }
html[data-theme="bs"]:not(.appmode) .bs-quick-item svg { width: 32px; height: 32px; }
html[data-theme="bs"]:not(.appmode) .bs-quick-item:hover { border-color: #86b7fe; background: #f8fbff; }
html[data-theme="bs"]:not(.appmode) .bs-footer { padding: 4px 0 18px; color: #6c757d; font-size: 13px; text-align: center; }

/* Écrans moyens : colonnes empilées */
@media (max-width: 1100px) {
  html[data-theme="bs"]:not(.appmode) .bs-col-8, html[data-theme="bs"]:not(.appmode) .bs-col-4, html[data-theme="bs"]:not(.appmode) .bs-col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Téléphone : barre latérale en volet (bouton « menu »), zone principale sur toute la largeur */
@media (max-width: 699px) {
  html[data-theme="bs"]:not(.appmode) #bs-side { width: 280px; transform: translateX(-100%); }
  html[data-theme="bs"].bs-side-open:not(.appmode) #bs-side { transform: none; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  html[data-theme="bs"].bs-side-open:not(.appmode) #bs-backdrop { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5001; background: rgba(0,0,0,.4); }
  html[data-theme="bs"]:not(.appmode) #taskbar, html[data-theme="bs"]:not(.appmode) #windows, html[data-theme="bs"]:not(.appmode) #bs-home { left: 0; }
  html[data-theme="bs"]:not(.appmode) #taskbar { padding: 0 6px; gap: 4px; }
  html[data-theme="bs"]:not(.appmode) #bs-user { padding: 4px; }
  html[data-theme="bs"]:not(.appmode) #bs-user span, html[data-theme="bs"]:not(.appmode) #clock-date { display: none; }
  html[data-theme="bs"]:not(.appmode) .task { padding: 0 8px; }
  html[data-theme="bs"]:not(.appmode) .task .tlabel { max-width: 90px; }
  html[data-theme="bs"]:not(.appmode) .bs-container { padding: 16px 14px 4px; }
  html[data-theme="bs"]:not(.appmode) .bs-pagehead h1 { font-size: 22px; }
  html[data-theme="bs"]:not(.appmode) .bs-pagehead-actions, html[data-theme="bs"]:not(.appmode) .bs-pagehead-actions .bs-btn { flex: 1; }
  html[data-theme="bs"]:not(.appmode) .bs-col { min-width: 100%; }
  html[data-theme="bs"]:not(.appmode) .bs-summary { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="bs"]:not(.appmode) .bs-projects { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="bs"]:not(.appmode) .titlebar, html[data-theme="bs"]:not(.appmode) .win.max .titlebar { height: 46px; padding-left: 12px; }
}

/* ==========================================================================
   Intérieur des applications, façon Bootstrap 5 clair (seulement avec cette apparence)
   Règles génériques sur les classes partagées (style.css) ; pas de changement de
   dimensions : seules les couleurs, bordures, coins et ombres changent.
   ========================================================================== */

/* Réduction vers la barre du haut ; ouverture et restauration depuis le haut */
@keyframes bsWinIn { from { opacity: 0; transform: translateY(-18px) scale(.97); } }
html[data-theme="bs"]:not(.appmode) .win { animation: bsWinIn .18s ease-out; }
html[data-theme="bs"]:not(.appmode) .win.closing { animation: winClose .14s ease-in forwards; }
html[data-theme="bs"]:not(.appmode) .win.minimizing { transform-origin: 50% 0; transform: translateY(-45%) scale(.3); }

/* Couleurs communes (sélection, survol, liens) */
html[data-theme="bs"]:not(.appmode) {
  --sel-bg: #e7f1ff;
  --sel-border: #b6d4fe;
  --hover-bg: #f1f3f5;
  --hover-border: #dee2e6;
  --link: #0d6efd;
}
/* Liens simples en bleu Bootstrap ; les liens qui ont leur propre classe (boutons pleins du Store, etc.) gardent leurs
   couleurs d'origine, sinon le texte bleu disparaît sur un fond bleu */
html[data-theme="bs"]:not(.appmode) .win a:not([class]) { color: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .sto-btn.sto-pri, html[data-theme="bs"]:not(.appmode) .sto-btn.sto-pri:hover { color: #fff; }

/* Barres d'outils, barre d'état, boîtes de dialogue */
html[data-theme="bs"]:not(.appmode) .cmdbar { background: #f8f9fa; border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .cmdbar button { color: #212529; border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .cmdbar button:hover { background: #e9ecef; border-color: transparent; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .statusbar { background: #f8f9fa; border-top-color: #dee2e6; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .statusbar span { border-left-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .dialog-body .dmsg .main { color: #212529; font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .dialog-foot { background: #f8f9fa; border-top-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .menubar.plain { background: #f8f9fa; border-bottom-color: #dee2e6; }

/* Champs (form-control, form-select) : bordure claire, coins arrondis, anneau bleu au focus */
html[data-theme="bs"]:not(.appmode) .win input.txt7, html[data-theme="bs"]:not(.appmode) .win select.sel7, html[data-theme="bs"]:not(.appmode) .win textarea.txt7,
html[data-theme="bs"]:not(.appmode) .win input[type="text"], html[data-theme="bs"]:not(.appmode) .win input[type="search"], html[data-theme="bs"]:not(.appmode) .win input[type="number"], html[data-theme="bs"]:not(.appmode) .win input[type="date"],
html[data-theme="bs"]:not(.appmode) .win input[type="time"], html[data-theme="bs"]:not(.appmode) .win input[type="email"], html[data-theme="bs"]:not(.appmode) .win input[type="url"], html[data-theme="bs"]:not(.appmode) .win input[type="tel"],
html[data-theme="bs"]:not(.appmode) .win input[type="password"], html[data-theme="bs"]:not(.appmode) .win input[type="datetime-local"], html[data-theme="bs"]:not(.appmode) .win input[type="month"], html[data-theme="bs"]:not(.appmode) .win select {
  border: 1px solid #ced4da; border-radius: .25rem; background-color: #fff; color: #212529; box-shadow: none;
}
html[data-theme="bs"]:not(.appmode) .win input.txt7:hover, html[data-theme="bs"]:not(.appmode) .win select.sel7:hover { border-color: #adb5bd; }
html[data-theme="bs"]:not(.appmode) .win input:focus, html[data-theme="bs"]:not(.appmode) .win select:focus, html[data-theme="bs"]:not(.appmode) .win textarea.txt7:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.25); outline: 0; }
html[data-theme="bs"]:not(.appmode) .win input[type="checkbox"], html[data-theme="bs"]:not(.appmode) .win input[type="radio"], html[data-theme="bs"]:not(.appmode) .win input[type="range"] { accent-color: #0d6efd; }

/* Onglets (nav-tabs) : conteneurs « …-tabs » et boutons d'onglet */
html[data-theme="bs"]:not(.appmode) .win [class$="-tabs"], html[data-theme="bs"]:not(.appmode) .win [class*="-tabs "] { background: #fff; border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .win [class$="-tabs"] > button, html[data-theme="bs"]:not(.appmode) .win [class*="-tabs "] > button {
  background: transparent; border-color: transparent; border-radius: .375rem .375rem 0 0; color: #0d6efd; box-shadow: none; font-weight: 400;
}
html[data-theme="bs"]:not(.appmode) .win [class$="-tabs"] > button:hover:not(.on):not(:disabled), html[data-theme="bs"]:not(.appmode) .win [class*="-tabs "] > button:hover:not(.on):not(:disabled) { background: #f8f9fa; border-color: #e9ecef #e9ecef #dee2e6; }
html[data-theme="bs"]:not(.appmode) .win [class$="-tabs"] > button.on, html[data-theme="bs"]:not(.appmode) .win [class*="-tabs "] > button.on, html[data-theme="bs"]:not(.appmode) .win [role="tab"][aria-selected="true"] {
  background: #fff; color: #495057; border-color: #dee2e6 #dee2e6 #fff; font-weight: 500;
}
html[data-theme="bs"]:not(.appmode) .win [class$="-tabs"] > button:disabled { color: #adb5bd; }

/* Tableaux (table) */
html[data-theme="bs"]:not(.appmode) .win th { background: #f8f9fa; color: #212529; border-color: #dee2e6; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .win td { border-color: #dee2e6; }

/* Explorateur : barre d'adresse, arbre, éléments, détails */
html[data-theme="bs"]:not(.appmode) .ex-top { background: #fff; padding-top: 6px; border-bottom: 1px solid #dee2e6; margin: 0; }
html[data-theme="bs"]:not(.appmode) .explorer .ex-frame, html[data-theme="bs"]:not(.appmode) .win.max .explorer .ex-frame { border: 0; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .navbtn { background: #f8f9fa; border-color: #dee2e6; box-shadow: none; margin-right: 4px; }
html[data-theme="bs"]:not(.appmode) .navbtn svg path { stroke: #495057; }
html[data-theme="bs"]:not(.appmode) .navbtn:hover:not(:disabled) { background: #e9ecef; filter: none; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .navbtn:disabled { background: #fff; border-color: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .navbtn:disabled svg path { stroke: #ced4da; }
html[data-theme="bs"]:not(.appmode) .addr, html[data-theme="bs"]:not(.appmode) .ex-search { background: #fff; border-color: #ced4da; border-radius: .375rem; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .ex-search:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.25); }
html[data-theme="bs"]:not(.appmode) .crumb { border-radius: .25rem; }
html[data-theme="bs"]:not(.appmode) .crumb:hover { background: #e9ecef; border-color: transparent; }
html[data-theme="bs"]:not(.appmode) .ex-nav { background: #fff; border-right-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .ex-nav .item { border-radius: .375rem; padding-top: 3px; padding-bottom: 3px; }
html[data-theme="bs"]:not(.appmode) .ex-nav .item:hover { background: #f1f3f5; border-color: transparent; }
html[data-theme="bs"]:not(.appmode) .ex-nav .item.cur { background: #e7f1ff; border-color: transparent; color: #0a58ca; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .ex-item { border-radius: .5rem; }
html[data-theme="bs"]:not(.appmode) .ex-item:hover { background: #f1f3f5; border-color: transparent; }
html[data-theme="bs"]:not(.appmode) .ex-item.sel { background: #e7f1ff; border-color: #b6d4fe; }
html[data-theme="bs"]:not(.appmode) .ex-item .ico img { border-color: #dee2e6; border-radius: .25rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.08); }
html[data-theme="bs"]:not(.appmode) .ex-lib { border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .ex-lib h2 { color: #212529; font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .ex-details { background: #f8f9fa; border-top-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .ex-details span { color: #6c757d; }

/* Pages (profil, compétences, parcours, contact) : titres, cartes, badges */
html[data-theme="bs"]:not(.appmode) .page h2 { color: #212529; font-weight: 500; border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .card { border: 1px solid #dee2e6; border-radius: .5rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.04); }
html[data-theme="bs"]:not(.appmode) .card img { border-color: #dee2e6; border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .tags span { background: #e9ecef; border-color: transparent; border-radius: .375rem; color: #495057; box-shadow: none; }
html[data-theme="bs"]:not(.appmode) .quote { color: #495057; border-left-color: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .links-list a { border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .links-list a:hover { background: #f1f3f5; border-color: transparent; }
/* Fiche à image large et page R8 Gordini 1/4 (point 194) */
html[data-theme="bs"]:not(.appmode) .proj-cover { border-color: #dee2e6; border-radius: .5rem; }
html[data-theme="bs"]:not(.appmode) .r8-gal img { border-color: #dee2e6; border-radius: .375rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.08); }
html[data-theme="bs"]:not(.appmode) .r8-groupe h3 { color: #212529; }
html[data-theme="bs"]:not(.appmode) .r8-groupe h3 small { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .r8-liste { border-color: #dee2e6; border-radius: .5rem; overflow: hidden; }
html[data-theme="bs"]:not(.appmode) .r8-tete { background: #f8f9fa; border-bottom-color: #dee2e6; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .r8-el + .r8-el { border-top-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .r8-el > summary:hover { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .r8-tab th, html[data-theme="bs"]:not(.appmode) .r8-tab td { border-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .r8-total { background: #f8f9fa; border-left-color: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .domiom-quand { color: #0d6efd; }
html[data-theme="bs"]:not(.appmode) .domiom-histoire li { border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .domiom-captures img { border-color: #dee2e6; border-radius: .375rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.08); }
html[data-theme="bs"]:not(.appmode) .domiom-fig figcaption { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .domiom-galerie img { border-color: #dee2e6; border-radius: .375rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.08); }
html[data-theme="bs"]:not(.appmode) .domiom-galerie figcaption { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .domiom-schema { border-color: #dee2e6; border-radius: .5rem; background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .domiom-schema figcaption { color: #212529; }
html[data-theme="bs"]:not(.appmode) .domiom-nd { border-color: #0d6efd; border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .domiom-nd small, html[data-theme="bs"]:not(.appmode) .domiom-maison > span { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .domiom-maison { border-color: #adb5bd; border-radius: .5rem; }
html[data-theme="bs"]:not(.appmode) .domiom-fl { color: #0d6efd; }

/* Ruban de l'Office (Traitement de texte, Tableur, Présentation) */
html[data-theme="bs"]:not(.appmode) .of-tabs { border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .of-tab { border-radius: .375rem .375rem 0 0; }
html[data-theme="bs"]:not(.appmode) .of-tab.on { background: #f8f9fa; border-color: #dee2e6; }

/* Barres, onglets et en-têtes en dégradé des applications : aplats clairs (liste tirée de style.css) */
html[data-theme="bs"]:not(.appmode) .paint .ribbon { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .paint .tools button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .msn { background: #fff; }
html[data-theme="bs"]:not(.appmode) .msn-head { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-frame { background: #fff; }
/* Point 229 : le cadre de la photo garde la couleur du statut (l'aplat blanc ci-dessus l'effaçait) */
html[data-theme="bs"]:not(.appmode) .msn-frame.online { background: #198754; }
html[data-theme="bs"]:not(.appmode) .msn-frame.busy { background: #dc3545; }
html[data-theme="bs"]:not(.appmode) .msn-frame.away { background: #ffc107; }
html[data-theme="bs"]:not(.appmode) .msn-frame.offline { background: #adb5bd; }
html[data-theme="bs"]:not(.appmode) .msn-contact:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .msn-contact.sel { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .msn-foot { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-conv { background: #fff; }
html[data-theme="bs"]:not(.appmode) .msn-to { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-tb:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .msn-toast { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-call-bar { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-cb { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-file { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .msn-file.done { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .msn-file.failed { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .esq-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .esq-tb:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .esq-tb.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .esq-side { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .esq-mini { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ac-tools button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .pq-tools button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .pq-fbar button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pq-fbar button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .pq-head { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pq-t th { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .mv-h button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .bq-tabs { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .bq-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .bq-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bq-empty { background: #fff; }
html[data-theme="bs"]:not(.appmode) .bq-t th { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .bq-t th:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .tm-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tm-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .tm-t th { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tm-t th:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .mg-help, html[data-theme="bs"]:not(.appmode) .mg-more { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .mg-help:hover, html[data-theme="bs"]:not(.appmode) .mg-more:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ce-tabs { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ce-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ce-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ce-empty { background: #fff; }
html[data-theme="bs"]:not(.appmode) .ce-tile { background: #fff; }
html[data-theme="bs"]:not(.appmode) .ce-t th { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ce-ht th:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ce-card { background: #fff; }
html[data-theme="bs"]:not(.appmode) .ce-card:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ce-vlist { background: #fff; }
html[data-theme="bs"]:not(.appmode) .ce-vi:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ce-vi.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .ce-nophoto { background: #fff; }
html[data-theme="bs"]:not(.appmode) .oc .oc-bar button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .vl-pl-head { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .vl-bar { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .vl-b:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .vl-b:active { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .vl-b.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .pv-side { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pv-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pv-empty { background: #fff; }
html[data-theme="bs"]:not(.appmode) .tir-cambar button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tir-cambar button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .tir-cambar button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .tir-tab { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tir-tab:active { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bq-cm-it.hot { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .gt-tabs { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gt-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gt-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .gt-th { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gt-split { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gt-dtabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gt-grid th { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .rd-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .rd-tb { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .rd-tb:hover:not(:disabled) { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .rd-tb.rd-act { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .gl-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gl-tb { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gl-tb:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .gl-btn { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .gl-btn:hover:not(:disabled) { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .gl-fhead { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pd-tabs { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pd-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pd-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .pd-row:hover, html[data-theme="bs"]:not(.appmode) .pd-row:focus-visible { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .pd-card { background: #fff; }
html[data-theme="bs"]:not(.appmode) .tr-tool { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tr-bar { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tr-pick:hover, html[data-theme="bs"]:not(.appmode) .tr-pick:focus-visible { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .tj-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tj-seg button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tj-seg button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .tj-corr { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tj-sec > summary { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .tj-sec > summary:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .tj-mrow.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .dpe-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .dpe-sec > summary { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .dpe-sec > summary:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .dpe-seg button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .dpe-seg button.on { background: #e7f1ff; }
html[data-theme="bs"]:not(.appmode) .dpe-best { background: #fff; }
html[data-theme="bs"]:not(.appmode) .d3-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .d3-sec > summary { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .d3-sec > summary:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .sto-ban { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pt-tools { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pt-tb { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pt-tb:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .pt-more { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pt-btn { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .pt-btn:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .at-accueil { background: #fff; }
html[data-theme="bs"]:not(.appmode) .at-tabs { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .at-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .at-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .at-codev { background: #fff; }
html[data-theme="bs"]:not(.appmode) .at-catv { background: #fff; }
html[data-theme="bs"]:not(.appmode) .ct-tabs { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ct-tabs button { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ct-tabs button:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ct-fl { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ct-fl:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ct-row:hover, html[data-theme="bs"]:not(.appmode) .ct-row:focus-visible { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ct-vue { background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ct-vue:hover { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ptb-side { background: #f8f9fa; border-left-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .ptb-sec { border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .ptb-sec h3, html[data-theme="bs"]:not(.appmode) .ptb-det summary { color: #212529; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .ptb-main { background: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ptb-empty { color: #495057; }
html[data-theme="bs"]:not(.appmode) .ptb-empty small { color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .ptb-card { background: #fff; border-color: #dee2e6; border-radius: .5rem; }
html[data-theme="bs"]:not(.appmode) .ptb-card:hover { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.25); }
html[data-theme="bs"]:not(.appmode) .ptb-card.on { border-color: #fd7e14; box-shadow: 0 0 0 .2rem rgba(253,126,20,.45); }
html[data-theme="bs"]:not(.appmode) .ptb .cmdbar button.on { background: #e7f1ff; box-shadow: inset 0 0 0 1px #86b7fe; }

/* Retouches du 03/11/2026 : indicateurs de même hauteur sur une rangée ; barre latérale sans le bloc
   « SC / Steve COLINET / Tableau de bord » (la recherche passe tout en haut) ni les boutons de session */
html[data-theme="bs"]:not(.appmode) .bs-stats > .bs-col { display: flex; }
html[data-theme="bs"]:not(.appmode) .bs-stats .bs-stat { flex: 1 1 auto; height: auto; }
html[data-theme="bs"]:not(.appmode) #bs-side .bs-brand,
html[data-theme="bs"]:not(.appmode) #bs-side .bs-side-foot { display: none; }
html[data-theme="bs"]:not(.appmode) #bs-side .bs-search { height: var(--bs-top-h); display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid #dee2e6; }

/* Messagerie (point 203) : « Accepter » (.ok) en vert et « Refuser », « Raccrocher », « Annuler » (.no) en rouge,
   comme les boutons Bootstrap. L'aplat gris de .msn-cb (plus haut) recouvrait leur dégradé de style.css et laissait
   leur texte blanc sur un fond presque blanc. Les autres boutons (invitations, micro, caméra) restent gris. */
html[data-theme="bs"]:not(.appmode) .msn-cb.ok { background: #198754; border-color: #198754; color: #fff; }
html[data-theme="bs"]:not(.appmode) .msn-cb.ok:hover { background: #157347; border-color: #146c43; filter: none; }
html[data-theme="bs"]:not(.appmode) .msn-cb.no { background: #dc3545; border-color: #dc3545; color: #fff; }
html[data-theme="bs"]:not(.appmode) .msn-cb.no:hover { background: #bb2d3b; border-color: #b02a37; filter: none; }
html[data-theme="bs"]:not(.appmode) a.msn-cb.ok, html[data-theme="bs"]:not(.appmode) a.msn-cb.ok:hover { color: #fff; text-decoration: none; }

/* Point 221 : « À propos de moi » réunit profil, citation, En résumé, Compétences et Parcours ; Contact reste
   à droite et suit le défilement (la carte de gauche est bien plus haute) ; Compétences et Parcours côte à côte
   quand la carte est assez large, l'une sous l'autre sinon. L'écran de démarrage n'est jamais montré (os.js) :
   pendant le chargement, il reste un fond uni, sans le cercle qui tourne. */
html[data-theme="bs"]:not(.appmode) #boot > * { display: none; }
html[data-theme="bs"]:not(.appmode) .bs-sticky { position: sticky; top: 0; }
html[data-theme="bs"]:not(.appmode) .bs-about-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e9ecef; }
html[data-theme="bs"]:not(.appmode) .bs-about-part { min-width: 0; scroll-margin-top: 12px; }
html[data-theme="bs"]:not(.appmode) .bs-about-part .bs-subtitle { margin-bottom: 2px; }
html[data-theme="bs"]:not(.appmode) .bs-part-sub { margin: 0 0 12px; font-size: 13px; }
html[data-theme="bs"]:not(.appmode) .bs-quote-end { margin: 18px 0 0; }
@media (max-width: 1100px) {
  html[data-theme="bs"]:not(.appmode) .bs-sticky { position: static; }
}
@media (max-width: 699px) {
  html[data-theme="bs"]:not(.appmode) .bs-about-parts { grid-template-columns: minmax(0, 1fr); }
}
