/* ==========================================================================
   Thème Windows 7 (Aero) — steve-colinet.fr
   ========================================================================== */

:root {
  --font: "Segoe UI", "Segoe UI Web", Tahoma, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --taskbar-h: 40px;
  --sel-bg: linear-gradient(#f2f8fe, #dcebfc);
  --sel-border: #7da2ce;
  --hover-bg: linear-gradient(#fafbfd, #ebf3fd);
  --hover-border: #b8d6fb;
  --text: #1e1e1e;
  --link: #0066cc;
  --aero: rgba(110, 160, 210, .55);
  --aero-inactive: rgba(180, 200, 222, .55);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  font: 12px/1.4 var(--font); color: var(--text);
  background: #000;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--link); }

/* --------------------------------------------------------------------------
   Écrans : démarrage, ouverture de session, arrêt
   -------------------------------------------------------------------------- */
.screen {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: #fff; user-select: none;
}
#boot { background: #000; }

#logon, #shutdown {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(120, 200, 255, .55), transparent 55%),
    radial-gradient(ellipse at 50% 40%, #1f66b8 0%, #0d3c7c 55%, #062454 100%);
}
#logon::before, #shutdown::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 22% at 70% 78%, rgba(255,255,255,.12), transparent 70%),
    radial-gradient(ellipse 50% 16% at 25% 20%, rgba(255,255,255,.08), transparent 70%);
}
.logon-box { display: flex; flex-direction: column; align-items: center; position: relative; }
.logon-user {
  display: flex; flex-direction: column; align-items: center;
  border: 0; background: none; cursor: pointer; padding: 10px; border-radius: 6px;
}
.logon-user:hover .avatar-frame { box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 0 26px rgba(160,220,255,.9); }
.logon-name { font-size: 26px; margin-top: 14px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.logon-hint { margin-top: 10px; color: rgba(255,255,255,.75); }
.logon-welcome { display: flex; align-items: center; gap: 14px; font-size: 28px; color: #fff; margin-top: 26px; text-shadow: 0 1px 6px rgba(0,0,0,.6); position: relative; }

.avatar-frame {
  display: block; width: 128px; height: 128px; padding: 8px; border-radius: 10px;
  background: linear-gradient(#f6f9fc, #c2d3e6);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 1px 0 #fff, 0 6px 18px rgba(0,0,0,.4);
  transition: box-shadow .2s;
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; border: 1px solid rgba(0,0,0,.4); }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: #9fd6ff; border-right-color: #57aef0;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#off { background: #000; cursor: pointer; }
.off-text { color: #555; font-size: 13px; }

/* --------------------------------------------------------------------------
   Bureau
   -------------------------------------------------------------------------- */
#desktop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: hidden;
  background: var(--wallpaper);
  background-size: cover; background-position: center;
}
[data-wall="harmonie"] {
  --wallpaper:
    radial-gradient(ellipse 45% 35% at 50% 45%, rgba(255,255,255,.55) 0%, rgba(140,210,255,.35) 25%, transparent 70%),
    radial-gradient(ellipse 120% 30% at 30% 85%, rgba(120,200,255,.25), transparent 60%),
    conic-gradient(from 200deg at 50% 45%, #0e4f9e, #1b7ad0, #0b3c80, #1567b8, #0a356f, #1a74c6, #0e4f9e),
    #0d4a94;
}
[data-wall="aube"] {
  --wallpaper:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,200,120,.75), transparent 70%),
    linear-gradient(#0e1d45 0%, #3c3f86 45%, #c36b6b 80%, #f0a868 100%);
}
[data-wall="nature"] {
  --wallpaper:
    radial-gradient(ellipse 50% 30% at 70% 25%, rgba(255,255,220,.6), transparent 70%),
    linear-gradient(#5aa8e8 0%, #a6d6f5 45%, #6fae3a 46%, #3d7d22 75%, #23521a 100%);
}
[data-wall="nuit"] {
  --wallpaper:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,.6) 0 1px, transparent 2px),
    radial-gradient(ellipse 80% 50% at 50% 110%, #3a2a6a, transparent 70%),
    linear-gradient(#020617, #0b1640 60%, #1d1850);
}
[data-wall="graphite"] {
  --wallpaper:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(135deg, #2b2f36, #4a525e 50%, #22262c);
}
#desktop::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 46%, transparent 52%, rgba(255,255,255,.05) 60%, transparent 61%);
}
#desktop[data-wall]:not([data-wall="harmonie"])::after { display: none; }

/* Icônes du bureau */
#icons {
  position: absolute; left: 0; top: 0; bottom: var(--taskbar-h);
  padding: 6px 2px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start;
  z-index: 1;
}
/* Icônes placées à droite ou au milieu du bureau */
#icons-right {
  position: absolute; right: 0; top: 0; bottom: var(--taskbar-h);
  padding: 6px 2px; display: flex; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start;
  z-index: 1;
}
#icons-near { position: absolute; left: 0; top: 0; right: 0; bottom: var(--taskbar-h); pointer-events: none; z-index: 1; }
#icons-near .dicon { position: absolute; margin: 0; pointer-events: auto; }
#icons-center { position: absolute; left: 50%; top: calc((100% - var(--taskbar-h)) / 2); transform: translate(-50%, -50%); z-index: 1; }
@media (max-width: 700px) {
  #icons-center { left: auto; top: auto; right: 2px; bottom: calc(var(--taskbar-h) + 6px); transform: none; }
}
.dicon {
  width: 78px; margin: 2px; padding: 3px 2px 4px; border: 1px solid transparent; border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; cursor: default; user-select: none;
  background: none; position: relative;
}
.dicon .ico { width: 48px; height: 48px; position: relative; }
.dicon .ico svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.dicon .lbl {
  margin-top: 3px; color: #fff; text-align: center; line-height: 1.25; font-size: 12px;
  text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 1px #000;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word;
}
.dicon:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.dicon.sel { background: rgba(140,190,255,.35); border-color: rgba(170,210,255,.6); }
.dicon.sel .lbl { -webkit-line-clamp: unset; }
.shortcut-arrow { position: absolute; left: -2px; bottom: -2px; width: 16px; height: 16px; }
.shortcut-arrow svg { filter: none !important; }

/* --------------------------------------------------------------------------
   Barre des tâches
   -------------------------------------------------------------------------- */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 5000;
  display: flex; align-items: stretch;
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.08) 45%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.18)),
    rgba(18, 38, 66, .62);
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-top: 1px solid rgba(0,0,0,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  user-select: none;
}
#orb {
  width: 54px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
}
#orb::before {
  content: ""; width: 38px; height: 38px; border-radius: 50%; margin-top: -2px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    radial-gradient(circle at 50% 75%, #5ec3ff 0%, #1d6fc4 45%, #0b3a7a 75%, #06224a 100%);
  box-shadow: 0 0 0 1px rgba(0,20,60,.8), inset 0 0 0 1px rgba(255,255,255,.25), 0 1px 3px rgba(0,0,0,.5);
  transition: box-shadow .2s, filter .2s;
}
#orb:hover::before, #orb.active::before {
  filter: brightness(1.2);
  box-shadow: 0 0 0 1px rgba(0,20,60,.8), inset 0 0 0 1px rgba(255,255,255,.4), 0 0 14px 3px rgba(120,200,255,.85);
}

#tasks { flex: 1; display: flex; align-items: stretch; padding: 0 2px; gap: 2px; overflow: hidden; min-width: 0; }
.task {
  width: 60px; flex: none; border: 1px solid transparent; border-radius: 3px; margin: 1px 0;
  background: none; position: relative; cursor: default; display: flex; align-items: center; justify-content: center;
}
.task .ico { width: 30px; height: 30px; }
.task .ico svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.task.running {
  border-color: rgba(0,0,0,.45);
  background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.06) 50%, rgba(255,255,255,.02) 51%, rgba(255,255,255,.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.task.multi::after {
  content: ""; position: absolute; right: -4px; top: 3px; bottom: 3px; width: 3px; border-radius: 0 3px 3px 0;
  border: 1px solid rgba(0,0,0,.4); border-left: 0; background: rgba(255,255,255,.15);
}
.task.active {
  background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.18) 50%, rgba(255,255,255,.1) 51%, rgba(255,255,255,.3));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 0 0 12px rgba(160,210,255,.5);
}
.task:hover {
  border-color: rgba(0,0,0,.5);
  background: radial-gradient(ellipse 80% 70% at 50% 100%, var(--glow, rgba(110,190,255,.7)), transparent 75%),
              linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 51%, rgba(255,255,255,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.task.flash { animation: flash 0.5s 4 alternate; }
@keyframes flash { to { background: rgba(255,160,60,.75); } }

#tray { display: flex; align-items: center; gap: 2px; padding: 0 4px 0 8px; color: #fff; flex: none; }
.tray-ico { width: 24px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.tray-ico:hover, #clock:hover { background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
#clock {
  border: 0; background: none; color: #fff; padding: 0 8px; height: 36px; border-radius: 2px; cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3;
  text-shadow: 0 0 4px rgba(0,0,0,.5);
}
#showdesk {
  width: 15px; flex: none; border: 0; border-left: 1px solid rgba(0,0,0,.4);
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  box-shadow: inset 1px 0 0 rgba(255,255,255,.3); cursor: default;
}
#showdesk:hover { background: linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,.2)); }

.tb-popup {
  position: absolute; z-index: 6000; bottom: calc(var(--taskbar-h) + 4px);
  background: rgba(30, 55, 90, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 4px 16px rgba(0,0,0,.5);
  border-radius: 6px; padding: 6px; display: flex; gap: 6px; color: #fff;
}
.tb-thumb {
  width: 170px; border: 1px solid transparent; border-radius: 4px; padding: 4px 6px 6px; background: none; color: #fff; text-align: left;
}
.tb-thumb:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.tb-thumb .t { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.tb-thumb .t svg { width: 16px; height: 16px; flex: none; }
.tb-thumb .p { height: 90px; border: 1px solid rgba(0,0,0,.5); background: #fff center/contain no-repeat; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tb-thumb .p svg { width: 46px; height: 46px; }
.tb-tip { padding: 4px 9px; font-size: 12px; white-space: nowrap; }

/* Calendrier */
#calendar {
  position: absolute; right: 6px; bottom: calc(var(--taskbar-h) + 6px); z-index: 6000; width: 250px;
  background: linear-gradient(#f9fbfd, #e7eef6); border: 1px solid #8ea4bd; border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.45); padding: 12px; user-select: none;
}
.cal-now { font-size: 13px; color: #1e3287; padding-bottom: 8px; border-bottom: 1px solid #cfd9e5; margin-bottom: 8px; text-align: center; }
.cal-now b { display: block; font-size: 22px; font-weight: 400; color: #333; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-head button { border: 0; background: none; width: 24px; height: 22px; border-radius: 2px; color: #1e3287; }
.cal-head button:hover { background: var(--hover-bg); box-shadow: inset 0 0 0 1px var(--hover-border); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.cal-grid span { padding: 4px 0; border: 1px solid transparent; }
.cal-grid .dow { color: #666; font-size: 11px; }
.cal-grid .other { color: #aaa; }
.cal-grid .today { border-color: #3399ff; background: #dcebfc; color: #000; }

/* --------------------------------------------------------------------------
   Menu Démarrer
   -------------------------------------------------------------------------- */
#startmenu {
  position: absolute; left: 0; bottom: var(--taskbar-h); z-index: 5500;
  width: 400px; height: 520px; max-height: calc(100% - var(--taskbar-h) - 4px);
  display: flex; padding: 8px 8px 8px 8px; gap: 0;
  background: linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.05) 30%), rgba(28, 54, 92, .72);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(0,0,0,.65); border-bottom: 0; border-radius: 7px 7px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 4px -2px 18px rgba(0,0,0,.45);
  user-select: none; animation: smIn .14s ease-out;
}
@keyframes smIn { from { opacity: 0; transform: translateY(8px); } }
.sm-left {
  flex: 1; min-width: 0; background: #fff; border: 1px solid rgba(0,0,0,.45); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5); display: flex; flex-direction: column; margin-top: 26px;
}
.sm-left ul { list-style: none; margin: 0; padding: 5px; flex: 1; overflow-y: auto; }
.sm-item {
  display: flex; align-items: center; gap: 8px; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px; cursor: default;
}
.sm-item svg { width: 32px; height: 32px; flex: none; }
.sm-item small { display: block; color: #6d6d6d; font-size: 11px; }
#sm-all .sm-item svg { width: 16px; height: 16px; }
#sm-all .sm-item { padding: 2px 6px; }
.sm-item:hover, .sm-item.kbd { background: var(--sel-bg); border-color: var(--sel-border); }
.sm-sep { height: 1px; margin: 5px 4px; background: linear-gradient(90deg, transparent, #d5dce6 20%, #d5dce6 80%, transparent); }
.sm-folder > .sm-label { padding-left: 4px; }
.sm-sub { padding-left: 16px !important; }
.sm-empty { color: #666; padding: 8px; font-style: italic; }
.sm-allprog {
  border: 0; border-top: 1px solid #d5dce6; margin: 0 5px; padding: 7px 6px; text-align: left; background: none;
  display: flex; align-items: center; gap: 8px; border-radius: 3px; cursor: default;
}
.sm-allprog:hover { background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-border); }
.sm-allprog .arrow { font-size: 9px; color: #333; }
.sm-search { padding: 6px 8px; background: linear-gradient(#dce7f4, #c9d8ea); border-top: 1px solid #b6c6da; border-radius: 0 0 3px 3px; }
.sm-search input {
  width: 100%; height: 26px; border: 1px solid #8ea4bd; border-radius: 2px; padding: 0 8px;
  font: italic 12px var(--font); outline: 0;
}
.sm-search input:focus { font-style: normal; border-color: #3d7bc6; }

.sm-right { width: 150px; flex: none; display: flex; flex-direction: column; padding: 0 0 0 6px; position: relative; color: #fff; }
.sm-avatar { width: 62px; height: 62px; padding: 4px; border-radius: 6px; margin: -30px auto 10px; position: relative; }
#sm-links { list-style: none; margin: 0; padding: 0; flex: 1; }
#sm-links li {
  padding: 5px 9px; border: 1px solid transparent; border-radius: 3px; cursor: default; white-space: nowrap;
  text-shadow: 0 0 6px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.6);
}
#sm-links li:hover {
  border-color: rgba(0,0,0,.6);
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 51%, rgba(255,255,255,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
#sm-links .sep { height: 1px; padding: 0; margin: 4px 6px; background: rgba(255,255,255,.2); border: 0; border-bottom: 1px solid rgba(0,0,0,.25); }
.sm-shutdown { display: flex; margin: 8px 0 2px 6px; position: relative; }
.sm-shutdown button {
  border: 1px solid rgba(0,0,0,.65); color: #fff; padding: 4px 12px; cursor: default;
  background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.1) 50%, rgba(0,0,0,.08) 51%, rgba(255,255,255,.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); text-shadow: 0 0 3px #000;
}
#sm-off { border-radius: 3px 0 0 3px; }
#sm-off-more { border-radius: 0 3px 3px 0; border-left: 0; padding: 4px 6px; }
.sm-shutdown button:hover { background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.2) 50%, rgba(0,0,0,.02) 51%, rgba(255,255,255,.3)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 0 8px rgba(140,200,255,.6); }
#sm-off-menu { position: absolute; left: 100%; bottom: 0; margin-left: 4px; }

/* --------------------------------------------------------------------------
   Menus contextuels / déroulants
   -------------------------------------------------------------------------- */
.ctx {
  position: absolute; z-index: 7000; list-style: none; margin: 0; padding: 2px;
  min-width: 180px; color: #000;
  background: #f0f0f0 linear-gradient(90deg, #f1f1f1 26px, #e2e3e3 26px, #e2e3e3 27px, #fff 27px, #fff 28px, #f0f0f0 28px);
  border: 1px solid #979797; box-shadow: 2px 3px 5px rgba(0,0,0,.35);
  user-select: none; animation: fadeIn .1s;
}
@keyframes fadeIn { from { opacity: 0; } }
.ctx li { padding: 3px 24px 3px 32px; border: 1px solid transparent; border-radius: 3px; white-space: nowrap; position: relative; cursor: default; }
.ctx li:hover:not(.sep):not(.disabled) { background: linear-gradient(#fafbfd, #e8f1fc); border-color: #aecff7; }
.ctx li.sep { height: 1px; padding: 0; margin: 3px 2px 3px 30px; background: #e0e0e0; border: 0; border-bottom: 1px solid #fff; }
.ctx li.disabled { color: #8d8d8d; }
.ctx li.bold { font-weight: 600; }
.ctx li.checked::before { content: "✓"; position: absolute; left: 9px; }
.ctx li .key { position: absolute; right: 10px; color: #6d6d6d; }
.ctx li.sub::after { content: "▸"; position: absolute; right: 8px; }
.ctx li > .ctx { display: none; left: 100%; top: -3px; }
.ctx li.sub:hover > .ctx { display: block; }
.ctx.scroll { overflow-y: auto; }

/* --------------------------------------------------------------------------
   Fenêtres
   -------------------------------------------------------------------------- */
#windows { position: absolute; top: 0; right: 0; bottom: var(--taskbar-h); left: 0; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; z-index: 2; }
.win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  min-width: 200px; min-height: 120px; padding: 0 7px 7px;
  border-radius: 7px 7px 4px 4px;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255,255,255,.18) 30%, transparent 31%, transparent 60%, rgba(255,255,255,.12) 70%, transparent 71%),
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.1) 30px),
    var(--aero);
  backdrop-filter: blur(9px) saturate(1.3); -webkit-backdrop-filter: blur(9px) saturate(1.3);
  border: 1px solid rgba(0,0,0,.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 6px 26px rgba(0,0,0,.55);
  animation: winOpen .16s ease-out;
}
@keyframes winOpen { from { opacity: 0; transform: scale(.94); } }
.win.closing { animation: winClose .14s ease-in forwards; }
@keyframes winClose { to { opacity: 0; transform: scale(.94); } }
.win.minimizing { transition: transform .2s ease-in, opacity .2s ease-in; opacity: 0; transform: translateY(60%) scale(.3); pointer-events: none; }
.win.inactive { background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.15) 30px), var(--aero-inactive); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 3px 12px rgba(0,0,0,.35); }
.win.inactive .titlebar .title { color: #444; }
.win.max { border-radius: 0; padding: 0 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
.win.max .titlebar { height: 23px; }
.win.max .resize { display: none; }
.win.anim { transition: left .18s, top .18s, width .18s, height .18s; }

.titlebar { height: 30px; display: flex; align-items: center; flex: none; user-select: none; padding-left: 1px; touch-action: none; }
.titlebar .ticon { width: 16px; height: 16px; margin-right: 6px; flex: none; }
.titlebar .ticon svg { width: 100%; height: 100%; display: block; }
.titlebar .title {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000; font-size: 12px;
  text-shadow: 0 0 10px #fff, 0 0 8px #fff, 0 0 6px #fff, 0 0 4px #fff;
}
.caption { display: flex; align-self: flex-start; margin-top: -1px; flex: none; margin-left: 8px; }
.caption button {
  height: 19px; width: 26px; border: 1px solid rgba(0,0,0,.55); border-top: 0; padding: 0; margin-left: -1px;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.25) 50%, rgba(220,230,245,.05) 51%, rgba(255,255,255,.3));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.caption button svg { width: 10px; height: 10px; filter: drop-shadow(0 0 1px rgba(0,0,0,.9)); }
.caption .bmin { border-bottom-left-radius: 5px; }
.caption .bclose { width: 45px; border-bottom-right-radius: 5px;
  background: linear-gradient(#e8a493, #d77b65 50%, #c6462b 51%, #d5745c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.caption .bclose:only-child { border-bottom-left-radius: 5px; }
.win.inactive .caption button:not(:hover) { background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.15)); }
.caption button:hover { background: linear-gradient(#cfe7fb, #9fccf2 50%, #4a9ce8 51%, #7ec4f7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 8px rgba(100,180,255,.9); }
.caption .bclose:hover { background: linear-gradient(#f4b7a6, #e58a6f 50%, #d03513 51%, #e8664a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 10px rgba(255,90,50,.8); }
.caption button:active { filter: brightness(.85); }
.caption button:disabled { opacity: .45; }

.client {
  flex: 1; min-height: 0; background: #fff; border: 1px solid rgba(0,0,0,.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4); display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.win.max .client { border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; }
.client.flat { background: #f0f0f0; }
.client .shield { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 50; display: none; }
.win.dragging .client .shield, .win.blocked .client .shield, .win.inactive .client .shield.iframe-shield,
#windows.busy .client .shield { display: block; }

.resize { position: absolute; z-index: 3; touch-action: none; }
.resize.n { top: -4px; left: 6px; right: 6px; height: 7px; cursor: n-resize; }
.resize.s { bottom: -4px; left: 6px; right: 6px; height: 8px; cursor: s-resize; }
.resize.e { right: -4px; top: 6px; bottom: 6px; width: 8px; cursor: e-resize; }
.resize.w { left: -4px; top: 6px; bottom: 6px; width: 8px; cursor: w-resize; }
.resize.ne { top: -4px; right: -4px; width: 12px; height: 12px; cursor: ne-resize; }
.resize.nw { top: -4px; left: -4px; width: 12px; height: 12px; cursor: nw-resize; }
.resize.se { bottom: -4px; right: -4px; width: 14px; height: 14px; cursor: se-resize; }
.resize.sw { bottom: -4px; left: -4px; width: 12px; height: 12px; cursor: sw-resize; }
.win.fixed .resize { display: none; }

/* Prévisualisation de l'ancrage Aero Snap */
#snap-preview {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 6px;
  background: rgba(190, 220, 255, .28); border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px rgba(80,140,220,.6), 0 0 20px rgba(140,200,255,.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: all .15s;
}

/* Barre de menus classique */
.menubar { display: flex; background: linear-gradient(#fdfeff, #e6eef8); border-bottom: 1px solid #b6bcc6; flex: none; user-select: none; padding: 0 2px; }
.menubar.plain { background: #f5f6f7; border-bottom-color: #d7dbe0; }
.menubar > span { padding: 2px 7px; border: 1px solid transparent; border-radius: 2px; margin: 1px 0; cursor: default; }
.menubar > span:hover, .menubar > span.open { background: linear-gradient(#fafbfd, #e3eefb); border-color: #a8c8ec; }

.statusbar { display: flex; flex: none; background: #f0f0f0; border-top: 1px solid #d7d7d7; padding: 3px 8px; color: #333; gap: 0; user-select: none; }
.statusbar span { padding: 0 10px; border-left: 1px solid #d0d0d0; }
.statusbar span:first-child { flex: 1; border: 0; padding-left: 0; }

/* Boutons Windows 7 */
.btn7 {
  min-width: 75px; height: 23px; padding: 0 12px; border: 1px solid #707070; border-radius: 3px; cursor: default;
  background: linear-gradient(#f2f2f2, #ebebeb 50%, #dddddd 51%, #cfcfcf);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.btn7:hover { border-color: #3c7fb1; background: linear-gradient(#eaf6fd, #d9f0fc 50%, #bee6fd 51%, #a7d9f5); }
.btn7:active { border-color: #2c628b; background: linear-gradient(#e5f4fc, #c4e5f6 50%, #98d1ef 51%, #68b3db); box-shadow: inset 1px 1px 2px rgba(0,0,0,.25); }
.btn7:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn7.default { border-color: #3399ff; box-shadow: inset 0 0 0 1px #98d6ff; }
.btn7:disabled { color: #8d8d8d; border-color: #adb2b5; background: #f4f4f4; box-shadow: none; }

input.txt7, select.sel7, textarea.txt7 {
  font: 12px var(--font); border: 1px solid #abadb3; border-top-color: #8e8f8f; padding: 3px 5px; outline: 0; border-radius: 0; background: #fff;
}
input.txt7:hover, input.txt7:focus, select.sel7:focus { border-color: #5794bf; border-top-color: #3d7bad; }

/* Boîtes de dialogue */
.dialog-body { display: flex; gap: 14px; padding: 20px 20px 16px; background: #fff; align-items: flex-start; }
.dialog-body .dico { width: 32px; height: 32px; flex: none; }
.dialog-body .dico svg { width: 100%; height: 100%; }
.dialog-body .dmsg { font-size: 12px; padding-top: 6px; }
.dialog-body .dmsg .main { color: #003399; font-size: 15px; margin-bottom: 8px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 12px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }

/* Barre d'outils façon Explorateur */
.cmdbar {
  display: flex; align-items: center; gap: 2px; padding: 2px 6px; height: 32px; flex: none; user-select: none;
  background: linear-gradient(#f5f9fd, #e5eef8 50%, #d9e5f3 51%, #e3edf9); border-bottom: 1px solid #a0afc3;
}
.cmdbar button {
  border: 1px solid transparent; background: none; height: 24px; padding: 0 8px; border-radius: 3px; color: #1e395b; cursor: default;
  display: flex; align-items: center; gap: 4px;
}
.cmdbar button:hover { border-color: rgba(0,0,0,.25); background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.5) 50%, rgba(255,255,255,.2) 51%, rgba(255,255,255,.5)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.cmdbar button:disabled { opacity: .45; }
.cmdbar .sp { flex: 1; }

/* --------------------------------------------------------------------------
   Explorateur Windows
   -------------------------------------------------------------------------- */
.ex-top {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px; flex: none;
  background: transparent; margin: -1px -1px 0;
}
.win .client.explorer { background: transparent; border: 0; box-shadow: none; }
.explorer .ex-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.win.max .explorer .ex-frame { border-left: 0; border-right: 0; border-bottom: 0; }
.navbtns { display: flex; align-items: center; }
.navbtn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #2c4f80; padding: 0; cursor: default; margin-right: -2px;
  background: radial-gradient(circle at 50% 30%, #bfe1ff, #3b88d6 55%, #1c4f99);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; position: relative;
}
.navbtn svg { width: 12px; height: 12px; }
.navbtn:hover:not(:disabled) { filter: brightness(1.15); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 0 8px rgba(120,200,255,.9); }
.navbtn:disabled { background: radial-gradient(circle at 50% 30%, #f3f6f9, #c4cfdc 55%, #9fafc2); border-color: #7d8ea4; }
.addr {
  flex: 1; height: 24px; display: flex; align-items: center; background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.45); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); min-width: 0; overflow: hidden;
}
.addr .aico { width: 16px; height: 16px; margin: 0 4px 0 5px; flex: none; }
.addr .aico svg { width: 100%; height: 100%; display: block; }
.crumb { border: 1px solid transparent; background: none; padding: 1px 4px; height: 20px; cursor: default; white-space: nowrap; border-radius: 2px; }
.crumb:hover { border-color: #a8c8ec; background: var(--hover-bg); }
.crumb-sep { color: #555; font-size: 9px; padding: 0 2px; }
.ex-search {
  width: 190px; height: 24px; border: 1px solid rgba(0,0,0,.45); border-radius: 2px; padding: 0 6px; font: italic 12px var(--font);
  background: rgba(255,255,255,.88); outline: 0;
}
.ex-search:focus { font-style: normal; background: #fff; }
.ex-main { flex: 1; min-height: 0; display: flex; }
.ex-nav {
  width: 180px; flex: none; overflow-y: auto; padding: 6px 0; border-right: 1px solid #d5dfe5; user-select: none;
  background: linear-gradient(90deg, #fff, #f6f9fd);
}
.ex-nav .grp { margin-bottom: 10px; }
.ex-nav .item { display: flex; align-items: center; gap: 6px; padding: 2px 6px 2px 14px; margin: 0 2px; border: 1px solid transparent; border-radius: 2px; cursor: default; white-space: nowrap; }
.ex-nav .item.sub { padding-left: 30px; }
.ex-nav .item.head { padding-left: 4px; }
.ex-nav .item svg { width: 16px; height: 16px; flex: none; }
.ex-nav .item:hover { background: var(--hover-bg); border-color: var(--hover-border); }
.ex-nav .item.cur { background: var(--sel-bg); border-color: var(--sel-border); }
.ex-content { flex: 1; overflow: auto; padding: 8px; align-content: flex-start; display: flex; flex-wrap: wrap; gap: 2px; user-select: none; }
.ex-lib { width: 100%; padding: 6px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid #e5ebf2; }
.ex-lib h2 { font-size: 16px; font-weight: 400; color: #1e3287; margin: 0; }
.ex-lib div { color: #555; }
.ex-item {
  width: 100px; padding: 4px 2px; border: 1px solid transparent; border-radius: 3px; display: flex; flex-direction: column;
  align-items: center; text-align: center; cursor: default; position: relative;
}
.ex-item .ico { width: 48px; height: 48px; position: relative; display: flex; align-items: center; justify-content: center; }
.ex-item .ico svg { width: 100%; height: 100%; }
.ex-item .ico img { max-width: 64px; max-height: 48px; border: 1px solid #aaa; box-shadow: 1px 1px 2px rgba(0,0,0,.25); background: #fff; }
.ex-item .lbl { margin-top: 3px; word-break: break-word; line-height: 1.25; }
/* Point 236 : année du projet, « Nom (année) » ; la parenthèse ne se coupe pas, le nom passe à la ligne s'il le faut */
.proj-annee { white-space: nowrap; }
.ex-item:hover { background: var(--hover-bg); border-color: var(--hover-border); }
.ex-item.sel { background: var(--sel-bg); border-color: var(--sel-border); }
.ex-item.tile { width: 240px; flex-direction: row; text-align: left; gap: 8px; padding: 6px; }
.ex-item.tile .lbl { margin: 0; }
.ex-item.tile small { display: block; color: #6d6d6d; }
.ex-item.tile .bar { display: block; width: 140px; height: 13px; border: 1px solid #a3a3a3; background: #e6e6e6; margin: 3px 0; position: relative; }
.ex-item.tile .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#5fb3f0, #2b7fd0); }
.ex-content.list .ex-item:not(.tile) { width: 220px; flex-direction: row; text-align: left; gap: 6px; padding: 2px 4px; }
.ex-content.list .ex-item:not(.tile) .ico { width: 20px; height: 20px; }
.ex-content.list .ex-item:not(.tile) .ico img { max-width: 20px; max-height: 20px; }
.ex-content.list .ex-item:not(.tile) .lbl { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-empty { color: #6d6d6d; padding: 20px; width: 100%; text-align: center; }
.ex-details {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 58px; user-select: none;
  background: linear-gradient(#f6f9fd, #e3ecf7); border-top: 1px solid #c6d3e3;
}
.ex-details .ico { width: 40px; height: 40px; flex: none; }
.ex-details .ico svg { width: 100%; height: 100%; }
.ex-details b { font-weight: 400; font-size: 13px; display: block; }
.ex-details span { color: #5a6779; }

/* --------------------------------------------------------------------------
   Pages de contenu (profil, compétences, parcours…)
   -------------------------------------------------------------------------- */
.page { flex: 1; overflow: auto; padding: 0; background: #fff; }
.page-head {
  display: flex; align-items: center; gap: 16px; padding: 18px 24px;
  background: linear-gradient(#fdfeff, #e9f1fa); border-bottom: 1px solid #d1dce8;
}
.page-head .ico { width: 48px; height: 48px; flex: none; }
.page-head .ico svg { width: 100%; height: 100%; }
.page-head h1 { margin: 0; font-size: 20px; font-weight: 400; color: #1e3287; }
.page-head p { margin: 2px 0 0; color: #555; }
.page-body { padding: 18px 24px 26px; }
.page h2 { font-size: 15px; font-weight: 400; color: #1e3287; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e3e9f0; }
.page h2:first-child { margin-top: 0; }
.quote {
  margin: 18px 0 0; padding: 12px 16px; background: #f4f8fc; border-left: 3px solid #3d7bd1; color: #333; font-style: italic;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card {
  display: flex; gap: 10px; padding: 10px; border: 1px solid #d9e2ec; border-radius: 4px; background: linear-gradient(#fff, #f7fafd);
}
.card img { width: 64px; height: 64px; object-fit: cover; border: 1px solid #b7c3d0; flex: none; }
.card b { display: block; font-size: 13px; font-weight: 600; color: #1e1e1e; }
.card span { color: #555; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tags span {
  padding: 2px 8px; border: 1px solid #c3d4e7; border-radius: 10px; background: linear-gradient(#fafcff, #e8f0fa); color: #1e395b; font-size: 11px;
}
.skill-grp { margin-bottom: 14px; }
.skill-grp h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.skill-grp h3 svg { width: 22px; height: 22px; }

.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 32px; top: 4px; bottom: 4px; width: 2px; background: #d5e0ec; }
.tl-item { display: flex; gap: 14px; margin-bottom: 16px; position: relative; }
.tl-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px #b7c3d0, 0 1px 3px rgba(0,0,0,.2); flex: none; position: relative; left: -20px; margin-right: -20px; background: #fff; }
.tl-item .tl-ico { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #b7c3d0, 0 1px 3px rgba(0,0,0,.2); flex: none; position: relative; left: -20px; margin-right: -20px; background: linear-gradient(#fdfeff, #e3ecf7); display: flex; align-items: center; justify-content: center; }
.tl-item .tl-ico svg { width: 32px; height: 32px; }
.tl-item .when { color: #3d7bd1; font-weight: 600; }
.tl-item b { display: block; font-size: 13px; margin: 1px 0 2px; }
.tl-item p { margin: 0; color: #444; }

.links-list { display: flex; flex-direction: column; gap: 8px; }
.links-list a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; color: #1e395b;
}
.links-list a:hover { background: var(--hover-bg); border-color: var(--hover-border); }
.links-list a .badge { width: 28px; height: 28px; border-radius: 4px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.links-list a small { display: block; color: #6d6d6d; }

/* --------------------------------------------------------------------------
   Fiche de projet avec une image large au-dessus du texte (cover) et page
   R8 Gordini 1/4 (point 194, fenêtre r8 de apps.js, données os/r8.json)
   -------------------------------------------------------------------------- */
.proj-cover { margin: 0 0 14px; padding: 8px; border: 1px solid #d9e2ec; border-radius: 4px; background: #fff; user-select: none; -webkit-user-select: none; }
.proj-cover img { display: block; max-width: 100%; max-height: 300px; max-height: min(300px, 45vh); margin: 0 auto; }
.r8 { margin-top: 16px; }
.r8-info { margin: 0 0 10px; color: #444; }
.r8-gal { display: flex; flex-wrap: wrap; gap: 8px; }
.r8-gal img { height: 84px; max-width: 100%; cursor: pointer; background: #fff; border: 1px solid #b7c3d0; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.r8-cartes { display: grid; gap: 12px; }
.r8-etapes { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.r8-notice { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 960px; }
.card.r8-carte { flex-direction: column; gap: 8px; }
.card.r8-carte img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.card.r8-carte b { margin-bottom: 2px; }
.r8-carte span { display: block; }
.r8-carte ul { margin: 4px 0 0; padding-left: 18px; }
.r8-carte li { margin: 2px 0; }
.btn7.r8-voir { min-width: 0; margin-top: 8px; }
.r8-groupe, .r8-total { max-width: 900px; }
.r8-groupe h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: #1e3287; }
.r8-groupe h3 small { margin-left: 4px; font-size: 12px; font-weight: 400; color: #555; }
.r8-liste { border: 1px solid #d9e2ec; border-radius: 4px; }
.r8-tete, .r8-el > summary { display: grid; grid-template-columns: minmax(0, 1fr) 76px 96px 84px 130px; gap: 8px; align-items: center; padding: 5px 8px; }
.r8-tete { border-bottom: 1px solid #d9e2ec; background: rgba(61,123,209,.07); color: #555; font-size: 11px; }
.r8-el + .r8-el { border-top: 1px solid #e3e9f0; }
.r8-el > summary { cursor: pointer; list-style: none; }
.r8-el > summary::-webkit-details-marker { display: none; }
.r8-el > summary:hover { background: var(--hover-bg); }
.r8-el > summary:focus-visible { outline: 1px dotted #000; outline-offset: -2px; }
.r8-nom::before {
  content: ""; display: inline-block; margin-right: 7px; vertical-align: 1px;
  border: 4px solid transparent; border-left: 6px solid #6d6d6d; border-right: 0; transition: transform .15s;
}
.r8-el[open] .r8-nom::before { transform: rotate(90deg); }
.r8-v, .r8-num { text-align: right; white-space: nowrap; }
.btn7.r8-zip { display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: 0 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.r8-det { padding: 2px 8px 10px 21px; overflow-x: auto; }
.r8-tab { width: 100%; border-collapse: collapse; }
.r8-tab th, .r8-tab td { padding: 3px 6px; border-bottom: 1px solid #e3e9f0; text-align: left; vertical-align: top; }
.r8-tab th { font-weight: 600; }
.r8-tab th.r8-num, .r8-tab td.r8-num { text-align: right; }
.r8-tab small { display: block; color: #6d6d6d; font-size: 11px; }
.r8-court { display: none; }
.r8-total { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #3d7bd1; background: rgba(61,123,209,.07); }
/* Page Domiom (point 228, fenêtre domiom de apps.js, données os/domiom.json) : mêmes bases que la R8 */
.domiom-p { max-width: 780px; margin: 0 0 10px; line-height: 1.5; }
.domiom-histoire { max-width: 860px; margin: 0; padding: 0; list-style: none; }
.domiom-histoire li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #e3e9f0; }
.domiom-histoire li:last-child { border-bottom: 0; }
.domiom-quand { color: #1e3287; font-weight: 600; }
.domiom-histoire p, .domiom-bloc p { margin: 3px 0 0; line-height: 1.45; }
.domiom-blocs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 900px; }
.card.domiom-bloc { flex-direction: column; gap: 2px; }
.domiom-h3 { margin: 16px 0 6px; font-size: 15px; }
.domiom-fig { max-width: 900px; margin: 4px 0 10px; }
.domiom-captures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.domiom-captures img { width: 100%; height: auto; cursor: pointer; background: #fff; border: 1px solid #b7c3d0; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.domiom-fig figcaption { margin-top: 6px; color: #5a5a5a; font-size: 12px; font-style: italic; }
/* Galerie d'une partie (point 235 : images [chemin, légende]) : trois colonnes, deux sur téléphone, vignettes de même
   format (l'image entière s'affiche en grand au clic), légende courte sous chaque image */
.domiom-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 6px 0 14px; }
.domiom-galerie figure { margin: 0; }
.domiom-galerie img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; cursor: pointer; background: #fff; border: 1px solid #b7c3d0; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.domiom-galerie figcaption { margin-top: 5px; color: #5a5a5a; font-size: 12px; font-style: italic; line-height: 1.35; }
/* Schémas de blocs et de flèches (point 232, champ schemas d'une partie) : en ligne, en colonne sur téléphone */
.domiom-schema { max-width: 780px; margin: 6px 0 14px; padding: 10px 12px 12px; border: 1px solid #d9e2ec; border-radius: 4px; background: rgba(61,123,209,.05); }
.domiom-schema figcaption { margin: 0 0 10px; color: #1e3287; font-weight: 600; }
.domiom-chaine { display: flex; align-items: center; gap: 6px; }
.domiom-nd { flex: 1 1 0; min-width: 0; padding: 8px 6px; border: 1px solid #8aa4c8; border-radius: 4px; background: #fff; text-align: center; overflow-wrap: anywhere; }
.domiom-nd b { display: block; }
.domiom-nd small { display: block; margin-top: 2px; color: #5a5a5a; font-size: 11px; }
.domiom-maison { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 4px 6px 6px; border: 1px dashed #6d6d6d; border-radius: 6px; }
.domiom-maison > span { color: #5a5a5a; font-size: 11px; text-align: center; }
.domiom-maison .domiom-nd { flex: 0 0 auto; }
.domiom-fl { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; color: #1e3287; text-align: center; }
.domiom-fl-t { font-size: 11px; line-height: 1.25; }
.domiom-fl-g { font-size: 24px; line-height: 1; }
@media (max-width: 700px) {
  .domiom-chaine { flex-direction: column; align-items: stretch; }
  .domiom-nd, .domiom-maison { flex: 0 0 auto; }
  .domiom-fl { flex: 0 0 auto; flex-direction: row-reverse; justify-content: center; gap: 8px; }
  .domiom-fl-t { text-align: left; }
  .domiom-fl-g { display: inline-block; transform: rotate(90deg); }
  .proj-cover img { max-height: 240px; }
  .r8-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domiom-histoire li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .domiom-captures { grid-template-columns: minmax(0, 1fr); }
  .domiom-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .r8-tete { display: none; }
  .r8-el > summary { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 12px; }
  .r8-nom { grid-column: 1 / -1; }
  .r8-v { text-align: left; }
  .r8-det { padding-left: 8px; }
  .r8-tab th, .r8-tab td { padding: 3px 4px; }
  .r8-long { display: none; }
  .r8-court { display: inline; }
}

/* --------------------------------------------------------------------------
   Bloc-notes
   -------------------------------------------------------------------------- */
.notepad textarea {
  flex: 1; border: 0; resize: none; outline: 0; padding: 2px 4px; font: 14px/1.3 Consolas, "Lucida Console", "Courier New", monospace;
  white-space: pre; overflow: auto; color: #000; tab-size: 8;
}
.notepad textarea.wrap { white-space: pre-wrap; overflow-x: hidden; }
.notepad .find {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #f0f0f0; border-bottom: 1px solid #d7d7d7;
}
.notepad .find input { flex: 1; max-width: 240px; }

/* --------------------------------------------------------------------------
   Calculatrice
   -------------------------------------------------------------------------- */
.calc { background: linear-gradient(#dbe6f4, #cfdcec) !important; user-select: none; }
.calc-body { padding: 10px 11px 12px; }
.calc-disp {
  height: 56px; border: 1px solid #8e9fb4; border-radius: 2px; margin-bottom: 9px; padding: 2px 6px; text-align: right; overflow: hidden; position: relative;
  background: linear-gradient(#f6f9fc, #e6f0f8 60%, #dce8f4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.calc-disp .hist { height: 16px; font-size: 11px; color: #555; white-space: nowrap; overflow: hidden; direction: rtl; }
.calc-disp .val { font-size: 24px; line-height: 34px; white-space: nowrap; font-family: var(--font); }
.calc-disp .val.small { font-size: 17px; }
.calc-disp .mem { position: absolute; left: 6px; bottom: 6px; font-size: 13px; color: #333; }
.calc-keys { display: grid; grid-template-columns: repeat(5, 34px); grid-auto-rows: 27px; gap: 5px; }
.calc-keys button {
  border: 1px solid #8398b3; border-radius: 3px; padding: 0; cursor: default; font-size: 13px; color: #15283f;
  background: linear-gradient(#f4f8fb, #e8eff6 50%, #dbe5f0 51%, #e7eef6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.calc-keys button:hover { border-color: #e2a33c; background: linear-gradient(#fff7e2, #ffe8a6 50%, #ffd56a 51%, #ffe39a); }
.calc-keys button:active, .calc-keys button.press { border-color: #c27917; background: linear-gradient(#fcd99a, #f7bd56 50%, #f3a52a 51%, #f7c565); box-shadow: inset 1px 1px 3px rgba(0,0,0,.25); }
.calc-keys .tall { grid-row: span 2; }
.calc-keys .wide { grid-column: span 2; }
.calc-keys .mem-key { font-size: 11px; }

/* --------------------------------------------------------------------------
   Paint
   -------------------------------------------------------------------------- */
.paint .ribbon {
  display: flex; gap: 6px; padding: 6px 8px; flex: none; flex-wrap: wrap; align-items: stretch; user-select: none;
  background: linear-gradient(#f9fbfe, #e3ebf6); border-bottom: 1px solid #b5c4d8;
}
.paint .rgroup { display: flex; flex-direction: column; align-items: center; padding: 0 8px; border-right: 1px solid #c5d2e3; }
.paint .rgroup:last-child { border: 0; }
.paint .rgroup .rcap { color: #4c607a; font-size: 11px; margin-top: auto; padding-top: 3px; }
.paint .tools { display: grid; grid-template-columns: repeat(4, 26px); gap: 2px; }
.paint .tools button {
  width: 26px; height: 24px; border: 1px solid transparent; border-radius: 2px; background: none; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.paint .tools button:hover { border-color: #a8c8ec; background: var(--hover-bg); }
.paint .tools button.on { border-color: #6f97c4; background: linear-gradient(#dfe9f5, #c5d8ee); }
.paint .sizes { display: flex; flex-direction: column; gap: 2px; }
.paint .sizes button { width: 70px; height: 13px; border: 1px solid transparent; background: none; display: flex; align-items: center; padding: 0 6px; }
.paint .sizes button i { display: block; width: 100%; background: #000; }
.paint .sizes button.on, .paint .sizes button:hover { border-color: #6f97c4; background: #dfe9f5; }
.paint .colors { display: grid; grid-template-columns: repeat(10, 18px); gap: 2px; }
.paint .colors button { width: 18px; height: 18px; border: 1px solid #8a8a8a; padding: 0; box-shadow: inset 0 0 0 1px #fff; }
.paint .colors button:hover { border-color: #e2a33c; }
.paint .cur-colors { display: flex; gap: 6px; align-items: flex-start; margin-right: 6px; }
.paint .cur-colors div { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #4c607a; text-align: center; line-height: 1.1; gap: 3px; cursor: default; padding: 2px; border: 1px solid transparent; border-radius: 2px; }
.paint .cur-colors div.on { border-color: #6f97c4; background: #dfe9f5; }
.paint .cur-colors i { width: 30px; height: 30px; border: 1px solid #8a8a8a; box-shadow: inset 0 0 0 2px #fff; display: block; }
.paint .canvas-wrap { flex: 1; min-height: 0; overflow: auto; background: #c9d4e3; padding: 6px; }
.paint canvas { background: #fff; box-shadow: 1px 1px 4px rgba(0,0,0,.35); display: block; touch-action: none; cursor: crosshair; }

/* --------------------------------------------------------------------------
   Démineur
   -------------------------------------------------------------------------- */
.mines { background: linear-gradient(#d9e4f2, #c3d3e8) !important; user-select: none; }
.mines-board-wrap { padding: 12px 14px 6px; display: flex; justify-content: center; align-items: flex-start; }
.mines-board {
  display: grid; gap: 0; padding: 4px; border-radius: 4px;
  background: #6f8fb8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 0 0 1px #4a6a96;
}
.mcell {
  width: var(--mc, 24px); height: var(--mc, 24px); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(var(--mc, 24px) * .62);
  border: 1px solid #4d76ad; margin: 0 -1px -1px 0; cursor: default;
  background: linear-gradient(135deg, #b6d1f2, #6d9bdb 50%, #5487d0 51%, #7aa8e6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.mcell:hover:not(.open) { background: linear-gradient(135deg, #d6ecff, #8dc1f8 50%, #6dabf2 51%, #99caff); }
.mcell.open { background: #e7eef8; box-shadow: none; border-color: #b4c5dd; }
.mcell.boom { background: #f05a46; }
.mcell .flag { color: #e02a1b; font-size: 14px; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.mcell.n1 { color: #2140bf; } .mcell.n2 { color: #1d7a1d; } .mcell.n3 { color: #c51d1d; } .mcell.n4 { color: #1b2a85; }
.mcell.n5 { color: #7c1a1a; } .mcell.n6 { color: #18807f; } .mcell.n7 { color: #000; } .mcell.n8 { color: #666; }
.mines-info { display: flex; justify-content: space-between; padding: 4px 18px 12px; }
.mines-info span { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mines-info b { min-width: 34px; text-align: center; background: #fff; border: 1px solid #8ea4bd; border-radius: 2px; padding: 0 4px; font-weight: 400; }

/* --------------------------------------------------------------------------
   Internet Explorer
   -------------------------------------------------------------------------- */
.ie .ie-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px; flex: none; }
.win .client.ie { background: transparent; border: 0; box-shadow: none; }
.ie .ie-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.55); }
.ie .ie-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 0 6px; height: 26px; flex: none; }
.ie .ie-tab {
  height: 24px; padding: 0 10px; display: flex; align-items: center; gap: 6px; max-width: 220px; min-width: 120px;
  border: 1px solid rgba(0,0,0,.45); border-bottom: 0; border-radius: 4px 4px 0 0; background: #fff; white-space: nowrap; overflow: hidden;
}
.ie .ie-tab svg { width: 16px; height: 16px; flex: none; }
.ie .ie-tab span { overflow: hidden; text-overflow: ellipsis; }
.ie iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.ie .ie-ext { padding: 30px; }
.ie .ie-ext h1 { font-size: 20px; font-weight: 400; color: #1e3287; margin: 0 0 10px; }

/* Visionneuse de photos */
.viewer { background: #fff !important; }
.viewer .vstage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(#fdfeff, #e8eef5); padding: 10px; }
.viewer .vstage img { max-width: 100%; max-height: 100%; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.viewer .vbar {
  height: 44px; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(#c7d9ee, #9fbbe0 50%, #8aaad6 51%, #a9c4e8); border-top: 1px solid #6c8bb6;
}
.viewer .vbar button {
  width: 34px; height: 30px; border: 1px solid transparent; border-radius: 4px; background: none; font-size: 16px; color: #1e395b;
}
.viewer .vbar button:hover { border-color: #5a7fae; background: rgba(255,255,255,.4); }
.viewer .vbar .vplay {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 50% 30%, #9fd8ff, #2a7fd4 55%, #0f4a96); border: 1px solid #0d3a78;
}

/* Personnalisation */
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px; }
.wall {
  background: var(--wallpaper); background-size: cover;
  height: 92px; border: 3px solid transparent; border-radius: 3px; cursor: default; position: relative; padding: 0; overflow: hidden;
  box-shadow: 0 0 0 1px #9aa9ba;
}
.wall.on { border-color: #3399ff; }
.wall span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.45); color: #fff; padding: 2px 6px; text-align: left; }

/* --------------------------------------------------------------------------
   Petits écrans
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  #startmenu { width: 100%; height: calc(100% - var(--taskbar-h)); max-height: none; border-radius: 0; }
  .sm-right { width: 130px; }
  .sm-avatar { margin-top: 0; }
  .sm-left { margin-top: 0; }
  .task { width: 46px; }
  #tray .tray-ico { display: none; }
  .ex-nav { display: none; }
  .ex-search { width: 110px; }
  .dicon { width: 72px; }
  .titlebar { height: 34px; }
  .caption button { height: 24px; width: 32px; }
  .caption .bclose { width: 50px; }
  .page-head { padding: 14px 16px; }
  .page-body { padding: 14px 16px 22px; }
}

/* --------------------------------------------------------------------------
   Bureautique : Word et Excel (ruban façon Office 2010)
   -------------------------------------------------------------------------- */
.office { --of: #2b579a; --of-light: #dce6f4; background: #fff; }
.office.excel { --of: #217346; --of-light: #dbeee2; }
.of-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 4px 6px 0; background: #fff; border-bottom: 1px solid #c5c5c5; flex: none; user-select: none; }
.of-file { border: 0; background: var(--of); color: #fff; padding: 4px 16px; font-weight: 600; cursor: default; border-radius: 2px 2px 0 0; }
.of-file:hover { filter: brightness(1.12); }
.of-tab { padding: 4px 14px; border: 1px solid transparent; border-bottom: 0; cursor: default; color: #444; }
.of-tab:hover { color: var(--of); }
.of-tab.on { border-color: #c5c5c5; background: #f3f3f3; margin-bottom: -1px; padding-bottom: 5px; color: #000; }
.of-ribbon { display: flex; align-items: stretch; gap: 0; padding: 4px 4px 0; background: #f3f3f3; border-bottom: 1px solid #c5c5c5; flex: none; overflow-x: auto; user-select: none; }
.of-group { display: flex; flex-direction: column; padding: 0 6px; border-right: 1px solid #d5d5d5; flex: none; }
.of-gbody { flex: 1; display: flex; align-items: flex-start; gap: 3px; }
.of-col-group .of-gbody { flex-direction: column; gap: 0; }
.of-gcap { text-align: center; color: #666; font-size: 11px; padding: 2px 0 3px; }
.of-col { display: flex; flex-direction: column; gap: 3px; }
.of-row { display: flex; gap: 2px; align-items: center; }
.of-btn {
  border: 1px solid transparent; background: none; border-radius: 2px; padding: 2px 6px; min-width: 24px; height: 24px; cursor: default; color: #222;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; font-size: 12px;
}
.of-btn.big { flex-direction: column; height: auto; min-height: 56px; font-size: 22px; padding: 2px 8px; gap: 2px; }
.of-btn.big small { font-size: 11px; }
.of-btn:hover { border-color: #c5c5c5; background: #fff; }
.of-btn.on { border-color: #a0a0a0; background: #d6d6d6; }
.of-btn:active { background: #c8c8c8; }
.office select { font: 12px var(--font); height: 22px; border: 1px solid #c5c5c5; background: #fff; }
.of-font { width: 130px; }
.of-num { width: 140px; }
.of-color { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; border: 1px solid transparent; border-radius: 2px; cursor: default; font-weight: 700; }
.of-color:hover { border-color: #c5c5c5; background: #fff; }
.of-color input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.of-styles { display: flex; gap: 2px; background: #fff; border: 1px solid #d5d5d5; padding: 2px; }
.of-style { border: 1px solid transparent; background: none; padding: 2px 8px; height: 46px; min-width: 60px; cursor: default; color: #222; }
.of-style.h { color: var(--of); font-weight: 600; }
.of-style:hover { border-color: #f2c867; background: #fff3cf; }

.word-scroll { flex: 1; min-height: 0; overflow: auto; background: #e3e5e8; padding: 0 0 24px; display: flex; flex-direction: column; align-items: center; }
.word-ruler {
  width: 794px; max-width: calc(100% - 24px); height: 20px; flex: none; margin: 8px 0 6px; background: #fff; border: 1px solid #c5c5c5;
  background-image: repeating-linear-gradient(90deg, #888 0 1px, transparent 1px 37.8px), repeating-linear-gradient(90deg, #bbb 0 1px, transparent 1px 9.45px);
  background-size: 100% 6px, 100% 3px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
}
.word-page {
  width: 794px; max-width: calc(100% - 24px); min-height: 1123px; flex: none; background: #fff; padding: 96px 94px; outline: 0;
  box-shadow: 0 0 0 1px #c9c9c9, 0 2px 8px rgba(0,0,0,.18); font: 11pt/1.35 Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #000;
  overflow-wrap: break-word;
}
.word-page p { margin: 0 0 8pt; }
.word-page h1 { font: 300 26pt Calibri, "Segoe UI", Arial, sans-serif; color: #17365d; border-bottom: 1px solid #4f81bd; padding-bottom: 4px; margin: 0 0 12pt; }
.word-page h2 { font: 600 14pt Calibri, "Segoe UI", Arial, sans-serif; color: #365f91; margin: 14pt 0 6pt; }
.word-page h3 { font: 600 13pt Calibri, "Segoe UI", Arial, sans-serif; color: #4f81bd; margin: 12pt 0 4pt; }
.word-page blockquote { margin: 8pt 24pt; font-style: italic; color: #404040; border-left: 3px solid #4f81bd; padding-left: 10px; }
.word-page table { border-collapse: collapse; margin: 6pt 0; }
.word-page td, .word-page th { border: 1px solid #8eaadb; padding: 4px 8px; min-width: 60px; }
.word-page img { max-width: 100%; }
.word-page a { color: #0563c1; }

.xl-fbar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #fff; border-bottom: 1px solid #d4d4d4; flex: none; }
.xl-name { width: 90px; height: 22px; border: 1px solid #c5c5c5; padding: 0 4px; font: 12px var(--font); }
.xl-fx { color: #666; font-style: italic; font-family: Georgia, serif; padding: 0 6px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.xl-input { flex: 1; height: 22px; border: 1px solid #c5c5c5; padding: 0 6px; font: 12px var(--font); }
.xl-wrap { flex: 1; min-height: 0; overflow: auto; position: relative; outline: 0; background: #fff; }
.xl-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font: 11pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; user-select: none; }
.xl-grid th { position: sticky; z-index: 2; background: #f0f0f0; color: #444; font-weight: 400; font-size: 12px; border-right: 1px solid #c6c6c6; border-bottom: 1px solid #c6c6c6; }
.xl-grid thead th { top: 0; height: 20px; min-width: 80px; width: 80px; }
.xl-grid tbody th { left: 0; width: 40px; min-width: 40px; text-align: center; }
.xl-grid th.xl-corner { left: 0; z-index: 3; width: 40px; min-width: 40px; background: #e6e6e6 linear-gradient(135deg, transparent 60%, #b5b5b5 60%) no-repeat right 3px bottom 3px / 9px 9px; }
.xl-grid th.hl { background: #d2e7d9; color: #217346; border-bottom-color: #217346; }
.xl-grid tbody th.hl { border-right: 2px solid #217346; }
.xl-grid td { height: 20px; padding: 0 3px; border-right: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 80px; }
.xl-grid td.num { text-align: right; }
.xl-grid td.bool, .xl-grid td.err { text-align: center; }
.xl-grid td.err { color: #c00000; }
.xl-grid td.sel { background-color: rgba(33,115,70,.13) !important; }
.xl-grid td.cur { box-shadow: inset 0 0 0 2px #217346; background-color: inherit !important; }
.xl-edit { position: absolute; z-index: 4; border: 2px solid #217346; padding: 0 2px; font: 11pt Calibri, Carlito, "Segoe UI", Arial, sans-serif; outline: 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.xl-sheets { display: flex; gap: 2px; padding: 0 6px; background: #f0f0f0; border-top: 1px solid #c6c6c6; flex: none; user-select: none; }
.xl-sheets span { padding: 3px 18px; background: #fff; border: 1px solid #c6c6c6; border-top: 0; color: #217346; font-weight: 600; border-bottom: 2px solid #217346; }

/* --------------------------------------------------------------------------
   Solitaire
   -------------------------------------------------------------------------- */
.sol-board {
  flex: 1; min-height: 0; position: relative; overflow: hidden; user-select: none; touch-action: none;
  background: radial-gradient(ellipse at 50% 40%, #2f8a3c, #1c6a2a 60%, #124d1d);
}
.sol-board .pcard, .sol-board .slot { position: absolute; width: var(--cw); height: calc(var(--cw) * 1.38); border-radius: calc(var(--cw) * 0.07); }
.sol-board .pcard {
  background: #fff; border: 1px solid #555; box-shadow: 0 1px 2px rgba(0,0,0,.35); cursor: default;
  font-family: Arial, Helvetica, sans-serif; color: #111; transition: left .16s ease-out, top .16s ease-out;
}
.sol-board.instant .pcard { transition: none; }
.sol-board .pcard.red { color: #c8102e; }
.sol-board .pcard.dragging { transition: none; box-shadow: 4px 6px 10px rgba(0,0,0,.45); }
.sol-board .pcard .idx { position: absolute; font-weight: 700; font-size: calc(var(--cw) * 0.19); line-height: 1; text-align: center; }
.sol-board .pcard .idx-tl { left: calc(var(--cw) * 0.05); top: calc(var(--cw) * 0.06); }
.sol-board .pcard .idx-br { right: calc(var(--cw) * 0.05); bottom: calc(var(--cw) * 0.06); transform: rotate(180deg); }
.sol-board .pcard .pip { position: absolute; transform: translate(-50%, -50%); font-size: calc(var(--cw) * 0.24); line-height: 1; }
.sol-board .pcard .pip.flip { transform: translate(-50%, -50%) rotate(180deg); }
.sol-board .pcard .pip.ace { font-size: calc(var(--cw) * 0.6); }
.sol-board .pcard .face {
  position: absolute; left: 20%; right: 20%; top: 17%; bottom: 17%; border: 1px solid currentColor; border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(135deg, rgba(255,215,90,.35), rgba(80,140,230,.18));
}
.sol-board .pcard .face b { font: 700 calc(var(--cw) * 0.36) Georgia, "Times New Roman", serif; }
.sol-board .pcard .face i { font-style: normal; font-size: calc(var(--cw) * 0.26); }
.sol-board .pcard.down { background: #fff; }
.sol-board .pcard.down > * { display: none; }
.sol-board .pcard.down::before {
  content: ""; position: absolute; top: calc(var(--cw) * 0.05); right: calc(var(--cw) * 0.05); bottom: calc(var(--cw) * 0.05); left: calc(var(--cw) * 0.05); inset: calc(var(--cw) * 0.05); border-radius: calc(var(--cw) * 0.05);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 2px, transparent 2px 6px),
    linear-gradient(#2d62c4, #163f8f);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.sol-board .slot { border: 2px solid rgba(255,255,255,.28); background: rgba(0,0,0,.08); z-index: 0; }
.sol-board .found-slot { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font: 700 calc(var(--cw) * 0.4) Arial, sans-serif; }
.sol-board .stock-slot { cursor: pointer; }
.sol-board .stock-slot.empty::after { content: "↻"; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); font-size: calc(var(--cw) * 0.5); }
.sol-board .sol-cascade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2000; cursor: pointer; }
.sol-client { background: #1c6a2a; }

/* --------------------------------------------------------------------------
   Dynamite
   -------------------------------------------------------------------------- */
.dyn-client { background: #1d1d24; }
.dyn-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; background: #1d1d24; overflow: hidden; }
.dyn-stage canvas { display: block; image-rendering: auto; box-shadow: 0 0 0 2px #000, 0 6px 20px rgba(0,0,0,.6); }
.dyn-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,10,20,.72); z-index: 2; }
.dyn-overlay.dim { background: rgba(10,10,20,.55); }
.dyn-panel { background: linear-gradient(#2c2c3a, #1b1b26); color: #fff; border: 2px solid #ffb02e; border-radius: 10px; padding: 16px 20px; max-width: 94%; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); max-height: 96%; overflow: auto; }
.dyn-panel.small { min-width: 280px; }
.dyn-panel h1 { margin: 0 0 12px; font: 900 34px/1 Impact, "Arial Black", sans-serif; letter-spacing: 3px; color: #ffcf3f; text-shadow: 0 3px 0 #c2410c, 0 6px 12px rgba(0,0,0,.6); }
.dyn-panel h2 { margin: 8px 0; font-size: 16px; color: #ffcf3f; }
.dyn-panel p { margin: 6px 0; color: #ddd; }
.dyn-modes { display: flex; gap: 10px; justify-content: center; }
.dyn-modes button, .dyn-boards button, .dyn-actions button, .dyn-play {
  border: 2px solid #555; background: #2f2f40; color: #fff; border-radius: 8px; cursor: pointer; font: inherit;
}
.dyn-modes button { padding: 8px 16px; font-weight: 700; font-size: 14px; }
.dyn-modes button small { display: block; font-weight: 400; color: #bbb; font-size: 11px; }
.dyn-modes button.on, .dyn-boards button.on { border-color: #ffb02e; background: #43405a; box-shadow: 0 0 0 2px rgba(255,176,46,.35); }
.dyn-boards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dyn-boards button { padding: 5px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.dyn-boards canvas { display: block; width: 90px; height: 78px; image-rendering: pixelated; border-radius: 3px; }
.dyn-play { margin-top: 12px; padding: 8px 34px; font-size: 16px; font-weight: 800; background: linear-gradient(#ffcf3f, #ff9d1a); color: #3a1a00; border-color: #c2410c; }
.dyn-play:hover, .dyn-modes button:hover, .dyn-boards button:hover, .dyn-actions button:hover { filter: brightness(1.12); }
.dyn-actions { display: flex; gap: 10px; justify-content: center; }
.dyn-actions .dyn-play { margin-top: 6px; }
.dyn-actions .dyn-menu { margin-top: 6px; padding: 8px 18px; }
.dyn-keys { font-size: 11px; color: #aaa !important; margin-top: 10px !important; }
.dynamite .statusbar span { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Jeux d'arcade (socle commun)
   -------------------------------------------------------------------------- */
.arc-client { background: #000; }
.arc-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.arc-stage canvas { display: block; }
.arc-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); z-index: 2; }
.arc-overlay.dim { background: rgba(0,0,0,.5); }
.arc-panel { background: rgba(8,12,28,.94); color: #fff; border: 1px solid #33e6ff; box-shadow: 0 0 24px rgba(51,230,255,.35); border-radius: 8px; padding: 18px 24px; text-align: center; max-width: 92%; max-height: 94%; overflow: auto; }
.arc-panel h1 { margin: 0 0 8px; font: 800 38px/1.1 "Segoe UI", Arial, sans-serif; letter-spacing: 6px; color: #fff; text-shadow: 0 0 12px #33e6ff, 0 0 24px #33e6ff; }
.arc-panel h2 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.arc-panel p { margin: 6px 0; color: #c9d6ff; }
.arc-modes, .arc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.arc-panel button { border: 1px solid #4a5a8a; background: #141c38; color: #fff; border-radius: 6px; padding: 8px 18px; cursor: pointer; font: 700 14px var(--font); }
.arc-panel button small { display: block; font-weight: 400; color: #9fb0e0; font-size: 11px; }
.arc-panel button.on { border-color: #33e6ff; box-shadow: 0 0 10px rgba(51,230,255,.5); }
.arc-panel button.main { background: linear-gradient(#33e6ff, #1590c8); color: #001826; border-color: #7ff2ff; padding: 9px 34px; }
.arc-panel button:hover { filter: brightness(1.15); }
.arc-keys { font-size: 11px; color: #8796c4 !important; }
.arcade .statusbar span { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Vecteur : console à écran vectoriel
   -------------------------------------------------------------------------- */
.vx-client { background: #111; }
.vx { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; background: #1a1a1a; }
.vx-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 14px 18px 10px;
  background: linear-gradient(90deg, #0d0d0d, #262626 12%, #1c1c1c 50%, #262626 88%, #0d0d0d);
}
.vx-bezel {
  flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 30%, #2b2b2b, #0b0b0b 75%); box-shadow: inset 0 0 0 2px #050505, inset 0 0 30px rgba(0,0,0,.9), 0 1px 0 #3a3a3a;
}
.vx-screen { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vx-screen canvas { display: block; background: #000; border-radius: 10px; box-shadow: 0 0 0 1px #000, 0 0 18px rgba(0,0,0,.9); }
.vx-overlay { position: absolute; pointer-events: none; border-radius: 10px; mix-blend-mode: multiply; }
.vx-glass { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; border-radius: 10px; background: radial-gradient(ellipse 80% 50% at 30% 15%, rgba(255,255,255,.07), transparent 60%); }
.vx-label { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; color: #c9c9c9; user-select: none; }
.vx-label b { font: italic 900 22px/1 "Arial Black", Arial, sans-serif; letter-spacing: 4px; color: #e6e6e6; text-shadow: 0 1px 0 #000; }
.vx-label span { font-size: 11px; color: #8a8a8a; letter-spacing: 1px; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Messagerie (dans l'esprit de Windows Live Messenger 2009)
   -------------------------------------------------------------------------- */
.msn-client { background: #fff; }
.msn { display: flex; flex-direction: column; flex: 1; min-height: 0; font: 12px "Segoe UI", Tahoma, sans-serif; color: #1e1e1e;
  background: linear-gradient(#e3f3fc, #ffffff 160px); }
.msn-head {
  padding: 12px 12px 10px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 60% at 110% -10%, rgba(120,200,90,.45), transparent 60%),
    radial-gradient(ellipse 90% 70% at -10% 120%, rgba(70,170,230,.35), transparent 60%),
    linear-gradient(#cfeaf8, #eef8fd);
  border-bottom: 1px solid #b9d9ea;
}
.msn-head::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -26px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.55); }
.msn-me { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.msn-me-txt { flex: 1; min-width: 0; }
.msn-nick { font-size: 15px; font-weight: 600; color: #1a1a1a; cursor: text; border: 1px solid transparent; padding: 0 2px; border-radius: 2px; word-break: break-word; }
.msn-nick:hover { border-color: #9cc8e2; background: rgba(255,255,255,.7); }
.msn-nick-edit { font: 600 15px "Segoe UI", Tahoma, sans-serif; width: 100%; border: 1px solid #6aa8d6; padding: 1px 3px; }
.msn-status-btn { border: 1px solid transparent; background: none; color: #555; padding: 0 3px; border-radius: 2px; cursor: default; }
.msn-status-btn:hover { border-color: #9cc8e2; background: rgba(255,255,255,.7); }
.msn-pm { display: block; width: 100%; margin-top: 4px; border: 1px solid transparent; background: transparent; font: italic 12px "Segoe UI", Tahoma, sans-serif; color: #505a64; padding: 2px 3px; border-radius: 2px; }
.msn-pm:hover, .msn-pm:focus { border-color: #9cc8e2; background: #fff; outline: 0; font-style: normal; }
.msn-id { color: #7a8794; font-size: 10px; margin-top: 2px; padding-left: 3px; }
.msn-frame { width: 40px; height: 40px; padding: 3px; border-radius: 7px; flex: none; position: relative; cursor: default;
  background: linear-gradient(#f4f4f4, #cfcfcf); box-shadow: 0 1px 3px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.7); }
.msn-frame.big { width: 70px; height: 70px; padding: 5px; border-radius: 10px; }
.msn-frame img { width: 100%; height: 100%; border-radius: 4px; display: block; border: 1px solid rgba(0,0,0,.25); }
.msn-frame.online { background: linear-gradient(#b8f27a, #4dbb0c 60%, #2e8c00); }
.msn-frame.busy { background: linear-gradient(#ff9a8a, #e0321c 60%, #a81600); }
.msn-frame.away { background: linear-gradient(#ffe08a, #f2a51c 60%, #c47400); }
.msn-frame.offline { background: linear-gradient(#eaeaea, #a8a8a8 60%, #7d7d7d); }
.msn-net { background: #fff4c2; border-bottom: 1px solid #e4c860; padding: 5px 10px; color: #6a5200; font-size: 11px; }
.msn-searchbar { padding: 8px 10px 6px; }
.msn-search { width: 100%; height: 24px; border: 1px solid #b8cfe0; border-radius: 3px; padding: 0 8px; font: italic 12px "Segoe UI", Tahoma, sans-serif; background: #fff; }
.msn-search:focus { outline: 0; border-color: #6aa8d6; font-style: normal; }
.msn-list { flex: 1; min-height: 0; overflow: auto; padding: 2px 6px 8px; background: #fff; }
.msn-group { font-weight: 600; color: #2a5d8a; padding: 6px 4px 3px; user-select: none; }
.msn-caret { font-size: 9px; color: #555; }
.msn-contact { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 16px; border: 1px solid transparent; border-radius: 3px; cursor: default; white-space: nowrap; overflow: hidden; user-select: none; }
.msn-contact:hover { background: linear-gradient(#f2f9fe, #e1f0fb); border-color: #c7e1f4; }
.msn-contact.sel { background: linear-gradient(#e2f1fd, #c9e3f8); border-color: #8fc2ea; }
.msn-cn { color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; }
.msn-cpm { color: #7d8790; font-style: italic; overflow: hidden; text-overflow: ellipsis; }
.msn-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; display: inline-block; box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.8); }
.msn-dot.online { background: radial-gradient(circle at 40% 35%, #c9ff8f, #3fb300 70%); }
.msn-dot.busy { background: radial-gradient(circle at 40% 35%, #ffb09f, #db2b10 70%); }
.msn-dot.away { background: radial-gradient(circle at 40% 35%, #ffe9a0, #f0a000 70%); }
.msn-dot.blocked { background: radial-gradient(circle at 40% 35%, #e6e6e6, #8a8a8a 70%); position: relative; }
.msn-dot.blocked::after { content: ""; position: absolute; left: 1px; right: 1px; top: 5px; height: 2px; background: #c00; transform: rotate(-45deg); }
.msn-contact.blocked .msn-cn { color: #888; }
.msn-empty { color: #7d8790; text-align: center; padding: 18px 10px; line-height: 1.6; }
.msn-foot { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; font-size: 10px; color: #6d7a86; background: linear-gradient(#f4f9fc, #e6f0f6); border-top: 1px solid #cfe0eb; }
.msn-privacy { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msn-conv { background: linear-gradient(#e3f3fc, #ffffff 110px); }
.msn-to { padding: 8px 12px 6px; border-bottom: 1px solid #c9e1ef; background: linear-gradient(#d6eef9, #eef8fd); }
.msn-to-nick { font-size: 14px; }
.msn-to-st { color: #607080; }
.msn-to-pm { color: #6b7883; font-style: italic; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msn-conv-body { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 10px; }
.msn-side { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.msn-side .msn-frame.big { width: 92px; height: 92px; }
.msn-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msn-history { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #b8cfe0; border-radius: 4px; padding: 8px 10px; font-size: 13px; word-wrap: break-word; }
.msn-who { color: #6a6a6a; margin-top: 8px; font-size: 12px; }
.msn-who small { color: #999; }
.msn-who.me { color: #505a6e; }
.msn-line { padding-left: 14px; margin: 2px 0; color: #111; }
.msn-line a { color: #0066cc; }
.msn-emo { font-size: 17px; line-height: 1; }
.msn-info { color: #6d6d6d; font-size: 11px; margin: 8px 0; padding: 4px 8px; background: #f3f8fc; border-left: 3px solid #9cc8e2; }
.msn-anim { width: 96px; height: 96px; display: block; }
.msn-img { display: block; max-width: 100%; max-height: 260px; border: 1px solid #ccc; border-radius: 3px; cursor: zoom-in; margin: 4px 0; }
.msn-typing { height: 18px; color: #7d8790; font-size: 11px; font-style: italic; padding: 2px 2px 0; }
.msn-tools { display: flex; gap: 2px; padding: 3px 0; }
.msn-tb { border: 1px solid transparent; background: none; border-radius: 3px; padding: 2px 8px; cursor: default; font-size: 12px; }
.msn-tb:hover { border-color: #b8d4ea; background: linear-gradient(#fbfdff, #e4f0fa); }
.msn-compose { display: flex; gap: 6px; }
.msn-input { flex: 1; height: 62px; resize: none; border: 1px solid #b8cfe0; border-radius: 4px; padding: 6px 8px; font: 13px "Segoe UI", Tahoma, sans-serif; }
.msn-input:focus { outline: 0; border-color: #6aa8d6; }
.msn-send { align-self: stretch; height: auto; min-width: 70px; }
.msn-pop { position: absolute; z-index: 7000; background: #fff; border: 1px solid #97b6cf; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.25); padding: 6px; display: grid; grid-template-columns: repeat(10, 28px); gap: 2px; }
.msn-pop.wide { grid-template-columns: repeat(5, 64px); }
.msn-pop button { border: 1px solid transparent; background: none; border-radius: 3px; height: 28px; font-size: 18px; cursor: pointer; padding: 0; }
.msn-pop.wide button { height: 64px; }
.msn-pop.wide img { width: 56px; height: 56px; }
.msn-pop button:hover { border-color: #9cc8e2; background: #eef7fd; }
.msn-toast {
  position: absolute; right: 10px; z-index: 6500; width: 260px; display: flex; gap: 10px; align-items: center; padding: 10px; cursor: pointer;
  background: linear-gradient(#f4fbff, #d9eef9); border: 1px solid #8fb9d6; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.35);
  animation: msnIn .35s ease-out; transition: opacity .4s, transform .4s; color: #1e1e1e; font: 12px "Segoe UI", Tahoma, sans-serif;
}
.msn-toast.out { opacity: 0; transform: translateY(20px); }
@keyframes msnIn { from { opacity: 0; transform: translateY(30px); } }
.msn-toast img { width: 46px; height: 46px; border-radius: 6px; border: 2px solid #4dbb0c; flex: none; }
.msn-toast b { display: block; }
.msn-toast span { color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msn-toast button { position: absolute; top: 2px; right: 6px; border: 0; background: none; font-size: 15px; color: #567; cursor: pointer; }
.win.msn-shake { animation: msnShake .6s linear; }
@keyframes msnShake { 10%, 50%, 90% { transform: translate(-9px, 4px); } 20%, 60% { transform: translate(9px, -5px); } 30%, 70% { transform: translate(-7px, -4px); } 40%, 80% { transform: translate(7px, 5px); } }
@media (max-width: 700px) { .msn-side { display: none; } }

/* Icône de programme dans la zone de notification */
.tray-app { border: 0; background: none; padding: 0; position: relative; cursor: default; }
.tray-app svg { width: 18px; height: 18px; display: block; }
.tray-badge { position: absolute; right: 0; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.tray-badge.online { background: #3fb300; } .tray-badge.busy { background: #db2b10; } .tray-badge.away { background: #f0a000; }

/* Appels audio / vidéo de la Messagerie */
.msn-tb-sp { flex: 1; }
.msn-call { margin-bottom: 8px; border: 1px solid #8fb3d1; border-radius: 6px; overflow: hidden; background: #0d1a26; flex: none; }
.msn-stage { position: relative; height: 210px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #27455e, #0d1a26 70%); }
.msn-remote { width: 100%; height: 100%; object-fit: contain; display: none; background: #000; }
.msn-call.has-video .msn-remote { display: block; }
.msn-call.has-video .msn-call-avatar { display: none; }
.msn-call-avatar img { width: 92px; height: 92px; border-radius: 10px; border: 4px solid #4dbb0c; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.msn-call:not(.live) .msn-call-avatar img { animation: msnPulse 1.4s ease-in-out infinite; }
@keyframes msnPulse { 50% { box-shadow: 0 0 0 10px rgba(77,187,12,.25); } }
.msn-local { position: absolute; right: 8px; bottom: 8px; width: 120px; height: 90px; object-fit: cover; border: 2px solid #fff; border-radius: 4px; background: #000; box-shadow: 0 2px 8px rgba(0,0,0,.6); transform: scaleX(-1); }
.msn-call.audio .msn-stage { height: 130px; }
.msn-call-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: linear-gradient(#f4fbff, #d9eef9); color: #1e1e1e; flex-wrap: wrap; }
.msn-call-st { flex: 1; min-width: 140px; font-weight: 600; color: #234; }
.msn-call-time { color: #567; font-variant-numeric: tabular-nums; }
.msn-call-btns { display: flex; gap: 6px; }
.msn-cb { border: 1px solid #8fa8bf; border-radius: 14px; padding: 4px 12px; background: linear-gradient(#fff, #e6eef5); cursor: pointer; font: 600 12px "Segoe UI", Tahoma, sans-serif; }
.msn-cb.ok { background: linear-gradient(#8fe35a, #3fa80a); color: #fff; border-color: #2c7a06; }
.msn-cb.no { background: linear-gradient(#ff8a72, #d4321a); color: #fff; border-color: #a12010; }
.msn-cb.tog { padding: 4px 9px; }
.msn-cb.tog.off { background: linear-gradient(#ffd6cc, #f2a08c); text-decoration: line-through; }
.msn-cb:hover { filter: brightness(1.08); }
.msn-test-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.msn-test-body video { width: 100%; max-height: 230px; background: #000; border-radius: 6px; transform: scaleX(-1); }
.msn-test-info div { padding: 4px 0; border-bottom: 1px solid #e3edf4; }
.msn-meter { height: 10px; border: 1px solid #9cc0da; border-radius: 5px; background: #f3f8fc; overflow: hidden; }
.msn-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4dbb0c, #f2c40c 70%, #e0321c); transition: width .08s; }
.msn-test-devs { color: #6d7a86; font-size: 11px; }
/* Transferts de fichiers */
.msn-file { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; padding: 8px 10px; border: 1px solid #c3d9ea; border-radius: 6px; background: linear-gradient(#fbfdff, #eef6fc); max-width: 420px; }
.msn-file.done { border-color: #8fcf6a; background: linear-gradient(#fbfff8, #eaf7e2); }
.msn-file.failed { border-color: #e2a99c; background: linear-gradient(#fffaf8, #fbecE8); }
.msn-file-ico { font-size: 26px; line-height: 1; }
.msn-file-main { flex: 1; min-width: 0; }
.msn-file-main b { word-break: break-all; }
.msn-file-main small { color: #6d7a86; }
.msn-file-st { color: #445; font-size: 11px; margin: 3px 0 5px; }
.msn-file .msn-meter { height: 8px; }
.msn-file-btns { display: flex; gap: 6px; margin-top: 6px; }
.msn-file-btns a { text-decoration: none; display: inline-block; }
.msn-file-btns:empty { display: none; }

/* --------------------------------------------------------------------------
   Esquisse 3D
   -------------------------------------------------------------------------- */
.esq-client { background: #eef3f8; }
.esq { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; background: #f2f4f7; }
.esq-tools { display: flex; align-items: center; gap: 2px; padding: 4px 6px; background: linear-gradient(#fbfcfd, #e6eaef); border-bottom: 1px solid #c3cbd4; flex: none; flex-wrap: wrap; user-select: none; }
.esq-tb { min-width: 32px; height: 32px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: default; font-size: 17px; line-height: 1; color: #2a2f36; padding: 0 6px; }
.esq-tb:hover { border-color: #a9bed6; background: linear-gradient(#fff, #e9f1fb); }
.esq-tb.on { border-color: #4a7fc1; background: linear-gradient(#dcebfc, #c2dbf7); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.esq-view-btn { font-size: 11px; font-weight: 600; min-width: 0; height: 26px; }
.esq-sep { width: 1px; height: 24px; background: #c3cbd4; margin: 0 5px; }
.esq-side { flex: none; display: grid; grid-template-columns: repeat(2, 36px); grid-auto-rows: auto; gap: 2px; align-content: start; padding: 6px 4px; background: linear-gradient(90deg, #fbfcfd, #e9edf2); border-right: 1px solid #c3cbd4; overflow-y: auto; user-select: none; }
.esq-side .esq-tb { width: 36px; height: 36px; min-width: 0; padding: 0; }
.esq-side .esq-sep { grid-column: 1 / -1; width: auto; height: 1px; margin: 4px 2px; align-self: center; }
.esq-tools-l { font-size: 11px; color: #556; margin: 0 4px 0 2px; }
.esq-view { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.esq-view canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.esq-view[data-tool="orbit"] canvas { cursor: grab; }
.esq-view[data-tool="pan"] canvas { cursor: move; }
.esq-view[data-tool="line"] canvas, .esq-view[data-tool="rect"] canvas, .esq-view[data-tool="circle"] canvas, .esq-view[data-tool="tape"] canvas, .esq-view[data-tool="move"] canvas, .esq-view[data-tool="rotate"] canvas { cursor: crosshair; }
.esq-loading { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; color: #456; font-size: 14px; background: #eef3f8; }
.esq-snap { position: absolute; pointer-events: none; transform: translate(-50%, -50%); z-index: 2; }
.esq-snap i { display: block; width: 10px; height: 10px; border: 2px solid; border-radius: 2px; background: rgba(255,255,255,.6); }
.esq-snap span { position: absolute; left: 14px; top: 10px; white-space: nowrap; font: 600 11px "Segoe UI", Tahoma, sans-serif; background: rgba(255,255,255,.9); padding: 1px 5px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.esq-palette { position: absolute; left: 8px; top: 8px; display: grid; grid-template-columns: repeat(4, 26px); gap: 4px; padding: 6px; background: rgba(255,255,255,.95); border: 1px solid #b7c3cf; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 2; }
.esq-palette button { width: 26px; height: 26px; border: 1px solid #888; border-radius: 3px; cursor: pointer; padding: 0; }
.esq-palette button.on { outline: 2px solid #2f6fe0; outline-offset: 1px; }
.esq-bar { display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: #f0f0f0; border-top: 1px solid #cfd5dc; flex: none; }
.esq-hint { flex: 1; min-width: 0; color: #333; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esq-vcb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.esq-vcb input { width: 130px; height: 22px; border: 1px solid #9aa9b8; padding: 0 6px; font: 12px "Segoe UI", Tahoma, sans-serif; text-align: right; }
.esq-view[data-tool="arc"] canvas, .esq-view[data-tool="push"] canvas, .esq-view[data-tool="offset"] canvas, .esq-view[data-tool="follow"] canvas { cursor: crosshair; }
.esq-main { flex: 1; min-height: 0; display: flex; }
.esq-tray { width: 210px; flex: none; overflow-y: auto; background: #f7f9fb; border-left: 1px solid #c3cbd4; padding: 4px 10px 12px; font-size: 12px; color: #2a2f36; }
.esq-tray.hidden { display: none; }
.esq-tray h3 { margin: 10px 0 5px; font-size: 12px; font-weight: 600; color: #1e3f6b; border-bottom: 1px solid #d6dde5; padding-bottom: 2px; }
.esq-tray label { display: flex; align-items: center; gap: 5px; margin: 2px 0; }
.esq-tray select, .esq-tray input[type=text] { font: 12px "Segoe UI", Tahoma, sans-serif; max-width: 100%; }
.esq-tray input[type=text] { width: 100%; box-sizing: border-box; }
.esq-tray input[type=range] { width: 100%; }
.esq-row { margin: 5px 0; }
.esq-note { color: #778; font-style: italic; margin: 4px 0; }
.esq-mini { font: 12px "Segoe UI", Tahoma, sans-serif; padding: 2px 8px; margin: 3px 0; border: 1px solid #a9b7c6; border-radius: 3px; background: linear-gradient(#fff, #e8edf2); cursor: pointer; }
.esq-mini:hover { border-color: #4a7fc1; }
.esq-scene-list > div { display: flex; align-items: center; gap: 3px; }
.esq-scene-list .esq-mini { flex: 1; text-align: left; }
.esq-x { border: 0; background: none; color: #a33; font-size: 15px; cursor: pointer; padding: 0 4px; }
.esq-glist > div { padding: 2px 5px; border-radius: 3px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esq-glist > div:hover { background: #e3edf8; }
.esq-glist > div.on { background: #cfe1f7; }
.esq-scenes { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 2px; padding: 0 6px; z-index: 2; pointer-events: none; }
.esq-scenes button { pointer-events: auto; font: 12px "Segoe UI", Tahoma, sans-serif; padding: 3px 12px; border: 1px solid #b7c3cf; border-top: 0; border-radius: 0 0 5px 5px; background: rgba(255,255,255,.92); cursor: pointer; }
.esq-scenes button.on { background: #cfe1f7; border-color: #4a7fc1; }
.esq-ctx { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; background: rgba(255,250,225,.96); border: 1px solid #d8c36a; border-radius: 4px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.esq-ctx.hidden { display: none; }
.esq-ctx button { font: 12px "Segoe UI", Tahoma, sans-serif; margin-left: 4px; }
.esq-palette { grid-template-columns: repeat(5, 26px); }
.esq-palette button.tex { background-size: cover; }
@media (max-width: 700px) { .esq-side { grid-template-columns: 36px; } .esq-hint { white-space: normal; } .esq-tray { display: none; } }
/* Esquisse 3D niveau 3 : étiquettes, infos, mise en page, console */
.esq-view[data-tool="dim"] canvas, .esq-view[data-tool="text"] canvas { cursor: crosshair; }
.esq-labels { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.esq-label { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; white-space: nowrap; font: 12px "Segoe UI", Tahoma, sans-serif; color: #222; padding: 1px 5px; border-radius: 2px; cursor: default; user-select: none; }
.esq-label.dim { background: rgba(255,255,255,.88); }
.esq-label.note { background: #fffbe6; border: 1px solid #b9ad7a; box-shadow: 0 1px 3px rgba(0,0,0,.15); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.esq-label.on { outline: 2px solid #2f6fe0; }
.esq-info { line-height: 1.6; }
.esq-solid { display: flex; flex-wrap: wrap; gap: 4px; }
.esq-solid .esq-mini { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esq-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; font-size: 12px; }
.esq-layout > .esq-layout-f { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px 4px; align-items: center; }
.esq-layout-f > label { display: flex; align-items: center; gap: 5px; }
.esq-layout-f .txt7 { width: 170px; }
.esq-layout-v { width: 100%; display: flex; flex-wrap: wrap; gap: 3px 14px; align-items: center; }
.esq-layout-v label { display: flex; align-items: center; gap: 4px; }
.esq-layout-p { flex: 1; min-height: 0; margin: 6px 12px; background: #8a939c; display: flex; align-items: center; justify-content: center; padding: 8px; }
.esq-layout-p img { max-width: 100%; max-height: 100%; box-shadow: 0 2px 10px rgba(0,0,0,.4); background: #fff; }
.esq-console { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 8px; gap: 6px; font-size: 12px; background: #f2f4f7; }
.esq-console textarea { flex: 2; min-height: 120px; resize: none; font: 12px Consolas, "Courier New", monospace; border: 1px solid #9aa9b8; padding: 6px; }
.esq-console-bar { display: flex; gap: 6px; }
.esq-console pre { flex: 1; min-height: 50px; margin: 0; overflow: auto; background: #1e1e1e; color: #d4d4d4; padding: 6px; font: 12px Consolas, monospace; white-space: pre-wrap; }
/* Atelier Croquis : apparence de l'Arduino IDE 2 (thème clair) */
.cq-client { background: #fff; }
.cq { --teal: #008184; --teal-d: #005c5f; --line: #dae3e3; --side: #ecf1f1; display: flex; flex-direction: column; flex: 1; min-height: 0; background: #fff; color: #4e5b61; font: 13px "Open Sans", "Segoe UI", Tahoma, sans-serif; outline: 0; }
.cq-loading { margin: auto; color: #4e5b61; font-size: 14px; }
.cq .menubar { background: #fff; border-bottom: 1px solid var(--line); }
.cq-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.cq-round { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 6px; background: var(--teal); color: #fff; cursor: pointer; display: flex; }
.cq-round:hover { background: #00979c; }
.cq-round.dis { background: #c9d2d2; cursor: default; }
.cq-round svg, .cq-flat svg, .cq-act svg, .cq-board svg, .cq-tabmenu svg { width: 100%; height: 100%; display: block; }
.cq-board { margin-left: 10px; display: flex; align-items: center; gap: 6px; height: 30px; min-width: 240px; max-width: 360px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: #4e5b61; font: 600 13px "Open Sans", "Segoe UI", sans-serif; cursor: pointer; }
.cq-board:hover { border-color: var(--teal); }
.cq-board .ic { width: 16px; height: 16px; color: #95a5a6; flex: none; }
.cq-board .nm { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-board .ch { width: 16px; height: 16px; flex: none; }
.cq-sp { flex: 1; }
.cq-flat { width: 32px; height: 32px; padding: 6px; border: 0; background: none; color: var(--teal); cursor: pointer; border-radius: 3px; }
.cq-flat:hover { background: var(--side); }
.cq-body { flex: 1; min-height: 0; display: flex; }
.cq-act { flex: none; width: 48px; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 4px; }
.cq-act button { width: 48px; height: 44px; padding: 11px; border: 0; border-left: 2px solid transparent; background: none; color: #7f8c8d; cursor: pointer; }
.cq-act button:hover { color: #4e5b61; }
.cq-act button.on { color: var(--teal); border-left-color: var(--teal); }
.cq-side { flex: none; width: 300px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fff; min-height: 0; }
.cq-side.hidden { display: none; }
.cq-side-h { display: flex; align-items: center; padding: 10px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #4e5b61; }
.cq-side-h span { flex: 1; }
.cq-side-c { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.cq-x { border: 0; background: none; color: #7f8c8d; font-size: 15px; cursor: pointer; padding: 0 5px; line-height: 1; }
.cq-x:hover { color: #4e5b61; }
.cq-in { width: 100%; box-sizing: border-box; height: 28px; border: 1px solid var(--line); padding: 0 8px; font: 13px "Open Sans", "Segoe UI", sans-serif; color: #4e5b61; outline: 0; }
.cq-in:focus { border-color: var(--teal); }
.cq-note { color: #7f8c8d; font-size: 12px; margin: 6px 0; line-height: 1.45; }
.cq-btn { height: 28px; padding: 0 14px; border: 1px solid var(--teal); border-radius: 14px; background: var(--teal); color: #fff; font: 600 12px "Open Sans", "Segoe UI", sans-serif; cursor: pointer; margin: 4px 0; }
.cq-btn.ghost { background: #fff; color: var(--teal); }
.cq-btn:hover { filter: brightness(1.08); }
.cq-list { margin-top: 8px; }
.cq-li { display: flex; align-items: center; gap: 6px; padding: 5px 4px; border-radius: 2px; cursor: pointer; }
.cq-li:hover { background: var(--side); }
.cq-li span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cq-li small { color: #95a5a6; }
.cq-cards { margin-top: 8px; }
.cq-card { padding: 10px 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.cq-card .t { font-weight: 700; font-size: 13px; color: #434f54; }
.cq-card .by { color: #7f8c8d; }
.cq-card .ver { color: #4e5b61; margin: 2px 0; }
.cq-card .inst { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 2px; background: #e6f4f4; color: var(--teal); font-size: 10px; font-weight: 700; }
.cq-card .d { color: #4e5b61; margin: 3px 0; }
.cq-card a { color: var(--teal); }
.cq-chk { display: flex; align-items: center; gap: 5px; margin: 6px 0; font-size: 12px; }
.cq-results { font-size: 12px; }
.cq-rf { font-weight: 700; margin: 8px 0 3px; }
.cq-rf small { background: var(--side); border-radius: 8px; padding: 0 6px; font-weight: 400; }
.cq-rl { padding: 2px 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: Consolas, monospace; }
.cq-rl:hover { background: var(--side); }
.cq-rl mark { background: #f8d77a; color: inherit; }
.cq-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cq-tabs { flex: none; display: flex; align-items: stretch; height: 34px; background: var(--side); border-bottom: 1px solid var(--line); }
.cq-tablist { flex: 1; display: flex; overflow-x: auto; scrollbar-width: thin; }
.cq-tab { display: flex; align-items: center; gap: 6px; padding: 0 14px; border-right: 1px solid var(--line); cursor: pointer; white-space: nowrap; color: #7f8c8d; font-size: 13px; }
.cq-tab:hover { color: #4e5b61; }
.cq-tab.on { background: #fff; color: #434f54; box-shadow: inset 0 2px 0 var(--teal); }
.cq-tab .dot { font-style: normal; font-size: 9px; color: #4e5b61; }
.cq-tabmenu { width: 34px; padding: 8px; border: 0; background: none; color: #7f8c8d; cursor: pointer; }
.cq-editor { flex: 1; min-height: 80px; position: relative; }
.cq-split { flex: none; height: 4px; cursor: row-resize; background: var(--line); }
.cq-bottom { flex: none; height: 170px; display: flex; flex-direction: column; min-height: 60px; }
.cq.nobottom .cq-bottom, .cq.nobottom .cq-split { display: none; }
.cq-bottom-h { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px; height: 30px; border-bottom: 1px solid var(--line); }
.cq-bottom-h [data-o="out"], .cq-bottom-h [data-o="serial"] { border: 0; background: none; padding: 6px 10px; font: 12px "Open Sans", "Segoe UI", sans-serif; color: #7f8c8d; cursor: pointer; border-bottom: 2px solid transparent; }
.cq-bottom-h button.on { color: #434f54; border-bottom-color: var(--teal); }
.cq-out { flex: 1; overflow: auto; padding: 6px 12px; font: 12px Consolas, "Source Code Pro", monospace; white-space: pre-wrap; color: #4e5b61; }
.cq-out.hidden { display: none; }
.cq-out .cq-err { color: #da5b4a; }
.cq-out .cq-warn { color: #c08a00; }
.cq-status { flex: none; display: flex; align-items: center; gap: 16px; height: 24px; padding: 0 12px; background: #006d70; color: #fff; font-size: 12px; }
.cq-bell { opacity: .85; }
.cq-bd { display: flex; flex-direction: column; flex: 1; min-height: 0; font-size: 12px; color: #4e5b61; }
.cq-bd-intro { padding: 10px 14px; line-height: 1.45; }
.cq-bd-cols { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 0 14px 8px; }
.cq-bd-cols > div { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.cq-bd-list { flex: 1; overflow-y: auto; border: 1px solid var(--line, #dae3e3); }
.cq-bd-item { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; cursor: pointer; }
.cq-bd-item:hover { background: #ecf1f1; }
.cq-bd-item.on { background: #008184; color: #fff; }
.cq-bd-item small { color: #95a5a6; white-space: nowrap; }
.cq-bd-item.on small { color: #d8f0f0; }
.cq-bd-ports { flex: 1; border: 1px solid #dae3e3; padding: 10px; color: #7f8c8d; line-height: 1.5; }
.cq-prefs { display: flex; flex-direction: column; flex: 1; font-size: 12px; }
.cq-prefs-f { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.cq-prefs-f > label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cq-prefs-f .cq-in { width: 80px; }
.cq.dark { background: #171e21; color: #dae3e3; --line: #2c353a; --side: #1f272a; }
.cq.dark .cq-top, .cq.dark .menubar, .cq.dark .cq-side, .cq.dark .cq-board, .cq.dark .cq-in { background: #171e21; color: #dae3e3; }
.cq.dark .cq-tab.on { background: #171e21; color: #fff; }
.cq.dark .cq-out, .cq.dark .cq-card .t, .cq.dark .cq-card .d, .cq.dark .cq-card .ver { color: #dae3e3; }
@media (max-width: 700px) { .cq-board { min-width: 0; flex: 1; } .cq-side { position: absolute; z-index: 5; height: 100%; left: 48px; } .cq-body { position: relative; } }
/* Atelier Croquis : moniteur série, carte virtuelle, traceur */
.cq-round.busy { animation: cqspin 1s linear infinite; }
@keyframes cqspin { 50% { opacity: .55; } }
.cq-mon { display: flex; flex-direction: column; padding: 0 !important; white-space: normal; }
.cq-mon.hidden { display: none; }
.cq-mon-bar { flex: none; display: flex; gap: 6px; align-items: center; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.cq-mon-bar .cq-in { flex: 1; height: 26px; }
.cq-mon-bar select { height: 26px; font: 12px "Open Sans", "Segoe UI", sans-serif; border: 1px solid var(--line); color: #4e5b61; background: #fff; }
.cq-mon-bar .cq-flat { width: 28px; height: 26px; padding: 2px; font-size: 14px; color: #95a5a6; }
.cq-mon-bar .cq-flat.on { color: var(--teal); background: var(--side); }
.cq-mon-out { flex: 1; overflow: auto; padding: 6px 12px; font: 12px Consolas, "Source Code Pro", monospace; white-space: pre-wrap; word-break: break-all; color: #4e5b61; }
.cb-client { background: #f4f7f7; }
.cb { display: flex; flex-direction: column; flex: 1; min-height: 0; font: 12px "Open Sans", "Segoe UI", sans-serif; color: #4e5b61; }
.cb-bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #dae3e3; }
.cb-bar button, .cb-bar select { height: 26px; min-width: 30px; border: 1px solid #dae3e3; background: #fff; border-radius: 3px; color: #434f54; cursor: pointer; font: 13px "Segoe UI", sans-serif; }
.cb-bar button:hover { border-color: #008184; }
.cb-state { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cb-state i { width: 10px; height: 10px; border-radius: 50%; background: #95a5a6; }
.cb-state.run i { background: #27ae60; box-shadow: 0 0 6px #27ae60; }
.cb-state.pause i { background: #f1c40f; }
.cb-state.err i { background: #da5b4a; }
.cb-time { font: 12px Consolas, monospace; color: #7f8c8d; }
.cb-scroll { flex: 1; overflow-y: auto; padding: 10px; }
.cb-svg { width: 100%; height: auto; display: block; }
.cb-svg circle[class^="cb-led"] { fill: #3d4a4f; transition: fill .05s; }
.cb-svg .cb-led-on.lit { fill: #2ecc71; } .cb-svg .cb-led-l.lit { fill: #f39c12; } .cb-svg .cb-led-tx.lit, .cb-svg .cb-led-rx.lit { fill: #f1c40f; }
.cb-msg div { margin: 6px 0; padding: 5px 8px; border-radius: 3px; background: #fff8e1; border: 1px solid #f0d58c; }
.cb-msg div.err { background: #fdecea; border-color: #e8a59d; color: #a33; }
.cb-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.cb-card { background: #fff; border: 1px solid #dae3e3; border-radius: 4px; padding: 7px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cb-ct { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.cb-ct b { font-size: 12px; color: #434f54; } .cb-ct small { color: #95a5a6; font-size: 10px; text-align: right; }
.cb-val { font: 11px Consolas, monospace; color: #7f8c8d; }
.cb-note { font-size: 10px; color: #95a5a6; text-align: center; }
.cb-led-big i { display: block; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb3a7, #e74c3c 55%, #8e1d12); opacity: .12; box-shadow: none; }
.cb-led-big i.lit { box-shadow: 0 0 14px #ff5a45; }
.cb-led-big.rgb i { background: #000; opacity: 1; border: 1px solid #ccc; }
.cb-push { width: 70px; height: 34px; border-radius: 17px; border: 2px solid #555; background: linear-gradient(#f2f2f2, #c9c9c9); cursor: pointer; font: 600 11px "Segoe UI", sans-serif; user-select: none; touch-action: none; }
.cb-push.on { background: linear-gradient(#bbb, #e0e0e0); box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.cb-hold { font-size: 10px; display: flex; align-items: center; gap: 3px; }
.cb-pot { width: 100%; }
.cb-servo { width: 100px; }
.cb-spk { font-size: 26px; }
.cb-bits { display: flex; gap: 3px; } .cb-bits i { width: 10px; height: 10px; border-radius: 50%; background: #ddd; } .cb-bits i.lit { background: #e74c3c; box-shadow: 0 0 5px #e74c3c; }
.cb-num { width: 56px; }
.cb-extra > * { margin-top: 10px; }
.cb-lcd { background: #fff; border: 1px solid #dae3e3; border-radius: 4px; padding: 8px; text-align: center; }
.cb-lcd canvas { max-width: 100%; border: 6px solid #1e3d14; border-radius: 3px; }
.cb-step svg { width: 70px; }
.cb-wifi { padding: 6px 8px; background: #e6f4f4; border: 1px solid #b7dcdc; border-radius: 3px; }
.cb-web { background: #fff; border: 1px solid #dae3e3; border-radius: 4px; padding: 8px; }
.cb-url { display: flex; align-items: center; gap: 4px; margin: 6px 0; font: 12px Consolas, monospace; }
.cb-url input { flex: 1; height: 24px; border: 1px solid #dae3e3; padding: 0 6px; font: 12px Consolas, monospace; }
.cb-url button { height: 26px; }
.cb-web iframe { width: 100%; height: 260px; border: 1px solid #dae3e3; background: #fff; }
.cb-help { margin-top: 12px; font-size: 11px; color: #95a5a6; }
.cpl-client { background: #fff; }
.cpl { display: flex; flex-direction: column; flex: 1; min-height: 0; font: 12px "Open Sans", "Segoe UI", sans-serif; color: #4e5b61; }
.cpl-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #dae3e3; flex-wrap: wrap; }
.cpl-bar button { height: 24px; border: 1px solid #dae3e3; background: #fff; border-radius: 3px; cursor: pointer; }
.cpl-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.cpl-legend label { display: flex; align-items: center; gap: 4px; }
.cpl-legend i { width: 14px; height: 4px; background: var(--c); border-radius: 2px; }
.cpl canvas { flex: 1; min-height: 0; width: 100%; }
.cpl-send { display: flex; gap: 6px; padding: 6px 10px; border-top: 1px solid #dae3e3; }
.cpl-send input { flex: 1; height: 24px; border: 1px solid #dae3e3; padding: 0 6px; }

/* --------------------------------------------------------------------------
   Analyse de cible
   -------------------------------------------------------------------------- */
.tir { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; }
.tir .cmdbar button.on { border-color: #6f97c4; background: linear-gradient(#dfe9f5, #c5d8ee); }
.tir-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.tir-cal { display: flex; align-items: center; gap: 6px; color: #1e395b; white-space: nowrap; }
.tir-cal select { height: 22px; padding: 1px 3px; }
.tir-cal select.est { font-style: italic; }
.tir-body { flex: 1; min-height: 0; display: flex; }
.tir-view { position: relative; flex: 1; min-width: 0; background: #4a4f57; overflow: hidden; touch-action: none; }
.tir-view canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.tir-view.m-shot canvas, .tir-view.m-sticker canvas, .tir-view.m-target canvas { cursor: crosshair; }
.tir-view.drag canvas { cursor: grabbing; }
.tir-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #eef1f5; text-align: center; padding: 20px; }
.tir-empty .ico { width: 72px; height: 72px; }
.tir-empty .ico svg { width: 100%; height: 100%; }
.tir-empty b { font-size: 16px; font-weight: normal; }
.tir-empty .btn7 { color: #000; }
.tir-empty small { color: #c3cad3; max-width: 340px; }
.tir-view.over .tir-empty { background: rgba(80,150,230,.25); outline: 2px dashed #9cc8f5; outline-offset: -10px; }
.tir-busy { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(255,255,255,.94); color: #1e395b; border: 1px solid #8ea7c4; padding: 6px 14px; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tir-side { width: 260px; flex: none; overflow: auto; background: #f5f8fc; border-left: 1px solid #c5d2e3; }
.tir-sec { border-bottom: 1px solid #dde5ef; padding: 8px 10px; }
.tir-sec h3 { margin: 0; font-size: 13px; font-weight: normal; color: #1e3287; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tir-sec h3 b { font-size: 15px; color: #c40000; white-space: nowrap; }
.tir-sec .sub { color: #555; font-size: 11px; margin: 2px 0 6px; }
.tir-sec .sub b { color: #1e3287; font-size: 13px; }
.tir-row { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border: 1px solid transparent; border-radius: 2px; cursor: default; }
.tir-row:hover { background: #e5f3fb; border-color: #c4e3f6; }
.tir-row.sel { background: #cce8ff; border-color: #84acdd; }
.tir-row .n { min-width: 22px; height: 16px; padding: 0 3px; background: #e01b1b; color: #fff; font-weight: bold; font-size: 11px; text-align: center; line-height: 16px; border-radius: 2px; }
.tir-row .l { color: #777; font-size: 11px; }
.tir-row .v { margin-left: auto; font-weight: bold; white-space: nowrap; }
.tir-row .x { border: 0; background: none; color: #888; width: 16px; padding: 0; font-size: 14px; line-height: 1; cursor: pointer; visibility: hidden; }
.tir-row:hover .x, .tir-row.sel .x { visibility: visible; }
.tir-row .x:hover { color: #c40000; }
.tir-note { padding: 8px 10px; color: #555; font-size: 11px; line-height: 1.5; }
@media (max-width: 700px) {
  .tir-body { flex-direction: column; }
  .tir-side { width: auto; height: 38%; border-left: 0; border-top: 1px solid #c5d2e3; }
}

/* ===== Atelier Circuit (plaque d'essai, schéma, simulation) ===== */
.ac-client { background: #f3f5f8; }
.ac { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; }
.ac-tools { flex-wrap: wrap; row-gap: 2px; }
.ac-tools button.on { border-color: #6f97c4; background: linear-gradient(#dfe9f5, #c5d8ee); }
.ac-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.ac-colors { display: inline-flex; gap: 3px; align-items: center; margin-left: 2px; }
.ac-colors.hidden { display: none; }
.ac-tools .ac-colors button { width: 15px; height: 15px; min-width: 0; padding: 0; margin: 0; border-radius: 3px; border: 1px solid #556 !important; background: var(--c) !important; box-shadow: none; }
.ac-tools .ac-colors button.on { outline: 2px solid #3399ff; outline-offset: 1px; }
.ac-viewsw { display: inline-flex; gap: 0; }
.ac-tools .ac-simbtn.on { color: #a00; font-weight: bold; }
.ac-body { flex: 1; min-height: 0; display: flex; }
.ac-pal { width: 200px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #c9d3df; background: #fff; }
.ac-q { margin: 6px; padding: 3px 6px; border: 1px solid #abadb3; font: inherit; }
.ac-list { flex: 1; overflow-y: auto; padding: 0 4px 8px; }
.ac-cat { font-weight: bold; color: #1e395b; margin: 8px 4px 3px; border-bottom: 1px solid #e1e7ef; padding-bottom: 2px; }
.ac-item { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border: 1px solid transparent; border-radius: 3px; cursor: grab; user-select: none; line-height: 1.2; touch-action: none; }
.ac-item:hover { background: #e5f3fb; border-color: #a5d2ee; }
.ac-ico { width: 34px; height: 34px; flex: none; display: flex; }
.ac-ico svg { width: 100%; height: 100%; }
.ac-none { padding: 10px; color: #777; }
.ac-view { position: relative; flex: 1; min-width: 0; background: #fbfcf8; overflow: hidden; touch-action: none; }
.ac-view.sch { background: #fff; }
.ac-svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.ac-part { cursor: move; }
.ac-svg [data-wid] { cursor: pointer; }
.ac-handle { cursor: grab; }
.ac-view.panning .ac-svg, .ac-view.grab .ac-svg, .ac-view.grab .ac-part { cursor: grabbing; }
.ac-view.wiring .ac-svg, .ac-view.wiring .ac-part { cursor: crosshair; }
.ac-view.simulating .ac-int { cursor: pointer; }
.ac-banner { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.ac-banner > div { pointer-events: auto; align-self: flex-start; padding: 5px 10px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.18); max-width: 100%; }
.ac-banner .warn { background: #fff4ce; border: 1px solid #e0b100; color: #5a4300; }
.ac-banner .info { background: #e8f2fc; border: 1px solid #8cb7e6; color: #123; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ac-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 90%; width: min(560px, 90%); text-align: center; color: #456; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ac-empty.hidden { display: none; }
.ac-empty b { font-size: 16px; color: #1e395b; }
.ac-empty div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ac-insp { width: 236px; flex: none; border-left: 1px solid #c9d3df; background: #f7f9fc; overflow-y: auto; padding: 8px 10px; }
.ac-ih { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ac-ih b { display: block; color: #1e395b; font-size: 13px; }
.ac-ih small { color: #667; }
.ac-field { display: flex; flex-direction: column; gap: 3px; margin: 7px 0; }
.ac-field input[type="range"] { width: 100%; }
.ac-unit { display: flex; align-items: center; gap: 4px; }
.ac-unit input { flex: 1; min-width: 0; }
.ac-unit i { font-style: normal; color: #555; }
.ac-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.ac-swatches button { width: 20px; height: 20px; border: 1px solid #666; border-radius: 3px; padding: 0; cursor: pointer; }
.ac-swatches button.on { outline: 2px solid #3399ff; outline-offset: 1px; }
.ac-note { margin: 8px 0; color: #3e4e5e; background: #eef3f9; border: 1px solid #d5e1ef; padding: 6px 7px; border-radius: 3px; line-height: 1.35; }
.ac-pins { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 3px; }
.ac-pins b { width: 100%; color: #1e395b; }
.ac-pins span { background: #fff; border: 1px solid #ccd5e0; padding: 1px 6px; border-radius: 8px; }
.ac-lt { display: block; margin: 10px 0 3px; color: #1e395b; }
.ac-live > div { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px dotted #d0d8e2; }
.ac-live > div b { color: #0b5394; text-align: right; }
.ac-acts { display: flex; gap: 6px; margin-top: 10px; }
.ac-help { line-height: 1.4; }
.ac-help ul { padding-left: 16px; margin: 4px 0; }
.ac-help li { margin: 4px 0; }
.ac-ghost { position: fixed; width: 60px; height: 60px; pointer-events: none; z-index: 99999; opacity: .85; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.ac-ghost svg { width: 100%; height: 100%; }
.ac-dlg { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ac-dlg-c { flex: 1; overflow: auto; padding: 10px; background: #fff; }
.ac-table { border-collapse: collapse; width: 100%; }
.ac-table th, .ac-table td { border: 1px solid #d5dbe3; padding: 3px 6px; text-align: left; vertical-align: top; }
.ac-table th { background: #eef3f9; }
.ac-helpbox p { margin: 0 0 9px; line-height: 1.45; }
@media (max-width: 700px) {
  .ac-pal { width: 120px; }
  .ac-pal .ac-item span:last-child { display: none; }
  .ac-insp { display: none; }
}

/* ===== Analyseur de paquets ===== */
.pq-client { background: #fff; }
.pq { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; font-size: 12px; }
.pq.busy { cursor: progress; }
.pq.drag::after { content: 'Déposez la capture ici'; position: absolute; top: 60px; right: 12px; bottom: 30px; left: 12px; inset: 60px 12px 30px; border: 3px dashed #3a7bd5; background: rgba(230,240,255,.85); color: #1e395b; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; }
.pq-tools { flex-wrap: wrap; row-gap: 2px; }
.pq-tools button.on { border-color: #6f97c4; background: linear-gradient(#dfe9f5, #c5d8ee); }
.pq-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.pq-fbar { display: flex; align-items: center; gap: 2px; padding: 3px 4px; background: #f5f7fa; border-bottom: 1px solid #c9d3df; flex: none; }
.pq-fic { color: #3b5a85; padding: 0 4px; font-size: 14px; }
.pq-filter { flex: 1; min-width: 0; height: 24px; border: 1px solid #abadb3; padding: 2px 6px; font: 12px Consolas, Menlo, monospace; background: #fff; }
.pq-filter.ok { background: #afffaf; }
.pq-filter.bad { background: #ffafaf; }
.pq-fbar button { height: 24px; min-width: 26px; border: 1px solid #abadb3; background: linear-gradient(#fff, #e8edf3); cursor: pointer; }
.pq-fbar button:hover { border-color: #3c7fb1; background: linear-gradient(#eaf6fd, #bee6fd); }
.pq-findbar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #fffbe6; border-bottom: 1px solid #e6d88a; flex: none; }
.pq-findbar.hidden { display: none; }
.pq-findbar .txt7 { flex: 1; min-width: 0; font-family: Consolas, Menlo, monospace; }
.pq-panes { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.pq-list { flex: 0 0 44%; min-height: 60px; display: flex; flex-direction: column; border-bottom: 1px solid #c9d3df; }
.pq-head { display: flex; flex: none; background: linear-gradient(#fff, #edf1f6); border-bottom: 1px solid #c9d3df; overflow: hidden; white-space: nowrap; user-select: none; }
.pq-head span { position: relative; padding: 3px 6px; border-right: 1px solid #dde3ea; cursor: pointer; overflow: hidden; text-overflow: ellipsis; color: #1e395b; }
.pq-head span:hover { background: #e3eefb; }
.pq-head span.r, .pq-row span.r { text-align: right; }
.pq-head i { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 1; }
.pq-scroll { flex: 1; overflow: auto; position: relative; outline: 0; }
.pq-spacer { position: relative; min-width: 100%; }
.pq-row { position: absolute; left: 0; right: 0; height: 19px; line-height: 19px; display: flex; white-space: nowrap; cursor: default; background: var(--bg, #fff); color: var(--fg, #12272e); font-family: Consolas, Menlo, 'DejaVu Sans Mono', monospace; font-size: 11.5px; }
.pq-row span { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.pq-row.sel { background: #3399ff !important; color: #fff !important; }
.pq-split { flex: none; height: 5px; background: #e6ebf1; cursor: row-resize; border-top: 1px solid #d3dbe5; border-bottom: 1px solid #d3dbe5; }
.pq-split:hover { background: #c9dcf2; }
.pq-tree { flex: 1; min-height: 60px; overflow: auto; outline: 0; font-family: Consolas, Menlo, monospace; font-size: 11.5px; padding: 2px 0; }
.pq-tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.pq-tree > ul { padding-left: 2px; }
.pq-tl { display: flex; align-items: flex-start; white-space: pre; cursor: default; padding: 0 4px; line-height: 17px; }
.pq-tl i { flex: none; width: 13px; height: 17px; font-style: normal; color: #555; cursor: pointer; }
li.closed > .pq-tl i::before { content: '▸'; }
li.open > .pq-tl i::before { content: '▾'; }
.pq-tree li.sel > .pq-tl { background: #3399ff; color: #fff; }
.pq-tree li.sel > .pq-tl i { color: #fff; }
.pq-tree > ul > li > .pq-tl { font-weight: bold; color: #12274a; }
.pq-tree > ul > li.sel > .pq-tl { color: #fff; }
.pq-bytes { flex: 0 0 24%; min-height: 50px; overflow: auto; font: 12px/16px Consolas, Menlo, monospace; padding: 4px 8px; white-space: pre; color: #222; background: #fcfcfd; }
.pq-bytes .off { color: #8a95a3; }
.pq-bytes b { font-weight: normal; }
.pq-bytes b.hl { background: #3399ff; color: #fff; }
.pq-welcome { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #fff; overflow: auto; z-index: 2; }
.pq-welcome.hidden { display: none; }
.pq-wc { max-width: 780px; margin: 0 auto; padding: 24px 24px 30px; color: #333; }
.pq-wc h2 { color: #1e395b; font-weight: normal; font-size: 22px; margin: 0 0 8px; }
.pq-wc h3 { color: #1e395b; font-weight: normal; font-size: 15px; margin: 22px 0 8px; border-bottom: 1px solid #dde3ea; padding-bottom: 4px; }
.pq-drop { margin-top: 14px; padding: 18px; border: 2px dashed #a9bfd9; border-radius: 6px; display: flex; gap: 14px; align-items: center; color: #567; background: #f7faff; }
.pq-exs { display: grid; gap: 10px; }
.pq-ex { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #dde3ea; border-radius: 4px; background: #fbfcfe; }
.pq-ex b { color: #1e395b; font-size: 13px; }
.pq-ex span { color: #555; line-height: 1.4; }
.pq-small { margin-top: 20px; color: #666; line-height: 1.5; }
.pq-small code, .pq-help code { background: #f0f3f7; padding: 1px 4px; border-radius: 3px; font-family: Consolas, Menlo, monospace; }
.pq .statusbar .pq-st.err { color: #b00; }
.pq-subc { background: #fff; }
.pq-sub { display: flex; flex-direction: column; flex: 1; min-height: 0; font-size: 12px; }
.pq-scrollbox { flex: 1; overflow: auto; min-height: 0; }
.pq-subfoot { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid #dde3ea; background: #f5f7fa; flex: none; flex-wrap: wrap; }
.pq-subfoot .sp { flex: 1; }
.pq-subfoot label { display: flex; align-items: center; gap: 4px; }
.pq-hint { color: #667; }
.pq-none { padding: 16px; color: #667; }
.pq-t { border-collapse: collapse; width: 100%; }
.pq-t th { position: sticky; top: 0; background: linear-gradient(#fff, #edf1f6); border-bottom: 1px solid #c9d3df; border-right: 1px solid #dde3ea; padding: 4px 7px; text-align: left; color: #1e395b; font-weight: normal; white-space: nowrap; z-index: 1; }
.pq-t td { padding: 3px 7px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.pq-t th.r, .pq-t td.r { text-align: right; }
.pq-t tbody tr:hover { background: #eef5fd; }
.pq-t tbody tr.sel { background: #3399ff; color: #fff; }
.pq-t tbody tr.warn td { color: #b00; }
.pq-t tbody tr.sel.warn td { color: #fff; }
.pq-t.kv td:first-child { color: #1e395b; width: 180px; }
.pq-t.help td { white-space: normal; cursor: pointer; }
.pq-t .pq-bar { display: inline-block; height: 9px; background: #6aa6e8; margin-right: 6px; vertical-align: middle; max-width: 70px; }
.pq-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid #c9d3df; flex: none; background: #f5f7fa; }
.pq-tabs button { border: 1px solid #c9d3df; border-bottom: 0; background: #e9eef5; padding: 4px 12px; border-radius: 3px 3px 0 0; cursor: pointer; margin-bottom: -1px; }
.pq-tabs button.on { background: #fff; border-bottom: 1px solid #fff; color: #1e395b; font-weight: bold; }
.pq-iobar { display: flex; gap: 14px; padding: 6px 8px; flex-wrap: wrap; flex: none; border-bottom: 1px solid #dde3ea; }
.pq-iobar label { display: flex; gap: 5px; align-items: center; }
.pq-iobar .txt7 { width: 220px; font-family: Consolas, Menlo, monospace; }
.pq-iobar .txt7.bad { background: #ffafaf; }
canvas.pq-io { flex: 1; min-height: 0; width: 100%; display: block; cursor: crosshair; }
.pq-follow { flex: 1; overflow: auto; font: 12px/1.4 Consolas, Menlo, monospace; white-space: pre-wrap; word-break: break-all; padding: 6px 8px; }
.pq-follow .cl { color: #7e0000; background: #fbeded; }
.pq-follow .sv { color: #00007e; background: #ededfb; }
.pq-subfoot b.cl { color: #c33; } .pq-subfoot b.sv { color: #33c; }
.pq-flow svg { display: block; }
.pq-fev { cursor: pointer; }
.pq-fev:hover rect { fill: #eef5fd; }
.pq-fev.sel rect { fill: #cfe4fb; }
.pq-rtpsum { padding: 6px 10px; border-bottom: 1px solid #dde3ea; flex: none; }
canvas.pq-jit { flex: 0 0 110px; width: 100%; display: block; border-bottom: 1px solid #dde3ea; }
.pq-player { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pq-pbar { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid #dde3ea; flex: none; flex-wrap: wrap; }
.pq-pbar .sp { flex: 1; }
.pq-ptime { font-family: Consolas, Menlo, monospace; min-width: 120px; }
.pq-waves { flex: 1; overflow: auto; padding: 4px 8px; }
.pq-wave { margin: 6px 0; }
.pq-wave label { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pq-wave small { color: #667; }
.pq-wave canvas { width: 100%; height: 80px; display: block; border: 1px solid #dde3ea; margin-top: 3px; cursor: pointer; }
.pq-help { padding: 10px 14px; line-height: 1.5; }
.pq-help .ok { background: #afffaf; padding: 0 4px; } .pq-help .bad { background: #ffafaf; padding: 0 4px; }
@media (max-width: 700px) {
  .pq-tools button { padding: 0 4px; }
  .pq-row span:nth-child(2), .pq-head span:nth-child(2), .pq-row span:nth-child(6), .pq-head span:nth-child(6) { display: none; }
}

/* ===== Présentation (diaporamas) ===== */
.office.slides { --of: #c43e1c; --of-light: #fbe3d8; }
.dp-client { background: #fff; }
.dp-app { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; }
.dp-body { flex: 1; min-height: 0; display: flex; background: #e6e6e6; }
.dp-thumbs { width: 190px; flex: none; overflow-y: auto; background: #f3f3f3; border-right: 1px solid #d0d0d0; padding: 8px 6px 8px 0; outline: 0; }
.dp-thumbs.hidden { display: none; }
.dp-t { display: flex; gap: 5px; padding: 4px 4px 4px 0; position: relative; cursor: default; }
.dp-tn { width: 24px; text-align: right; color: #555; font-size: 12px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dp-tn i { font-style: normal; color: #c43e1c; font-size: 11px; }
.dp-tbox { position: relative; overflow: hidden; border: 1px solid #c8c8c8; background: #fff; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.dp-tin { transform-origin: 0 0; pointer-events: none; }
.dp-t.cur .dp-tbox { outline: 3px solid #c43e1c; border-color: #c43e1c; }
.dp-t:hover .dp-tbox { border-color: #e07a5f; }
.dp-t.hidden-slide .dp-tbox { opacity: .55; }
.dp-hid { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.1) 8px 9px); }
.dp-t.drop-before::before, .dp-t.drop-after::after { content: ''; position: absolute; left: 28px; right: 4px; height: 3px; background: #c43e1c; }
.dp-t.drop-before::before { top: 0; } .dp-t.drop-after::after { bottom: 0; }
.dp-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-center.hidden { display: none; }
.dp-stagewrap { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 18px 24px; }
.dp-frame { position: relative; flex: none; margin: auto; box-shadow: 0 2px 10px rgba(0,0,0,.25); background: #fff; touch-action: none; }
.dp-frame.drawing, .dp-frame.drawing .sl-el { cursor: crosshair; }
.dp-frame.dropping { outline: 3px dashed #c43e1c; outline-offset: 4px; }
.dp-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.dp-canvas .sl-el { cursor: move; user-select: none; -webkit-user-select: none; }
.dp-canvas .sl-el.dp-editing, .dp-canvas .dp-editing .sl-tx, .dp-canvas .dp-editing .sl-in { cursor: text; user-select: text; -webkit-user-select: text; }
.dp-canvas .sl-picph { cursor: pointer; }
.dp-sel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; }
.dp-box { position: absolute; border: 1px solid #5b8ad6; box-sizing: border-box; }
.dp-box.editing { border-style: dashed; border-color: #7f8fa6; }
.dp-h { position: absolute; background: #fff; border: 1px solid #5b5b5b; border-radius: 50%; pointer-events: auto; box-sizing: border-box; }
.dp-h.h-nw { left: 0; top: 0; cursor: nwse-resize; } .dp-h.h-n { left: 50%; top: 0; cursor: ns-resize; } .dp-h.h-ne { left: 100%; top: 0; cursor: nesw-resize; } .dp-h.h-e { left: 100%; top: 50%; cursor: ew-resize; }
.dp-h.h-se { left: 100%; top: 100%; cursor: nwse-resize; } .dp-h.h-s { left: 50%; top: 100%; cursor: ns-resize; } .dp-h.h-sw { left: 0; top: 100%; cursor: nesw-resize; } .dp-h.h-w { left: 0; top: 50%; cursor: ew-resize; }
.dp-h.h-rot { left: 50%; cursor: grab; background: #fff; }
.dp-guide { position: absolute; background: #e8473b; } .dp-guide.v { top: 0; bottom: 0; } .dp-guide.h { left: 0; right: 0; }
.dp-band { position: absolute; border: 1px solid #5b8ad6; background: rgba(91,138,214,.12); }
.dp-badge { position: absolute; background: #5b5b5b; color: #fff; border-radius: 2px; line-height: 1.3; pointer-events: none; font-family: Arial, sans-serif; }
.dp-gridov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(0,0,0,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.09) 1px, transparent 1px); background-size: 40px 40px; }
.dp-gridov.hidden { display: none; }
.dp-split { flex: none; height: 5px; cursor: row-resize; background: #e6e6e6; border-top: 1px solid #d0d0d0; }
.dp-split.hidden { display: none; }
.dp-notes { flex: none; height: 72px; resize: none; border: 0; border-top: 1px solid #ccc; padding: 8px 14px; font: 13px var(--font); outline: 0; background: #fff; color: #222; }
.dp-notes.hidden { display: none; }
.dp-anpane { width: 240px; flex: none; background: #fff; border-left: 1px solid #d0d0d0; display: flex; flex-direction: column; }
.dp-anpane.hidden { display: none; }
.dp-anh { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-bottom: 1px solid #e0e0e0; }
.dp-x { border: 0; background: none; font-size: 18px; cursor: pointer; color: #555; }
.dp-anl { flex: 1; overflow: auto; padding: 6px; }
.dp-an { display: grid; grid-template-columns: 22px 1fr; gap: 0 6px; padding: 5px 6px; border: 1px solid transparent; border-radius: 3px; cursor: default; }
.dp-an b { grid-row: span 2; color: #c43e1c; } .dp-an small { color: #777; } .dp-an span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-an:hover { background: #f6f6f6; } .dp-an.sel { background: #fbe3d8; border-color: #e9a68d; }
.dp-none { color: #777; padding: 8px; line-height: 1.4; }
.dp-sorter { flex: 1; overflow: auto; display: flex; flex-wrap: wrap; gap: 20px; align-content: flex-start; padding: 22px; }
.dp-sorter.hidden { display: none; }
.dp-sorter .dp-t { flex-direction: column; align-items: center; padding: 4px; }
.dp-sorter .dp-tn { width: auto; flex-direction: row; }
.dp-gal { display: flex; gap: 3px; max-width: 600px; overflow-x: auto; }
.dp-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 70px; height: 56px; border: 1px solid transparent; background: none; border-radius: 2px; font-size: 11px; cursor: default; color: #333; flex: none; line-height: 1.1; }
.dp-tile span { font-size: 20px; color: #c43e1c; }
.dp-tile:hover { border-color: #c5c5c5; background: #fff; } .dp-tile.on { border-color: #a0a0a0; background: #d6d6d6; } .dp-tile:disabled { opacity: .4; }
.dp-themes { max-width: 740px; }
.dp-thm { border: 1px solid transparent; background: none; padding: 2px; cursor: default; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #333; flex: none; }
.dp-thm.on .dp-tbox, .dp-thm:hover .dp-tbox { outline: 2px solid #c43e1c; }
.dp-shapes { display: grid; grid-template-columns: repeat(5, 26px); gap: 1px; align-content: start; }
.dp-shapes .of-btn { padding: 0; min-width: 26px; }
.office .of-color .dp-sw { position: absolute; left: 3px; right: 3px; bottom: 1px; height: 3px; pointer-events: none; }
.dp-pop { position: fixed; z-index: 99999; background: #fff; border: 1px solid #999; box-shadow: 2px 3px 8px rgba(0,0,0,.25); padding: 6px; }
.dp-tg { display: grid; grid-template-columns: repeat(8, 16px); gap: 2px; }
.dp-tg i { width: 16px; height: 16px; border: 1px solid #bbb; background: #fff; box-sizing: border-box; }
.dp-tg i.on { background: #fbd2c2; border-color: #c43e1c; }
.dp-tl { font-size: 12px; margin-top: 5px; text-align: center; }
.dp-sym { display: grid; grid-template-columns: repeat(10, 30px); gap: 2px; }
.dp-sym button { width: 30px; height: 30px; border: 1px solid #ddd; background: #fff; font-size: 16px; cursor: pointer; padding: 0; }
.dp-sym button:hover { background: #fbe3d8; }
.dp-dlg { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.dp-dlg label { display: flex; gap: 6px; align-items: center; }
.dp-dlg .dialog-foot { margin-top: auto; }
.dp-sbtn { border: 0; background: none; cursor: pointer; padding: 0 4px; font-size: 12px; color: #333; }
.dp-sbtn.on { color: #c43e1c; font-weight: bold; }
@media (max-width: 700px) {
  .dp-thumbs { width: 96px; }
  .dp-thumbs .dp-tn { display: none; }
  .dp-anpane { display: none; }
}

/* ===== Tableur : grille agrandie (lignes dessinées à la demande) et feuilles ===== */
.xl-grid.xl-v2 { table-layout: fixed; }
.xl-grid.xl-v2 thead th { min-width: 0; width: auto; position: sticky; top: 0; }
.xl-grid.xl-v2 thead th.xl-corner { left: 0; }
.xl-grid.xl-v2 td { max-width: none; box-sizing: content-box; }
.xl-grid.xl-v2 tr.xl-sp td { border: 0; padding: 0; background: none !important; }
.xl-grid.xl-v2 thead th { overflow: visible; }
.xl-rz { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 4; }
.xl-sheets { align-items: stretch; }
.xl-tabs { display: flex; gap: 2px; overflow-x: auto; min-width: 0; }
.xl-tabs span { cursor: pointer; white-space: nowrap; color: #444; font-weight: 400; border-bottom: 1px solid #c6c6c6; background: #e9e9e9; }
.xl-tabs span.on { color: #217346; font-weight: 600; background: #fff; border-bottom: 2px solid #217346; }
.xl-tabs span:hover { background: #fff; }
.xl-add { border: 0; background: none; color: #217346; font-size: 16px; padding: 0 10px; cursor: pointer; }
.xl-add:hover { background: #e3efe7; }

/* ==========================================================================
   Montage vidéo (montage.js)
   ========================================================================== */
.mv { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; }
.mv.over .mv-stage { outline: 2px dashed #9cc8f5; outline-offset: -6px; }
.mv .cmdbar button.rec { color: #c40000; font-weight: bold; }
.mv .cmdbar .mv-go { border-color: #c2185b; color: #fff; background: linear-gradient(#ff5c9a, #e0256e); font-weight: bold; padding: 0 12px; }
.mv .cmdbar .mv-go:hover { background: linear-gradient(#ff7aae, #ea3a80); border-color: #a3134a; }
.mv-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.mv-fmt { display: flex; align-items: center; gap: 6px; color: #1e395b; white-space: nowrap; margin-right: 6px; }
.mv-fmt select { height: 22px; padding: 1px 3px; }
.mv-top { flex: 1; min-height: 0; display: flex; }
.mv-bin { width: 190px; flex: none; display: flex; flex-direction: column; background: #f5f8fc; border-right: 1px solid #c5d2e3; min-height: 0; }
.mv-h { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; color: #1e3287; border-bottom: 1px solid #dde5ef; }
.mv-h button { border: 1px solid #a9b9cf; background: linear-gradient(#fff, #e6edf6); border-radius: 2px; width: 22px; height: 20px; padding: 0; cursor: pointer; }
.mv-bin-list { flex: 1; overflow: auto; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.mv-bin-list .mv-note { grid-column: 1 / -1; }
.mv-tile { position: relative; height: 62px; border: 1px solid #b8c6d8; border-radius: 3px; background: #2b2f36; overflow: hidden; cursor: grab; user-select: none; touch-action: none; }
.mv-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mv-tile .aud { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: 24px; background: linear-gradient(135deg, #3d7bd9, #8e44c9); }
.mv-tile .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-tile .du { position: absolute; right: 3px; top: 3px; padding: 0 3px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; border-radius: 2px; }
.mv-tile .add { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #e0256e; color: #fff; font-weight: bold; cursor: pointer; opacity: 0; transition: opacity .12s; }
.mv-tile:hover .add { opacity: 1; }
.mv-tile.k-video::after { content: '▶'; position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); color: rgba(255,255,255,.75); font-size: 13px; pointer-events: none; }
.mv-ghost { position: fixed; z-index: 99999; width: 84px; height: 52px; border-radius: 3px; overflow: hidden; opacity: .8; pointer-events: none; box-shadow: 0 3px 10px rgba(0,0,0,.4); background: #2b2f36; }
.mv-ghost img { width: 100%; height: 100%; object-fit: cover; }
.mv-ghost .add, .mv-ghost .nm, .mv-ghost .du { display: none; }
.mv-stage { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: #1e2127; }
.mv-stage:fullscreen { background: #000; }
.mv-screen { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mv-screen canvas { display: block; box-shadow: 0 0 0 1px #3b4049, 0 4px 18px rgba(0,0,0,.5); touch-action: none; cursor: default; background: #000; }
.mv-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #eef1f5; text-align: center; padding: 20px; background: rgba(30,33,39,.88); }
.mv-empty .ico { width: 72px; height: 72px; }
.mv-empty .ico svg { width: 100%; height: 100%; }
.mv-empty b { font-size: 16px; font-weight: normal; }
.mv-empty .btn7 { color: #000; }
.mv-empty small { color: #b9c0ca; max-width: 340px; }
.mv-ctrl { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: #262a31; border-top: 1px solid #3a3f48; color: #dfe3e8; }
.mv-ctrl button { width: 30px; height: 24px; border: 1px solid #4a505a; border-radius: 3px; background: linear-gradient(#3b4049, #2c3038); color: #fff; cursor: pointer; padding: 0; font-size: 12px; }
.mv-ctrl button:hover { border-color: #ff5c9a; }
.mv-ctrl .m-play { width: 40px; }
.mv-ctrl .sp { flex: 1; }
.mv-time { font: 12px Consolas, "Courier New", monospace; margin-left: 8px; color: #fff; }
.mv-props { width: 270px; flex: none; overflow: auto; background: #f5f8fc; border-left: 1px solid #c5d2e3; }
.mv-sec { border-bottom: 1px solid #dde5ef; padding: 8px 10px; }
.mv-sec h3 { margin: 0 0 6px; font-size: 13px; font-weight: normal; color: #1e3287; }
.mv-note { color: #555; font-size: 11px; line-height: 1.5; margin-bottom: 4px; }
.mv-note b { color: #1e3287; }
.mv-f { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 6px; margin: 3px 0; font-size: 11px; color: #333; }
.mv-f > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-f input[type=range] { width: 100%; min-width: 0; margin: 0; }
.mv-f b { font-weight: normal; color: #1e3287; text-align: right; font-size: 10px; white-space: nowrap; }
.mv-f select, .mv-f .txt7 { grid-column: 2 / 4; height: 22px; min-width: 0; }
.mv-f input[type=color] { grid-column: 2 / 4; height: 22px; width: 100%; padding: 0 2px; border: 1px solid #abadb3; background: #fff; }
.mv-c { display: flex; align-items: center; gap: 4px; margin: 4px 0; font-size: 11px; }
.mv-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mv-btns .btn7 { min-width: 0; padding: 0 8px; height: 22px; font-size: 11px; }
.mv-tog { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; }
.mv-tog .btn7 { min-width: 0; padding: 0 7px; height: 22px; font-size: 11px; }
.mv .btn7.on { border-color: #e0256e; background: linear-gradient(#ffe3ee, #ffc7dc); box-shadow: inset 0 0 0 1px #fff; }
.mv-textarea { width: 100%; box-sizing: border-box; resize: vertical; font: 13px "Segoe UI", Arial, sans-serif; border: 1px solid #abadb3; padding: 4px; min-height: 52px; }
.mv-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0; }
.mv-styles button { height: 34px; border: 1px solid #b8c6d8; border-radius: 3px; background: #3a3f48; cursor: pointer; padding: 0; font-size: 15px; }
.mv-styles button:hover { border-color: #e0256e; }
.mv-styles span { padding: 1px 4px; border-radius: 2px; }
.mv-fx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mv-fx button { border: 1px solid transparent; background: none; padding: 1px; cursor: pointer; border-radius: 3px; font-size: 10px; color: #333; min-width: 0; }
.mv-fx button i { display: block; height: 38px; border-radius: 2px; background: linear-gradient(135deg, #e9a15b, #4f8fd8) center / cover; margin-bottom: 2px; }
.mv-fx button span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-fx button:hover { border-color: #c4e3f6; background: #e5f3fb; }
.mv-fx button.on { border-color: #e0256e; background: #ffe3ee; }
.mv-trs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.mv-trs .btn7 { min-width: 0; padding: 0 4px; height: 24px; font-size: 11px; }
.mv-tl { flex: none; height: 34%; min-height: 150px; max-height: 260px; display: flex; flex-direction: column; background: #1b1e23; border-top: 1px solid #0f1114; color: #cfd5dc; }
.mv-tlbar { flex: none; display: flex; align-items: center; gap: 4px; padding: 3px 8px; background: #262a31; border-bottom: 1px solid #111; font-size: 11px; }
.mv-tlbar .sp { flex: 1; }
.mv-tlhint { color: #8e97a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-tlbar button { width: 22px; height: 20px; padding: 0; border: 1px solid #4a505a; border-radius: 2px; background: #2f343c; color: #fff; cursor: pointer; }
.mv-tlbar input[type=range] { width: 110px; }
.mv-tlbody { flex: 1; min-height: 0; display: flex; }
.mv-heads { width: 26px; flex: none; overflow: hidden; background: #22262c; border-right: 1px solid #111; }
.mv-heads .hd { display: flex; align-items: center; justify-content: center; color: #8e97a3; font-size: 12px; box-sizing: border-box; }
.mv-heads .hd.main { color: #ff5c9a; }
.mv-scroll { flex: 1; min-width: 0; overflow: auto; position: relative; }
.mv-content { position: relative; min-height: 100%; user-select: none; touch-action: pan-y; }
.mv-ruler { position: sticky; top: 0; z-index: 3; background: #22262c; border-bottom: 1px solid #333a43; cursor: text; }
.mv-ruler .tk { position: absolute; top: 0; bottom: 0; border-left: 1px solid #5a626e; padding: 2px 0 0 3px; font-size: 10px; color: #9aa3ae; white-space: nowrap; }
.mv-ruler .tk2 { position: absolute; bottom: 0; height: 5px; border-left: 1px solid #434a54; }
.mv-row { position: absolute; left: 0; right: 0; }
.mv-row.r-over { background: rgba(255,255,255,.015); border-bottom: 1px solid #23272d; }
.mv-row.r-main { background: #23272e; }
.mv-row.r-audio { background: rgba(255,255,255,.015); border-bottom: 1px solid #23272d; }
.mv-clip, .mv-item { position: absolute; box-sizing: border-box; border-radius: 4px; overflow: hidden; cursor: grab; background-color: #3a3f48; background-repeat: repeat-x; background-size: auto 100%; border: 1px solid rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.mv-clip { border-color: #111; }
.mv-clip.sel, .mv-item.sel { box-shadow: inset 0 0 0 2px #fff; border-color: #fff; z-index: 2; }
.mv-clip.drag { opacity: .75; z-index: 4; }
.mv-clip .lb, .mv-item .lb { position: absolute; left: 6px; top: 2px; right: 6px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.mv-item.k-text { background: linear-gradient(#f59e2e, #d9780f); }
.mv-item.k-media { background-color: #5a3d8a; }
.mv-item.k-audio { background: linear-gradient(#1f8a63, #146b4b); }
.mv-item.k-audio canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mv-item.off { opacity: .45; }
.mv-clip .hl, .mv-clip .hr, .mv-item .hl, .mv-item .hr { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 1; }
.mv-clip .hl, .mv-item .hl { left: 0; }
.mv-clip .hr, .mv-item .hr { right: 0; }
.mv-clip.sel .hl, .mv-clip.sel .hr, .mv-item.sel .hl, .mv-item.sel .hr { background: #fff; }
.mv-clip.sel .hl::after, .mv-clip.sel .hr::after, .mv-item.sel .hl::after, .mv-item.sel .hr::after { content: ''; position: absolute; left: 2px; top: 35%; bottom: 35%; width: 3px; border-left: 1px solid #555; border-right: 1px solid #555; box-sizing: border-box; }
.mv-tr { position: absolute; z-index: 3; width: 18px; height: 18px; padding: 0; border: 1px solid #111; border-radius: 3px; background: #f0f2f5; color: #333; font-size: 11px; line-height: 1; cursor: pointer; }
.mv-tr.on { background: #ff5c9a; color: #fff; }
.mv-tr.sel { box-shadow: 0 0 0 2px #fff; }
.mv-ph { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #fff; z-index: 5; pointer-events: none; margin-left: -1px; }
.mv-ph span { position: absolute; top: 0; left: -7px; border: 6px solid transparent; border-top: 8px solid #fff; }
.mv-drop { position: absolute; top: 0; bottom: 0; width: 0; border-left: 3px solid #ff5c9a; z-index: 6; pointer-events: none; margin-left: -1px; }
.mv-emo { display: grid; grid-template-columns: repeat(6, 32px); gap: 2px; padding: 4px; position: fixed; }
.mv-emo button { width: 32px; height: 30px; border: 1px solid transparent; background: none; font-size: 19px; padding: 0; cursor: pointer; border-radius: 3px; }
.mv-emo button:hover { background: #e5f3fb; border-color: #c4e3f6; }
.mv-exp { display: flex; flex-direction: column; height: 100%; }
.mv-exp-b { flex: 1; padding: 12px 14px; }
.mv-exp .mv-f { grid-template-columns: 130px 1fr; font-size: 12px; margin: 6px 0; }
.mv-exp .mv-f select, .mv-exp .mv-f .txt7 { grid-column: 2; }
.mv-exp .mv-note { margin-top: 8px; }
.mv-prog { margin-top: 8px; }
.mv-prog .bar { height: 14px; border: 1px solid #8e8f8f; border-radius: 2px; background: #e6e6e6; overflow: hidden; }
.mv-prog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(#a8f0a8, #37b437 50%, #2a9c2a); transition: width .15s; }
.mv-prog .pc { display: block; margin-top: 4px; font-size: 11px; color: #333; }
@media (max-width: 700px) {
  .mv .cmdbar { overflow-x: auto; }
  .mv-top { flex-direction: column; }
  .mv-bin { display: none; }
  .mv-stage { flex: 1 1 50%; }
  .mv-props { width: auto; flex: 1 1 50%; border-left: 0; border-top: 1px solid #c5d2e3; }
  .mv-tl { height: 190px; }
  .mv-tlhint { display: none; }
}
/* Montage vidéo en mode application (Android) : gestes tactiles, cibles plus grandes, et Android 8 (WebView Chrome 61) :
   pas de « gap » en flex (marges à la place) ni en grille (grid-gap) */
.appmode .mv .m-full { display: none; }
.appmode .mv-content { touch-action: pan-x pan-y; }
.appmode .mv-clip, .appmode .mv-item, .appmode .mv-ruler, .appmode .mv-tr { touch-action: none; }
.appmode .mv-clip .hl, .appmode .mv-clip .hr, .appmode .mv-item .hl, .appmode .mv-item .hr { width: 14px; }
.appmode .mv-clip.sel .hl::after, .appmode .mv-clip.sel .hr::after, .appmode .mv-item.sel .hl::after, .appmode .mv-item.sel .hr::after { left: 5px; }
.appmode .mv-tr { width: 24px; height: 24px; margin: -3px 0 0 -3px; }
.appmode .mv .cmdbar button, .appmode .mv .cmdbar label { flex: none; white-space: nowrap; }
.appmode .mv-fmt, .appmode .mv-empty, .appmode .mv-ctrl, .appmode .mv-tlbar, .appmode .mv-c, .appmode .mv-btns, .appmode .mv-tog { gap: 0; }
.appmode .mv-fmt > * + * { margin-left: 6px; }
.appmode .mv-empty > * + * { margin-top: 12px; }
/* Chrome 61 rétrécit les boutons d'une colonne flex trop basse jusqu'à 2 px : pas de rétrécissement */
.mv-empty > * { flex-shrink: 0; }
.appmode .mv-ctrl > * + *, .appmode .mv-tlbar > * + * { margin-left: 4px; }
.appmode .mv-c > * + * { margin-left: 4px; }
.appmode .mv-btns, .appmode .mv-tog { margin-left: -2px; margin-right: -2px; }
.appmode .mv-btns > *, .appmode .mv-tog > * { margin: 2px; }
.mv-bin-list { grid-gap: 6px; } .mv-f { grid-gap: 6px; } .mv-styles { grid-gap: 4px; } .mv-fx { grid-gap: 5px; } .mv-trs { grid-gap: 4px; } .mv-emo { grid-gap: 2px; }

/* ==========================================================================
   Stegano (stegano.js)
   ========================================================================== */

/* ===== Stegano (texte caché dans une image) ===== */
.sg { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; }
.sg-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.sg-body { flex: 1; min-height: 0; display: flex; }
.sg-view { position: relative; flex: 1; min-width: 0; overflow: hidden;
  background: #4a4f57 repeating-conic-gradient(#565b63 0 25%, #4a4f57 0 50%) 0 0 / 20px 20px; }
.sg-img { position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.sg-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #eef1f5; text-align: center; padding: 20px; }
.sg-empty .ico { width: 72px; height: 72px; }
.sg-empty .ico svg { width: 100%; height: 100%; }
.sg-empty b { font-size: 16px; font-weight: normal; }
.sg-empty .btn7 { color: #000; }
.sg-empty small { color: #c3cad3; max-width: 360px; }
.sg-view.over .sg-empty, .sg-view.over::after { background: rgba(80,150,230,.25); outline: 2px dashed #9cc8f5; outline-offset: -10px; }
.sg-view.over::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; }
.sg-busy { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(255,255,255,.94); color: #1e395b; border: 1px solid #8ea7c4; padding: 6px 14px; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.35); white-space: nowrap; }
.sg-side { width: 300px; flex: none; display: flex; flex-direction: column; overflow: auto; background: #f5f8fc; border-left: 1px solid #c5d2e3; }
.sg-sec { border-bottom: 1px solid #dde5ef; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.sg-sec h3 { margin: 0; font-size: 13px; font-weight: normal; color: #1e3287; }
.sg-sec h3 small { color: #777; font-size: 11px; }
.sg-sub { color: #555; font-size: 11px; line-height: 1.4; }
.sg-grow { flex: 1; min-height: 150px; }
.sg-text { flex: 1; min-height: 90px; width: 100%; box-sizing: border-box; resize: none; font: 12px/1.45 Consolas, 'Courier New', monospace; padding: 4px 5px; }
.sg-text:disabled, .sg-pass:disabled { background: #f0f0f0; }
.sg-pass, .sg-unpass { width: 100%; box-sizing: border-box; }
.sg-count { color: #555; font-size: 11px; text-align: right; }
.sg-count.over { color: #c40000; font-weight: bold; }
.sg-line { display: flex; align-items: center; gap: 6px; }
.sg-line label { display: flex; align-items: center; gap: 6px; flex: 1; color: #1e395b; }
.sg-line .sel7, .sg-q { flex: 1; min-width: 0; }
.sg-qv { min-width: 24px; text-align: right; color: #1e395b; }
.sg-savebtn { align-self: flex-end; margin-top: 3px; }
.sg-err { color: #c40000; font-size: 11px; min-height: 14px; }
.sg-badge { font-size: 14px; color: #1e3287; display: flex; align-items: center; gap: 7px; }
.sg-badge::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #b6c3d3; box-shadow: inset 0 -2px 3px rgba(0,0,0,.2); flex: none; }
.sg-badge.ok { color: #1b6d2e; } .sg-badge.ok::before { background: #3cbc5a; }
.sg-badge.lock { color: #8a5a00; } .sg-badge.lock::before { background: #f0a020; }
.sg-badge.none::before { background: #8fa0b5; }
@media (max-width: 700px) {
  .sg .cmdbar { overflow-x: auto; }
  .sg-body { flex-direction: column; }
  .sg-view { min-height: 38%; }
  .sg-side { width: auto; height: 55%; border-left: 0; border-top: 1px solid #c5d2e3; }
}

/* ===== Traitement de texte : documents Word fidèles (zones de texte, objets ancrés) ===== */
.word-page { position: relative; }
.word-page[data-docx] { line-height: 1.17; }
.word-page[data-docx] p, .word-page[data-docx] h1, .word-page[data-docx] h2, .word-page[data-docx] h3, .word-page[data-docx] h4, .word-page[data-docx] blockquote { position: relative; z-index: 1; border-bottom-style: solid; }
.word-page[data-docx] h1 { border-bottom-color: transparent; }
.word-page[data-docx] blockquote { margin-left: 0; margin-right: 0; border-left: 0; }
.word-page[data-docx] li > p, .word-page[data-docx] td > p, .word-page[data-docx] .wd-tbx > p { position: static; }
.word-page[data-docx] td, .word-page[data-docx] th { min-width: 0; }
.word-page .wd-tbl.wd-nob td { outline: 1px dotted #d8dce2; outline-offset: -1px; }
.word-page .wd-anc { box-sizing: border-box; }
.word-page .wd-anc img { max-width: none; }
.word-page .wd-shape { position: relative; }
.word-page .wd-tbx { width: 100%; overflow-wrap: normal; word-break: normal; }
.word-page .wd-tbx p:last-child { margin-bottom: 0 !important; }
.word-page .wd-pb { display: block; height: 0; margin: 0; user-select: none; }
.word-page .wd-hf { color: #555; opacity: .85; z-index: 2; }
.word-page .wd-notes { border-top: 1px solid #999; width: 33%; padding-top: 4px; margin-top: 16px; font-size: 9pt; }
.word-page .wd-notes > * { width: 300%; }
.word-page .wd-tab { display: inline-block; min-width: 2.5em; }

/* ==========================================================================
   Banque (budget.js) : relevés de compte, opérations et statistiques
   ========================================================================== */
.bq { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; position: relative; background: #fff; }
.bq-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.bq-remember { display: flex; align-items: center; gap: 5px; color: #1e395b; padding: 0 6px; white-space: nowrap; }
.bq-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; flex: none; user-select: none;
  background: linear-gradient(#e9f0f8, #dbe6f3); border-bottom: 1px solid #8ea7c4; }
.bq-tabs button { border: 1px solid #a5b7cd; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 4px 16px; margin-bottom: -1px; color: #1e395b; cursor: default;
  background: linear-gradient(#f6f9fc, #e3ebf5 50%, #d6e1ee 51%, #e0e9f4); }
.bq-tabs button:hover { background: linear-gradient(#fdfeff, #edf4fc 50%, #dfeaf7 51%, #e9f1fb); border-color: #7da2ce; }
.bq-tabs button.on { background: #fff; border-color: #8ea7c4; border-bottom: 1px solid #fff; padding-top: 6px; font-weight: bold; }
.bq-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bq-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bq-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
  background: linear-gradient(#f7fafd, #e7eef7); color: #1e395b; }
.bq-empty .ico { width: 72px; height: 72px; }
.bq-empty .ico svg { width: 100%; height: 100%; }
.bq-empty b { font-size: 16px; font-weight: normal; color: #1e3287; }
.bq-empty small { color: #555; max-width: 460px; line-height: 1.5; }
.bq-drop { position: absolute; top: 6px; right: 6px; bottom: 6px; left: 6px; inset: 6px; z-index: 5; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #1e395b;
  background: rgba(80,150,230,.18); outline: 2px dashed #6aa2dc; outline-offset: -4px; pointer-events: none; }
.bq-filters { display: flex; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #dde3ea; flex: none; background: #f7f9fc; }
.bq-filters .bq-q { flex: 1; min-width: 0; }
.bq-filters .bq-acc { max-width: 45%; }
.bq-scroll { flex: 1; min-height: 0; overflow: auto; }
.bq-t { border-collapse: collapse; width: 100%; font-size: 12px; }
.bq-t th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: normal; color: #1e395b; white-space: nowrap; padding: 4px 8px; cursor: default; user-select: none;
  background: linear-gradient(#fff, #f1f5fa); border-bottom: 1px solid #c5d2e3; border-right: 1px solid #e3e9f1; }
.bq-t th:hover { background: linear-gradient(#f3f9ff, #dcebfc); }
.bq-t th.asc::after { content: ' \25B2'; font-size: 8px; color: #6a83a3; }
.bq-t th.desc::after { content: ' \25BC'; font-size: 8px; color: #6a83a3; }
.bq-t td { padding: 3px 8px; border-bottom: 1px solid #edf1f6; white-space: nowrap; }
.bq-t tbody tr:nth-child(even) td { background: #f8fafd; }
.bq-t tbody tr:hover td { background: #e5f1fc; }
.bq-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.bq-t .lb { white-space: normal; min-width: 220px; max-width: 460px; overflow-wrap: anywhere; }
.bq-t .ty { color: #555; }
.bq-t .deb { color: #b3261e; }
.bq-t .cre { color: #1b7a33; }
.bq-t .neg { color: #b3261e; }
.bq-t .acc i, .bq-legend i, .bq-tip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bq-t.one th[data-k="acc"], .bq-t.one td.acc { display: none; }
.bq-t .bq-none { text-align: center; color: #777; padding: 20px; }
.bq-more { color: #8a5a00; padding: 6px 8px; }
.bq-more:empty { display: none; }
.bq-pane.bq-stats { display: block; overflow: auto; padding: 4px 14px 16px; }
.bq-stats h3 { margin: 14px 0 6px; font-size: 14px; font-weight: normal; color: #1e3287; }
.bq-scrollx { overflow-x: auto; border: 1px solid #dde3ea; }
.bq-tot tr.tot td { border-top: 1px solid #b6c3d3; background: #eef3f9 !important; font-weight: bold; }
.bq-flag { color: #c07a00; font-weight: bold; cursor: help; }
.bq-warn { margin-top: 10px; padding: 7px 10px; border: 1px solid #e3c46a; background: #fff8dc; color: #6b4e00; line-height: 1.45; }
.bq-legend { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 4px; }
.bq-legend button { border: 1px solid #d0d9e5; background: #f7f9fc; border-radius: 3px; padding: 2px 8px; font-size: 12px; color: #222; cursor: pointer; }
.bq-legend button:hover { border-color: #7da2ce; }
.bq-legend button.off { opacity: .45; text-decoration: line-through; }
.bq-chart { position: relative; border: 1px solid #dde3ea; background: #fff; overflow: hidden; }
.bq-svg { display: block; font: 11px "Segoe UI", Tahoma, Arial, sans-serif; }
.bq-svg .bq-grid { stroke: #e6ebf1; stroke-width: 1; }
.bq-svg .bq-zero { stroke: #8e9cad; stroke-width: 1; }
.bq-svg .bq-tick { fill: #5b6878; }
.bq-svg .bq-cross { stroke: #8ea7c4; stroke-dasharray: 3 3; }
.bq-nochart { padding: 30px; text-align: center; color: #777; }
.bq-tip { position: absolute; z-index: 2; pointer-events: none; background: rgba(255,255,255,.97); border: 1px solid #8ea7c4; border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.bq-tip div { display: flex; align-items: center; gap: 0; line-height: 1.6; }
.bq-tip b { margin-left: auto; padding-left: 14px; font-weight: normal; font-variant-numeric: tabular-nums; }
.bq-tip .bq-tip-h { color: #1e3287; border-bottom: 1px solid #e3e9f1; margin-bottom: 2px; }
.bq-types td.bar { width: 30%; min-width: 80px; }
.bq-types td.bar span { display: block; height: 9px; background: #e08a84; border-radius: 1px; }
.bq .statusbar .bq-st.err { color: #b00; }
.bq .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .bq .cmdbar { overflow-x: auto; }
  .bq-filters { flex-wrap: wrap; }
  .bq-filters .bq-acc { max-width: none; flex: 1; }
  .bq-stats { padding: 4px 8px 12px; }
  .bq .statusbar .bq-sum .bq-sx { display: none; }
  .bq .statusbar .bq-sum a + a { margin-left: 12px; }
}
/* Point 275 : fusion d'un doublon, filtre « sans catégorie » */
.bq-t td.fu { padding: 1px 6px; }
.bq-t .bq-fus { min-width: 0; padding: 1px 8px; font-size: 11px; }
.bq .statusbar .bq-sum a { color: #1e3287; }
.bq .statusbar .bq-sum a.on { font-weight: bold; }
.bq-fusl small, .bq-fust small { color: #5b6b80; white-space: normal; word-break: break-all; }
.bq-fust td { white-space: normal; vertical-align: top; }

/* Icônes du bureau déplaçables (os.js renderDesktop / layoutIcons) : grille libre sur tout le bureau */
#desktop #icons.free { display: block; left: 0; right: 0; padding: 0; pointer-events: none; }
#icons.free .dicon { position: absolute; margin: 0; pointer-events: auto; touch-action: none; }
#icons.free .dicon.dragging { z-index: 5; opacity: .75; transition: none; }

/* ==========================================================================
   Gestionnaire des tâches (os/taskmgr.js) — préfixe tm-
   ========================================================================== */
.tm { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; background: #f0f0f0; color: #000; }
.tm .menubar { background: #f0f0f0; border-bottom: 0; }
.tm-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 6px 8px 8px; }
.tm-tabs { display: flex; flex: none; padding-left: 2px; position: relative; z-index: 1; user-select: none; flex-wrap: wrap; }
.tm-tabs button { font: 12px var(--font); color: #000; border: 1px solid #898c95; border-bottom: 0; margin-right: -1px; padding: 2px 7px 3px; border-radius: 2px 2px 0 0;
  background: linear-gradient(#f2f2f2, #ebebeb 50%, #dddddd 51%, #cfcfcf); margin-top: 2px; cursor: default; }
.tm-tabs button:hover { background: linear-gradient(#eaf6fd, #d9f0fc 50%, #bee6fd 51%, #a7d9f5); border-color: #3c7fb1; }
.tm-tabs button.on { background: #fff; margin-top: 0; padding-bottom: 5px; margin-bottom: -1px; position: relative; z-index: 2; border-color: #898c95; }
.tm-page { flex: 1; min-height: 0; background: #fff; border: 1px solid #898c95; display: flex; flex-direction: column; padding: 8px; }
.tm-pane { display: none; flex: 1; min-height: 0; flex-direction: column; gap: 8px; }
.tm-pane.on { display: flex; }
.tm-lv { flex: 1; min-height: 60px; overflow: auto; border: 1px solid #828790; background: #fff; }
.tm-t { width: 100%; border-collapse: collapse; font-size: 12px; user-select: none; cursor: default; }
.tm-t th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: normal; white-space: nowrap; padding: 3px 6px; color: #4c607a;
  background: linear-gradient(#fff, #f3f4f6); border-right: 1px solid #e2e3e6; border-bottom: 1px solid #d5d5d5; }
.tm-t th:hover { background: linear-gradient(#f3f9fd, #d9edfa); }
.tm-t th.up::after { content: " \25B4"; color: #6d7b8d; }
.tm-t th.down::after { content: " \25BE"; color: #6d7b8d; }
.tm-t td { padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; height: 19px; }
.tm-t .n { text-align: right; }
.tm-t .w { width: 100%; }
.tm-procs, .tm-svcs { width: auto; min-width: 100%; }
.tm-t tbody tr:hover td { background: #eaf4fd; }
.tm-t tbody tr.sel td { background: #3399ff; color: #fff; }
.tm-aico, .tm-uico { display: inline-block; width: 16px; height: 16px; vertical-align: -4px; margin-right: 6px; }
.tm-aico svg, .tm-uico svg { width: 100%; height: 100%; }
.tm-btns { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; }
.tm-btns .sp { flex: 1; }
.tm-btns .btn7 { padding: 0 10px; }
.tm-chk { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tm-status span { flex: 1 1 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-status span:first-child { border-left: 0; }

/* Performances */
.tm-perf { display: none; grid-template-columns: 96px 1fr; grid-template-rows: minmax(70px, 1fr) minmax(70px, 1fr) auto; gap: 6px 8px; }
.tm-perf.on { display: grid; }
.tm-g { border: 1px solid #d5dfe5; border-radius: 3px; margin: 0; padding: 2px 6px 6px; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tm-g legend { padding: 0 3px; color: #000; font-size: 12px; white-space: nowrap; }
.tm-cv { display: block; width: 100%; height: 100%; flex: 1; min-height: 0; background: #000; }
.tm-cores { flex: 1; min-height: 0; display: grid; gap: 4px; }
.tm-nums { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-nums > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-nums dl { display: grid; grid-template-columns: 1fr auto; margin: 0; gap: 0 10px; font-size: 12px; }
.tm-nums dt, .tm-nums dd { margin: 0; white-space: nowrap; }
.tm-nums dd { text-align: right; }
.tm-resmon { align-self: flex-end; margin-top: auto; }

/* Réseau */
.tm-netp .tm-g:first-child { flex: 1; min-height: 120px; }
.tm-netg { flex: 1; min-height: 0; display: flex; gap: 4px; }
.tm-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: #333; text-align: right; min-width: 42px; }
.tm-lv-net { flex: none; height: 70px; }
.tm-netinfo { font-size: 11px; color: #555; flex: none; }

/* Nouvelle tâche, propriétés */
.tm-run { display: flex; flex-direction: column; height: 100%; background: #fff; }
.tm-run-top { display: flex; gap: 12px; padding: 14px 16px 6px; align-items: flex-start; }
.tm-run-top p { margin: 0; font-size: 12px; }
.tm-run-ico { width: 32px; height: 32px; flex: none; }
.tm-run-ico svg { width: 100%; height: 100%; }
.tm-run-line { display: flex; align-items: center; gap: 8px; padding: 4px 16px; }
.tm-run-line .txt7 { flex: 1; min-width: 0; }
.tm-run-hint { margin: 0; padding: 0 16px 0 66px; font-size: 11px; color: #777; flex: 1; }
.tm-props td { padding: 1px 8px 1px 0; vertical-align: top; }
.tm-props td:first-child { color: #555; white-space: nowrap; }

/* Blagues : explorer.exe et dwm.exe « arrêtés » */
#desktop.tm-noexplorer #taskbar, #desktop.tm-noexplorer #icons, #desktop.tm-noexplorer .icons-extra { visibility: hidden; }
#desktop.tm-explorer-back #taskbar { animation: tmBlink .25s 6 alternate; }
@keyframes tmBlink { from { filter: none; } to { filter: brightness(2.2) saturate(.3); } }
#desktop.tm-nodwm .win, #desktop.tm-nodwm #taskbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#desktop.tm-nodwm .win { background: #6b8fc0 !important; box-shadow: none !important; border-radius: 0 !important; }
#desktop.tm-nodwm #taskbar { background: #26456e !important; }

@media (max-width: 699px) {
  .tm-perf { grid-template-columns: 70px 1fr; }
  .tm-nums { grid-template-columns: 1fr; }
  .tm-t td { max-width: 140px; }
}

/* Magnétophone (os/magneto.js) */
.win.mg-win { min-height: 0; }
.mg { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; background: #f0f0f0; color: #1e1e1e; }
.mg-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px; flex: none; }
.mg-rec { display: inline-flex; align-items: center; gap: 7px; min-width: 196px; justify-content: flex-start; padding-left: 9px; }
.mg-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #ff9a8a, #d7261a 55%, #8e1209); box-shadow: 0 0 0 1px rgba(110,10,0,.45); }
.mg-rec.on .mg-dot { border-radius: 2px; background: linear-gradient(#7fb6ec, #1f63b5); box-shadow: 0 0 0 1px rgba(10,50,110,.5); }
.mg-pause { width: 30px; min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mg-pz { width: 10px; height: 11px; border-left: 3px solid #2a3d55; border-right: 3px solid #2a3d55; box-sizing: border-box; }
.mg-pause:disabled .mg-pz { border-color: #a5a5a5; }
.mg-pause.paused .mg-pz { width: 0; height: 0; border: 6px solid transparent; border-left: 10px solid #1c8f2c; border-right: 0; margin-left: 3px; }
.mg-time { font: 15px/1 "Segoe UI", Tahoma, sans-serif; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; color: #1e395b; }
.mg.paused .mg-time { animation: mg-blink 1s steps(2) infinite; }
@keyframes mg-blink { 50% { opacity: .25; } }
.mg-meter { flex: 1; min-width: 60px; height: 14px; border: 1px solid #8e8f8f; border-radius: 2px; background: #e6e6e6; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); overflow: hidden; position: relative; }
.mg-lvl { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#a8eba0, #3fcb3c 45%, #1f9e22 55%, #47cf47); -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); }
.mg-lvl.clip { background: linear-gradient(#ffd0a0, #f08a2a 45%, #d0560e 55%, #f09040); }
.mg-help, .mg-more { width: 22px; height: 22px; flex: none; border: 1px solid #8eacd0; border-radius: 50%; background: linear-gradient(#fdfeff, #dfeaf7); color: #1e5aa8; font: bold 13px/1 "Segoe UI", Tahoma, sans-serif; cursor: default; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mg-more { border-radius: 3px; color: #1e395b; }
.mg-more svg { width: 11px; height: 11px; transition: transform .15s; }
.mg.ext .mg-more svg { transform: rotate(180deg); }
.mg-help:hover, .mg-more:hover { border-color: #3c7fb1; background: linear-gradient(#eaf6fd, #bee6fd); }
.mg-ext { display: none; flex: 1; min-height: 0; flex-direction: column; border-top: 1px solid #cdd5df; background: #fff; }
.mg.ext .mg-ext { display: flex; }
.mg-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 10px; background: #f7f9fc; border-bottom: 1px solid #dde3ea; flex: none; color: #1e395b; }
.mg-opts label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mg-opts .mg-dev { max-width: 210px; }
.mg-live { position: relative; height: 64px; flex: none; margin: 8px 10px 4px; border: 1px solid #44624a; border-radius: 2px; background: #0f1a12; overflow: hidden; }
.mg-wave { display: block; width: 100%; height: 100%; }
.mg-live-txt { position: absolute; left: 6px; top: 3px; font-size: 10px; color: #7fbf8a; opacity: .8; pointer-events: none; }
.mg.recording .mg-live-txt::before { content: "● "; color: #ff5a4a; }
.mg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 10px 4px; flex: none; }
.mg-head b { color: #1e3287; font-weight: normal; font-size: 13px; }
.mg-note { color: #666; font-size: 11px; }
.mg-list { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 8px; }
.mg-empty { color: #777; text-align: center; padding: 26px 10px; line-height: 1.6; }
.mg-item { border: 1px solid #dbe3ec; border-radius: 3px; padding: 6px 8px; margin-top: 6px; background: #fff; }
.mg-item:hover { border-color: #b8d6fb; background: #f5faff; }
.mg-item.playing { border-color: #7da2ce; background: #eef5fd; }
.mg-row1, .mg-row2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mg-row2 { flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.mg-play { width: 24px; height: 24px; flex: none; border: 1px solid #8eacd0; border-radius: 50%; background: linear-gradient(#fdfeff, #d6e6f7); padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.mg-play:hover { border-color: #3c7fb1; background: linear-gradient(#eaf6fd, #a7d9f5); }
.mg-play i { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid #1c6fc0; border-right: 0; margin-left: 3px; }
.mg-item.playing .mg-play i { width: 8px; height: 9px; border: 0; border-left: 3px solid #1c6fc0; border-right: 3px solid #1c6fc0; margin: 0; box-sizing: border-box; }
.mg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; color: #1e395b; }
.mg-ok { flex: none; font-size: 10px; color: #1c7a2a; border: 1px solid #9fd3a8; background: #eefaf0; border-radius: 2px; padding: 0 4px; }
.mg-dur { flex: none; font-variant-numeric: tabular-nums; color: #333; }
.mg-w { display: block; width: 100%; height: 44px; margin: 5px 0; border: 1px solid #e3e9f1; cursor: pointer; }
.mg-meta { flex: 1; min-width: 160px; color: #666; font-size: 11px; }
.mg-a:not(.btn7) { border: 1px solid transparent; background: none; color: #1a5fb4; padding: 2px 5px; border-radius: 2px; cursor: pointer; }
.mg-a:not(.btn7):hover { border-color: #b8d6fb; background: #eaf3fd; text-decoration: underline; }
.mg-save { min-width: 0; padding: 0 10px; }
.mg-prog { width: 90px; height: 10px; border: 1px solid #8e8f8f; background: #e6e6e6; border-radius: 2px; overflow: hidden; }
.mg-prog span { display: block; height: 100%; width: 0; background: linear-gradient(#a8eba0, #2fb52e); transition: width .1s; }
.mg .statusbar .mg-st.err { color: #b00; }
.mg .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .mg-bar { flex-wrap: wrap; }
  .mg-rec { min-width: 0; flex: 1; }
  .mg-meter { flex-basis: 100%; order: 5; }
  .mg .statusbar .mg-sum { display: none; }
}

/* Invite de commandes (cmd.js) : console Windows 7 */
.win .client.cm-client { background: #000; }
.cm { --cm-bg: #000; --cm-fg: #c0c0c0; flex: 1; min-height: 0; display: flex; position: relative; outline: 0; overflow: hidden;
  background: var(--cm-bg); color: var(--cm-fg); font: 14px/17px Consolas, 'Lucida Console', 'Courier New', monospace; }
.cm-scroll { flex: 1; min-width: 0; overflow-x: hidden; overflow-y: scroll; padding: 2px 3px 4px; cursor: text; }
.cm-out, .cm-live { margin: 0; font: inherit; color: inherit; background: none; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }
.cm-live.cm-hide { display: none; }
.cm-cur { background: linear-gradient(transparent 80%, var(--cm-fg) 80%, var(--cm-fg) 94%, transparent 94%); animation: cm-blink 1.06s steps(1) infinite; }
.cm.cm-blur .cm-cur { animation: none; background: none; }
@keyframes cm-blink { 50% { background: none; } }
.cm ::selection { background: var(--cm-fg); color: var(--cm-bg); }
.cm-ta { position: absolute; left: 0; bottom: 0; width: 2px; height: 2px; padding: 0; border: 0; margin: 0; opacity: 0; resize: none; overflow: hidden; font-size: 16px; color: transparent; background: transparent; }
.cm-scroll::-webkit-scrollbar { width: 17px; background: #f0f0f0; }
.cm-scroll::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #eaeaea, #d4d4d4); border: 1px solid #a8a8a8; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Carnet d'entretien (os/entretien.js) : préfixe ce-
   -------------------------------------------------------------------------- */
.ce { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; position: relative; background: #fff; }
.ce-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.ce-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; flex: none; user-select: none;
  background: linear-gradient(#e9f0f8, #dbe6f3); border-bottom: 1px solid #8ea7c4; }
.ce-tabs button { border: 1px solid #a5b7cd; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 4px 16px; margin-bottom: -1px; color: #1e395b; cursor: default; white-space: nowrap;
  background: linear-gradient(#f6f9fc, #e3ebf5 50%, #d6e1ee 51%, #e0e9f4); }
.ce-tabs button:hover { background: linear-gradient(#fdfeff, #edf4fc 50%, #dfeaf7 51%, #e9f1fb); border-color: #7da2ce; }
.ce-tabs button.on { background: #fff; border-color: #8ea7c4; border-bottom: 1px solid #fff; padding-top: 6px; font-weight: bold; }
.ce-badge { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #d0301e; color: #fff; font: bold 10px/16px "Segoe UI", Tahoma, Arial, sans-serif; text-align: center; margin-left: 4px; vertical-align: 1px; }
.ce-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ce-pane { flex: 1; min-height: 0; overflow: auto; }
.ce-pane.ce-dash, .ce-pane.ce-stats { padding: 4px 14px 16px; }
.ce-pane.ce-hist { display: flex; flex-direction: column; overflow: hidden; }
.ce-pane.ce-veh { display: flex; overflow: hidden; }
.ce-pane.hidden { display: none; }
.ce-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; overflow: auto;
  background: linear-gradient(#f7fafd, #e7eef7); color: #1e395b; }
.ce-empty .ico { width: 80px; height: 80px; }
.ce-empty .ico svg { width: 100%; height: 100%; }
.ce-empty b { font-size: 17px; font-weight: normal; color: #1e3287; }
.ce-empty-b { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ce-empty small { color: #555; max-width: 480px; line-height: 1.55; }
.ce h3 { margin: 16px 0 6px; font-size: 14px; font-weight: normal; color: #1e3287; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ce-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #333; }
.btn7.ce-mini { min-width: 0; height: 22px; padding: 0 9px; font-size: 11px; }
.ce-demo { margin: 10px 0 0; padding: 6px 10px; border: 1px solid #e3c46a; background: #fff8dc; color: #6b4e00; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ce-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ce-tile { flex: 1 1 110px; border: 1px solid #c9d6e6; border-radius: 4px; padding: 8px 12px; background: linear-gradient(#fff, #eef3f9); color: #44546a; }
.ce-tile b { display: block; font-size: 22px; font-weight: normal; color: #1e3287; }
.ce-tile.late b { color: #c0281a; } .ce-tile.soon b { color: #c77700; } .ce-tile.ok b { color: #1b7a33; }
.ce-good { padding: 12px; color: #2c5a2c; background: #f1f8ef; border: 1px solid #cfe5c8; }
.ce-st { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px; line-height: 16px; white-space: nowrap; border: 1px solid; }
.ce-st.ce-ok { color: #1b6a2c; background: #e2f4e2; border-color: #9fd19f; }
.ce-st.ce-soon { color: #8a4d00; background: #ffefcc; border-color: #f0b347; }
.ce-st.ce-late { color: #fff; background: #d0301e; border-color: #a52012; }
.ce-st.ce-none { color: #666; background: #f0f0f0; border-color: #ccc; }
.ce-rem.late { color: #b3261e; } .ce-rem.soon { color: #a36000; } .ce-rem.none { color: #888; }
small.ce-rem { margin-left: 4px; font-size: 11px; }
.ce-scroll { flex: 1; min-height: 0; overflow: auto; }
.ce-scrollx { overflow-x: auto; border: 1px solid #dde3ea; }
.ce-t { border-collapse: collapse; width: 100%; font-size: 12px; }
.ce-t th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: normal; color: #1e395b; white-space: nowrap; padding: 4px 8px; cursor: default; user-select: none;
  background: linear-gradient(#fff, #f1f5fa); border-bottom: 1px solid #c5d2e3; border-right: 1px solid #e3e9f1; }
.ce-ht th:hover { background: linear-gradient(#f3f9ff, #dcebfc); }
.ce-t th.asc::after { content: ' \25B2'; font-size: 8px; color: #6a83a3; }
.ce-t th.desc::after { content: ' \25BC'; font-size: 8px; color: #6a83a3; }
.ce-t td { padding: 3px 8px; border-bottom: 1px solid #edf1f6; white-space: nowrap; vertical-align: middle; }
.ce-t tbody tr:nth-child(even) td { background: #f8fafd; }
.ce-t tbody tr:hover td { background: #e5f1fc; }
.ce-t tbody tr.sel td { background: #cce8ff; }
.ce-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.ce-t td.ce-wrap { white-space: normal; min-width: 140px; }
.ce-t td.ce-desc { min-width: 200px; max-width: 420px; overflow-wrap: anywhere; }
.ce-t td small { display: block; color: #6a7686; font-size: 11px; white-space: normal; }
.ce-t .ce-none { text-align: center; color: #777; padding: 20px; }
.ce-t tr.tot td { border-top: 1px solid #b6c3d3; background: #eef3f9 !important; font-weight: bold; }
.ce-dim { color: #999; }
.ce-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ce-card { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border: 1px solid #d0d9e5; border-radius: 4px; background: linear-gradient(#fff, #f3f7fb); cursor: pointer; color: #222; font: inherit; }
.ce-card:hover { border-color: #7da2ce; background: linear-gradient(#f6fbff, #e3effb); }
.ce-card > span:nth-child(2) { flex: 1; min-width: 0; }
.ce-card b, .ce-vi b { display: block; font-weight: normal; color: #1e3287; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-card small, .ce-vi small { display: block; color: #666; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-thumb { width: 56px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 3px; overflow: hidden; background: #eef2f7; }
.ce-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ce-thumb svg { width: 36px; height: 36px; }
.ce-vlist { width: 230px; flex: none; overflow: auto; border-right: 1px solid #c5d2e3; background: linear-gradient(90deg, #f3f7fb, #eaf0f7); padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.ce-vi { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid transparent; border-radius: 3px; background: none; text-align: left; font: inherit; color: #222; cursor: default; }
.ce-vi > span:last-child { min-width: 0; flex: 1; }
.ce-vi:hover { border-color: #b8d6fb; background: linear-gradient(#fafdff, #e8f3fe); }
.ce-vi.on { border-color: #84acdd; background: linear-gradient(#e3f0fd, #cde3fb); }
.ce-vi.ce-vadd { justify-content: center; color: #1e5fa8; padding: 8px; margin-top: 4px; border: 1px dashed #a5b7cd; }
.ce-vdet { flex: 1; min-width: 0; overflow: auto; padding: 4px 14px 16px; }
.ce-vh { display: flex; gap: 16px; margin-top: 12px; align-items: flex-start; }
.ce-photo { width: 220px; max-height: 165px; object-fit: cover; flex: none; border: 1px solid #b6c3d3; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.ce-nophoto { height: 140px; display: flex; align-items: center; justify-content: center; background: linear-gradient(#f4f7fb, #e2e9f2); }
.ce-nophoto svg { width: 96px; height: 96px; opacity: .85; }
.ce-vinfo { flex: 1; min-width: 0; }
.ce-vinfo h2 { margin: 0; font-size: 19px; font-weight: normal; color: #1e3287; }
.ce-vsub { color: #555; margin-bottom: 6px; }
.ce-fiche td { padding: 1px 14px 1px 0; vertical-align: top; }
.ce-fiche td:first-child { color: #6a7686; white-space: nowrap; }
.ce-notes { margin: 6px 0 0; color: #444; font-style: italic; line-height: 1.45; }
.ce-vbtn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ce-plan input.txt7 { width: 80px; height: 20px; padding: 0 4px; text-align: right; }
.ce-plan tr.off td:nth-child(n+2) { color: #999; }
.ce-plan tr.off input.txt7 { opacity: .6; }
.ce-filters { display: flex; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #dde3ea; flex: none; background: #f7f9fc; align-items: center; flex-wrap: wrap; }
.ce-filters .h-q { flex: 1; min-width: 160px; }
.ce-filters select { max-width: 220px; }
.ce-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-size: 12px; }
.ce-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.ce-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 14px; }
.ce-chart { border: 1px solid #dde3ea; background: #fff; overflow: hidden; min-height: 60px; }
.ce-svg { display: block; font: 11px "Segoe UI", Tahoma, Arial, sans-serif; }
.ce-svg .ce-grid { stroke: #e6ebf1; stroke-width: 1; }
.ce-svg .ce-axis { stroke: #8e9cad; stroke-width: 1; }
.ce-svg .ce-tick { fill: #5b6878; }
.ce-svg rect:hover { opacity: .8; }
.ce-nochart { padding: 30px; text-align: center; color: #777; }
.ce-note { color: #6a7686; font-size: 11px; line-height: 1.45; margin: 10px 0 0; }
.ce .statusbar .ce-msg.err { color: #b00; }
.ce .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Boîtes de saisie */
.ce-dlg { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.ce-form { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.ce-grid.ce-grid3 { grid-template-columns: 1fr 1fr 1fr; }
.ce-grid label, .ce-f1, .ce-totrow label { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: #1e395b; }
.ce-grid label.wide { grid-column: 1 / -1; }
.ce-grid .txt7, .ce-grid .sel7, .ce-f1 .txt7 { width: 100%; box-sizing: border-box; }
.ce-form textarea.txt7 { resize: vertical; font: inherit; }
.ce-pf { display: flex; align-items: center; gap: 6px; }
.ce-pv { width: 64px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid #c5d2e3; background: #f4f7fb; color: #999; font-size: 11px; overflow: hidden; }
.ce-pv img { width: 100%; height: 100%; object-fit: cover; }
.ce-pf .btn7 { min-width: 0; padding: 0 10px; }
.ce-types { border: 1px solid #c5d2e3; border-radius: 3px; margin: 0; padding: 6px 10px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 3px 10px; }
.ce-types legend { color: #1e395b; padding: 0 4px; }
.ce-types label { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-parts-h { display: flex; justify-content: space-between; align-items: center; color: #1e395b; margin-bottom: 4px; }
.ce-pt td { padding: 2px 3px; }
.ce-pt input.txt7 { width: 100%; box-sizing: border-box; height: 21px; padding: 0 4px; }
.ce-pt input.n { text-align: right; }
.ce-pt td:nth-child(1) { width: 38%; } .ce-pt td:nth-child(2) { width: 22%; } .ce-pt td:nth-child(3) { width: 9%; } .ce-pt td:nth-child(4) { width: 14%; }
.ce-pt .p-t { width: 12%; color: #333; }
.ce-x { border: 0; background: none; color: #a33; cursor: pointer; font-size: 12px; padding: 2px 4px; }
.ce-x:hover { color: #e00; }
.ce-totrow { display: flex; align-items: flex-end; gap: 12px; }
.ce-totrow label { width: 160px; flex: none; }
.ce-totrow .txt7 { width: 100%; box-sizing: border-box; font-weight: bold; text-align: right; }
.ce-totrow small { color: #6a7686; padding-bottom: 4px; }
.ce-dlg .dialog-foot { align-items: center; }
.ce-err { flex: 1; color: #b00; font-size: 12px; }
@media (max-width: 700px) {
  .ce .cmdbar { overflow-x: auto; }
  .ce .cmdbar button { white-space: nowrap; }
  .ce-tabs { padding: 6px 4px 0; }
  .ce-tabs button { padding: 4px 8px; }
  .ce-tabs button.on { padding-top: 6px; }
  .ce-pane.ce-dash, .ce-pane.ce-stats { padding: 4px 8px 12px; }
  .ce-pane.ce-veh { flex-direction: column; overflow: auto; }
  .ce-vlist { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #c5d2e3; }
  .ce-vi { flex: none; max-width: 200px; }
  .ce-vdet { overflow: visible; padding: 4px 8px 12px; }
  .ce-vh { flex-direction: column; }
  .ce-photo { width: 100%; max-height: 200px; }
  .ce-nophoto { height: 90px; }
  .ce-grid, .ce-grid.ce-grid3 { grid-template-columns: 1fr; }
  .ce .statusbar .ce-sum { display: none; }
}
/* fin du Carnet d'entretien */

/* --------------------------------------------------------------------------
   Outil Capture (os/capture.js) : préfixe oc-
   -------------------------------------------------------------------------- */
.oc { display: flex; flex-direction: column; height: 100%; outline: 0; background: #fff; position: relative; }
.win.oc-hidden { visibility: hidden !important; }
.win.oc-small .resize { display: none; }
.oc .oc-menubar { display: none; }
.oc.oc-editing .oc-menubar { display: flex; }
.oc .oc-bar { gap: 1px; overflow: hidden; }
.oc .oc-bar button { padding: 0 6px; white-space: nowrap; }
.oc .oc-bar button.oc-split { padding: 0 3px; margin-left: -2px; font-size: 10px; color: #3c4f69; }
.oc .oc-bar button.on { border-color: #6f97c4; background: linear-gradient(#dfe9f5, #c5d8ee); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.oc .oc-i { width: 16px; height: 16px; flex: none; }
.oc .oc-dd { font-size: 10px; color: #3c4f69; }
.oc .oc-sep { width: 1px; align-self: stretch; margin: 4px 3px; background: #b8c6d8; box-shadow: 1px 0 0 #fff; }
.oc .oc-e { display: none !important; }
.oc.oc-editing .oc-e { display: flex !important; }
.oc.oc-editing .oc-s { display: none; }
.oc-tip { flex: 1; min-height: 0; padding: 10px 14px; color: #1e395b; font-size: 12px; line-height: 1.45; background: #fff; overflow: hidden; }
.oc-tip.off { display: none; }
.oc.oc-editing .oc-tip { display: none; }
.oc-area { display: none; flex: 1; min-height: 0; overflow: auto; background: #8d9aab; }
.oc.oc-editing .oc-area { display: block; }
.oc-paper { display: inline-block; min-width: 100%; min-height: 100%; padding: 12px; box-sizing: border-box; text-align: center; }
.oc-view { display: inline-block; vertical-align: top; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); touch-action: none; cursor: default; }
.oc-view[data-tool="pen"] { cursor: crosshair; }
.oc-view[data-tool="hl"] { cursor: cell; }
.oc-view[data-tool="eraser"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='6' fill='%23fff' fill-opacity='.6' stroke='%23333'/%3E%3C/svg%3E") 8 8, crosshair; }
.oc .oc-status { display: none; }
.oc.oc-editing .oc-status { display: flex; }
.oc .oc-status .oc-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc .oc-status .oc-st.err { color: #b00; }
.oc .oc-status .oc-name { font-variant-numeric: tabular-nums; }
.oc .oc-color { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: 0; bottom: 0; border: 0; padding: 0; }
/* Voile de sélection, au-dessus de tout le bureau */
.oc-veil { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2147483000; background: #fff; cursor: crosshair; touch-action: none; user-select: none; outline: 0; overflow: hidden; }
.oc-veil.oc-m-window { cursor: pointer; }
.oc-veil .oc-frozen { position: absolute; left: 0; top: 0; display: block; }
.oc-veil .oc-ink { position: absolute; left: 0; top: 0; display: block; }
.oc-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 6px 8px 6px 12px; background: rgba(255,255,255,.95); border: 1px solid #8ea7c4; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.3);
  font: 12px var(--font); color: #1e395b; cursor: default; transition: opacity .15s; }
.oc-hint b { white-space: nowrap; }
.oc-hint span { color: #333; }
.oc-hint.away { opacity: 0; pointer-events: none; }
.oc-hint .btn7 { flex: none; }
/* Options */
.oc-optbox { display: flex; flex-direction: column; height: 100%; }
.oc-optin { flex: 1; overflow: auto; padding: 8px 12px; background: #fff; font-size: 12px; }
.oc-optin fieldset { border: 1px solid #d5dfe5; border-radius: 3px; margin: 0 0 8px; padding: 4px 10px 8px; }
.oc-optin legend { color: #1e3287; padding: 0 4px; }
.oc-optin label { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0; }
.oc-optin input { margin: 1px 0 0; flex: none; }
.oc-note { color: #555; margin-top: 6px; line-height: 1.4; }
@media (max-width: 700px) {
  .oc .oc-bar { overflow-x: auto; }
  .oc .oc-bar button span { display: none; }
  .oc-hint span { display: none; }
}

/* Lecteur multimédia VLC (os/vlc.js) */
.vl-client { background: #000; }
.vl { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; position: relative; background: #f0f0f0; user-select: none; }
.vl-body { flex: 1; min-height: 0; display: flex; background: #000; }
.vl-stage { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.vl-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; outline: 0; }
.vl-splash { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #000; pointer-events: none; }
.vl-cone { width: 36%; max-width: 190px; min-width: 64px; aspect-ratio: 1; display: block; filter: drop-shadow(0 6px 14px rgba(255,120,0,.18)); }
.vl-cone svg { width: 100%; height: 100%; display: block; }
.vl-cap { color: #ddd; font-size: 14px; max-width: 90%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-cap:empty { display: none; }
.vl-osd { position: absolute; top: 12px; right: 14px; color: #fff; font-size: 17px; text-shadow: 0 0 3px #000, 1px 1px 2px #000; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 80%; text-align: right; }
.vl-osd.on { opacity: 1; transition: none; }
.vl-err { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86%; width: min(440px, 86%); background: #fff; border: 1px solid #8e9aa8; border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.5); padding: 12px 14px 12px 48px; color: #222; font-size: 12px; line-height: 1.45;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23d93025'/%3E%3Cpath d='M7.5 7.5l9 9M16.5 7.5l-9 9' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px 12px / 26px 26px; }
.vl-err b { display: block; color: #1e3287; font-size: 13px; font-weight: normal; margin-bottom: 4px; word-break: break-word; }
.vl-drop { position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; inset: 8px; border: 2px dashed #ff9a2e; border-radius: 6px; color: #fff; display: none; align-items: center; justify-content: center; text-align: center;
  font-size: 15px; background: rgba(255,136,0,.14); pointer-events: none; padding: 10px; }
.vl.vl-dragging .vl-drop { display: flex; }
/* Liste de lecture */
.vl-pl { width: 270px; flex: none; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #a9b4c2; min-height: 0; }
.vl-pl-head { display: flex; align-items: baseline; gap: 8px; padding: 5px 8px; background: linear-gradient(#fdfeff, #e6eef8); border-bottom: 1px solid #c5ccd6; color: #1e395b; }
.vl-pl-head b { font-weight: normal; }
.vl-pl-n { margin-left: auto; color: #6d7a8a; font-size: 11px; }
.vl-pl-list { flex: 1; overflow: auto; outline: 0; }
.vl-pl-it { display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 2px; border: 1px solid transparent; cursor: default; white-space: nowrap; }
.vl-pl-it:nth-child(even) { background: #f6f8fb; }
.vl-pl-it:hover { background: #e9f3fd; border-color: #c5dff7; }
.vl-pl-it.sel { background: #cce4fb; border-color: #84acdd; }
.vl-pl-it.cur .vl-pl-name { font-weight: bold; }
.vl-pl-mk { width: 14px; flex: none; color: #ff7a00; font-size: 10px; text-align: center; }
.vl-pl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vl-pl-dur { flex: none; color: #6d7a8a; font-size: 11px; font-variant-numeric: tabular-nums; }
.vl-pl-empty { padding: 18px 12px; color: #777; text-align: center; line-height: 1.6; }
.vl-pl-foot { display: flex; gap: 4px; padding: 5px; border-top: 1px solid #d7dde5; background: #f3f5f8; flex-wrap: wrap; }
.vl-pl-foot .btn7 { min-width: 0; padding: 0 8px; flex: 1; }
/* Barre de commandes */
.vl-bar { flex: none; background: linear-gradient(#fbfbfb, #e4e6e9); border-top: 1px solid #b9bec6; padding: 3px 6px 4px; }
.vl-seek { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 11px; color: #222; font-variant-numeric: tabular-nums; }
.vl-t1, .vl-t2 { flex: none; min-width: 38px; }
.vl-t2 { text-align: right; cursor: pointer; }
.vl-slider { position: relative; flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(#c9ccd1, #e8eaed); border: 1px solid #9aa1ab; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); cursor: pointer; touch-action: none; }
.vl-slider.off { cursor: default; opacity: .65; }
.vl-slider i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; }
.vl-buf { background: rgba(120,140,170,.35); }
.vl-fill { background: linear-gradient(#ffb04a, #ff7d00); box-shadow: inset 0 -1px 0 rgba(160,70,0,.35); }
.vl-knob { width: 13px; height: 13px; top: -3.5px !important; bottom: auto !important; margin-left: -7px; border-radius: 50% !important; background: radial-gradient(circle at 40% 35%, #fff, #d5d9df); border: 1px solid #7d8794; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.vl-slider.off .vl-knob { display: none; }
.vl-tip { position: absolute; bottom: 14px; transform: translateX(-50%); background: #ffffe1; border: 1px solid #767676; padding: 0 4px; font-size: 11px; color: #000; display: none; pointer-events: none; white-space: nowrap; }
.vl-ctrl { display: flex; align-items: center; gap: 1px; margin-top: 3px; min-width: 0; }
.vl-b { width: 28px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; color: #3b4048; display: flex; align-items: center; justify-content: center; flex: none; position: relative; cursor: default; }
.vl-b svg { width: 18px; height: 18px; fill: currentColor; }
.vl-b:hover { background: linear-gradient(#fdfeff, #dfeaf7); border-color: #a9c2e0; }
.vl-b:active { background: linear-gradient(#d4e2f2, #eef3fa); }
.vl-b.on { color: #ff7a00; background: linear-gradient(#fff6ea, #ffe2bf); border-color: #f0b46e; }
.vl-b em { position: absolute; right: 2px; bottom: 1px; font: bold 9px/1 var(--font); font-style: normal; color: #ff7a00; }
.vl-b.big { width: 36px; height: 34px; border-radius: 50%; border-color: #9aa1ab; background: radial-gradient(circle at 50% 30%, #fff, #d9dde3 70%); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.vl-b.big svg { width: 20px; height: 20px; }
.vl-b.big:hover { border-color: #ff9a2e; background: radial-gradient(circle at 50% 30%, #fff, #ffe0bb 75%); }
.vl-gap { width: 8px; flex: none; }
.vl-flex { flex: 1; min-width: 4px; }
.vl-speed { height: 22px; padding: 0 5px; border: 1px solid transparent; background: none; font: 11px var(--font); color: #555; border-radius: 3px; flex: none; font-variant-numeric: tabular-nums; }
.vl-speed:hover { border-color: #a9c2e0; background: #eef4fb; }
.vl-speed.on { color: #c45c00; font-weight: bold; }
.vl-vol { display: flex; align-items: center; gap: 4px; flex: none; margin-left: 2px; }
.vl-vol-tri { position: relative; width: 74px; height: 20px; cursor: pointer; touch-action: none; clip-path: polygon(0 100%, 100% 0, 100% 100%); background: #c4c8ce; }
.vl-vol-tri i { position: absolute; left: 0; top: 0; bottom: 0; width: 80%; background: linear-gradient(90deg, #39b54a 0, #9bd53f 45%, #f7d23a 70%, #ff8a1c 80%, #e8261c 100%); background-size: 74px 100%; }
.vl-vol.muted .vl-vol-tri i { filter: grayscale(1); opacity: .55; }
.vl-vol-txt { width: 34px; font-size: 11px; color: #333; text-align: right; font-variant-numeric: tabular-nums; }
.vl-keys { border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.vl-keys td { padding: 2px 10px 2px 0; vertical-align: top; }
.vl-keys td:first-child { white-space: nowrap; color: #1e3287; }
/* Plein écran : l'image remplit l'écran, les commandes apparaissent au mouvement de la souris */
.vl.vl-full { background: #000; }
.vl.vl-full > .menubar, .vl.vl-full .vl-pl { display: none; }
.vl.vl-full .vl-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: calc(100% - 28px); width: min(820px, calc(100% - 28px)); border: 1px solid #9aa1ab; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.55); transition: opacity .3s; }
.vl.vl-full.vl-hide { cursor: none; }
.vl.vl-full.vl-hide .vl-bar { opacity: 0; pointer-events: none; }
.vl.vl-full .vl-osd { font-size: 24px; top: 24px; right: 30px; }
.vl.vl-full .vl-video::cue, .vl-video::cue { background: rgba(0,0,0,.6); }
@media (max-width: 700px) {
  .vl-pl { position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; width: 85%; width: min(270px, 85%); box-shadow: -2px 0 10px rgba(0,0,0,.35); }
  .vl-body { position: relative; }
  .vl-snapb, .vl-rand, .vl-speed, .vl-gap { display: none !important; }
  .vl-vol-tri { width: 54px; }
  .vl-vol-tri i { background-size: 54px 100%; }
}

/* ==========================================================================
   Lecteur PDF (pdfviewer.js, PDF.js dans os/lib/pdfjs) : préfixe pv-
   ========================================================================== */
.pv { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; position: relative; background: #fff; }
.pv .cmdbar { gap: 1px; padding: 2px 4px; }
.pv .cmdbar button { padding: 0 5px; flex: none; }
.pv .cmdbar button svg, .pv-fi svg { width: 16px; height: 16px; flex: none; display: block; }
.pv .cmdbar button.on { border-color: #6f97c4; background: linear-gradient(#dfe9f5, #c5d8ee); }
.pv-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.pv input.pv-pn { width: 44px; text-align: right; padding: 2px 4px; flex: none; }
.pv-of { color: #1e395b; padding: 0 2px 0 4px; white-space: nowrap; flex: none; }
.pv select.pv-zoom { width: 140px; padding: 2px; flex: none; }
.pv-find { display: flex; align-items: center; gap: 1px; margin-left: auto; padding-left: 8px; min-width: 0; }
.pv-fi { margin-right: 4px; opacity: .8; }
.pv input.pv-q { width: 170px; min-width: 60px; padding: 2px 5px; }
.pv input.pv-q.pv-nf { background: #ffe8e6; }
.pv-fc { color: #4a5a6e; min-width: 70px; padding: 0 4px; white-space: nowrap; font-size: 11px; }
.pv-body { position: relative; flex: 1; min-height: 0; display: flex; }
.pv-side { width: 172px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #9fb0c5; background: linear-gradient(90deg, #eef3f9, #e3eaf3); min-height: 0; }
.pv-tabs { display: flex; gap: 2px; padding: 5px 6px 0; border-bottom: 1px solid #a5b7cd; flex: none; user-select: none; }
.pv-tabs button { flex: 1; border: 1px solid #a5b7cd; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 3px 4px; margin-bottom: -1px; color: #1e395b; cursor: default;
  background: linear-gradient(#f7f9fc, #e3eaf3); font: inherit; }
.pv-tabs button:hover:not(:disabled) { border-color: #7da2ce; }
.pv-tabs button.on { background: #f4f7fb; border-bottom: 1px solid #f4f7fb; font-weight: bold; }
.pv-tabs button:disabled { color: #9aa4b0; }
.pv-thumbs { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 6px 0; background: #f4f7fb; }
.pv-th { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; cursor: default; user-select: none; }
.pv-thi { background: #fff; box-shadow: 0 0 0 1px #9aa8b9, 0 1px 3px rgba(0,0,0,.25); overflow: hidden; }
.pv-thi img { width: 100%; height: 100%; display: block; }
.pv-th:hover .pv-thi { box-shadow: 0 0 0 1px #7da2ce, 0 0 0 3px #cfe3f8; }
.pv-th.on .pv-thi { box-shadow: 0 0 0 1px #2f6fbf, 0 0 0 3px #7fb2ea; }
.pv-th span { font-size: 11px; color: #33475f; }
.pv-th.on span { font-weight: bold; color: #1e3287; }
.pv-outline { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 4px 2px 8px; background: #f4f7fb; font-size: 12px; user-select: none; }
.pv-outline ul { list-style: none; margin: 0; padding: 0 0 0 12px; }
.pv-outline > ul { padding-left: 0; }
.pv-oi { display: flex; align-items: flex-start; gap: 2px; padding: 2px 4px 2px 0; border: 1px solid transparent; border-radius: 2px; cursor: default; }
.pv-oi:hover { background: #e5f1fc; border-color: #b8d6fb; }
.pv-oi.on { background: #cce8ff; border-color: #84acdd; }
.pv-ot { flex: 1; min-width: 0; color: #1e2b3c; line-height: 1.35; overflow-wrap: anywhere; }
.pv-tw { width: 14px; height: 16px; flex: none; position: relative; }
.pv-tw:not(.leaf)::before { content: ''; position: absolute; left: 4px; top: 4px; border: 4px solid transparent; border-left: 5px solid #6a7b90; border-right: 0; }
li.open > .pv-oi .pv-tw:not(.leaf)::before { transform: rotate(90deg); transform-origin: 2px 4px; left: 5px; top: 5px; }
.pv-none { padding: 14px 10px; color: #6a7686; font-style: italic; }
.pv-view { position: relative; flex: 1; min-width: 0; overflow: auto; background: #7c8794; outline: 0; overscroll-behavior: contain; }
.pv-pages { position: relative; width: max-content; min-width: 100%; box-sizing: border-box; padding: 10px 10px 0; }
.pv-page { position: relative; margin: 0 auto 10px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.pv-page::before { content: attr(data-n); position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 28px; color: #d4dae2; user-select: none; }
.pv-page.pv-bad::after { content: 'Page illisible'; position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: #b3261e; }
.pv-page canvas.pv-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.pv-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
  background: linear-gradient(#f7fafd, #e7eef7); color: #1e395b; }
.pv-empty .ico { width: 72px; height: 72px; }
.pv-empty .ico svg { width: 100%; height: 100%; }
.pv-empty b { font-size: 16px; font-weight: normal; color: #1e3287; }
.pv-empty small { color: #555; max-width: 440px; line-height: 1.5; }
.pv-busy { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(240,244,250,.55); }
.pv-busy span { background: #fff; border: 1px solid #8ea7c4; border-radius: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.25); padding: 10px 16px; color: #1e395b; max-width: 80%; }
.pv-drop { position: absolute; top: 6px; right: 6px; bottom: 6px; left: 6px; inset: 6px; z-index: 7; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #1e395b;
  background: rgba(80,150,230,.18); outline: 2px dashed #6aa2dc; outline-offset: -4px; pointer-events: none; }
.pv .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv .statusbar .pv-st.err { color: #b00; }
.pv-pwbox { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.pv-pwbox .main { margin-bottom: 0 !important; }
.pv-pwbox .pv-pw { width: 100%; box-sizing: border-box; }
.pv-err { color: #b3261e; }
.pv-props { border-collapse: collapse; font-size: 12px; }
.pv-props th { text-align: left; font-weight: normal; color: #555; padding: 2px 14px 2px 0; vertical-align: top; white-space: nowrap; }
.pv-props td { padding: 2px 0; overflow-wrap: anywhere; }
/* Couche de texte sélectionnable (PDF.js 3.11 renderTextLayer) */
.pv-text { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: hidden; line-height: 1; text-align: initial; opacity: 1; z-index: 2; transform-origin: 0 0;
  -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; user-select: text; -webkit-user-select: text; }
.pv-text span, .pv-text br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.pv-text span.markedContent { top: 0; height: 0; }
.pv-text ::selection { background: rgba(0, 90, 255, .3); }
.pv-text br::selection { background: transparent; }
.pv-text .endOfContent { display: block; position: absolute; top: 100%; right: 0; bottom: 0; left: 0; inset: 100% 0 0; z-index: -1; cursor: default; user-select: none; }
.pv-text[data-main-rotation="90"] { transform: rotate(90deg) translateX(0) translateY(-100%); }
.pv-text[data-main-rotation="180"] { transform: rotate(180deg) translate(-100%, -100%); }
.pv-text[data-main-rotation="270"] { transform: rotate(270deg) translateX(-100%); }
.pv-text span.pv-hl { position: static; margin: -1px; padding: 1px; border-radius: 3px; background: rgba(255, 200, 0, .45); }
.pv-text span.pv-hl.sel { background: rgba(255, 110, 0, .6); }
.pv-links { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3; pointer-events: none; }
.pv-links a.pv-link { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 1px; }
.pv-links a.pv-link:hover { background: rgba(60, 130, 230, .12); outline: 1px solid rgba(60, 130, 230, .45); }
@media (max-width: 700px) {
  .pv .cmdbar { overflow-x: auto; }
  .pv-lbl, .pv-fi, .pv .b-rot { display: none; }
  .pv select.pv-zoom { width: 110px; }
  .pv input.pv-q { width: 110px; }
  .pv-side { width: 140px; }
  .pv .statusbar .pv-dim { display: none; }
}

/* Analyse de cible : couleur par calibre (légende sur la photo, pastille du numéro dans la liste) */
.tir-legend { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: calc(100% - 16px); padding: 3px 8px; background: rgba(20,24,30,.72); color: #eef1f5; font-size: 11px; line-height: 16px; border-radius: 3px; pointer-events: none; }
.tir-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tir-legend i { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.8); }
.tir-legend b { font-weight: bold; }
.tir-row .n { cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.tir-row .c { color: #777; font-size: 10px; min-width: 26px; white-space: nowrap; }
.tir-row.man .c { color: #1e3287; font-weight: bold; }
/* Analyse de cible : la barre d'outils passe sur plusieurs lignes si elle dépasse la largeur (téléphone) */
.tir .cmdbar { flex-wrap: wrap; height: auto; min-height: 32px; row-gap: 2px; padding-top: 3px; padding-bottom: 3px; }
.tir .cmdbar > button, .tir .cmdbar > .tir-cal { flex: none; white-space: nowrap; }
/* Analyse de cible : la croix de suppression d un impact reste toujours visible (pas de survol sur mobile) */
.tir-row .x { visibility: visible; }
@media (pointer: coarse) { .tir-row .x { width: 28px; height: 24px; font-size: 18px; margin: -4px -4px -4px 0; } }
/* Analyse de cible : caméra en direct (barre en bas de l image : état, Pause / Reprendre, Arrêter) */
.tir-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tir-camvideo { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.tir-cambar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; width: max-content; max-width: calc(100% - 16px); padding: 6px 8px 6px 12px; background: rgba(20,24,30,.82); color: #eef1f5; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.4); font-size: 12px; }
.tir-camst { white-space: nowrap; }
.tir-cambtns { display: flex; gap: 6px; }
.tir-cambar button { min-width: 84px; height: 30px; padding: 0 12px; border: 1px solid #707070; border-radius: 3px; background: linear-gradient(#f6f6f6, #dcdcdc); color: #000; font: inherit; cursor: pointer; }
.tir-cambar button:hover { border-color: #3c7fb1; background: linear-gradient(#eaf6fd, #bee6fd); }
.tir-cambar button.on { border-color: #5f9a4a; background: linear-gradient(#e6f5df, #b9dfa8); }
.tir-cambar button.tir-camstop { border-color: #a33; background: linear-gradient(#fbe1e1, #eab0b0); }
.tir-cambar button:disabled { opacity: .55; cursor: default; }
.tir-view.tir-live .tir-legend { bottom: auto; top: 8px; }
@media (pointer: coarse) { .tir-cambar { font-size: 14px; } .tir-cambar button { height: 42px; min-width: 104px; font-size: 16px; } }
/* Analyse de cible, caméra : les boutons Pause / Arrêter au-dessus du libellé d état */
.tir-cambar { flex-direction: column; gap: 6px; padding: 8px 10px; }
.tir-cambtns { order: -1; justify-content: center; }
.tir-camst { white-space: normal; text-align: center; }
/* Analyse de cible : volet des scores masquable sur écran étroit (barre « ▲ Scores » sous la photo) ; toujours affiché à droite sur écran large */
.tir-tab { display: none; }
@media (max-width: 700px) {
  .tir-tab { display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; width: 100%; min-height: 42px; margin: 0; padding: 4px 12px; border: 0; border-top: 1px solid #8ea7c4; background: linear-gradient(#f4f8fd, #d9e5f3); color: #1e395b; font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tir-tab:active { background: linear-gradient(#d9e5f3, #c3d6ec); }
  .tir-tab-a { font-size: 12px; color: #3c6fa8; }
  .tir-tab-s { color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tir-tab b { color: #c40000; }
  .tir-tab + .tir-side { border-top: 0; }
  .tir.tir-shut .tir-side { display: none; }
}

/* Banque : catégories des opérations */
.bq-t td.ct { padding: 2px 6px; min-width: 130px; }
.bq-catf { display: inline-flex; align-items: center; min-width: 118px; max-width: 200px; box-sizing: border-box; padding: 1px 6px; border: 1px solid #abadb3; border-radius: 2px;
  background: #fff; color: #222; cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; outline: 0; }
.bq-catf:hover, .bq-catf:focus { border-color: #3d7bad; }
.bq-catf.empty { color: #999; font-style: italic; }
.bq-catf i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.bq-catsel { min-width: 140px; max-width: 220px; }
.bq-catdlg { flex-direction: column; align-items: stretch; gap: 6px; }
.bq-catdlg label { display: flex; flex-direction: column; gap: 4px; color: #1e395b; }
.bq-cl { color: #1e395b; margin-top: 4px; }
.bq-pal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bq-pal button { width: 20px; height: 20px; padding: 0; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; cursor: pointer; }
.bq-pal button:hover { transform: scale(1.12); }
.bq-pal button.on { outline: 2px solid #1e395b; outline-offset: 1px; }
.bq-catdlg .bq-other { flex-direction: row; align-items: center; gap: 4px; font-size: 11px; margin-left: 4px; cursor: pointer; }
.bq-other input { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.bq-prev { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.bq-prev b { font-weight: normal; }
.bq-err { color: #b3261e; }

/* Banque : règles de catégorisation */
.bq-t td.lb { cursor: pointer; }
.bq-t td.lb:hover { text-decoration: underline; color: #1e3287; }
.bq-ruledlg { flex-direction: column; align-items: stretch; gap: 6px; }
.bq-ruledlg label { display: flex; flex-direction: column; gap: 4px; color: #1e395b; }
.bq-ruledlg .bq-rp { font-family: Consolas, "Courier New", monospace; }
.bq-rmode { color: #5b6878; font-size: 11px; margin-top: -2px; }
.bq-rmode.err { color: #b3261e; }
.bq-rres { margin-top: auto; padding: 8px 10px; border: 1px solid #dde3ea; background: #f7f9fc; line-height: 1.6; }
.bq-rres .bq-catf { min-width: 0; cursor: default; vertical-align: middle; }
.bq-rsame { color: #777; }
.bq-rconf { color: #1b7a33; }
.bq-rconf.on { color: #8a5a00; }

/* Banque : liste des catégories (remplace le select natif, garde les couleurs) */
.bq-catf.open { border-color: #3d7bad; box-shadow: 0 0 0 1px rgba(61,123,173,.25); }
.bq-catf::after { content: ''; margin-left: auto; padding-left: 8px; border: 4px solid transparent; border-top-color: #6a7c92; border-bottom: 0; transform: translateY(1px); }
.bq-catf.open::after { border-top: 0; border-bottom: 4px solid #3d7bad; transform: translateY(-1px); }
.bq-rres .bq-catf::after, .bq-prev .bq-catf::after { display: none; }
.bq-catmenu { position: absolute; z-index: 20; max-height: 260px; overflow-y: auto; padding: 3px; box-sizing: border-box; font-size: 12px;
  background: #fff; border: 1px solid #97a9c0; border-radius: 3px; box-shadow: 2px 3px 10px rgba(0,0,0,.22); user-select: none; }
.bq-cm-it { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; border: 1px solid transparent; border-radius: 3px; cursor: default; white-space: nowrap; color: #222; }
.bq-cm-it i { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.bq-cm-it i.empty { background: none; box-shadow: inset 0 0 0 1px #b8c2cf; }
.bq-cm-it b { flex: none; width: 12px; text-align: center; color: #1e6fd0; font-weight: bold; }
.bq-cm-it.none span { color: #888; font-style: italic; }
.bq-cm-it.add span { color: #1e6fd0; }
.bq-cm-it.sel { font-weight: bold; }
.bq-cm-it.sel::after { content: '\2713'; margin-left: auto; padding-left: 12px; color: #1e6fd0; }
.bq-cm-it.hot { background: linear-gradient(#f2f8fe, #dcebfc); border-color: #a8cbef; }
.bq-cm-sep { height: 1px; background: #e1e7ee; margin: 3px 2px; }

/* Banque : choix de la catégorie dans la fenêtre de règle (liste stylisée) */
.bq-ruledlg { position: relative; }
.bq-rcl { color: #1e395b; }
.bq-ruledlg .bq-rc { max-width: none; width: 100%; padding: 2px 8px; line-height: 20px; cursor: default; }
.bq-ruledlg .bq-rc:focus { box-shadow: 0 0 0 1px rgba(61,123,173,.25); }

/* Banque : onglet Règles */
.bq-rbar { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-bottom: 1px solid #dde3ea; flex: none; background: #f7f9fc; color: #5b6878; font-size: 12px; }
.bq-rbar .btn7 { flex: none; }
.bq-rnone { padding: 30px; text-align: center; color: #777; }
.bq-rt td { vertical-align: middle; }
.bq-rt tbody tr { cursor: default; }
.bq-rpat code { font: 12px Consolas, "Courier New", monospace; color: #1e3287; white-space: pre-wrap; overflow-wrap: anywhere; }
.bq-rpat { white-space: normal; min-width: 220px; }
.bq-rtag { display: inline-block; margin-left: 8px; padding: 0 5px; border-radius: 3px; font-style: normal; font-size: 10px; line-height: 15px; background: #e8eef6; color: #4c607a; vertical-align: 1px; }
.bq-rtag.rx { background: #efe6f7; color: #6a3d8f; }
.bq-rtag.bad { background: #fde7e5; color: #b3261e; }
.bq-chip { min-width: 0; cursor: default; }
.bq-chip::after { display: none; }
.bq-rmiss { color: #b3261e; font-style: italic; }
.bq-ract { text-align: right; white-space: nowrap; }
.bq-ract .btn7 { min-width: 0; padding: 2px 10px; margin-left: 4px; }
.bq-ib { width: 22px; height: 22px; padding: 0; margin-left: 2px; border: 1px solid #c3cfdd; border-radius: 3px; background: #f7f9fc; color: #4c607a; font-size: 9px; cursor: pointer; }
.bq-ib:hover:not(:disabled) { border-color: #7da2ce; background: #e5f1fc; }
.bq-ib:disabled { opacity: .35; cursor: default; }

/* Banque : onglet Catégories */
.bq-ctab td { vertical-align: middle; }
.bq-csw { display: inline-block; width: 16px; height: 16px; border-radius: 3px; vertical-align: middle; margin-right: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.bq-chex { font: 11px Consolas, "Courier New", monospace; color: #5b6878; vertical-align: middle; }

/* Banque : la liste des catégories est posée sur la page, au-dessus des fenêtres */
.bq-catmenu { position: fixed; z-index: 100000; font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: normal; }

/* Banque : compte d'une règle */
.bq-racc { color: #222; }
.bq-racc.all { color: #777; font-style: italic; }
.bq-racc i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bq-ruledlg .bq-ra { width: 100%; }

/* Banque : camembert par catégorie */
.bq-pie { border: 1px solid #dde3ea; background: #fff; }
.bq-pie-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 10px; border-bottom: 1px solid #dde3ea; background: #f7f9fc; color: #1e395b; }
.bq-pie-bar label { display: flex; align-items: center; gap: 6px; }
.bq-pie-bar input[type="date"] { width: 140px; }
.bq-pie-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; padding: 12px 14px; }
.bq-pie-svg { position: relative; flex: none; }
.bq-pie-svg svg { display: block; font: 12px "Segoe UI", Tahoma, Arial, sans-serif; }
.bq-pie-svg path { stroke: #fff; stroke-width: 1.5; }
.bq-pie-svg path, .bq-pie-svg circle { transition: opacity .12s; cursor: default; }
.bq-pie-svg:hover path:not(.hot), .bq-pie-svg:hover circle:not(.hot) { opacity: .55; }
.bq-pie-t1 { fill: #5b6878; font-size: 12px; }
.bq-pie-t2 { fill: #1e3287; font-size: 15px; font-weight: bold; }
.bq-pie-tip { min-width: 170px; }
.bq-pie-tab { flex: 1; min-width: 280px; width: auto; }
.bq-pie-tab tbody tr.hot td { background: #e5f1fc; }
.bq-pie-tab tr.tot td { border-top: 1px solid #b6c3d3; background: #eef3f9 !important; font-weight: bold; }

/* Banque : catégories masquées dans le camembert */
.bq-pie-tab tbody tr[data-k] { cursor: pointer; }
.bq-pie-tab td.bq-pchk { width: 18px; padding-right: 0; }
.bq-pie-tab td.bq-pchk input { margin: 0; pointer-events: none; vertical-align: middle; }
.bq-pie-tab tr.off td { color: #999; }
.bq-pie-tab tr.off .bq-chip { opacity: .5; text-decoration: line-through; }

/* Banque : statistiques par catégorie, colonne du type affiché dans le camembert */
.bq-pie-tab th.cur, .bq-pie-tab td.cur { font-weight: bold; }

/* Banque : deux camemberts empilés (dépenses puis recettes) à gauche du tableau des catégories */
.bq-pie-col { position: relative; flex: none; display: flex; flex-direction: column; gap: 14px; }
.bq-pie-col.has-hot path:not(.hot), .bq-pie-col.has-hot circle[data-k]:not(.hot) { opacity: .55; }
.bq-pie-t2.deb { fill: #b3261e; }
.bq-pie-t2.cre { fill: #1b7a33; }

/* Banque : contour des camemberts (catégories de couleur claire) */
.bq-pie-svg circle.bq-pie-ring { fill: none; stroke: #9aa8b8; stroke-width: 1; pointer-events: none; opacity: 1 !important; }

/* Banque : mode d'emploi en sections, avec défilement si le texte dépasse */
.dialog-body:has(.bq-help) { min-height: 0; overflow: hidden; }
.dialog-body:has(.bq-help) .dmsg { align-self: stretch; display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1; }
.bq-help { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; line-height: 1.45; }
.bq-help h4 { margin: 10px 0 2px; font-size: 12px; color: #1e3287; }
.bq-help h4:first-child { margin-top: 0; }
.bq-help p { margin: 0; }
.bq-help .bq-help-note { margin-top: 10px; color: #5b6878; }

/* Invite de commandes : Terminal de l'apparence Mac OS X (noir sur blanc, Monaco) */
.win .client.cm-client.cm-client-mac { background: #fff; }
.cm.cm-mac { --cm-bg: #fff; --cm-fg: #000; font: 12px/15px Monaco, Menlo, 'Courier New', monospace; }
.cm.cm-mac .cm-scroll { padding: 3px 5px 4px; }
.cm.cm-mac .cm-cur { background: rgba(0, 0, 0, .5); animation: none; }
.cm.cm-mac.cm-blur .cm-cur { background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.cm.cm-mac .cm-scroll::-webkit-scrollbar { width: 11px; background: #fff; }
.cm.cm-mac .cm-scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .35); border: 2px solid #fff; border-radius: 6px; }
.cm.cm-mac ::selection { background: #b5d5ff; color: #000; }

/* ==========================================================================
   Diagramme de Gantt (gantt.js) : arbre des tâches, diagramme, ressources
   ========================================================================== */
.gt { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; position: relative; background: #fff; }
.gt-tb { gap: 1px; overflow: hidden; }
.gt-tb button { padding: 0 5px; flex: none; }
.gt-tb button svg { flex: none; }
.gt-tb button span { white-space: nowrap; }
.gt-tb .sel7 { height: 22px; padding: 0 2px; margin: 0 4px; flex: none; }
.gt-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.gt-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 5px 8px 0; flex: none; user-select: none;
  background: linear-gradient(#e9f0f8, #dbe6f3); border-bottom: 1px solid #8ea7c4; }
.gt-tabs button { border: 1px solid #a5b7cd; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 3px 14px; margin-bottom: -1px; color: #1e395b; cursor: default;
  background: linear-gradient(#f6f9fc, #e3ebf5 50%, #d6e1ee 51%, #e0e9f4); }
.gt-tabs button:hover { background: linear-gradient(#fdfeff, #edf4fc 50%, #dfeaf7 51%, #e9f1fb); border-color: #7da2ce; }
.gt-tabs button.on { background: #fff; border-color: #8ea7c4; border-bottom: 1px solid #fff; padding-top: 5px; font-weight: bold; }
.gt-body { position: relative; flex: 1; min-height: 0; display: flex; }
.gt-view { flex: 1; min-width: 0; display: flex; }
.gt-left { flex: none; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; }
.gt-th { display: grid; grid-template-columns: var(--gt-cols); height: 40px; flex: none; user-select: none;
  background: linear-gradient(#fbfcfe, #e4ebf4); border-bottom: 1px solid #b6c3d3; }
.gt-hc { position: relative; display: flex; align-items: center; padding: 0 6px; color: #1e395b; border-right: 1px solid #cdd7e3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gt-rz { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 1; }
.gt-tbody { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.gt-tbody::-webkit-scrollbar { display: none; }
.gt-row { display: grid; grid-template-columns: var(--gt-cols); height: 22px; line-height: 21px; border-bottom: 1px solid #eef1f5; cursor: default; user-select: none; }
.gt-row:hover { background: #f2f7fd; }
.gt-row.sel { background: #cce8ff; }
.gt-row.sum .gt-nm { font-weight: bold; }
.gt-row.asg { color: #33475e; }
.gt-row.asg b { color: #d08a00; font-weight: normal; }
.gt-c { padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-right: 1px solid #f0f2f5; }
.gt-c.gt-r { text-align: right; }
.gt-cn { display: flex; align-items: center; gap: 2px; }
.gt-tog { width: 14px; height: 14px; flex: none; display: flex; align-items: center; justify-content: center; }
.gt-ico { width: 14px; flex: none; display: flex; align-items: center; justify-content: center; margin-right: 3px; }
.gt-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gt-pc { display: inline-block; width: 30px; height: 7px; border: 1px solid #9aabbf; background: #fff; margin-right: 5px; vertical-align: middle; position: relative; top: -1px; }
.gt-pc i { display: block; height: 100%; background: linear-gradient(#8fd06a, #3f9a2f); }
.gt-ined { width: 100%; height: 19px; font: inherit; border: 1px solid #3d7bad; padding: 0 3px; outline: 0; }
.gt-split { width: 5px; flex: none; cursor: col-resize; background: linear-gradient(90deg, #c9d3df, #eef2f7 40%, #c9d3df); }
.gt-right { flex: 1; min-width: 0; display: flex; }
.gt-wrap { flex: 1; min-width: 0; overflow: auto; position: relative; background: #fff; }
.gt-cv { position: sticky; left: 0; top: 0; display: block; touch-action: none; }
.gt-space { pointer-events: none; }
.gt-drop { position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; inset: 8px; display: flex; align-items: center; justify-content: center; border: 3px dashed #3a87d8; border-radius: 6px;
  background: rgba(225, 238, 252, .9); color: #1e395b; font-size: 16px; z-index: 5; pointer-events: none; }
.gt-tip { position: absolute; z-index: 6; max-width: 260px; padding: 5px 8px; background: #fffff0; border: 1px solid #767676; box-shadow: 2px 2px 4px rgba(0,0,0,.25);
  font-size: 11px; line-height: 1.45; color: #222; pointer-events: none; }
.gt .statusbar .err { color: #b3261e; }
.gt-dbox { display: flex; flex-direction: column; height: 100%; background: #fff; }
.gt-dlg { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 8px; gap: 8px; overflow: auto; }
.gt-dtabs { display: flex; gap: 2px; border-bottom: 1px solid #8ea7c4; flex: none; user-select: none; }
.gt-dtabs button { border: 1px solid #a5b7cd; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 3px 12px; margin-bottom: -1px; color: #1e395b; cursor: default;
  background: linear-gradient(#f6f9fc, #e3ebf5 50%, #d6e1ee 51%, #e0e9f4); }
.gt-dtabs button.on { background: #fff; border-bottom: 1px solid #fff; font-weight: bold; }
.gt-dpane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.gt-form { display: grid; grid-template-columns: 110px 1fr; gap: 7px 10px; align-items: center; }
.gt-form > label { color: #1e395b; }
.gt-form input[type=date] { width: 150px; }
.gt-form input[type=number] { width: 70px; }
.gt-form textarea { height: 120px; resize: vertical; }
.gt-form small, .gt-hint { color: #5b6878; }
.gt-ck { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.gt-pcf { display: flex; align-items: center; gap: 8px; }
.gt-pcf input[type=range] { width: 180px; }
.gt-colf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gt-colf input[type=color] { width: 34px; height: 22px; padding: 0 1px; border: 1px solid #abadb3; background: #fff; }
.gt-sw { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.gt-sw i { width: 15px; height: 15px; border: 1px solid rgba(0,0,0,.35); cursor: pointer; }
.gt-sw i.on { outline: 2px solid #1f6fd0; outline-offset: 1px; }
.gt-grid { flex: 1; min-height: 80px; overflow: auto; border: 1px solid #b6c3d3; }
.gt-grid table { width: 100%; border-collapse: collapse; }
.gt-grid th { position: sticky; top: 0; background: linear-gradient(#fbfcfe, #e4ebf4); color: #1e395b; font-weight: normal; text-align: left; padding: 3px 5px; border-bottom: 1px solid #b6c3d3; }
.gt-grid td { padding: 2px 4px; border-bottom: 1px solid #eef1f5; }
.gt-grid td .sel7, .gt-grid td .txt7 { width: 100%; box-sizing: border-box; }
.gt-grid td:first-child .sel7 { min-width: 150px; }
.gt-ctr { text-align: center; }
.gt-x { border: 0; background: none; color: #b3261e; cursor: pointer; font-size: 13px; padding: 0 4px; }
.gt-dpane > textarea.f-notes { flex: 1; resize: none; min-height: 200px; }
.gt-dpane > .btn7 { align-self: flex-start; }
.gt-wk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gt-wk b { font-weight: normal; color: #1e395b; margin-right: 6px; }
.gt-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.gt-rolef { display: flex; gap: 6px; align-items: center; }
.gt-rolef .sel7 { flex: 1; min-width: 0; }
.gt-asg { margin-top: 4px; color: #333; }
.gt-asg b { color: #1e395b; font-weight: normal; }
.gt-asg ul { margin: 4px 0 0; padding-left: 18px; max-height: 110px; overflow: auto; }
.dialog-body:has(.gt-help) { min-height: 0; overflow: hidden; }
.dialog-body:has(.gt-help) .dmsg { align-self: stretch; display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1; }
.gt-help { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; line-height: 1.45; }
.gt-help h4 { margin: 10px 0 2px; font-size: 12px; color: #1e3287; }
.gt-help h4:first-child { margin-top: 0; }
.gt-help p { margin: 0; }
.gt-help .gt-help-note { margin-top: 10px; color: #5b6878; }
@media (max-width: 700px) {
  .gt-tb button span { display: none; }
  .gt-form { grid-template-columns: 90px 1fr; }
}

/* ==========================================================================
   Composition Stargate : écran de composition du SGC en fil de fer (traits cyan
   sur noir). L'écran est dessiné sur un canvas ; les panneaux (commandes, carnet,
   journal, DHD) sont posés par-dessus. L'intérieur garde son style quelle que
   soit l'apparence du bureau.
   ========================================================================== */
.win .client.sgc-client, html[data-theme] .win .client.sgc-client { background: #000; padding: 0; overflow: hidden; }
.sgc-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; outline: 0; background: #000; }
.sgc-wrap > .menubar { flex: none; }
.sgc { --sgc-c: #4fd8e0; --sgc-c2: rgba(79, 216, 224, .35); --sgc-y: #e8e2b0; --sgc-r: #ff2a1a; --sgc-t: #5aa6a8;
  --sgc-f: "Eurostile", "Microgramma", "Bank Gothic", "OCR A Std", "OCR A Extended", Consolas, "Lucida Console", Menlo, monospace;
  position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; color: var(--sgc-c);
  font: 12px/1.3 var(--sgc-f); letter-spacing: 0; text-shadow: none; text-align: left; }
.sgc-alarm .sgc { --sgc-c: #ff4436; --sgc-c2: rgba(255, 68, 54, .35); }
.sgc-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; font-size: 10px; }
.sgc-gate { position: absolute; left: 0; top: 0; display: block; }
.sgc-ov { position: absolute; box-sizing: border-box; min-width: 0; min-height: 0; }
.sgc-ov[hidden] { display: none; }

/* Boutons de commande en haut à gauche */
.sgc-cmds { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 6%; padding: 0; }
.sgc .sgc-btn { appearance: none; -webkit-appearance: none; box-sizing: border-box; margin: 0; min-width: 0; min-height: 0; height: auto; width: auto;
  font: bold 1em/1.1 var(--sgc-f); letter-spacing: .06em; color: var(--sgc-c); background: #000; border: 1px solid var(--sgc-c); border-radius: 0;
  padding: .35em .5em; cursor: pointer; text-shadow: none; box-shadow: none; transform: none; text-transform: none; white-space: normal; overflow: hidden; }
.sgc .sgc-btn:hover:not(:disabled) { background: rgba(79, 216, 224, .14); box-shadow: 0 0 6px var(--sgc-c2); }
.sgc .sgc-btn:active:not(:disabled) { background: rgba(79, 216, 224, .3); }
.sgc .sgc-btn:disabled { opacity: .35; cursor: default; }
.sgc .sgc-btn-red { color: #ff6a5a; border-color: #ff2a1a; }
.sgc .sgc-btn-red:hover:not(:disabled) { background: rgba(255, 42, 26, .18); box-shadow: 0 0 6px rgba(255, 42, 26, .5); }
.sgc .sgc-btn-amb { color: var(--sgc-y); border-color: var(--sgc-y); }
.sgc .sgc-btn.sgc-on { background: rgba(79, 216, 224, .2); }
.sgc .sgc-btn.sgc-off { color: #6a7c7e; border-color: #3a4a4c; }
.sgc .sgc-btn.sgc-pulse { color: #000; background: var(--sgc-c); animation: sgc-pulse 1s ease-in-out infinite; }
@keyframes sgc-pulse { 50% { box-shadow: 0 0 12px var(--sgc-c); background: #b8f6fa; } }
.sgc .sgc-btn:focus-visible { outline: 1px dotted var(--sgc-y); outline-offset: 1px; }

/* Panneaux : en-tête jaune pâle en petites capitales, contenu cyan */
.sgc-ph { flex: none; display: flex; align-items: center; gap: 8px; padding: .35em .6em .25em; color: var(--sgc-y); font-size: .82em; letter-spacing: .14em; white-space: nowrap; overflow: hidden; }
.sgc-book, .sgc-logpane { display: flex; flex-direction: column; padding: 2px 3px 3px; }
.sgc-list, .sgc-log { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sgc-c) #000; }
.sgc-list::-webkit-scrollbar, .sgc-log::-webkit-scrollbar { width: 6px; background: #000; }
.sgc-list::-webkit-scrollbar-thumb, .sgc-log::-webkit-scrollbar-thumb { background: var(--sgc-t); border: 0; border-radius: 0; }

/* Carnet d'adresses */
.sgc-item { padding: .15em .45em; border: 1px solid transparent; cursor: pointer; }
.sgc-item:hover { background: rgba(79, 216, 224, .1); }
.sgc-item.sel { border-color: var(--sgc-c); background: rgba(79, 216, 224, .14); }
.sgc-it-h { display: flex; align-items: center; gap: 6px; }
.sgc-it-h b { color: var(--sgc-c); font-weight: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.sgc-it-h em { font-style: normal; font-size: .78em; color: var(--sgc-y); opacity: .8; white-space: nowrap; }
.sgc .sgc-del { appearance: none; border: 1px solid var(--sgc-r); background: #000; color: var(--sgc-r); font: 9px/1 sans-serif; width: 14px; height: 14px; padding: 0; min-width: 0; cursor: pointer; box-shadow: none; border-radius: 0; }
.sgc .sgc-del:hover { background: rgba(255, 42, 26, .25); }
.sgc-it-g { display: none; gap: 2px; margin: 2px 0 1px; flex-wrap: wrap; }
.sgc-item.sel .sgc-it-g { display: flex; }
.sgc-it-g svg { width: 1.45em; height: 1.45em; border: 1px solid var(--sgc-c2); }
.sgc-it-d { display: none; font-size: .85em; color: var(--sgc-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgc-item.sel .sgc-it-d { display: block; }
.sgc .sgc-gl path, .sgc .sgc-kgl path { fill: none; stroke: var(--sgc-c); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sgc .sgc-gl circle, .sgc .sgc-kgl circle { fill: var(--sgc-c); }

/* Journal */
.sgc-log { padding: 0 .4em; user-select: text; font-size: .9em; }
.sgc-l { white-space: pre-wrap; color: var(--sgc-c); }
.sgc-ts { color: var(--sgc-t); }
.sgc-l-amber { color: var(--sgc-y); }
.sgc-l-red { color: #ff5a4a; }
.sgc-help p { margin: 0 0 7px; line-height: 1.4; }

/* DHD : panneau en fil de fer posé sur la gauche */
.sgc-dhdpane { display: flex; flex-direction: column; background: #000; border: 1px solid var(--sgc-c); box-shadow: 0 0 0 1px #000, 0 0 14px rgba(79, 216, 224, .25); z-index: 2; }
.sgc-dhdpane .sgc-ph { border-bottom: 1px solid var(--sgc-c2); }
.sgc .sgc-x { appearance: none; margin-left: auto; border: 1px solid var(--sgc-c); background: #000; color: var(--sgc-c); font: 11px/1 sans-serif; width: 18px; height: 18px; padding: 0; min-width: 0; cursor: pointer; border-radius: 0; box-shadow: none; }
.sgc .sgc-x:hover { background: rgba(79, 216, 224, .2); }
.sgc-dhdbox { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4%; }
.sgc-dhd { width: 100%; height: 100%; display: block; }
.sgc-dl { fill: none; stroke: var(--sgc-c); stroke-width: 1.1; }
.sgc-dl2 { stroke-width: .6; opacity: .7; }
.sgc-key { cursor: pointer; }
.sgc-kbg { fill: #000; stroke: var(--sgc-c); stroke-width: .8; transition: fill .15s; }
.sgc-key:hover .sgc-kbg { fill: rgba(79, 216, 224, .18); }
.sgc-key-o .sgc-kbg { stroke: var(--sgc-y); }
.sgc .sgc-key-o .sgc-kgl path { stroke: var(--sgc-y); }
.sgc .sgc-key-o .sgc-kgl circle { fill: var(--sgc-y); }
.sgc-key.on .sgc-kbg { fill: var(--sgc-c); filter: drop-shadow(0 0 3px var(--sgc-c)); }
.sgc .sgc-key.on .sgc-kgl path { stroke: #000; }
.sgc .sgc-key.on .sgc-kgl circle { fill: #000; }
.sgc-key.deny .sgc-kbg { animation: sgc-deny .5s; }
@keyframes sgc-deny { 0%, 60% { fill: #c42417; } }
.sgc-dome { cursor: pointer; }
.sgc-dome:hover { filter: brightness(1.2); }
.sgc-dome-r { fill: none; stroke: #ff2a1a; stroke-width: 1.1; pointer-events: none; }
.sgc-dome-glow { fill: rgba(255, 90, 40, 0); pointer-events: none; transition: fill .4s; }
.sgc-live .sgc-dome-glow { fill: rgba(255, 150, 90, .35); animation: sgc-dome 1.6s ease-in-out infinite; }
@keyframes sgc-dome { 50% { fill: rgba(255, 150, 90, .1); } }
.sgc-busy .sgc-key, .sgc-busy .sgc-dome { cursor: not-allowed; }

/* Adresse saisie : 9 cases sous le DHD */
.sgc-addr { flex: none; display: flex; justify-content: center; gap: 3px; padding: 0 6px 4px; }
.sgc-slot { flex: 0 1 2.9em; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sgc-slot span { width: 100%; aspect-ratio: 1; box-sizing: border-box; border: 1px solid var(--sgc-c2); background: #000; display: flex; align-items: center; justify-content: center; }
.sgc-slot svg { width: 80%; height: 80%; }
.sgc-slot i { font-style: normal; font-size: .8em; color: var(--sgc-t); }
.sgc-slot.ext span { border-style: dashed; }
.sgc-slot.off { opacity: .3; }
.sgc-slot.lock span { border-color: var(--sgc-c); box-shadow: 0 0 6px var(--sgc-c2), inset 0 0 5px var(--sgc-c2); }
.sgc-slot.lock i { color: var(--sgc-y); }
.sgc-row { flex: none; display: flex; gap: 6px; padding: 4px 8px 8px; justify-content: center; }
.sgc-row .sgc-btn { flex: 1; padding: .55em .4em; }

/* Fenêtre étroite : l'écran en haut (16/9), puis les panneaux empilés qui défilent */
.sgc.sgc-narrow { overflow-y: auto; }
.sgc-narrow .sgc-stage { position: static; display: flex; flex-direction: column; gap: 8px; height: auto; font-size: 12px; padding-bottom: 8px; }
.sgc-narrow .sgc-gate { position: static; flex: none; }
.sgc-narrow .sgc-ov { position: static; margin: 0 8px; }
.sgc-narrow .sgc-cmds { order: 1; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sgc-narrow .sgc-cmds .sgc-btn { padding: .6em .4em; }
.sgc-narrow .sgc-dhdpane, .sgc-narrow .sgc-dhdpane[hidden] { order: 2; display: flex; height: auto; box-shadow: none; }
.sgc-narrow .sgc-dhdpane .sgc-x { display: none; }
.sgc-narrow .sgc-dhdbox { height: 78vw; height: min(78vw, 380px); flex: none; padding: 8px; }
.sgc-narrow .sgc-book { order: 3; height: 240px; border: 1px solid var(--sgc-c); }
.sgc-narrow .sgc-logpane { order: 4; height: 190px; border: 1px solid var(--sgc-c); }

/* Composition Stargate : carnet d'adresses en panneau sur la droite (bouton CARNET ou touche C) */
/* Six boutons sur deux colonnes ; le son se règle dans le menu Affichage › Son */
.sgc-cmds [data-a="mute"] { display: none; }
.sgc-narrow .sgc-cmds [data-a="mute"] { display: block; }
.sgc-bookpane { background: #000; border: 1px solid var(--sgc-c); box-shadow: 0 0 0 1px #000, 0 0 14px rgba(79, 216, 224, .25); z-index: 2; padding: 0; font-size: 1.15em; }
.sgc-bookpane .sgc-ph { border-bottom: 1px solid var(--sgc-c2); }
.sgc-qbox { flex: none; padding: 6px 8px 4px; }
.sgc .sgc-q { box-sizing: border-box; width: 100%; margin: 0; padding: .35em .5em; font: 1em var(--sgc-f); color: var(--sgc-c); background: #000;
  border: 1px solid var(--sgc-c2); border-radius: 0; outline: 0; box-shadow: none; }
.sgc .sgc-q:focus { border-color: var(--sgc-c); box-shadow: 0 0 6px var(--sgc-c2); }
.sgc .sgc-q::placeholder { color: var(--sgc-t); }
.sgc-bookpane .sgc-list { padding: 2px 6px; }
.sgc-bookpane .sgc-item { padding: .35em .5em .4em; border-bottom: 1px solid rgba(79, 216, 224, .12); }
.sgc-bookpane .sgc-item[hidden] { display: none; }
.sgc-bookpane .sgc-it-g { display: flex; }
.sgc-bookpane .sgc-it-d { display: block; }
.sgc-narrow .sgc-bookpane, .sgc-narrow .sgc-bookpane[hidden] { order: 3; display: flex; height: 360px; box-shadow: none; }
.sgc-narrow .sgc-bookpane .sgc-x { display: none; }

/* ==========================================================================
   Randonnée (rd-) : carte Leaflet, liste des circuits, position sur le tracé
   ========================================================================== */
.rd-client { padding: 0; overflow: hidden; }
.rd-root { --rd-ink: #2b3442; display: flex; flex-direction: column; height: 100%; background: #f4f6f2; color: var(--rd-ink); outline: none; font-size: 12px; }
.rd-tools { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: linear-gradient(#fbfdf8, #e7eedf); border-bottom: 1px solid #c3cbb8; flex: none; }
.rd-tb { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 1px solid #aab59c; border-radius: 3px; background: linear-gradient(#fff, #e9efe2); color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.rd-tb:hover:not(:disabled) { border-color: #5d8a3a; background: linear-gradient(#fff, #dcebcc); }
.rd-tb:disabled { opacity: .45; cursor: default; }
.rd-tb.rd-act { border-color: #3d7a1e; background: linear-gradient(#d9f0c2, #aed78a); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.rd-tb.rd-recon { border-color: #b72a1c; background: linear-gradient(#ffd9d2, #f39a8b); color: #7a1309; }
.rd-gps.rd-act { color: #0d4f9e; }
.rd-sp { flex: 1; }
.rd-layer, .rd-sort { height: 26px; font: inherit; border: 1px solid #aab59c; border-radius: 3px; background: #fff; color: inherit; }
.rd-body { flex: 1; display: flex; min-height: 0; position: relative; }
.rd-side { width: 300px; flex: none; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #c3cbb8; min-height: 0; }
.rd-side[hidden] { display: none; }
.rd-shead { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid #e1e6da; }
.rd-q { flex: 1; min-width: 0; height: 26px; padding: 0 6px; font: inherit; border: 1px solid #aab59c; border-radius: 3px; }
.rd-count { padding: 4px 8px; color: #6b7466; font-size: 11px; border-bottom: 1px solid #eef1ea; }
.rd-list { flex: 1; overflow: auto; }
.rd-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #eef1ea; cursor: pointer; }
.rd-item:hover { background: #f1f7ea; }
.rd-item.rd-on { background: #dcefc9; box-shadow: inset 3px 0 #3d7a1e; }
.rd-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rd-it b { font-weight: 600; }
.rd-it small { color: #5e6759; font-size: 11px; }
.rd-it .rd-nums { color: #2f5d16; }
.rd-badge { flex: none; width: 12px; height: 12px; margin-top: 2px; border-radius: 2px; border: 1px solid rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px #fff; background: #9a9a9a; }
.rd-del { flex: none; border: 0; background: none; color: #8a8f86; cursor: pointer; font-size: 13px; padding: 0 2px; }
.rd-del:hover { color: #b72a1c; }
.rd-empty { padding: 16px; color: #6b7466; text-align: center; }
.rd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-mapwrap { flex: 1; position: relative; min-height: 120px; }
.rd-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #dfe6d8; }
.rd-msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 1000; max-width: calc(100% - 100px); padding: 6px 12px; border-radius: 4px; background: rgba(255,255,255,.95); border: 1px solid #aab59c; box-shadow: 0 2px 8px rgba(0,0,0,.2); text-align: center; }
.rd-msg[hidden] { display: none; }
.rd-msg.rd-err { border-color: #c0392b; color: #8e1b10; }
.rd-info { flex: none; border-top: 1px solid #c3cbb8; background: #fff; display: flex; flex-direction: column; }
.rd-info[hidden] { display: none; }
.rd-ihead { display: flex; align-items: center; gap: 8px; padding: 6px 10px 2px; min-width: 0; }
.rd-iname { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ifrom { color: #6b7466; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.rd-x { flex: none; border: 0; background: none; cursor: pointer; color: #6b7466; font-size: 14px; }
.rd-x:hover { color: #b72a1c; }
.rd-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 4px 10px; }
.rd-stats div { display: flex; flex-direction: column; }
.rd-stats small { color: #6b7466; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.rd-stats b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.rd-stats i { font-style: normal; font-weight: 400; font-size: 11px; color: #6b7466; }
.rd-status { margin: 2px 10px 4px; padding: 3px 8px; border-radius: 3px; background: #f1f3ee; color: #4d5649; }
.rd-status.rd-ok { background: #e1f3d3; color: #275c0e; }
.rd-status.rd-off { background: #ffe7c7; color: #8a4a00; font-weight: 600; }
.rd-status.rd-far { background: #e3eefc; color: #164c8f; }
.rd-status a { color: inherit; font-weight: 600; }
.rd-prof { position: relative; height: 110px; margin: 0 4px 4px; cursor: crosshair; }
.rd-prof canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: block; touch-action: none; }
.rd-tip { position: absolute; top: 2px; padding: 1px 6px; border-radius: 3px; background: rgba(43,52,66,.9); color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; }
.rd-tip[hidden] { display: none; }
.rd-help p { margin: 0 0 8px; line-height: 1.4; }
.rd-help { max-height: 330px; overflow: auto; padding-right: 4px; }
/* Marqueurs sur la carte */
.rd-root .leaflet-container { font: inherit; font-size: 12px; }
.rd-chev { display: flex; align-items: center; justify-content: center; }
.rd-chev span { display: block; color: #fff; font-size: 9px; line-height: 1; text-shadow: 0 0 2px #8a1a07, 0 0 2px #8a1a07; }
.rd-flag span { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #2e9d3a; color: #fff; font-weight: 700; font-size: 11px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); box-sizing: border-box; }
.rd-me { position: relative; }
.rd-me .rd-dot { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: #1f6fd0; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.4); box-sizing: border-box; z-index: 1; }
.rd-me .rd-dot::after { content: ''; position: absolute; top: -9px; right: -9px; bottom: -9px; left: -9px; inset: -9px; border-radius: 50%; border: 2px solid rgba(31,111,208,.6); animation: rd-pulse 2s ease-out infinite; }
.rd-me .rd-cone { position: absolute; left: 0; top: 0; width: 40px; height: 40px; }
.rd-me .rd-cone::before { content: ''; position: absolute; left: 13px; top: -2px; border: 7px solid transparent; border-bottom: 16px solid rgba(31,111,208,.75); border-top: 0; }
@keyframes rd-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rd-me .rd-dot::after { animation: none; } }
/* Fenêtre étroite (téléphone) : la liste passe par-dessus la carte */
.rd-narrow .rd-side { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1100; width: 88%; width: min(320px, 88%); box-shadow: 4px 0 14px rgba(0,0,0,.25); }
.rd-narrow .rd-tb span { display: none; }
.rd-narrow .rd-tb { padding: 0 10px; height: 32px; font-size: 15px; }
.rd-narrow .rd-layer { height: 32px; max-width: 120px; }
.rd-narrow .rd-stats { gap: 2px 12px; }
.rd-narrow .rd-stats b { font-size: 14px; }
.rd-narrow .rd-prof { height: 80px; }
/* ==========================================================================
   Glanage (gl-) : carte Leaflet des points de glanage, recherche, ajout
   ========================================================================== */
.gl-client { padding: 0; overflow: hidden; }
.gl-root { --gl-ink: #3a3326; display: flex; flex-direction: column; height: 100%; background: #f7f3ea; color: var(--gl-ink); outline: none; font-size: 12px; }
.gl-tools { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: linear-gradient(#fffcf4, #efe5cf); border-bottom: 1px solid #cdbf9f; flex: none; }
.gl-tb { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 1px solid #bba979; border-radius: 3px; background: linear-gradient(#fff, #f2ead8); color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.gl-tb:hover { border-color: #a07a1c; background: linear-gradient(#fff, #f3e2b6); }
.gl-tb.gl-act { border-color: #8a6410; background: linear-gradient(#fbe7b0, #eac26a); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.gl-gps.gl-act { color: #0d4f9e; }
.gl-tnow { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; white-space: nowrap; cursor: pointer; }
.gl-sp { flex: 1; }
.gl-layer { height: 26px; font: inherit; border: 1px solid #bba979; border-radius: 3px; background: #fff; color: inherit; }
.gl-body { flex: 1; display: flex; min-height: 0; position: relative; }
.gl-side, .gl-form { width: 320px; flex: none; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #cdbf9f; min-height: 0; }
.gl-side[hidden], .gl-form[hidden] { display: none; }
.gl-search { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-bottom: 1px solid #ece4d2; background: #fffdf8; }
.gl-srow { display: flex; gap: 4px; align-items: center; }
.gl-q, .gl-place { flex: 1; min-width: 0; height: 28px; padding: 0 7px; font: inherit; border: 1px solid #bba979; border-radius: 3px; }
.gl-q { font-size: 13px; }
.gl-prod, .gl-sort { flex: 1; min-width: 0; height: 26px; font: inherit; border: 1px solid #bba979; border-radius: 3px; background: #fff; color: inherit; }
.gl-go { height: 28px; padding: 0 10px; border: 1px solid #2b6f1a; border-radius: 3px; background: linear-gradient(#6cc04a, #3d8f23); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.gl-go:hover { background: linear-gradient(#7fd05b, #46a02a); }
.gl-olab { color: #7a6d52; white-space: nowrap; }
.gl-me { height: 26px; width: 30px; border: 1px solid #bba979; border-radius: 3px; background: #fff; cursor: pointer; color: #1f6fd0; font-size: 14px; }
.gl-count { padding: 4px 8px; color: #7a6d52; font-size: 11px; border-bottom: 1px solid #f1ebdd; }
.gl-count a { color: #1f6fd0; }
.gl-list { flex: 1; overflow: auto; }
.gl-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #f1ebdd; cursor: pointer; }
.gl-item:hover { background: #fbf4e2; }
.gl-item.gl-on { background: #f6e6bb; box-shadow: inset 3px 0 #a07a1c; }
.gl-item.gl-past { opacity: .62; }
.gl-pic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; line-height: 1; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.gl-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gl-it b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-it small { color: #6f6551; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-it .gl-when { color: #2f6d16; }
.gl-past .gl-when { color: #777; }
.gl-soon .gl-when { color: #a35b00; }
.gl-it em { color: #1f6fd0; font-style: normal; }
.gl-dist { flex: none; font-weight: 600; color: #3a3326; white-space: nowrap; }
.gl-empty { padding: 16px; color: #7a6d52; text-align: center; line-height: 1.5; }
.gl-legend { display: flex; gap: 12px; padding: 5px 8px; border-top: 1px solid #ece4d2; color: #6f6551; font-size: 11px; }
.gl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.gl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gl-mapwrap { flex: 1; position: relative; min-height: 140px; }
.gl-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #e6e2d6; }
.gl-drawing .gl-map { cursor: crosshair; }
.gl-drawing .gl-map .leaflet-interactive { cursor: crosshair; }
.gl-msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 1000; max-width: calc(100% - 100px); padding: 6px 12px; border-radius: 4px; background: rgba(255,255,255,.96); border: 1px solid #bba979; box-shadow: 0 2px 8px rgba(0,0,0,.2); text-align: center; }
.gl-msg[hidden], .gl-drawbar[hidden], .gl-info[hidden] { display: none; }
.gl-msg.gl-err { border-color: #c0392b; color: #8e1b10; }
.gl-drawbar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; max-width: calc(100% - 20px); padding: 7px 10px; border-radius: 6px; background: rgba(255,252,244,.97); border: 1px solid #a07a1c; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
.gl-drawbar span { font-weight: 600; }
.gl-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid #bba979; border-radius: 3px; background: linear-gradient(#fff, #f2ead8); color: var(--gl-ink, #3a3326); font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gl-btn:hover:not(:disabled) { border-color: #a07a1c; background: linear-gradient(#fff, #f3e2b6); }
.gl-btn:disabled { opacity: .45; cursor: default; }
.gl-btn.gl-primary { border-color: #2b6f1a; background: linear-gradient(#6cc04a, #3d8f23); color: #fff; font-weight: 600; }
.gl-btn.gl-danger { border-color: #b72a1c; color: #9a1d10; }
.gl-link { border: 0; background: none; padding: 0; color: #1f6fd0; font: inherit; cursor: pointer; text-decoration: underline; }
/* Fiche du point choisi, sous la carte */
.gl-info { flex: none; max-height: 45%; display: flex; flex-direction: column; border-top: 1px solid #cdbf9f; background: #fff; }
.gl-ihead { display: flex; align-items: center; gap: 8px; padding: 7px 10px 3px; }
.gl-ititle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gl-ititle b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-ititle small { color: #6f6551; }
.gl-x { flex: none; border: 0; background: none; cursor: pointer; color: #7a6d52; font-size: 14px; }
.gl-x:hover { color: #b72a1c; }
.gl-ibody { overflow: auto; padding: 0 10px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 5px; }
.gl-chips span { padding: 1px 8px; border-radius: 10px; background: #f3ead2; border: 1px solid #e0d1a8; }
.gl-chips .gl-ex { background: #fde7e4; border-color: #f0b8af; color: #9a1d10; }
.gl-state { display: inline-block; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.gl-state.gl-now { background: #e1f3d3; color: #275c0e; }
.gl-state.gl-soon { background: #ffeccc; color: #8a4a00; }
.gl-state.gl-past { background: #eee; color: #666; }
.gl-desc { margin: 6px 0; line-height: 1.4; white-space: pre-line; }
.gl-ibody dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0; }
.gl-ibody dt { color: #7a6d52; }
.gl-ibody dd { margin: 0; white-space: pre-line; }
.gl-iact { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 10px 8px; border-top: 1px solid #f1ebdd; }
/* Formulaire */
.gl-form { width: 360px; }
.gl-f { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gl-fhead { display: flex; align-items: center; padding: 8px 10px; border-bottom: 1px solid #ece4d2; background: linear-gradient(#fffcf4, #f4ecd8); }
.gl-fhead b { flex: 1; font-size: 13px; }
.gl-fbody { flex: 1; overflow: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 9px; }
.gl-geo { padding: 5px 8px; border-radius: 3px; background: #f3ead2; }
.gl-l { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; border: 0; font-weight: 600; min-width: 0; }
.gl-l legend { padding: 0; margin-bottom: 3px; }
.gl-l i { color: #b72a1c; font-style: normal; }
.gl-l input:not([type=checkbox]):not([type=radio]), .gl-l textarea, .gl-l select { font: inherit; font-weight: 400; padding: 4px 6px; border: 1px solid #bba979; border-radius: 3px; background: #fff; color: inherit; min-width: 0; }
.gl-l textarea { resize: vertical; }
.gl-pchips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; font-weight: 400; }
.gl-pc { cursor: pointer; }
.gl-pc input { position: absolute; opacity: 0; pointer-events: none; }
.gl-pc span { display: inline-block; padding: 2px 8px; border-radius: 12px; border: 1px solid #d6c79f; background: #fffaf0; }
.gl-pc input:checked + span { background: #4f9e2e; border-color: #2b6f1a; color: #fff; }
.gl-pc input:focus-visible + span { outline: 2px solid #1f6fd0; }
.gl-r { display: flex; align-items: center; gap: 5px; font-weight: 400; cursor: pointer; }
.gl-per { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 3px 0 0 20px; font-weight: 400; }
.gl-per.gl-off { opacity: .45; pointer-events: none; }
.gl-per label { display: flex; align-items: center; gap: 4px; }
.gl-per input[type=date] { font: inherit; padding: 2px 4px; border: 1px solid #bba979; border-radius: 3px; }
.gl-quick { color: #7a6d52; }
.gl-note { margin: 0; color: #7a6d52; font-size: 11px; line-height: 1.4; }
.gl-ferr { padding: 5px 8px; border-radius: 3px; background: #fde7e4; color: #8e1b10; font-weight: 600; }
.gl-ferr[hidden] { display: none; }
.gl-ffoot { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #ece4d2; }
.gl-help p { margin: 0 0 8px; line-height: 1.4; }
.gl-help { max-height: 340px; overflow: auto; padding-right: 4px; }
/* Marqueurs */
.gl-root .leaflet-container { font: inherit; font-size: 12px; }
.gl-pin span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); box-sizing: border-box; font-size: 13px; line-height: 1; }
.gl-pin.gl-past span { opacity: .75; }
.gl-pin.gl-big span { width: 36px; height: 36px; font-size: 17px; border-width: 3px; box-shadow: 0 0 0 2px #d0402a, 0 2px 8px rgba(0,0,0,.5); }
.gl-pin.gl-mine span { border-color: #bfe0ff; }
.gl-pin b { display: block; transform: rotate(45deg); font-weight: 400; }
.gl-me-dot span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #1f6fd0; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.4); box-sizing: border-box; }
.gl-origin span { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: #1f6fd0; color: #fff; font-size: 11px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); box-sizing: border-box; }
/* Fenêtre étroite (téléphone) : la liste et le formulaire passent par-dessus la carte */
.gl-narrow .gl-side, .gl-narrow .gl-form { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1100; width: 92%; width: min(360px, 92%); box-shadow: 4px 0 14px rgba(0,0,0,.25); }
.gl-narrow .gl-form { width: 100%; }
.gl-narrow .gl-tb span, .gl-narrow .gl-tnow span { display: none; }
.gl-narrow .gl-tnow::after { content: 'Dispo'; }
.gl-narrow .gl-tb { padding: 0 10px; height: 32px; font-size: 15px; }
.gl-narrow .gl-layer { height: 32px; max-width: 110px; }
.gl-narrow .gl-info { max-height: 52%; }
.gl-narrow .gl-drawbar { bottom: 18px; left: 8px; right: 8px; transform: none; max-width: none; }
.rd-filters { padding-top: 0; border-bottom: 1px solid #e1e6da; }
.rd-filters select { flex: 1; min-width: 0; height: 26px; font: inherit; border: 1px solid #aab59c; border-radius: 3px; background: #fff; color: inherit; }
.rd-shead:has(+ .rd-filters) { border-bottom: 0; }
.rd-it .rd-kind { display: flex; align-items: center; gap: 4px; color: #6b7466; }
.rd-kind i { flex: none; width: 10px; height: 3px; border-radius: 2px; }
.rd-live { position: absolute; top: 10px; right: 10px; z-index: 1000; width: 300px; max-width: calc(100% - 64px); padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.97); border: 1px solid #c3cbb8; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.rd-live[hidden] { display: none; }
.rd-live p { margin: 4px 0; line-height: 1.35; }
.rd-lhead { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rd-ldot { width: 10px; height: 10px; border-radius: 50%; background: #e8710a; box-shadow: 0 0 0 3px rgba(232,113,10,.25); }
.rd-ldot.rd-lend { background: #8a8f86; box-shadow: none; }
.rd-lname { margin-top: 2px; font-weight: 600; color: #2f5d16; }
.rd-lstats { padding: 4px 0; gap: 4px 14px; }
.rd-lstate { padding: 3px 6px; border-radius: 3px; background: #e1f3d3; color: #275c0e; }
.rd-lstate.rd-lwarn { background: #ffe7c7; color: #8a4a00; }
.rd-lnote { color: #6b7466; font-size: 11px; }
.rd-lcenter { margin-top: 2px; }
.rd-hiker span { display: block; width: 18px; height: 18px; margin: 4px; border-radius: 50%; background: #e8710a; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.45); }
.rd-linkbox { width: 100%; height: 26px; padding: 0 6px; font: inherit; border: 1px solid #aab59c; border-radius: 3px; box-sizing: border-box; }
.rd-narrow .rd-live { left: 50px; right: 8px; width: auto; max-width: none; top: 8px; }
.rd-narrow .rd-lnote { display: none; }
.rd-flag.rd-end span { background: #c0392b; }
.rd-ilink { flex: none; font-size: 12px; color: #1a5fb4; white-space: nowrap; }
.rd-ilink[hidden] { display: none; }
.rd-base { flex: none; padding: 4px 8px; color: #6b7466; font-size: 11px; border-top: 1px solid #e1e6da; background: #f7f9f4; }

/* ==========================================================================
   Suivi de poids (poids.js, préfixe pd-)
   ========================================================================== */
.pd-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: #222; }
.pd-root:focus { outline: none; }
.pd-tabs { flex: none; display: flex; gap: 2px; padding: 6px 8px 0; background: linear-gradient(#f6f9fc, #e7eef7); border-bottom: 1px solid #a9bcd3; }
.pd-tabs button { position: relative; top: 1px; padding: 4px 16px; border: 1px solid #a9bcd3; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#f3f6fa, #dde6f0); font: inherit; color: #1e395b; cursor: pointer; }
.pd-tabs button:hover { background: linear-gradient(#fafdff, #e3effb); }
.pd-tabs button.on { background: #fff; padding-top: 6px; margin-top: -2px; border-bottom: 1px solid #fff; color: #1e3287; }
.pd-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pd-pane[hidden] { display: none; }
.pd-add { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; border-bottom: 1px solid #c5d2e3; background: #f7f9fc; }
.pd-addl { display: flex; flex-direction: column; min-width: 0; }
.pd-addl b { font-weight: normal; font-size: 15px; color: #1e3287; }
.pd-addl small { color: #5b6878; }
.pd-addf { display: flex; align-items: center; gap: 6px; }
.pd-in.txt7 { width: 86px; height: 26px; box-sizing: border-box; font-size: 15px; text-align: right; padding: 0 6px; }
.pd-unit { color: #444; margin-right: 4px; }
.pd-err { flex: 1 1 100%; color: #b00; font-size: 12px; }
.pd-err:empty { display: none; }
.pd-lh { flex: none; display: flex; align-items: center; gap: 6px; color: #1e395b; padding: 8px 14px 6px; border-bottom: 1px solid #dde3ea; }
.pd-lh small { color: #6a7686; }
.pd-list { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; }
.pd-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 74px 80px; align-items: center; gap: 8px; width: 100%; max-width: 640px; padding: 5px 8px; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; color: #222; text-align: left; cursor: pointer; }
.pd-row:hover, .pd-row:focus-visible { border-color: #b8d6fb; background: linear-gradient(#fafdff, #e8f3fe); outline: none; }
.pd-rd { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-rk { font-weight: bold; color: #1e3287; white-space: nowrap; text-align: right; }
.pd-ri { color: #8a5cc2; font-size: 12px; white-space: nowrap; text-align: right; }
.pd-rx { text-align: right; color: #6a7686; font-size: 12px; white-space: nowrap; }
.pd-rx.pd-up { color: #b4521a; }
.pd-rx.pd-down { color: #2e7d32; }
.pd-none { padding: 24px 12px; text-align: center; color: #777; line-height: 1.5; }
.pd-pstats { overflow: auto; padding: 8px 12px 6px; gap: 8px; }
.pd-prof { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #333; }
.pd-prof b { font-weight: normal; color: #1e395b; }
.pd-prof .btn7 { min-width: 0; padding: 0 12px; }
.pd-cards { flex: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.pd-card { border: 1px solid #d3dce7; border-radius: 3px; background: linear-gradient(#fbfcfe, #f0f4f9); padding: 5px 8px; min-width: 0; }
.pd-card small { display: block; color: #6a7686; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-card b { display: block; font-size: 16px; font-weight: normal; color: #1e3287; white-space: nowrap; }
.pd-card span { display: block; color: #555; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-card.pd-wide, .pd-card.pd-wide2 { grid-column: span 2; }
.pd-card.pd-z-maigre { border-left: 4px solid #428cd6; }
.pd-card.pd-z-normal { border-left: 4px solid #40a048; }
.pd-card.pd-z-surpoids { border-left: 4px solid #e8961e; }
.pd-card.pd-z-obese { border-left: 4px solid #d23c2d; }
.pd-gh { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #1e395b; }
.pd-gimc { color: #8a5cc2; }
.pd-gimc[hidden] { display: none; }
.pd-chart { position: relative; flex: 1 0 220px; border: 1px solid #dde3ea; background: #fff; overflow: hidden; }
.pd-chart canvas { position: absolute; left: 0; top: 0; display: block; touch-action: manipulation; }
.pd-tip { position: absolute; z-index: 2; pointer-events: none; padding: 4px 8px; background: #fffff0; border: 1px solid #767676; box-shadow: 1px 2px 4px rgba(0,0,0,.25); font-size: 12px; white-space: nowrap; line-height: 1.35; }
.pd-tip b { color: #1e3287; }
.pd-tip small { color: #666; }
.pd-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #777; }
.pd-empty[hidden], .pd-tip[hidden] { display: none; }
.pd-legend { flex: none; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; color: #444; }
.pd-legend:empty { display: none; }
.pd-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.pd-legend .pd-lsrc { color: #888; }
.pd-avis { flex: none; margin: 0; color: #6a7686; font-size: 11px; font-style: italic; }
.pd-root .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-root .statusbar .pd-bad { color: #b00; }
.pd-dlg { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.pd-form { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-content: start; }
.pd-form label { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: #1e395b; }
.pd-form .txt7 { width: 100%; box-sizing: border-box; height: 24px; }
.pd-sexe { margin: 0; padding: 4px 10px 6px; border: 1px solid #c5d2e3; border-radius: 3px; display: flex; gap: 16px; }
.pd-sexe legend { color: #1e395b; padding: 0 4px; }
.pd-sexe label { flex-direction: row; align-items: center; gap: 5px; color: #222; }
.pd-note { grid-column: 1 / -1; margin: 0; color: #6a7686; font-size: 11px; }
.pd-dlg .dialog-foot { align-items: center; }
.pd-dlg .pd-err { flex: 1; display: block; }
/* Fenêtre étroite (téléphone) */
.pd-narrow .pd-add { padding: 8px 10px; }
.pd-narrow .pd-addf { flex: 1; }
.pd-narrow .pd-in.txt7 { flex: 1; height: 34px; font-size: 17px; }
.pd-narrow .pd-save { height: 34px; }
.pd-narrow .pd-list { padding: 4px; }
.pd-narrow .pd-row { padding: 9px 6px; grid-template-columns: minmax(0, 1fr) auto 62px; gap: 6px; }
.pd-narrow .pd-ri { display: none; }
.pd-narrow .pd-tabs button { flex: 1; padding: 7px 8px; }
.pd-narrow .pd-tabs button.on { padding-top: 9px; }
.pd-narrow .pd-pstats { padding: 8px; }
.pd-narrow .pd-cards { grid-template-columns: 1fr 1fr; }
.pd-narrow .pd-chart { flex: none; height: 260px; }
.pd-narrow .statusbar .pd-sum { display: none; }
@media (max-width: 700px) {
  .pd-form { grid-template-columns: 1fr; }
  .pd-form .txt7 { height: 32px; font-size: 16px; }
}

/* ==========================================================================
   Transcription (transcription.js, préfixe tr-)
   ========================================================================== */
.tr-root { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: #222; }
.tr-root:focus { outline: none; }
.tr-tool { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 10px; background: linear-gradient(#f6f9fc, #e7eef7); border-bottom: 1px solid #a9bcd3; }
.tr-tool .btn7 { min-width: 0; padding: 0 12px; }
.tr-tool label { display: inline-flex; align-items: center; gap: 6px; color: #1e395b; white-space: nowrap; }
.tr-sens input { width: 120px; }
.tr-pv { min-width: 34px; color: #1e3287; font-variant-numeric: tabular-nums; }
.tr-file { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border-bottom: 1px solid #dde3ea; background: #f7f9fc; }
.tr-fname { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.tr-fname b { font-weight: normal; font-size: 15px; color: #1e3287; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-fname small { color: #5b6878; }
.tr-audio { flex: 1 1 300px; max-width: 460px; height: 36px; min-width: 0; }
.tr-root:not(.tr-has) .tr-audio { display: none; }
.tr-acts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 12px; border-bottom: 1px solid #dde3ea; }
.tr-acts .btn7 { min-width: 0; padding: 0 12px; }
.tr-prog { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-prog[hidden] { display: none; }
.tr-bar { position: relative; display: block; height: 16px; border: 1px solid #8fa3ba; border-radius: 2px; background: linear-gradient(#f0f0f0, #dcdcdc); overflow: hidden; }
.tr-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#a9e6a0, #3fb431 60%, #6fd25e); transition: width .2s; }
.tr-bar b { position: relative; display: block; text-align: center; font-weight: normal; font-size: 11px; line-height: 16px; color: #1b2a1a; white-space: nowrap; }
.tr-ptxt { color: #5b6878; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-main { position: relative; flex: 1; min-height: 0; display: flex; }
.tr-text { flex: 1; min-width: 0; overflow: auto; padding: 14px 18px 40px; font: 16px/1.65 Georgia, 'Times New Roman', serif; color: #1b1b1b; cursor: text; overflow-wrap: break-word; }
.tr-text[hidden], .tr-edit[hidden] { display: none; }
.tr-u.tr-hid { display: none; }
.tr-w { border-radius: 3px; cursor: pointer; transition: background-color .15s; }
.tr-w:hover { background: #e8f1fc; }
.tr-u:last-child .tr-w { animation: tr-in .35s ease-out; }
.tr-cur .tr-w { background: #ffe680; box-shadow: 0 0 0 2px #ffe680; }
@keyframes tr-in { from { opacity: 0; } to { opacity: 1; } }
.tr-empty { color: #888; font: 13px/1.5 inherit; font-family: 'Segoe UI', Tahoma, sans-serif; padding: 20px 0; text-align: center; }
.tr-edit { flex: 1; min-width: 0; margin: 0; border: 0; resize: none; padding: 14px 18px; font: 15px/1.6 Consolas, Menlo, monospace; color: #1b1b1b; background: #fffef6; outline: none; }
.tr-drop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; }
.tr-drop[hidden] { display: none; }
.tr-dropin { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; padding: 26px 22px; border: 2px dashed #a9bcd3; border-radius: 8px; text-align: center; color: #44546a; }
.tr-dropico { width: 56px; height: 56px; }
.tr-dropico svg { width: 100%; height: 100%; }
.tr-dropin b { font-weight: normal; font-size: 16px; color: #1e3287; }
.tr-dropin small { color: #6a7686; }
.tr-dragging .tr-drop { display: flex; background: rgba(232, 243, 254, .92); z-index: 2; }
.tr-dragging .tr-dropin { border-color: #3d7bad; }
.tr-wait { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 6px 14px; border: 1px solid #e3c35a; border-radius: 14px; background: #fff7d6; color: #6b5200; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-wait[hidden] { display: none; }
.tr-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 12px; border-top: 1px solid #c5d2e3; background: #f0f4f9; }
.tr-foot .btn7 { min-width: 0; padding: 0 12px; }
.tr-foot .btn7.on { background: linear-gradient(#e5f2fd, #c4e1fa); border-color: #3c7fb1; }
.tr-sp { flex: 1; }
.tr-root .statusbar .err { color: #b00; }
.tr-dev { color: #5b6878; }
.tr-pickdlg { display: flex; flex-direction: column; height: 100%; }
.tr-pickl { flex: 1; min-height: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.tr-pick { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; color: #222; text-align: left; cursor: pointer; }
.tr-pick:hover, .tr-pick:focus-visible { border-color: #b8d6fb; background: linear-gradient(#fafdff, #e8f3fe); outline: none; }
.tr-pick b { font-weight: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-pick small { color: #6a7686; }
.mg-a.mg-tr { margin-right: 2px; }
@media (max-width: 700px) {
  .tr-tool { padding: 6px 8px; gap: 6px 8px; }
  .tr-mod select { max-width: 150px; }
  .tr-sens { flex: 1 1 100%; }
  .tr-sens input { flex: 1; width: auto; min-width: 0; }
  .tr-file { padding: 6px 8px; }
  .tr-audio { flex: 1 1 100%; max-width: none; }
  .tr-acts { padding: 6px 8px; }
  .tr-acts .btn7, .tr-foot .btn7 { padding: 0 9px; }
  .tr-prog { flex-basis: 100%; }
  .tr-text { padding: 10px 12px 40px; font-size: 15px; }
  .tr-edit { padding: 10px 12px; font-size: 14px; }
  .tr-foot { padding: 6px 8px; }
}

/* Transcription – chargement du modèle à l'ouverture (transcription.js, préfixe tr-) */
.tr-mload { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; padding: 6px 12px; background: #fbfcf0; border-bottom: 1px solid #e3e6c8; }
.tr-mload[hidden] { display: none; }
.tr-mload .tr-bar { flex: 0 1 280px; min-width: 150px; }
.tr-mload small { flex: 1 1 240px; min-width: 0; color: #5b6878; font-size: 11px; }
.tr-mload.err { background: #fff0ee; border-bottom-color: #e7b9b2; }
.tr-mload.err .tr-bar i { background: linear-gradient(#f3a597, #d3442f); }
.tr-mload.err small { color: #a3241a; }
.tr-retry { min-width: 0; padding: 0 12px; }
.tr-retry[hidden] { display: none; }
.tr-busy .tr-drop .tr-dropin { opacity: .6; }
@media (max-width: 700px) { .tr-mload { padding: 5px 8px; } }

/* Analyse de cible : fiabilité des impacts, zones de destruction */
.tir-row .tir-fi { font-style: normal; color: #8a8a8a; font-size: 10px; margin-left: 4px; white-space: nowrap; }
.tir-zone h3 span { color: #b35c00; }
.tir-zone .tir-row .l { color: #333; font-size: 12px; }
.tir-zone .tir-row input { width: 56px; margin-left: 6px; font-size: 12px; }
.tir-note label { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #1e3287; cursor: pointer; }

/* ==========================================================================
   Calcul de trajectoire (traj.js, préfixe tj-) : carte, réglages, résultats
   ========================================================================== */
.tj-client { padding: 0; overflow: hidden; }
.tj-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: #222; outline: none; font-size: 12px; }
.tj-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 8px; background: linear-gradient(#f6f9fc, #e7eef7); border-bottom: 1px solid #a9bcd3; }
.tj-tools .btn7 { min-width: 0; padding: 0 10px; white-space: nowrap; }
.tj-root label.tj-pas { flex-direction: row; align-items: center; }
.tj-pas { display: inline-flex; align-items: center; gap: 6px; color: #1e395b; white-space: nowrap; min-width: 0; }
.tj-plist { max-width: 240px; min-width: 120px; }
.tj-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: #b7c7da; }
.tj-sp { flex: 1; }
.tj-seg { display: inline-flex; border: 1px solid #8ea6c2; border-radius: 3px; overflow: hidden; }
.tj-seg button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; background: linear-gradient(#fff, #e9eff6); font: inherit; color: #1e395b; cursor: pointer; white-space: nowrap; }
.tj-seg button + button { border-left: 1px solid #8ea6c2; }
.tj-seg button.on { background: linear-gradient(#cfe5fb, #a9cdf2); box-shadow: inset 0 1px 2px rgba(0,0,0,.18); font-weight: 600; }
.tj-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); vertical-align: -1px; }
.tj-dtir { background: #1f6fd0; }
.tj-dcib { background: #e0322a; }
.tj-body { flex: 1; min-height: 0; display: flex; }
.tj-mapwrap { position: relative; flex: 1; min-width: 0; background: #d9dee4; }
.tj-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; }
.tj-msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 500; max-width: calc(100% - 30px); padding: 6px 14px; border: 1px solid #a9bcd3; border-radius: 14px; background: rgba(255,255,255,.95); color: #1e395b; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.tj-msg[hidden] { display: none; }
.tj-msg.tj-err { border-color: #e7b9b2; background: #fff0ee; color: #a3241a; }
.tj-side { width: 430px; flex: none; overflow: auto; border-left: 1px solid #a9bcd3; background: #f7f9fc; -webkit-overflow-scrolling: touch; }
.tj-res { padding: 8px 10px; background: #fff; border-bottom: 1px solid #c9d6e6; }
.tj-empty { padding: 10px 4px; color: #44546a; text-align: center; line-height: 1.5; }
.tj-bad { color: #b00 !important; }
.tj-corr { padding: 8px 10px; border: 1px solid #8fb3db; border-radius: 4px; background: linear-gradient(#f3f8fe, #dfeefc); }
.tj-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #1e3287; font-size: 13px; margin-bottom: 4px; }
.tj-ch small { color: #5b6878; font-size: 11px; text-align: right; }
.tj-cv { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.6; color: #10233d; }
.tj-cv b { color: #c0281e; }
.tj-cv small { color: #44546a; font-size: 12px; }
.tj-arrow { flex: none; width: 20px; text-align: center; color: #1f6fd0; }
.tj-kv { width: 100%; margin-top: 8px; border-collapse: collapse; }
.tj-kv th, .tj-kv td { padding: 3px 4px; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.tj-kv th { font-weight: normal; color: #44546a; white-space: nowrap; }
.tj-kv td { color: #111; }
.tj-kv td small { color: #5b6878; }
.tj-kv tr.tj-h th, .tj-kv tr.tj-h td { padding-top: 8px; color: #1e3287; font-weight: 600; border-bottom-color: #c9d6e6; }
.tj-note { margin: 6px 0 0; color: #5b6878; font-size: 11px; line-height: 1.45; }
.tj-sec { border-bottom: 1px solid #dde3ea; }
.tj-sec > summary { padding: 7px 10px; cursor: pointer; color: #1e3287; font-size: 13px; background: linear-gradient(#fbfcfe, #eef3f9); user-select: none; }
.tj-sec > summary:hover { background: linear-gradient(#f3f8fe, #e2eefb); }
.tj-sec[open] > summary { border-bottom: 1px solid #e3e9f0; }
.tj-sec > :not(summary) { margin-left: 10px; margin-right: 10px; }
.tj-sec > :last-child { margin-bottom: 10px; }
.tj-geo { margin-top: 8px; color: #1e395b; line-height: 1.5; }
.tj-mode { color: #6a7686; }
.tj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 8px; }
.tj-root label { display: flex; flex-direction: column; gap: 2px; color: #33475f; min-width: 0; }
.tj-root label.tj-chk { flex-direction: row; align-items: center; gap: 5px; margin-top: 6px; cursor: pointer; flex-wrap: wrap; }
.tj-root label.tj-wide { margin-top: 8px; }
.tj-f { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tj-f input { flex: 1; min-width: 0; width: 60px; }
.tj-f i { font-style: normal; color: #5b6878; white-space: nowrap; }
.tj-f select { flex: none; }
.tj-root input.txt7[readonly] { background: #f3f5f8; color: #44546a; }
.tj-root input.tj-err { border-color: #d3442f !important; background: #fff3f1; }
.tj-hint, .tj-as { color: #6a7686; font-size: 10.5px; }
.tj-pts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tj-pts fieldset { min-width: 0; margin: 0; padding: 4px 8px 8px; border: 1px solid #d5dfe9; border-radius: 3px; display: flex; flex-direction: column; gap: 4px; }
.tj-pts legend { padding: 0 4px; color: #1e3287; }
.tj-air { color: #5b6878; font-size: 11px; line-height: 1.45; margin-top: 8px; }
.tj-table { overflow-x: auto; margin-top: 8px; }
.tj-tab { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.tj-tab th, .tj-tab td { padding: 3px 5px; border-bottom: 1px solid #e6ebf1; text-align: right; white-space: nowrap; }
.tj-tab th { color: #1e3287; font-weight: normal; background: #eef3f9; position: sticky; top: 0; }
.tj-tab tr.tj-tg td { background: #fff4c4; font-weight: 600; }
.tj-root .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-root .statusbar .tj-bad { color: #b00; }
/* Marqueurs de la carte */
.tj-mk { background: none; border: 0; }
.tj-mk span { display: block; width: 26px; height: 26px; border-radius: 50%; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: grab; }
.tj-mk-tir span { background: #1f6fd0; border: 3px solid #fff; color: #fff; font: bold 12px/20px Tahoma, sans-serif; text-align: center; }
.tj-mk-cible span { background: radial-gradient(circle, #e0322a 0 3px, #fff 3.5px 6px, #e0322a 6.5px 9px, #fff 9.5px 13px); border: 1px solid #7a1410; }
.leaflet-tooltip.tj-ltip { padding: 1px 6px; border: 0; border-radius: 9px; background: rgba(20,28,40,.78); color: #fff; font: 600 11px Tahoma, sans-serif; box-shadow: none; }
.leaflet-tooltip.tj-ltip::before { display: none; }
/* Dialogue « Mes pas de tir » */
.tj-dlg { display: flex; flex-direction: column; height: 100%; }
.tj-mlist { flex: 1; min-height: 0; overflow: auto; padding: 6px; }
.tj-mrow { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; }
.tj-mrow:hover { border-color: #d5e6fb; background: #f5faff; }
.tj-mrow.on { border-color: #b8d6fb; background: linear-gradient(#fafdff, #e8f3fe); }
.tj-mrow .btn7 { min-width: 0; padding: 0 8px; }
.tj-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tj-mt b { font-weight: normal; font-size: 13px; color: #1e3287; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-mt small { color: #6a7686; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-help p { margin: 0 0 8px; line-height: 1.45; }
.tj-warn { color: #a3241a; }
/* Fenêtre étroite (téléphone) : carte en haut, réglages dessous */
.tj-narrow .tj-body { flex-direction: column; }
.tj-narrow .tj-mapwrap { flex: none; height: 42%; min-height: 220px; }
.tj-narrow .tj-side { width: auto; flex: 1; min-height: 0; border-left: 0; border-top: 1px solid #a9bcd3; }
.tj-narrow .tj-tools .btn7 span, .tj-narrow .tj-pas > span { display: none; }
.tj-narrow .tj-plist { max-width: 150px; min-width: 0; }
.tj-narrow .statusbar .tj-sum { display: none; }
@media (max-width: 700px) {
  .tj-root input.txt7, .tj-root select.sel7 { height: 32px; font-size: 16px; }
  .tj-seg button { height: 30px; }
  .tj-tools .btn7 { height: 32px; }
  .tj-mrow { flex-wrap: wrap; }
  .tj-mt { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .tj-grid, .tj-pts { grid-template-columns: 1fr; }
}

.tj-find { display: flex; gap: 3px; align-items: center; }
.tj-find .tj-q { width: 150px; min-width: 0; }
.tj-find .btn7 { padding: 0 7px; }
.tj-found { position: absolute; top: 8px; left: 50px; z-index: 1000; margin: 0; padding: 3px; list-style: none; background: #fff; border: 1px solid #7f9db9; box-shadow: 0 3px 10px rgba(0,0,0,.3); max-width: calc(100% - 60px); }
.tj-found button { display: block; width: 100%; padding: 5px 8px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.tj-found button:hover, .tj-found button:focus { background: #dbe8f8; }
.tj-found small { display: block; color: #666; font-size: 11px; }
@media (max-width: 600px) { .tj-find { flex: 1 1 100%; } .tj-find .tj-q { flex: 1; width: auto; } }

/* Calcul de trajectoire : clubs et stands de tir */
.tj-root label.tj-clubchk { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; color: #1e395b; }
.tj-clubchk input { margin: 0; }
.tj-narrow .tj-clubchk span { font-size: 0; }
.tj-narrow .tj-clubchk span::before { content: 'Clubs'; font-size: 12px; }
.tj-cpop .leaflet-popup-content { margin: 10px 12px; font: 12px/1.45 'Segoe UI', Tahoma, sans-serif; color: #1e2a3a; }
.tj-club .tj-cn { display: block; font-size: 13px; color: #1e395b; padding-right: 10px; }
.tj-club small { display: block; color: #666; }
.tj-club > div { margin-top: 2px; }
.tj-club .tj-ct::before, .tj-cdot { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; background: #8e44ad; box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0,0,0,.25); }
.tj-club .tj-ct-p::before, .tj-cdot.tj-ct-p { background: #f08c00; }
.tj-club .tj-ct-cp::before, .tj-cdot.tj-ct-cp { background: #8e44ad; box-shadow: 0 0 0 2px #f08c00; }
.tj-club .tj-cd { color: #444; font-size: 11px; }
.tj-cdist { margin: 1px 1px 0 0; padding: 0 6px; border: 1px solid #a9bcd3; border-radius: 9px; background: #f2f6fb; font: inherit; font-size: 11px; color: #1e395b; cursor: pointer; }
.tj-cdist:hover, .tj-cdist:focus { background: #dbe8f8; }
.tj-club .tj-cbtn { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tj-club .tj-cbtn .btn7 { min-width: 0; padding: 0 8px; white-space: nowrap; }
.tj-club .tj-csrc { margin-top: 5px; color: #888; font-size: 10px; }
.tj-found .tj-fclub button { font-weight: 600; }
.tj-found .tj-fclub small { font-weight: normal; }
.tj-found .tj-fclub + li:not(.tj-fclub) { border-top: 1px solid #d6e0ec; }
@media (max-width: 700px) { .tj-club .tj-cbtn .btn7 { height: 32px; } .tj-cdist { padding: 3px 9px; font-size: 12px; } }

/* Calcul de trajectoire : recherche des stands, pas de tir associés, mesure */
.tj-sbar { position: relative; z-index: 1100; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 8px; background: #eef3f9; border-bottom: 1px solid #a9bcd3; }
.tj-sfind { position: relative; flex: 0 1 380px; min-width: 200px; display: flex; align-items: center; }
.tj-sico { position: absolute; left: 7px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: 2px solid #5b6878; border-radius: 50%; pointer-events: none; }
.tj-sico::after { content: ''; position: absolute; left: 9px; top: 9px; width: 2px; height: 6px; background: #5b6878; transform: rotate(-45deg); }
.tj-sfind .tj-sq { flex: 1; min-width: 0; width: 100%; padding-left: 24px; }
.tj-sl { position: absolute; left: 0; top: calc(100% + 2px); z-index: 1100; width: 100%; width: max(100%, 340px); max-width: calc(100vw - 24px); max-height: 330px; overflow: auto; margin: 0; padding: 3px; list-style: none; background: #fff; border: 1px solid #7f9db9; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.tj-sl[hidden] { display: none; }
.tj-so { display: flex; align-items: center; gap: 6px; padding: 5px 8px; cursor: pointer; border-radius: 2px; }
.tj-so:hover, .tj-so.on { background: #dbe8f8; }
.tj-so .tj-cdot { flex: none; margin-right: 0; }
.tj-sot { flex: 1; min-width: 0; }
.tj-sot b { font-weight: 600; color: #1e395b; }
.tj-sot em { font-style: normal; color: #666; }
.tj-sot small { display: block; color: #666; font-size: 11px; }
.tj-snone { padding: 6px 8px; color: #666; }
.tj-sbadge, .tj-cbadge span { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #1f6fd0; color: #fff; font: bold 10px/16px Tahoma, sans-serif; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.tj-cbadge { background: none; border: 0; }
.tj-spas { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; }
.tj-spas[hidden] { display: none; }
.tj-spn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 2px; padding: 0 2px; border: 0; background: none; font: inherit; font-weight: 600; color: #1e395b; cursor: pointer; }
.tj-spn::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #8e44ad; box-shadow: 0 0 0 2px #1f6fd0; vertical-align: 0; }
.tj-spn:hover { text-decoration: underline; }
.tj-spb, .tj-cpas { padding: 1px 8px; border: 1px solid #a9bcd3; border-radius: 10px; background: #fff; font: inherit; font-size: 11px; color: #1e395b; cursor: pointer; white-space: nowrap; }
.tj-spb:hover, .tj-cpas:hover, .tj-spb:focus, .tj-cpas:focus { background: #dbe8f8; }
.tj-spb.on, .tj-cpas.on { background: #1f6fd0; border-color: #1f6fd0; color: #fff; }
.tj-club .tj-cpl { margin-top: 5px; padding-top: 4px; border-top: 1px solid #e3e9f0; }
.tj-club .tj-cpl > span { color: #1e3287; margin-right: 2px; }
.tj-club .tj-cnone { color: #888; font-size: 11px; }
.tj-hl { background: none; border: 0; pointer-events: none; }
.tj-hl span { display: block; width: 46px; height: 46px; box-sizing: border-box; border-radius: 50%; border: 3px solid #ffd23a; box-shadow: 0 0 0 2px rgba(0,0,0,.35), inset 0 0 0 2px rgba(0,0,0,.25); animation: tj-pulse 1.2s ease-out infinite; }
@keyframes tj-pulse { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.15); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tj-hl span { animation: none; } }
/* Fenêtre d'enregistrement */
.tj-sdlg { display: flex; flex-direction: column; height: 100%; }
.tj-sdlg .dialog-body { flex: 1; flex-direction: column; align-items: stretch; gap: 6px; }
.tj-sdl { display: flex; flex-direction: column; gap: 4px; }
.tj-sdl .txt7, .tj-sdl .sel7 { width: 100%; box-sizing: border-box; }
.tj-sdc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #44546a; }
.tj-sdh { color: #6a7686; font-size: 11px; }
/* Mesure */
.tj-seg .tj-ruler { display: inline-block; width: 14px; height: 7px; border: 1.5px solid #1e395b; border-radius: 1px; background: repeating-linear-gradient(90deg, transparent 0 2px, #1e395b 2px 3px) bottom / 100% 3px no-repeat #ffe58a; }
.tj-measuring .tj-map { cursor: crosshair; }
.tj-meas { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); box-sizing: border-box; padding: 5px 6px 5px 12px; border: 1px solid #7f9db9; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(0,0,0,.3); color: #1e395b; }
.tj-meas[hidden] { display: none; }
.tj-meas .tj-mtx { min-width: 0; }
.tj-meas .btn7 { min-width: 0; padding: 0 9px; white-space: nowrap; }
.tj-mx { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: #555; font-size: 13px; cursor: pointer; }
.tj-mx:hover { background: #e3e9f0; }
.tj-mpt { background: none; border: 0; }
.tj-mpt span { display: block; width: 12px; height: 12px; margin: 6px; box-sizing: border-box; border-radius: 50%; background: #00d0ff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); cursor: move; }
.leaflet-tooltip.tj-mtip { padding: 1px 6px; border: 0; border-radius: 9px; background: rgba(0,60,80,.82); color: #fff; font: 600 11px Tahoma, sans-serif; box-shadow: none; }
.leaflet-tooltip.tj-mtip::before { display: none; }
.tj-mgrp { margin: 6px 4px 2px; padding-bottom: 2px; border-bottom: 1px solid #d5dfe9; color: #1e3287; font-weight: 600; }
.tj-mgrp:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .tj-sfind { flex: 1 1 100%; }
  .tj-sfind .tj-sq { height: 32px; font-size: 16px; }
  .tj-so { padding: 8px; }
  .tj-spb, .tj-cpas { padding: 4px 10px; font-size: 12px; }
  .tj-meas { flex-wrap: wrap; justify-content: center; border-radius: 10px; }
  .tj-meas .btn7 { height: 32px; }
  .tj-mx { width: 32px; height: 32px; }
  .tj-mpt span { width: 16px; height: 16px; margin: 4px; }
  .tj-sdl .txt7, .tj-sdl .sel7 { height: 32px; font-size: 16px; }
}
.tj-narrow .tj-mapwrap { height: 55%; min-height: 240px; }
.tj-narrow .tj-sbar { padding: 3px 6px; }
.tj-narrow .tj-meas { top: 6px; bottom: auto; left: 52px; right: 6px; transform: none; max-width: none; padding: 3px 4px 3px 8px; gap: 4px; font-size: 11.5px; line-height: 1.3; }
.tj-narrow .tj-meas { flex-wrap: nowrap; border-radius: 14px; }
.tj-narrow .tj-meas .tj-mtx { flex: 1; }
.tj-narrow .tj-meas .btn7 { height: 28px; padding: 0 6px; }
.tj-narrow .tj-mx { width: 28px; height: 28px; }

/* ==========================================================================
   Simulateur DPE (dpe.js, préfixe dpe-) : formulaire, étiquettes, travaux
   ========================================================================== */
.dpe-client { padding: 0; overflow: hidden; }
.dpe-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: #222; outline: none; font-size: 12px; }
.dpe-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 8px; background: linear-gradient(#f6f9fc, #e7eef7); border-bottom: 1px solid #a9bcd3; }
.dpe-tools .btn7 { min-width: 0; padding: 0 10px; white-space: nowrap; }
.dpe-bien, .dpe-imp { display: inline-flex; align-items: center; gap: 6px; color: #1e395b; white-space: nowrap; min-width: 0; margin: 0; }
.dpe-blist { max-width: 260px; min-width: 140px; }
.dpe-num { width: 130px; font-family: Consolas, Menlo, monospace; text-transform: uppercase; }
.dpe-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: #b7c7da; }
.dpe-mini { display: none; }
.dpe-body { flex: 1; min-height: 0; display: flex; }
.dpe-form { width: 390px; flex: none; overflow: auto; border-right: 1px solid #a9bcd3; background: #f7f9fc; -webkit-overflow-scrolling: touch; }
.dpe-main { flex: 1; min-width: 0; overflow: auto; padding: 10px 14px 14px; -webkit-overflow-scrolling: touch; }
.dpe-sec { border-bottom: 1px solid #dde3ea; }
.dpe-sec > summary { padding: 7px 10px; cursor: pointer; color: #1e3287; font-size: 13px; background: linear-gradient(#fbfcfe, #eef3f9); user-select: none; }
.dpe-sec > summary:hover { background: linear-gradient(#f3f8fe, #e2eefb); }
.dpe-sec[open] > summary { border-bottom: 1px solid #e3e9f0; }
.dpe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding: 8px 10px 10px; }
.dpe-root .dpe-f { display: flex; flex-direction: column; gap: 2px; color: #33475f; min-width: 0; margin: 0; }
.dpe-f[hidden], .dpe-root.dpe-isapp .dpe-maison, .dpe-root:not(.dpe-isapp) .dpe-appart { display: none; }
.dpe-wide { grid-column: 1 / -1; }
.dpe-f select, .dpe-f .txt7 { width: 100%; min-width: 0; box-sizing: border-box; }
.dpe-u { display: flex; align-items: center; gap: 4px; min-width: 0; }
.dpe-u input { flex: 1; min-width: 0; width: 50px; }
.dpe-u i { font-style: normal; color: #5b6878; white-space: nowrap; }
.dpe-hint { color: #6a7686; font-size: 11px; }
.dpe-chk { display: flex; align-items: center; gap: 5px; color: #33475f; cursor: pointer; margin: 0; }
.dpe-seg { display: inline-flex; align-self: flex-start; border: 1px solid #8ea6c2; border-radius: 3px; overflow: hidden; }
.dpe-seg button { height: 24px; padding: 0 14px; border: 0; background: linear-gradient(#fff, #e9eff6); font: inherit; color: #1e395b; cursor: pointer; }
.dpe-seg button + button { border-left: 1px solid #8ea6c2; }
.dpe-seg button.on { background: linear-gradient(#cfe5fb, #a9cdf2); box-shadow: inset 0 1px 2px rgba(0,0,0,.18); font-weight: 600; }
.dpe-costs { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 5px; }
.dpe-cost { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 6px; color: #33475f; }
.dpe-cost .dpe-u input { width: 40px; }
.dpe-note { margin: 6px 0 0; color: #5b6878; font-size: 11px; line-height: 1.45; }
.dpe-link { padding: 0; border: 0; background: none; color: #1f6fd0; font: inherit; text-decoration: underline; cursor: pointer; }
.dpe-bad { color: #b00 !important; }
.dpe-warn { margin: 12px 0 0; padding: 7px 10px; border: 1px solid #e8d9a8; border-radius: 4px; background: #fff9e6; color: #6b5310; font-size: 11px; line-height: 1.45; }
.dpe-warn a { color: #1f6fd0; }
/* Résultat */
.dpe-head { display: flex; align-items: center; gap: 12px; }
.dpe-big { flex: none; width: 56px; height: 56px; border-radius: 8px; color: #fff; font: bold 36px/56px Arial, sans-serif; text-align: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.dpe-htx { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: #33475f; line-height: 1.4; }
.dpe-htx > b { font-size: 15px; color: #10233d; }
.dpe-bill b { color: #10233d; font-size: 13px; }
.dpe-off { color: #1e3287; }
.dpe-labs { display: flex; gap: 16px; margin-top: 10px; }
.dpe-lab { flex: 1; min-width: 0; }
.dpe-lab h4 { margin: 0 0 4px; font-size: 12px; color: #1e3287; font-weight: 600; }
.dpe-row { display: flex; align-items: center; gap: 6px; height: 21px; margin-bottom: 2px; }
.dpe-bar { display: flex; align-items: center; gap: 6px; height: 19px; padding-left: 6px; box-sizing: border-box; color: #fff; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); opacity: .55; }
.dpe-bar b { font: bold 13px Arial, sans-serif; }
.dpe-bar small { font-size: 10px; white-space: nowrap; overflow: hidden; }
.dpe-row.on .dpe-bar { height: 21px; opacity: 1; box-shadow: none; }
.dpe-val { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1.5px solid #10233d; border-radius: 3px; background: #fff; color: #10233d; white-space: nowrap; }
.dpe-val b { font-size: 13px; }
.dpe-val small { font-size: 10px; color: #44546a; }
.dpe-val i { width: 1px; height: 14px; background: #10233d; margin: 0 2px; }
.dpe-sec2 { margin-top: 10px; }
.dpe-sec2 > summary { cursor: pointer; color: #1e3287; font-size: 13px; padding: 3px 0; user-select: none; }
.dpe-tab { width: 100%; margin-top: 4px; border-collapse: collapse; }
.dpe-tab th, .dpe-tab td { padding: 3px 5px; border-bottom: 1px solid #eef1f5; text-align: right; vertical-align: top; white-space: nowrap; }
.dpe-tab th:first-child { text-align: left; font-weight: normal; color: #222; white-space: normal; }
.dpe-tab thead th { color: #5b6878; font-weight: normal; font-size: 11px; border-bottom-color: #c9d6e6; }
.dpe-tu td:nth-child(2) { white-space: normal; }
.dpe-tab small { display: block; color: #6a7686; font-size: 10.5px; }
.dpe-tab tr.dpe-tot th, .dpe-tab tr.dpe-tot td { font-weight: 600; color: #10233d; border-bottom: 0; border-top: 1px solid #c9d6e6; }
.dpe-bars { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.dpe-brow { display: grid; grid-template-columns: 130px 1fr 80px 40px; align-items: center; gap: 6px; }
.dpe-bl { color: #33475f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpe-bt { height: 10px; background: #eef2f7; border-radius: 2px; overflow: hidden; }
.dpe-bt i { display: block; height: 100%; border-radius: 2px; }
.dpe-bv, .dpe-bp { text-align: right; color: #44546a; white-space: nowrap; }
.dpe-bp { color: #6a7686; }
/* Travaux */
.dpe-adv, .dpe-rank { margin-top: 14px; padding-top: 10px; border-top: 2px solid #d5e2f0; }
.dpe-adv h3 { margin: 0 0 6px; font-size: 15px; color: #1e3287; font-weight: 600; }
.dpe-target { padding: 8px 10px; border: 1px solid #c9d6e6; border-radius: 4px; background: #f6f9fd; }
.dpe-target label { color: #1e395b; font-weight: 600; }
.dpe-range { display: block; width: 100%; margin: 6px 0 2px; accent-color: #2f8f46; }
.dpe-ticks { display: flex; justify-content: space-between; gap: 2px; }
.dpe-tick { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 3px 0; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; color: #44546a; cursor: pointer; }
.dpe-tick small { font-size: 10.5px; white-space: nowrap; }
.dpe-tick:hover { background: #e7eff9; }
.dpe-tick.on { border-color: #7fa6d3; background: #dbe8f8; color: #10233d; font-weight: 600; }
.dpe-chip { display: inline-block; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 3px; color: #fff; font: bold 12px/18px Arial, sans-serif; text-align: center; vertical-align: middle; }
.dpe-best { margin-top: 10px; padding: 8px 10px; border: 1px solid #9cc7a4; border-radius: 4px; background: linear-gradient(#f4fbf5, #e6f4e9); }
.dpe-bh { color: #10233d; font-size: 13px; line-height: 1.6; }
.dpe-bh small { color: #44546a; font-size: 11px; }
.dpe-best .dpe-tab th, .dpe-best .dpe-tab td { border-bottom-color: #d4e8d8; }
.dpe-after { margin: 8px 0 0; padding-left: 18px; color: #33475f; line-height: 1.6; }
.dpe-after b { color: #10233d; }
.dpe-alts { margin: 4px 0 0; padding-left: 18px; line-height: 1.7; color: #33475f; }
.dpe-alts small { color: #6a7686; }
.dpe-help p { margin: 0 0 8px; line-height: 1.5; }
/* Mes biens */
.dpe-mdlg { display: flex; flex-direction: column; height: 100%; }
.dpe-mlist { flex: 1; overflow: auto; padding: 8px; }
.dpe-mrow { display: flex; align-items: center; gap: 6px; padding: 5px 4px; border-bottom: 1px solid #e3e9f0; }
.dpe-mrow .btn7 { min-width: 0; padding: 0 8px; }
.dpe-mnom { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dpe-mnom small { color: #6a7686; }
/* Fenêtre étroite (téléphone) : une seule colonne, rappel du résultat en haut */
.dpe-root .dpe-st { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpe-narrow .dpe-sum { display: none; }
.dpe-narrow .dpe-body { flex-direction: column; overflow: auto; -webkit-overflow-scrolling: touch; }
.dpe-narrow .dpe-form { width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid #a9bcd3; }
.dpe-narrow .dpe-main { overflow: visible; padding: 10px; }
.dpe-narrow .dpe-mini { display: flex; flex: none; align-items: center; gap: 6px; padding: 4px 8px; background: #fff; border-bottom: 1px solid #c9d6e6; color: #10233d; white-space: nowrap; overflow: hidden; }
.dpe-narrow .dpe-mto { margin-left: auto; }
.dpe-narrow .dpe-labs { flex-direction: column; gap: 8px; }
.dpe-narrow .dpe-brow { grid-template-columns: 100px 1fr 70px 34px; }
.dpe-narrow .dpe-tab th, .dpe-narrow .dpe-tab td { padding: 3px 3px; }
.dpe-narrow .dpe-tr th:nth-child(6), .dpe-narrow .dpe-tr td:nth-child(6) { display: none; }
.dpe-narrow .dpe-sep { display: none; }
.dpe-narrow .dpe-blist { max-width: 150px; min-width: 100px; }
.dpe-narrow .dpe-num { width: 118px; }
.dpe-narrow .dpe-tick small { font-size: 9.5px; }
@media (max-width: 700px) {
  .dpe-tools .btn7, .dpe-seg button { height: 30px; }
  .dpe-grid { grid-template-columns: 1fr; }
  .dpe-cost { grid-template-columns: 1fr 140px; }
  .dpe-range { height: 28px; }
}

/* ==========================================================================
   Simulateur DPE : modes Simple, Simulation complète, Officiel 3CL-DPE 2021 (dpe.js, préfixe dpe-)
   ========================================================================== */
.dpe-root [hidden] { display: none !important; }
.dpe-mode { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin: 0 2px 0 0; border: 1px solid #8fa8c6; border-radius: 11px; background: #fff; color: #1e3287; font: inherit; font-weight: bold; white-space: nowrap; cursor: pointer; }
.dpe-mode::before { content: ''; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #7a8da6; }
.dpe-mode:hover { background: #eef5fd; }
.dpe-mode:focus-visible { outline: 2px solid #3a7bd5; outline-offset: 1px; }
.dpe-mode-complete { border-color: #5d9b4a; color: #2c6420; background: #f2faef; }
.dpe-mode-complete::before { background: #4caf50; }
.dpe-mode-officiel { border-color: #b48a1e; color: #6b4f00; background: #fff8e3; }
.dpe-mode-officiel::before { background: #e0a800; }
.dpe-root:not(.dpe-mc) .dpe-cx { display: none !important; }
.dpe-cxnote { margin: 0; padding: 7px 10px; border-bottom: 1px solid #dde3ea; background: #f2faef; color: #2c6420; font-size: 11px; line-height: 1.45; }
.dpe-cx > summary { color: #2c6420; }
.dpe-ep { gap: 3px; }
.dpe-epr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dpe-epr .dpe-u { flex: 1; }
.dpe-epr em { font-style: normal; color: #5b6878; }
.dpe-cxres { margin-top: 8px; }
.dpe-mo .dpe-body, .dpe-mo .dpe-mini, .dpe-mo .dpe-bien, .dpe-mo .dpe-save, .dpe-mo .dpe-sep, .dpe-mo .dpe-tools .dpe-imp { display: none !important; }
.dpe-o3 { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; background: #fff; -webkit-overflow-scrolling: touch; }
.dpe-o3box { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dpe-o3msg { margin: 24px 16px; color: #5b6878; }
.dpe-o3err { margin: 20px 16px; padding: 12px 14px; max-width: 560px; border: 1px solid #e3b4b0; border-radius: 4px; background: #fff5f4; color: #7a1f17; line-height: 1.5; }
.dpe-o3err p { margin: 8px 0 0; }
.dpe-narrow .dpe-mode { height: 22px; padding: 0 7px; }
.dpe-narrow .dpe-epr { flex-wrap: wrap; }


/* ==========================================================================
   Simulateur DPE, mode Officiel 3CL-DPE 2021 (dpe3cl-ui.js, préfixe d3-) :
   saisie paroi par paroi et système par système, résultats
   ========================================================================== */
.d3-root { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; color: #222; font-size: 12px; }
.d3-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 8px; background: linear-gradient(#fbf8ee, #f3ecd6); border-bottom: 1px solid #d6c69a; position: relative; }
.d3-tools .btn7 { min-width: 0; padding: 0 9px; white-space: nowrap; }
.d3-dos, .d3-date { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #5a4300; white-space: nowrap; min-width: 0; }
.d3-dlist { max-width: 240px; min-width: 130px; }
.d3-date input { width: 132px; }
.d3-sep { width: 1px; align-self: stretch; margin: 2px 3px; background: #d6c69a; }
.d3-menu { position: absolute; z-index: 20; top: 34px; left: 8px; max-width: calc(100% - 8px); display: flex; flex-direction: column; min-width: 210px; padding: 3px; border: 1px solid #97a8bd; border-radius: 3px; background: #fff; box-shadow: 2px 3px 8px rgba(0,0,0,.25); }
.d3-menu[hidden] { display: none; }
.d3-menu button { padding: 5px 10px; border: 0; border-radius: 2px; background: none; font: inherit; color: #1e2a3a; text-align: left; cursor: pointer; }
.d3-menu button:hover, .d3-menu button:focus { background: #dbe8f8; outline: none; }
.d3-menu hr { width: 100%; margin: 3px 0; border: 0; border-top: 1px solid #e1e6ed; }
.d3-panel { flex: none; padding: 8px 10px; border-bottom: 1px solid #c9d6e6; background: #f6f9fd; max-height: 40%; overflow: auto; }
.d3-panel[hidden] { display: none; }
.d3-ph { display: flex; align-items: center; justify-content: space-between; color: #1e3287; }
.d3-x { width: 24px; height: 24px; border: 0; background: none; font: inherit; color: #44546a; cursor: pointer; border-radius: 3px; }
.d3-x:hover { background: #e1eaf5; }
.d3-plist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.d3-root .d3-pb { height: auto; min-height: 34px; padding: 4px 10px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; white-space: normal; }
.d3-pb small { color: #5b6878; font-weight: normal; }
.d3-mini { display: none; }
.d3-body { flex: 1; min-height: 0; display: flex; }
.d3-form { width: 470px; flex: none; overflow: auto; border-right: 1px solid #a9bcd3; background: #f7f9fc; -webkit-overflow-scrolling: touch; }
.d3-main { flex: 1; min-width: 0; overflow: auto; padding: 10px 14px 14px; -webkit-overflow-scrolling: touch; }
.d3-stl { flex: none; display: flex; align-items: center; min-height: 20px; padding: 1px 8px; border-top: 1px solid #dde3ea; background: #f4f6f9; color: #44546a; }
.d3-st { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d3-bad { color: #b00 !important; }
.d3-link { padding: 0; border: 0; background: none; color: #1f6fd0; font: inherit; text-decoration: underline; cursor: pointer; }
.d3-note { margin: 6px 0 0; color: #5b6878; font-size: 11px; line-height: 1.45; }
.d3-foot { margin: 10px; }
/* Sections et éléments */
.d3-grp { padding: 9px 10px 3px; color: #8a6d1a; font-size: 10.5px; font-weight: bold; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid #e8dfc4; background: #fdfbf5; }
.d3-sec { border-bottom: 1px solid #dde3ea; }
.d3-sec > summary { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; color: #1e3287; font-size: 13px; background: linear-gradient(#fbfcfe, #eef3f9); user-select: none; }
.d3-sec > summary::-webkit-details-marker { display: none; }
.d3-sec > summary::before { content: ''; flex: none; width: 0; height: 0; border: 4px solid transparent; border-left: 5px solid #5d7393; margin-right: -1px; transition: transform .12s; }
.d3-sec[open] > summary::before { transform: rotate(90deg) translateX(2px); }
.d3-sec > summary:hover { background: linear-gradient(#f3f8fe, #e2eefb); }
.d3-sec[open] > summary { border-bottom: 1px solid #e3e9f0; }
.d3-stt { flex: 1; min-width: 0; }
.d3-cnt { min-width: 16px; padding: 0 5px; border-radius: 8px; background: #dbe5f2; color: #33475f; font-size: 11px; text-align: center; }
.d3-sdep { color: #9a5a1c; font-size: 11px; white-space: nowrap; }
.d3-serr { width: 16px; height: 16px; border-radius: 50%; background: #d7221f; color: #fff; font: bold 11px/16px Arial, sans-serif; text-align: center; }
.d3-sb { padding: 6px 8px 8px; }
.d3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding: 4px 2px 2px; }
.d3-root .d3-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; color: #33475f; }
.d3-wide { grid-column: 1 / -1; }
.d3-f select, .d3-f .txt7 { width: 100%; min-width: 0; box-sizing: border-box; }
.d3-u { display: flex; align-items: center; gap: 4px; min-width: 0; }
.d3-u input { flex: 1; min-width: 0; width: 50px; }
.d3-u i { font-style: normal; color: #5b6878; white-space: nowrap; }
.d3-u input[readonly] { background: #f1f3f6; color: #44546a; }
.d3-root .d3-badin { border-color: #d7221f; background: #fff3f2; }
.d3-hint { color: #6a7686; font-size: 10.5px; }
.d3-ro { min-height: 22px; display: flex; align-items: center; color: #10233d; font-weight: 600; }
.d3-root .d3-chk { display: flex; align-items: center; gap: 5px; margin: 0; color: #33475f; cursor: pointer; }
.d3-grid > .d3-chk { align-self: end; min-height: 24px; }
.d3-list { display: flex; flex-direction: column; gap: 4px; }
.d3-item { border: 1px solid #c9d6e6; border-radius: 3px; background: #fff; }
.d3-item.open { border-color: #8fb0d6; box-shadow: 0 1px 3px rgba(30,60,110,.12); }
.d3-item.d3-haserr { border-left: 3px solid #d7221f; }
.d3-item.d3-auto { background: #fbfcfd; border-style: dashed; }
.d3-ih { display: flex; align-items: center; gap: 2px; min-height: 28px; padding-right: 3px; }
.d3-tog { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 6px; border: 0; background: none; font: inherit; color: #10233d; text-align: left; cursor: pointer; }
.d3-tog:hover { background: #f0f5fb; }
.d3-car { flex: none; width: 0; height: 0; border: 4px solid transparent; border-left: 5px solid #7a8da6; transition: transform .12s; }
.d3-item.open > .d3-ih .d3-car { transform: rotate(90deg) translateX(2px); }
.d3-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d3-sum small { color: #6a7686; margin-left: 4px; }
.d3-ires { flex: none; color: #9a5a1c; font-size: 11px; white-space: nowrap; padding: 0 4px; }
.d3-ibtn { flex: none; width: 26px; height: 24px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; color: #44546a; cursor: pointer; }
.d3-ibtn:hover { border-color: #a9bcd3; background: #eef4fb; }
.d3-ibtn[data-a="del"]:hover { border-color: #e3b4b0; background: #fff1f0; color: #b00; }
.d3-tag { padding: 0 5px; border-radius: 7px; background: #e9eef5; color: #5b6878; font-size: 10px; }
.d3-ib { padding: 4px 8px 8px; border-top: 1px solid #e6ecf3; }
.d3-subh { margin: 10px 0 4px; color: #1e3287; font-weight: 600; }
.d3-ib .d3-item { background: #fcfdfe; }
.d3-addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.d3-root .d3-add { min-width: 0; padding: 0 10px; }
.d3-errs { margin: 4px 0; padding: 4px 8px 4px 22px; border: 1px solid #f0c9c5; border-radius: 3px; background: #fff6f5; color: #9b1c12; font-size: 11px; line-height: 1.45; }
/* Résultats */
.d3-nores { margin: 6px 0 10px; padding: 10px 12px; border: 1px solid #d6c69a; border-radius: 4px; background: #fffaf0; color: #5a4300; line-height: 1.5; }
.d3-nores b { font-size: 14px; }
.d3-nores p { margin: 6px 0 0; }
.d3-tw { overflow-x: auto; }
.d3-tu td { white-space: nowrap; }
.d3-qc { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.d3-qc > div { flex: 1; min-width: 200px; }
.d3-qt td { text-align: left; }
.d3-q { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.d3-ce { margin: 4px 0; color: #10233d; }
.d3-cel { margin: 4px 0 0; padding-left: 18px; color: #33475f; line-height: 1.6; }
.d3-cel li.non { color: #8a96a8; }
.d3-errbox .d3-elist { margin: 4px 0 0; padding-left: 18px; line-height: 1.55; color: #33475f; }
.d3-src { color: #9a5a1c; }
.d3-incomplet { margin: 0 0 10px; padding: 7px 10px; border: 1px solid #f0c9c5; border-radius: 4px; background: #fff6f5; color: #9b1c12; line-height: 1.45; }
.d3-prov .dpe-big { opacity: .45; }
.d3-renov { padding: 7px 10px; border: 1px solid #c9d6e6; border-radius: 4px; background: #f6f9fd; }
.d3-mer { margin-left: auto; color: #b00; }
/* Fenêtre étroite (téléphone) */
.d3-narrow .d3-body { flex-direction: column; overflow: auto; -webkit-overflow-scrolling: touch; }
.d3-narrow .d3-form { width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid #a9bcd3; }
.d3-narrow .d3-main { overflow: visible; padding: 10px; }
.d3-narrow .d3-mini { display: flex; flex: none; cursor: pointer; align-items: center; gap: 6px; padding: 4px 8px; background: #fff; border-bottom: 1px solid #c9d6e6; color: #10233d; white-space: nowrap; overflow: hidden; }
.d3-narrow .dpe-labs { flex-direction: column; gap: 8px; }
.d3-narrow .dpe-brow { grid-template-columns: 100px 1fr 70px 34px; }
.d3-narrow .dpe-tab th, .d3-narrow .dpe-tab td { padding: 3px 3px; }
.d3-narrow .d3-sep { display: none; }
.d3-narrow .d3-dlist { max-width: 150px; min-width: 100px; }
@media (max-width: 700px) {
  .d3-tools .btn7, .d3-ibtn, .d3-tog { min-height: 30px; }
  .d3-tools .btn7 { height: 30px; }
  .d3-grid { grid-template-columns: 1fr; }
  .d3-date input { width: 128px; }
}
.dpe-o3on .dpe-tools { display: none !important; }
.d3-tools .dpe-imp label, .d3-tools .d3-dos > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d3-tools .dpe-num { width: 100px; }
.d3-tools .d3-dlist { max-width: 160px; }
.d3-tools .dpe-mode { margin-right: 4px; }
/* Simulateur DPE, mode Officiel : travaux conseillés (dpe3cl-trav.js), mêmes classes que le mode Simple */
.d3-trav { margin-bottom: 10px; }
.d3-trav .dpe-best, .d3-trav .dpe-ticks, .d3-trav .dpe-rank { transition: opacity .2s; }
.d3-trav.d3-tstale .dpe-best, .d3-trav.d3-tstale .dpe-ticks, .d3-trav.d3-tstale .dpe-rank { opacity: .55; }
.d3-tprog { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; color: #33475f; font-size: 12px; }
.d3-tprog i { display: block; height: 6px; border-radius: 3px; background: #e3eaf3; overflow: hidden; }
.d3-tprog b { display: block; width: 0; height: 100%; background: #2f8f46; transition: width .15s; }
.d3-trav .d3-tnote { margin-top: 8px; }
.dpe-narrow .d3-trav .dpe-tab thead th { white-space: normal; }
.dpe-imp .dpe-voir { padding: 0 7px; font-weight: bold; }
.d3-tools .d3-date > span, .d3-tools .d3-sep { display: none; }
.d3-tools .d3-date::before { content: 'Au'; color: #6b5a2a; }

/* ==== Store (store.js) : applications Android ==== */
.sto-root { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; background: #fff; color: #202124; font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; }
.sto-root:focus { outline: none; }
.sto-ban { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: linear-gradient(100deg, #e8f0fe, #f3f8ff 60%, #e6f4ea); border-bottom: 1px solid #c6dafc; }
.sto-ban[hidden] { display: none; }
.sto-bico { width: 48px; height: 48px; flex: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.2); background: #fff; }
.sto-btx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.4; }
.sto-btx b { font-size: 15px; font-weight: 600; color: #174ea6; }
.sto-btx span { color: #3c4043; }
.sto-qr { width: 104px; height: 104px; flex: none; background: #fff; padding: 4px; border: 1px solid #c6dafc; border-radius: 6px; image-rendering: pixelated; }
.sto-lnk { color: #1a73e8; text-decoration: none; }
.sto-lnk:hover { text-decoration: underline; }
.sto-main { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px 18px; }
.sto-msg { padding: 40px 12px; text-align: center; color: #5f6368; line-height: 1.8; }
.sto-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sto-h h2, .sto-dt h2 { margin: 0; font-size: 20px; font-weight: 500; color: #202124; }
.sto-h small { color: #5f6368; }
.sto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.sto-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; padding: 14px; border: 1px solid #dadce0; border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.sto-card:hover, .sto-card:focus-visible { border-color: #aecbfa; box-shadow: 0 2px 8px rgba(26,115,232,.18); outline: none; }
.sto-ico { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.18); background: #fff; }
.sto-ct { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sto-ct b { font-size: 15px; font-weight: 600; }
.sto-ct small { color: #188038; font-size: 12px; }
.sto-ct p { margin: 4px 0 2px; color: #3c4043; line-height: 1.45; }
.sto-meta { color: #5f6368; font-size: 12px; }
.sto-ca { grid-column: 2; display: flex; gap: 8px; }
.sto-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 16px; border: 1px solid #dadce0; border-radius: 16px; background: #fff; color: #1a73e8; font: 500 13px "Segoe UI", Roboto, Arial, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.sto-btn:hover { background: #f1f6fe; border-color: #aecbfa; text-decoration: none; }
.sto-btn.sto-pri { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.sto-btn.sto-pri:hover { background: #1765cc; border-color: #1765cc; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sto-big { min-height: 36px; padding: 0 22px; border-radius: 18px; font-size: 14px; }
.sto-foot { margin-top: 18px; color: #5f6368; font-size: 12px; line-height: 1.6; }
.sto-det { max-width: 860px; }
.sto-back { padding: 4px 10px 4px 4px; margin: -4px 0 10px; border: 0; border-radius: 14px; background: none; color: #1a73e8; font: 500 13px "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.sto-back:hover { background: #f1f6fe; }
.sto-dh { display: flex; gap: 20px; align-items: flex-start; }
.sto-dico { width: 96px; height: 96px; flex: none; border-radius: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.2); background: #fff; }
.sto-dt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sto-dt h2 { font-size: 24px; }
.sto-dev { color: #1a73e8; font-weight: 500; }
.sto-dt > small { color: #5f6368; }
.sto-stats { display: flex; margin: 10px 0 12px; }
.sto-stats span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 0 14px; color: #5f6368; font-size: 12px; border-left: 1px solid #dadce0; }
.sto-stats span:first-child { border-left: 0; padding-left: 0; align-items: flex-start; }
.sto-stats b { color: #202124; font-size: 14px; font-weight: 600; }
.sto-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.sto-copier.on, .sto-copier.on:hover { background: #e6f4ea; border-color: #81c995; color: #137333; }
.sto-lien { display: flex; flex-direction: column; gap: 4px; max-width: 460px; margin-top: 10px; color: #5f6368; }
.sto-lien[hidden] { display: none; }
.sto-lien input { height: 34px; padding: 0 12px; border: 1px solid #1a73e8; border-radius: 8px; background: #fff; color: #202124; font: 14px "Segoe UI", Roboto, Arial, sans-serif; box-sizing: border-box; }
.sto-alerte { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #f9d77e; border-radius: 10px; background: #fef7e0; color: #3c4043; line-height: 1.45; }
.sto-alerte b { color: #b06000; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sto-tip { margin-top: 8px; color: #5f6368; }
.sto-dqr { flex: none; width: 128px; margin: 0; text-align: center; color: #5f6368; font-size: 11px; line-height: 1.35; }
.sto-dqr img { display: block; width: 116px; height: 116px; margin: 0 auto 4px; padding: 3px; border: 1px solid #dadce0; border-radius: 6px; image-rendering: pixelated; background: #fff; }
.sto-caps { display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 10px; scroll-snap-type: x proximity; }
.sto-cap { flex: none; padding: 0; border: 1px solid #dadce0; border-radius: 10px; overflow: hidden; background: #f1f3f4; cursor: zoom-in; scroll-snap-align: start; }
.sto-cap img { display: block; height: 340px; width: auto; aspect-ratio: 9 / 20; object-fit: cover; }
.sto-cap:hover, .sto-cap:focus-visible { border-color: #1a73e8; outline: none; }
.sto-det section { margin-top: 14px; }
.sto-det h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: #202124; }
.sto-det p { margin: 0 0 8px; line-height: 1.6; color: #3c4043; }
.sto-det ul, .sto-det ol, .sto-mol { margin: 0; padding-left: 20px; line-height: 1.6; color: #3c4043; }
.sto-mol li { margin-bottom: 4px; }
.sto-info { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 0; }
.sto-info dt { color: #5f6368; }
.sto-info dd { margin: 0; min-width: 0; }
.sto-info code { font: 12px Consolas, "Courier New", monospace; }
.sto-sha { word-break: break-all; user-select: all; color: #5f6368; }
.sto-aide { padding: 10px 14px 12px; border-radius: 10px; background: #f8f9fa; }
.sto-lb { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(32,33,36,.92); }
.sto-lb[hidden] { display: none; }
.sto-lb img { max-width: calc(100% - 120px); max-height: calc(100% - 30px); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
.sto-lb button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.sto-lb button:hover { background: rgba(255,255,255,.28); }
.sto-lb button[hidden] { visibility: hidden; display: block; }
.sto-lb .sto-lbx { position: absolute; top: 10px; right: 10px; font-size: 18px; }
@media (max-width: 700px) {
  .sto-ban { padding: 10px 12px; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
  .sto-ban .sto-btn { margin-left: 58px; }
  .sto-qr { display: none; }
  .sto-main { padding: 12px; }
  .sto-grid { grid-template-columns: minmax(0, 1fr); }
  .sto-card { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
  .sto-ico { width: 52px; height: 52px; border-radius: 12px; }
  .sto-dh { flex-wrap: wrap; gap: 14px; }
  .sto-dico { width: 72px; height: 72px; border-radius: 16px; }
  .sto-dt h2 { font-size: 20px; }
  .sto-dqr { display: none; }
  .sto-acts .sto-btn { flex: 1; }
  .sto-cap img { height: 300px; }
  .sto-lb { gap: 4px; }
  .sto-lb img { max-width: calc(100% - 20px); }
  .sto-lb .sto-lbp, .sto-lb .sto-lbn { position: absolute; bottom: 14px; }
  .sto-lb .sto-lbp { left: calc(50% - 56px); }
  .sto-lb .sto-lbn { right: calc(50% - 56px); }
}
.sto-search { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.sto-q { display: flex; align-items: center; gap: 8px; max-width: 560px; height: 40px; padding: 0 6px 0 14px; border: 1px solid #dadce0; border-radius: 20px; background: #f1f3f4; box-sizing: border-box; cursor: text; }
.sto-q:focus-within { background: #fff; border-color: #1a73e8; box-shadow: 0 1px 4px rgba(26,115,232,.25); }
.sto-q span { color: #5f6368; font-size: 20px; line-height: 1; }
.sto-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 14px "Segoe UI", Roboto, Arial, sans-serif; color: #202124; }
.sto-q input::-webkit-search-cancel-button { display: none; }
.sto-qx { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: none; color: #5f6368; cursor: pointer; }
.sto-qx:hover { background: #e8eaed; }
.sto-qx[hidden] { display: none; }
.sto-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.sto-chip { flex: none; height: 32px; padding: 0 14px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; color: #3c4043; font: 500 13px "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.sto-chip:hover { background: #f1f3f4; }
.sto-chip.on { background: #e8f0fe; border-color: #e8f0fe; color: #174ea6; }
.sto-none { grid-column: 1 / -1; padding: 30px 12px; text-align: center; color: #5f6368; line-height: 2; }
/* ==== fin Store ==== */

/* ==== Mode application (html.appmode, applications Android du Store, apps.js) ==== */
html.appmode, html.appmode body, html.appmode[data-theme] { --taskbar-h: 0px !important; }
.appmode #taskbar, .appmode #icons, .appmode #icons-right, .appmode #icons-near, .appmode #icons-center, .appmode #startmenu, .appmode #calendar { display: none !important; }
.appmode .win.app-main.max > .titlebar { display: none; }
/* Point 286 : la fenêtre de l'application s'affiche d'un coup, sans l'animation d'ouverture qui laisserait voir le bureau derrière */
.appmode .win.app-main { animation: none !important; transition: none !important; }
.appmode .win.app-main.max { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; }
/* Pas de contour de focus (orange sous Android) autour des zones d'application focalisables au toucher */
.appmode .win.app-main div[tabindex]:focus { outline: none; }
/* Sans barre des tâches, une fenêtre réduite (conversation de la Messagerie…) ne pourrait plus être rouverte : pas de bouton Réduire */
.appmode .win .caption .bmin { display: none; }

/* ==========================================================================
   Carnet de chasseur (carnet.js) — préfixe .cdc-
   Polices embarquées dans os/carnet/ (Caveat : SIL OFL 1.1 ; Special Elite
   et Rock Salt : Apache 2.0, voir os/carnet/LICENCES-polices.txt).
   ========================================================================== */
@font-face { font-family: 'CDC Caveat'; src: url(carnet/caveat.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'CDC Elite'; src: url(carnet/special-elite.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'CDC Rock'; src: url(carnet/rock-salt.woff2) format('woff2'); font-display: swap; }

.cdc-win .client { overflow: hidden; }
.cdc-root {
  --cdc-ink: #2a2118; --cdc-red: #9b2a1c; --cdc-paper: #eedfba;
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; outline: none;
  color: var(--cdc-ink); font: 14px/1.45 'CDC Elite', 'Courier New', monospace; text-align: left;
  background-color: #2b1d14;
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(255, 210, 150, .18), transparent 65%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 9px, rgba(255, 255, 255, .03) 9px 11px, transparent 11px 23px),
    linear-gradient(180deg, #4a3020, #2a1b12);
}
.cdc-root .menubar { position: relative; z-index: 3; }

/* ---- Onglets ---- */
.cdc-tabs { display: flex; justify-content: center; gap: 4px; padding: 8px 10px 0; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; flex: none; }
.cdc-tabs::-webkit-scrollbar { display: none; }
.cdc-tab {
  flex: none; border: 0; border-radius: 9px 9px 0 0; padding: 5px 13px 7px; cursor: pointer; color: #2a1d12;
  font: 700 17px/1 'CDC Caveat', cursive; box-shadow: inset 0 -6px 8px -6px rgba(0, 0, 0, .45), 0 -1px 2px rgba(0, 0, 0, .3);
  transform: translateY(4px); transition: transform .15s;
}
.cdc-tab:hover, .cdc-tab:focus-visible { transform: translateY(1px); }
.cdc-tab.on { transform: translateY(0); box-shadow: 0 -2px 4px rgba(0, 0, 0, .35); }
.cdc-tab0 { background: #e9dcb6; } .cdc-tab1 { background: #c98d7a; } .cdc-tab2 { background: #a9b98f; }
.cdc-tab3 { background: #c7b06a; } .cdc-tab4 { background: #9fb3c4; } .cdc-tab5 { background: #d6c7a0; }

/* ---- Scène et livre ---- */
.cdc-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 0 10px; touch-action: pan-y; }
.cdc-msg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #f1e2c0; font: 22px 'CDC Caveat', cursive; text-align: center; padding: 20px; }
.cdc-msg[hidden] { display: none; }
.cdc-retry { font: 16px 'CDC Elite', monospace; padding: 4px 12px; cursor: pointer; }
.cdc-book { --pw: 400px; --ph: 560px; position: relative; width: var(--pw); height: var(--ph); perspective: 2600px; }
.cdc-book.cdc-spread { width: calc(var(--pw) * 2); }
.cdc-leather {
  position: absolute; top: -11px; right: -12px; bottom: -11px; left: -12px; inset: -11px -12px; border-radius: 10px; z-index: 0;
  background-color: #4b2a17;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.35' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .05 0 0 0 0 .02 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(190, 120, 70, .45), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(20, 8, 2, .6), transparent 55%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 26px rgba(0, 0, 0, .55);
}
.cdc-closed .cdc-leather, .cdc-oncover .cdc-leather { display: none; }
.cdc-spread .cdc-leather::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 16px; margin-left: -8px; background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); }
.cdc-slot { position: absolute; top: 0; left: 0; width: var(--pw); height: var(--ph); z-index: 1; }
.cdc-book:not(.cdc-spread) .cdc-L { display: none; }
.cdc-spread .cdc-R { left: var(--pw); }

/* ---- Feuille qui tourne ---- */
.cdc-leaf { position: absolute; top: 0; left: 0; width: var(--pw); height: var(--ph); z-index: 5; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.45, .05, .35, 1), opacity .62s; pointer-events: none; }
.cdc-spread .cdc-leaf.onR { left: var(--pw); transform-origin: 0 50%; }
.cdc-spread .cdc-leaf.onL { left: 0; transform-origin: 100% 50%; }
.cdc-leaf.fwd.go { transform: rotateY(-180deg); }
.cdc-leaf.back.go { transform: rotateY(180deg); }
.cdc-leaf.one { transform-origin: 0 50%; transition: transform .5s ease-in, opacity .25s ease-in .28s; }
.cdc-leaf.one.back.go { transition: transform .5s ease-out, opacity .2s; }
.cdc-leaf.one.fwd.go { transform: rotateY(-100deg); opacity: 0; }
.cdc-leaf.one.back { transform: rotateY(-100deg); opacity: 0; }
.cdc-leaf.one.back.go { transform: none; opacity: 1; }
.cdc-face { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cdc-back { transform: rotateY(180deg); }
.cdc-leaf .cdc-face::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 40%); opacity: 0; transition: opacity .62s; }
.cdc-leaf.go .cdc-face::after { opacity: 1; }

/* ---- Page ---- */
.cdc-page { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: hidden; }
.cdc-paper {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; background-color: var(--cdc-paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 82%, rgba(150, 100, 40, .18) 0 3%, transparent 9%),
    radial-gradient(circle at 76% 14%, rgba(150, 100, 40, .14) 0 2%, transparent 7%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(120, 80, 30, .32) 100%),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(80, 110, 150, .16) 25px 26px);
  box-shadow: inset 0 0 40px rgba(110, 70, 20, .35);
}
.cdc-side-L .cdc-paper { border-radius: 4px 0 0 4px; box-shadow: inset 0 0 40px rgba(110, 70, 20, .35), inset -26px 0 26px -18px rgba(40, 20, 5, .55); }
.cdc-side-R .cdc-paper, .cdc-book:not(.cdc-spread) .cdc-paper { border-radius: 0 4px 4px 0; }
.cdc-spread .cdc-side-R .cdc-paper { box-shadow: inset 0 0 40px rgba(110, 70, 20, .35), inset 26px 0 26px -18px rgba(40, 20, 5, .55); }
.cdc-pin { position: absolute; top: 0; right: 0; bottom: 26px; left: 0; inset: 0 0 26px; overflow-y: auto; overflow-x: hidden; padding: 22px 26px 12px 30px; scrollbar-width: thin; scrollbar-color: rgba(90, 60, 30, .45) transparent; overflow-wrap: break-word; }
.cdc-folio { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 16px 'CDC Caveat', cursive; color: #6b5233; }
.cdc-side-L .cdc-folio { text-align: left; padding-left: 22px; }
.cdc-side-R .cdc-folio { text-align: right; padding-right: 22px; }

/* Décor : café, encre, ratures, trace */
.cdc-ring { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, transparent 56%, rgba(120, 70, 20, .26) 59%, rgba(120, 70, 20, .1) 63%, transparent 67%); }
.cdc-ring::after { content: ''; position: absolute; top: 8px; right: 2px; bottom: 2px; left: 10px; inset: 8px 2px 2px 10px; border-radius: 50%; border: 2px solid rgba(120, 70, 20, .12); border-left-color: transparent; }
.cdc-blot { position: absolute; width: 26px; height: 22px; background: radial-gradient(circle at 40% 45%, rgba(20, 25, 45, .75) 0 38%, transparent 42%), radial-gradient(circle at 78% 30%, rgba(20, 25, 45, .6) 0 12%, transparent 15%), radial-gradient(circle at 20% 80%, rgba(20, 25, 45, .55) 0 10%, transparent 13%); }
.cdc-scrib { position: absolute; width: 64px; height: 20px; color: rgba(30, 30, 50, .6); }
.cdc-scrib svg { width: 100%; height: 100%; display: block; }
.cdc-smear { position: absolute; width: 60px; height: 20px; border-radius: 50%; background: radial-gradient(ellipse, rgba(110, 20, 10, .28), transparent 70%); filter: blur(1px); }

/* Typographie */
.cdc-t { font: 22px/1.35 'CDC Rock', 'Comic Sans MS', cursive; color: #3a1d0e; margin: 0 0 6px; letter-spacing: .3px; }
.cdc-h { font: 700 21px/1.1 'CDC Caveat', cursive; color: #5a2a14; margin: 14px 0 4px; display: inline-block; padding: 0 4px 2px 0;
  background: linear-gradient(transparent 82%, rgba(150, 40, 20, .35) 82%, rgba(150, 40, 20, .35) 92%, transparent 92%); }
.cdc-h + * { margin-top: 2px; }
.cdc-hand { font: 20px/1.25 'CDC Caveat', cursive; color: #1d2a3a; }
.cdc-big { font-size: 26px; }
.cdc-type { margin: 4px 0; font-size: 13.5px; line-height: 1.55; }
.cdc-alias { margin: 0; font: italic 18px/1.2 'CDC Caveat', cursive; color: #5b4630; }
.cdc-ul, .cdc-ol { margin: 4px 0 6px; padding-left: 20px; font-size: 13.5px; }
.cdc-ul li { list-style: none; position: relative; margin: 2px 0; }
.cdc-ul li::before { content: '–'; position: absolute; left: -15px; color: #7a3a1a; }
.cdc-kill li::before { content: '✝'; font-size: 12px; top: 1px; }
.cdc-box li::before { content: '☐'; }
.cdc-ol li { margin: 3px 0; }
.cdc-ol li::marker { font: 700 17px 'CDC Caveat', cursive; color: #7a2a14; }
.cdc-eps { margin: 2px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: #4b3a28; }
.cdc-eps span { white-space: nowrap; }
.cdc-seasons { margin: 2px 0; font: 17px 'CDC Caveat', cursive; color: #5b4630; }
.cdc-when { margin: 0 0 6px; font: 700 19px/1.2 'CDC Caveat', cursive; color: #1d2a3a; }
.cdc-issue { margin: 8px 0 4px; font-size: 13.5px; padding: 4px 8px; border-left: 3px solid rgba(155, 42, 28, .6); background: rgba(255, 250, 230, .35); }
.cdc-issue b { color: var(--cdc-red); }

/* En-tête de fiche */
.cdc-ph { position: relative; padding-right: 74px; min-height: 70px; }
.cdc-ph-sk { position: absolute; right: 0; top: -4px; width: 68px; height: 68px; color: rgba(60, 30, 15, .55); transform: rotate(-6deg); }
.cdc-sk { display: block; }
.cdc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 2px; }
.cdc-stamp { display: inline-block; transform: rotate(var(--r, -3deg)); border: 2px solid var(--cdc-red); color: var(--cdc-red); padding: 1px 7px; border-radius: 3px;
  font: 13px/1.3 'CDC Elite', monospace; letter-spacing: 2px; text-transform: uppercase; opacity: .85; box-shadow: inset 0 0 0 1px rgba(155, 42, 28, .25); }
.cdc-danger { font: 700 17px 'CDC Caveat', cursive; color: #4b3a28; white-space: nowrap; }
.cdc-danger b { color: rgba(80, 60, 40, .25); margin-left: 2px; font-weight: 400; }
.cdc-danger b.on { color: var(--cdc-red); }

/* Note manuscrite dans la marge (John, Dean, Sam, Bobby, Castiel) */
.cdc-margin { float: right; width: 44%; margin: 10px -6px 8px 12px; padding: 6px 8px 6px 10px; transform: rotate(var(--r, 1deg)); font: 19px/1.15 'CDC Caveat', cursive;
  border-left: 2px solid currentColor; border-left-color: rgba(0, 0, 0, .15); background: rgba(255, 252, 235, .25); position: relative; }
.cdc-margin p { margin: 0; }
.cdc-sig { display: block; text-align: right; font: 700 18px 'CDC Caveat', cursive; margin-top: 2px; }
.cdc-ink-john { color: #1c2633; } .cdc-ink-dean { color: #1d3d8f; } .cdc-ink-sam { color: #3e4044; }
.cdc-ink-bobby { color: #7c2414; } .cdc-ink-cas { color: #3d2c6e; }

/* Liens croisés */
.cdc-x { clear: both; margin-top: 10px; padding-top: 6px; border-top: 1px dashed rgba(90, 60, 30, .35); }
.cdc-x h4 { margin: 0 0 3px; font: 700 18px 'CDC Caveat', cursive; color: #5a2a14; }
.cdc-x p { margin: 0; display: flex; flex-wrap: wrap; gap: 3px 12px; }
.cdc-ln, .cdc-toc a, .cdc-res a { color: #6b1d10; text-decoration: none; cursor: pointer; }
.cdc-ln { font-size: 13px; border-bottom: 1px dotted rgba(107, 29, 16, .55); }
.cdc-ln i, .cdc-res i { font: 16px 'CDC Caveat', cursive; color: #5b4630; font-style: normal; }
.cdc-ln:hover, .cdc-ln:focus-visible { background: rgba(155, 42, 28, .1); }
.cdc-dead { font-size: 13px; color: #6b5a44; }

/* Sommaire */
.cdc-toc { list-style: none; margin: 8px 0; padding: 0; }
.cdc-toc li { margin: 1px 0; }
.cdc-toc a { display: flex; align-items: baseline; gap: 6px; color: var(--cdc-ink); font: 21px/1.3 'CDC Caveat', cursive; padding: 1px 2px; border-radius: 3px; }
.cdc-toc li.sub a { font-size: 18px; padding-left: 22px; color: #3b2c1c; }
.cdc-toc a i { flex: 1; border-bottom: 2px dotted rgba(90, 60, 30, .4); min-width: 12px; }
.cdc-toc a b { font-weight: 700; color: #6b1d10; }
.cdc-toc a:hover, .cdc-toc a:focus-visible { background: rgba(155, 42, 28, .08); }
.cdc-toc-s a { font-size: 18px; }
.cdc-cathead { display: flex; align-items: center; gap: 12px; }
.cdc-cat-sk { width: 58px; height: 58px; flex: none; color: rgba(70, 35, 15, .6); }

/* Page de titre, règles, intercalaires, fin */
.cdc-title { text-align: center; padding-top: 6px; }
.cdc-owner { margin: 4px 0 10px; font: 30px/1.1 'CDC Caveat', cursive; color: #1c2633; position: relative; }
.cdc-owner s { text-decoration-thickness: 2px; text-decoration-color: rgba(28, 38, 51, .85); }
.cdc-ins { display: block; color: #1d3d8f; transform: rotate(-3deg); font-size: 28px; }
.cdc-title-sk { width: 120px; height: 120px; margin: 6px auto; color: rgba(90, 30, 15, .55); }
.cdc-legal { margin: 10px auto 0; padding: 8px 10px; border: 1px solid rgba(90, 60, 30, .4); background: rgba(255, 250, 235, .4); font-size: 12px; line-height: 1.45; text-align: left; }
.cdc-legal p { margin: 3px 0; }
.cdc-legal-s { font-size: 11.5px; margin-top: 18px; }
.cdc-rules { margin: 6px 0; padding-left: 24px; font: 20px/1.22 'CDC Caveat', cursive; color: #1c2633; }
.cdc-rules li { margin: 6px 0; }
.cdc-rules li::marker { font-weight: 700; color: var(--cdc-red); }
.cdc-rules-sk { width: 90px; height: 90px; margin: 4px auto 0; color: rgba(90, 30, 15, .45); }
.cdc-div, .cdc-end { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.cdc-div h2 { font: 30px/1.3 'CDC Rock', cursive; color: #3a1d0e; margin: 8px 0; }
.cdc-div-sk, .cdc-end-sk { width: 150px; height: 150px; color: rgba(90, 30, 15, .6); }
.cdc-count { font-size: 13px; color: #6b5233; letter-spacing: 1px; }
.cdc-years { margin: 0; font: 700 18px 'CDC Caveat', cursive; color: var(--cdc-red); letter-spacing: 1px; }

/* Coupure de presse */
.cdc-clip { position: relative; margin: 6px 4px 12px; padding: 10px 12px 12px; background: #e8e2d0; color: #1b1b1b; transform: rotate(var(--r, -1deg));
  box-shadow: 1px 2px 4px rgba(0, 0, 0, .25); font-family: Georgia, 'Times New Roman', serif;
  clip-path: polygon(0 2%, 4% 0, 9% 1.5%, 15% 0, 22% 1%, 30% 0, 38% 1.6%, 47% 0, 55% 1.2%, 63% 0, 71% 1.4%, 79% 0, 87% 1.3%, 94% 0, 100% 1.5%, 99% 30%, 100% 62%, 99% 98%, 93% 100%, 85% 98.5%, 76% 100%, 67% 98.6%, 58% 100%, 49% 98.4%, 40% 100%, 31% 98.7%, 22% 100%, 13% 98.5%, 5% 100%, 0 98%, 1% 64%, 0 30%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cdc-clip h2 { margin: 2px 0 6px; font: 900 19px/1.12 Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .2px; }
.cdc-clip-k { margin: 0; font: 700 10px/1.2 Arial, sans-serif; letter-spacing: 2px; color: #555; border-bottom: 1px solid #333; padding-bottom: 3px; }
.cdc-cols { height: 34px; background: repeating-linear-gradient(180deg, rgba(40, 40, 40, .32) 0 2px, transparent 2px 6px);
  -webkit-mask: linear-gradient(90deg, #000 0 48%, transparent 48% 52%, #000 52% 88%, transparent 88%); mask: linear-gradient(90deg, #000 0 48%, transparent 48% 52%, #000 52% 88%, transparent 88%); }
.cdc-tape { position: absolute; top: -2px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: rgba(240, 235, 200, .6); transform: rotate(-4deg); box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.cdc-entry { margin: 4px 0; font: 20px/1.24 'CDC Caveat', cursive; }
.cdc-entry p { margin: 0; }

/* Grimoire */
.cdc-latin { margin: 8px 0; padding: 8px 10px; background: rgba(255, 248, 225, .45); border: 1px solid rgba(110, 60, 20, .35); font: italic 13.5px/1.5 Georgia, 'Times New Roman', serif; color: #2b1a10; }
.cdc-latin p { margin: 0 0 4px; }
.cdc-src { font: 11.5px 'CDC Elite', monospace !important; color: #6b5233; font-style: normal; }
.cdc-warn { margin: 10px 0 4px; padding: 6px 9px; border: 2px solid rgba(155, 42, 28, .55); border-radius: 4px; font-size: 13px; transform: rotate(-.4deg); }
.cdc-warn b { display: inline-block; margin-right: 6px; color: var(--cdc-red); font: 700 18px 'CDC Caveat', cursive; text-transform: uppercase; }

/* Notes personnelles */
.cdc-mine { clear: both; margin-top: 16px; padding-top: 6px; }
.cdc-mine-e, .cdc-mine-b button { border: 0; background: none; padding: 2px 4px; cursor: pointer; color: #6b4f2d; font: 17px 'CDC Caveat', cursive; }
.cdc-mine-e:hover, .cdc-mine-b button:hover { color: var(--cdc-red); text-decoration: underline; }
.cdc-mine-t { margin: 0; padding: 4px 8px; font: 20px/1.2 'CDC Caveat', cursive; color: #0d4c6b; background: rgba(255, 245, 140, .35); border-left: 3px solid rgba(13, 76, 107, .4); white-space: pre-wrap; }
.cdc-mine-ta { width: 100%; box-sizing: border-box; resize: vertical; min-height: 80px; font: 20px/1.2 'CDC Caveat', cursive; color: #0d4c6b; background: rgba(255, 252, 220, .8); border: 1px dashed rgba(13, 76, 107, .5); padding: 6px; }
.cdc-mine-b { display: flex; gap: 8px; }
.cdc-mine-b .cdc-mine-ok { color: #0d4c6b; font-weight: 700; }

/* Recherche */
.cdc-sform { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.cdc-q { flex: 1 1 160px; min-width: 0; font: 20px 'CDC Caveat', cursive; padding: 3px 8px; border: 0; border-bottom: 2px solid rgba(60, 40, 20, .6); background: rgba(255, 252, 235, .55); color: #1c2633; }
.cdc-ss { flex: 0 1 auto; max-width: 100%; font: 13px 'CDC Elite', monospace; background: rgba(255, 252, 235, .7); border: 1px solid rgba(60, 40, 20, .4); color: var(--cdc-ink); }
.cdc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cdc-chip { border: 1px solid rgba(90, 60, 30, .45); background: rgba(255, 250, 230, .4); border-radius: 12px; padding: 1px 9px; cursor: pointer; font: 16px/1.25 'CDC Caveat', cursive !important; color: #3b2a1a; }
.cdc-chip.sub { font-size: 14px !important; border-style: dashed; }
.cdc-chip.on { background: #7a2a14; color: #f6ead0; border-color: #7a2a14; }
.cdc-nres { margin: 0 0 4px; font: 700 17px 'CDC Caveat', cursive; color: #5a2a14; }
.cdc-hint { color: #5b4630; }
.cdc-res { list-style: none; margin: 0; padding: 0; }
.cdc-res li { border-bottom: 1px dashed rgba(90, 60, 30, .3); }
.cdc-res a { display: block; padding: 4px 2px; color: var(--cdc-ink); }
.cdc-res a:hover, .cdc-res a:focus-visible { background: rgba(155, 42, 28, .07); }
.cdc-res b { color: #6b1d10; font-size: 14px; }
.cdc-res small { display: block; font-size: 11.5px; color: #6b5233; }
.cdc-res span { display: block; font-size: 12.5px; line-height: 1.4; }
.cdc-res mark { background: rgba(255, 220, 60, .55); color: inherit; padding: 0 1px; }
.cdc-mynotes .cdc-mine-t { margin-top: 3px; }

/* Couverture */
.cdc-k-cover { border-radius: 4px 12px 12px 4px; cursor: pointer;
  background-color: #4a2915;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.3' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .04 0 0 0 0 .01 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(115deg, transparent 30%, rgba(255, 220, 180, .07) 31%, transparent 33%, transparent 60%, rgba(0, 0, 0, .18) 61%, transparent 63%),
    radial-gradient(ellipse at 35% 30%, rgba(200, 130, 75, .5), transparent 60%),
    radial-gradient(ellipse at 70% 85%, rgba(15, 5, 0, .65), transparent 55%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .65), inset 0 0 0 2px rgba(0, 0, 0, .4), inset 0 0 30px rgba(0, 0, 0, .6), inset 10px 0 12px -6px rgba(0, 0, 0, .6); }
.cdc-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; }
.cdc-cover::before { content: ''; position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px; inset: 14px; border: 2px dashed rgba(210, 170, 120, .35); border-radius: 6px 10px 10px 6px; }
.cdc-cv-in { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; color: #caa16a; }
.cdc-cv-sym { width: 46%; max-width: 190px; aspect-ratio: 1; height: auto; color: rgba(214, 170, 110, .55); filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .55)) drop-shadow(-1px -1px 0 rgba(255, 220, 170, .12)); }
.cdc-cv-in h1 { margin: 14px 0 6px; font: 30px/1.35 'CDC Rock', cursive; color: #d2ad78; text-shadow: 1px 1px 0 rgba(0, 0, 0, .7), -1px -1px 0 rgba(255, 220, 170, .15); }
.cdc-cv-sub { margin: 0; font: 15px 'CDC Elite', monospace; letter-spacing: 2px; color: rgba(214, 175, 125, .7); }
.cdc-strap { position: absolute; top: 46%; right: -2px; width: 58px; height: 34px; border-radius: 6px 0 0 6px; background: linear-gradient(180deg, #2e170a, #452513 50%, #2a1408); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.cdc-strap::after { content: ''; position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e6c98a, #8a6a30 70%); box-shadow: 0 1px 2px #000; }
.cdc-cv-ment { position: absolute; left: 22px; right: 22px; bottom: 20px; margin: 0; font: 10.5px/1.35 'CDC Elite', monospace; color: rgba(214, 175, 125, .6); text-align: center; }

/* Barre du bas */
.cdc-nav { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 10px 8px; position: relative; z-index: 2; }
.cdc-nav button { border: 1px solid rgba(0, 0, 0, .5); border-radius: 16px; background: linear-gradient(#5a3a22, #3a2414); color: #f0dcb6; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 220, 170, .2), 0 1px 2px rgba(0, 0, 0, .5); }
.cdc-prev, .cdc-next { width: 44px; height: 32px; font: 700 22px/1 Georgia, serif !important; padding: 0 0 3px; }
.cdc-nav button:disabled { opacity: .35; cursor: default; }
.cdc-where { min-width: 0; max-width: 60%; height: 32px; padding: 0 14px; font: 17px 'CDC Caveat', cursive !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Téléphone et petites fenêtres : une page à la fois */
.cdc-narrow .cdc-tabs { justify-content: flex-start; padding: 6px 6px 0; gap: 2px; }
.cdc-narrow .cdc-tab { font-size: 16px; padding: 4px 6px 6px; }
.cdc-narrow .cdc-stage { padding: 4px 0 8px; }
.cdc-narrow .cdc-leather { top: -6px; right: -6px; bottom: -6px; left: -6px; inset: -6px; }
.cdc-narrow .cdc-pin { padding: 16px 16px 10px 18px; }
.cdc-narrow .cdc-margin { float: none; width: auto; margin: 10px 0; }
.cdc-narrow .cdc-ph { padding-right: 58px; }
.cdc-narrow .cdc-ph-sk { width: 54px; height: 54px; }
.cdc-narrow .cdc-t { font-size: 19px; }
.cdc-narrow .cdc-cv-in h1 { font-size: 26px; }
@media (prefers-reduced-motion: reduce) { .cdc-leaf, .cdc-tab { transition: none; } }

/* Banque sur téléphone (fenêtre étroite, application Android) : chaque opération en fiche sur trois lignes
   (libellé et montant ; date, type et solde ; catégorie et compte) au lieu du tableau trop large */
@media (max-width: 600px) {
  .bq .cmdbar { flex-wrap: wrap; overflow-x: visible; height: auto; row-gap: 2px; }
  .bq .cmdbar button, .bq-remember { white-space: nowrap; flex: none; }
  .bq .cmdbar .bq-sep { display: none; }
  .bq-tabs { overflow-x: auto; }
  .bq-tabs button { flex: none; padding: 6px 12px; }
  .bq-tabs button.on { padding-top: 8px; }
  .bq-ops .bq-t thead { display: none; }
  .bq-ops .bq-t, .bq-ops .bq-t tbody { display: block; }
  .bq-ops .bq-t tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lb lb amt" "d ty run" "ct acc acc";
    align-items: center; gap: 3px 10px; padding: 8px 12px; border-bottom: 1px solid #e3e9f1; font-size: 13px; }
  .bq-ops .bq-t tbody tr:nth-child(even) { background: #f8fafd; }
  .bq-ops .bq-t td, .bq-ops .bq-t tbody tr:nth-child(even) td, .bq-ops .bq-t tbody tr:hover td { padding: 0; border: 0; background: none; min-width: 0; max-width: none; }
  .bq-ops .bq-t td:nth-child(1) { grid-area: d; color: #5b6878; font-size: 12px; }
  .bq-ops .bq-t td.acc { grid-area: acc; justify-self: end; color: #5b6878; font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bq-ops .bq-t td.lb { grid-area: lb; font-weight: 600; color: #1f2d3d; }
  .bq-ops .bq-t td.ty { grid-area: ty; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .bq-ops .bq-t td.ct { grid-area: ct; }
  .bq-ops .bq-t td.deb, .bq-ops .bq-t td.cre { grid-area: amt; font-size: 14px; font-weight: 600; }
  .bq-ops .bq-t td.deb:empty, .bq-ops .bq-t td.cre:empty { display: none; }
  .bq-ops .bq-t td:last-child { grid-area: run; font-size: 12px; color: #5b6878; }
  .bq-ops .bq-t td:last-child.neg { color: #b3261e; }
  .bq-ops .bq-t td:last-child::before { content: 'Solde '; }
  .bq-ops .bq-t td.bq-none { grid-column: 1 / -1; grid-area: auto; padding: 20px; }
  .bq-ops .bq-t td.bq-none::before { content: none; }
  .bq-ops .bq-catf { min-height: 28px; }
  .bq-pie-main { padding: 10px 8px; }
  .bq-pie-tab { display: block; overflow-x: auto; flex: 1 1 100%; min-width: 0; max-width: 100%; font-size: 12px; }
  .bq-pie-tab th, .bq-pie-tab td { white-space: normal; padding: 3px 4px; }
  .bq-pie-tab .n { white-space: nowrap; }
  .bq-pie-col { margin: 0 auto; }
}

/* ==== Mode application, ergonomie tactile (os.js appMode) : menus en panneau du bas, fenêtres secondaires
   en page plein écran (flèche ←), boîtes de dialogue centrées ; rien ne se déplace ni ne se redimensionne ==== */
.appmode .menubar > span { padding: 9px 13px; font-size: 15px; }
#ctxback { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 99990; background: rgba(0,0,0,.32); animation: fadeIn .15s; }
.appmode .ctx.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 99991; min-width: 0; max-height: 78vh; overflow-y: auto;
  margin: 0; padding: 6px 0 10px; padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 16px 16px 0 0;
  background: #fff; color: #202124; box-shadow: 0 -2px 18px rgba(0,0,0,.28); font: 16px Roboto, "Segoe UI", Arial, sans-serif;
  animation: sheetUp .18s ease-out; -webkit-overflow-scrolling: touch; }
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
.appmode .ctx.sheet li { padding: 13px 22px 13px 54px; margin: 0; border: 0; border-radius: 0; white-space: normal; line-height: 1.35; background: none; }
.appmode .ctx.sheet li:hover:not(.sep):not(.disabled) { background: none; border: 0; }
.appmode .ctx.sheet li:active:not(.sep):not(.disabled):not(.head) { background: #e8f0fe; }
.appmode .ctx.sheet li.disabled { color: #9aa0a6; }
.appmode .ctx.sheet li.checked::before { left: 22px; color: #1a73e8; font-weight: 700; }
.appmode .ctx.sheet li .key { display: none; }
.appmode .ctx.sheet li.sub::after { content: "›"; right: 22px; top: 50%; transform: translateY(-52%); font-size: 24px; color: #5f6368; }
.appmode .ctx.sheet li > .ctx { display: none !important; }
.appmode .ctx.sheet li.sep { height: 1px; padding: 0; margin: 6px 0; background: #e3e5e8; border: 0; }
.appmode .ctx.sheet li.head { padding: 8px 22px 6px; color: #5f6368; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.appmode .ctx.sheet li.back { padding-left: 22px; color: #1a73e8; font-weight: 600; }
.appmode .win .resize { display: none; }
.appmode .win > .titlebar { touch-action: manipulation; }
/* Fenêtre secondaire (aide, à propos d'une page, conversation…) : page plein écran, barre d'application ← Titre */
.appmode .win.page.max:not(.app-main) { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; }
.appmode .win.page:not(.app-main) > .titlebar { height: 52px; padding: 0 12px 0 0; background: #fff !important; border-bottom: 1px solid #e3e5e8; }
.appmode .win.page:not(.app-main) > .titlebar .ticon { display: none; }
.appmode .win.page:not(.app-main) > .titlebar .title { color: #202124 !important; text-shadow: none !important; font: 600 17px Roboto, "Segoe UI", Arial, sans-serif; }
.appmode .win.page:not(.app-main) > .titlebar .caption { order: -1; margin: 0 4px 0 0; align-self: center; }
.appmode .win.page:not(.app-main) .caption .bmin, .appmode .win.page:not(.app-main) .caption .bmax { display: none; }
.appmode .win.page:not(.app-main) .caption .bclose, .appmode .win.dlg .caption .bclose { width: 48px; height: 48px; border: 0 !important; border-radius: 50% !important;
  background: none !important; box-shadow: none !important; display: flex; align-items: center; justify-content: center; }
.appmode .win.page:not(.app-main) .caption .bclose > * , .appmode .win.dlg .caption .bclose > * { display: none; }
.appmode .win.page:not(.app-main) .caption .bclose::before { content: "←"; font: 24px/1 Roboto, Arial, sans-serif; color: #3c4043; }
/* Boîte de dialogue : centrée, coins arrondis, titre simple, grands boutons */
.appmode .win.dlg { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); max-width: 94vw; max-height: 88vh;
  border-radius: 14px !important; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.35) !important; }
.appmode .win.dlg > .titlebar { height: 50px; padding: 0 0 0 20px; background: #fff !important; }
.appmode .win.dlg > .titlebar .ticon { display: none; }
.appmode .win.dlg > .titlebar .title { color: #202124 !important; text-shadow: none !important; font: 600 17px Roboto, "Segoe UI", Arial, sans-serif; }
.appmode .win.dlg .caption .bclose::before { content: "✕"; font: 18px/1 Roboto, Arial, sans-serif; color: #5f6368; }
.appmode .win.dlg .caption { align-self: center; margin: 0 2px 0 8px; }
.appmode .win.dlg .client { background: #fff; }
.appmode .win.dlg .dialog-body { min-height: 0; overflow: auto; }
.appmode .win.dlg { height: auto !important; padding: 0 !important; border: 0 !important; background: #fff !important; display: flex; flex-direction: column; }
.appmode .win.dlg > .client { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0 !important; border: 0 !important; }
.appmode .win.dlg .dialog-foot { background: #fff; border: 0; padding: 6px 12px 12px; }
.appmode .win .dialog-foot .btn7 { min-height: 42px; min-width: 72px; padding: 0 16px; font: 600 15px Roboto, "Segoe UI", Arial, sans-serif;
  background: none !important; border: 0 !important; box-shadow: none !important; color: #1a73e8 !important; border-radius: 20px; }
.appmode .win .dialog-foot .btn7:active { background: #e8f0fe !important; }
.appmode .win .dialog-foot .btn7:focus { outline: none; }
.appmode .win.dlg .btn7 { min-height: 38px; font-size: 15px; }
/* Fenêtre bloquée par une boîte de dialogue : assombrie, comme sous Android */
.appmode .win.blocked { filter: brightness(.66); }

/* Traitement de texte sur téléphone (fenêtre étroite, application Android) : marges de page réduites à l'écran
   (le document enregistré garde ses marges), règle masquée, titres un peu plus petits */
@media (max-width: 600px) {
  .word-ruler { display: none; }
  .word-scroll { padding: 8px 0 16px; }
  .word-page { padding: 22px 18px; min-height: calc(100% - 8px); max-width: calc(100% - 16px); }
  .word-page h1 { font-size: 20pt; }
}

/* Présentation sur téléphone (fenêtre étroite, application Android) : diapositive sur toute la largeur,
   miniatures en bande horizontale en dessous, notes plus basses */
@media (max-width: 600px) {
  .dp-body { flex-direction: column-reverse; }
  .dp-thumbs { width: auto; height: 100px; flex: none; display: flex; overflow-x: auto; overflow-y: hidden; padding: 6px 4px;
    border-right: 0; border-top: 1px solid #d0d0d0; }
  .dp-thumbs .dp-t { flex: none; padding: 2px 6px 2px 0; }
  .dp-thumbs .dp-tn { width: 16px; }
  .dp-stagewrap { padding: 10px 8px; }
  .dp-notes { height: 54px; padding: 6px 10px; }
}

/* Diagramme de Gantt sur téléphone (fenêtre étroite, application Android) : tableau des tâches limité à ~45 %
   de la largeur pour laisser voir le diagramme (séparateur toujours réglable), barre d'état sur une ligne */
@media (max-width: 600px) {
  .gt .gt-left { width: 45% !important; max-width: 220px; }
  .gt .gt-split { width: 9px; }
  .gt .statusbar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gt .statusbar .gt-span { display: none; }
  .gt .statusbar .gt-st { flex: 1; min-width: 0; }
}

/* Stegano : Android 8 (WebView Chrome 61) — pas de conic-gradient ni de « gap » en flex : couleur de repli et marges */
.sg-view { background-color: #4a4f57; }
.sg-empty, .sg-sec, .sg-badge, .sg-line, .sg-line label { gap: 0; }
.sg-empty > * + * { margin-top: 12px; }
.sg-sec > * + * { margin-top: 5px; }
.sg-badge::before { margin-right: 7px; }
.sg-line > * + *, .sg-line label > * + * { margin-left: 6px; }
.sg-line label > .sel7, .sg-line label > .sg-q { margin-left: 6px; }
.sg-side > .sg-sec { flex-shrink: 0; }

/* Store : nombre de téléchargements (fiche et cartes) */
.sto-stats span.sto-nbs[hidden] { display: none; }
.sto-stats .sto-nbs i { font-style: normal; }
@media (max-width: 600px) {
  .sto-stats { flex-wrap: wrap; row-gap: 6px; }
  .sto-stats span.sto-nbs { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 4px; padding-left: 0; border-left: 0; }
  .sto-stats .sto-nbs i { text-transform: lowercase; }
}

/* Carnet d'entretien : Android 8 (WebView Chrome 61) — « gap » des grilles par grid-gap, et en mode application
   marges à la place du « gap » des boîtes flex (non géré avant Chrome 84) ; champs et cases plus grands au doigt */
.ce-grid { grid-gap: 8px 14px; gap: 8px 14px; }
.ce-cards { grid-gap: 8px; gap: 8px; }
.ce-types { grid-gap: 3px 10px; gap: 3px 10px; }
.ce-charts { grid-gap: 0 14px; gap: 0 14px; }
.ce-t td.ce-desc { word-wrap: break-word; overflow-wrap: anywhere; }
.appmode .ce-tabs, .appmode .ce-empty, .appmode .ce-empty-b, .appmode .ce h3, .appmode .ce-chk, .appmode .ce-tiles, .appmode .ce-card,
.appmode .ce-vi, .appmode .ce-vlist, .appmode .ce-vh, .appmode .ce-vbtn, .appmode .ce-filters, .appmode .ce-legend, .appmode .ce-form,
.appmode .ce-grid label, .appmode .ce-f1, .appmode .ce-totrow, .appmode .ce-totrow label, .appmode .ce-pf, .appmode .ce-types label, .appmode .ce-demo { gap: 0; }
.appmode .ce-tabs button { margin-right: 2px; }
.appmode .ce-empty > * + * { margin-top: 14px; }
.appmode .ce-empty-b { margin: 10px -4px -4px; }
.appmode .ce-empty-b > * { margin: 4px; }
.appmode .ce h3 > * { margin-left: 12px; }
.appmode .ce-chk input { margin-right: 6px; }
.appmode .ce-tiles { margin: 7px -5px 0; }
.appmode .ce-tile { margin: 5px; }
.appmode .ce-card > * + * { margin-left: 10px; }
.appmode .ce-vi > * + * { margin-left: 8px; }
.appmode .ce-vlist > * + * { margin-top: 3px; }
.appmode .ce-vh > * + * { margin-left: 16px; }
.appmode .ce-vbtn { margin: 7px -3px 0; }
.appmode .ce-vbtn > * { margin: 3px; }
.appmode .ce-filters { padding: 2px 4px; }
.appmode .ce-filters > * { margin: 4px; }
.appmode .ce-legend > * { margin-right: 14px; }
.appmode .ce-form > * + * { margin-top: 10px; }
.appmode .ce-grid label > * + *, .appmode .ce-f1 > * + *, .appmode .ce-totrow label > * + * { margin-top: 3px; }
.appmode .ce-totrow > * + * { margin-left: 12px; }
.appmode .ce-pf > * + * { margin-left: 6px; }
.appmode .ce-demo > * { margin: 2px 0; }
.appmode .ce-types label { padding: 5px 0; }
.appmode .ce-types input { margin: 0 8px 0 2px; }
.appmode .ce-form .txt7, .appmode .ce-form .sel7 { min-height: 32px; }
.appmode .ce-pt input.txt7 { height: 32px; }
@media (max-width: 600px) {
  .appmode .ce-vlist > * + * { margin-top: 0; margin-left: 3px; }
  .appmode .ce-vh > * + * { margin-left: 0; margin-top: 12px; }
}

/* ==========================================================================
   PicoloTour (picolo.js, préfixe pt-) : maisons de champagne et producteurs, liste, carte Leaflet, fiche
   ========================================================================== */
.pt-client { padding: 0; overflow: hidden; }
.pt-root { --pt-ink: #2f2a1e; display: flex; flex-direction: column; height: 100%; background: #faf6ea; color: var(--pt-ink); outline: none; font-size: 12px; }
.pt-tools { display: flex; align-items: center; padding: 4px 6px; background: linear-gradient(#fffdf5, #efe3c2); border-bottom: 1px solid #cdb986; flex: none; }
.pt-tools > * + * { margin-left: 4px; }
.pt-tb { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid #bba26a; border-radius: 3px; background: linear-gradient(#fff, #f3ead2); color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.pt-tb span { margin-left: 4px; }
.pt-tb:hover { border-color: #a07a1c; background: linear-gradient(#fff, #f6e2a8); }
.pt-tb.pt-act { border-color: #8a6410; background: linear-gradient(#fbe7b0, #eac26a); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.pt-brand { margin-left: 10px !important; font-weight: 700; color: #7a560a; white-space: nowrap; letter-spacing: .02em; }
.pt-sp { flex: 1; }
.pt-layer { height: 26px; font: inherit; border: 1px solid #bba26a; border-radius: 3px; background: #fff; color: inherit; }
.pt-body { flex: 1; display: flex; min-height: 0; position: relative; }
.pt-side { width: 330px; flex: none; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #cdb986; min-height: 0; }
.pt-side[hidden] { display: none; }
.pt-search { padding: 7px 7px 2px; border-bottom: 1px solid #efe5cc; background: #fffdf7; }
.pt-srow { display: flex; align-items: center; margin-bottom: 5px; position: relative; }
.pt-srow > * + * { margin-left: 4px; }
.pt-q { flex: 1; min-width: 0; height: 30px; padding: 0 26px 0 8px; font: inherit; font-size: 13px; border: 1px solid #bba26a; border-radius: 3px; box-sizing: border-box; }
.pt-clr { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #8a7a52; cursor: pointer; font-size: 13px; padding: 4px 6px; }
.pt-clr[hidden] { display: none; }
.pt-cat, .pt-pays, .pt-type, .pt-sort { flex: 1; min-width: 0; height: 26px; font: inherit; border: 1px solid #bba26a; border-radius: 3px; background: #fff; color: inherit; }
.pt-chk { display: inline-flex; align-items: center; white-space: nowrap; cursor: pointer; }
.pt-chk input { margin: 0 4px 0 0; }
.pt-count { padding: 4px 8px; color: #7a6a44; font-size: 11px; border-bottom: 1px solid #f2ead6; }
.pt-list { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.pt-item { display: flex; align-items: center; padding: 6px 8px; border-bottom: 1px solid #f2ead6; cursor: pointer; }
.pt-item > * + * { margin-left: 8px; }
.pt-item:hover { background: #fdf6e0; }
.pt-item.pt-on { background: #f7e7b4; box-shadow: inset 3px 0 #a07a1c; }
.pt-dot { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pt-dot.pt-big { width: 18px; height: 18px; }
.pt-it { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-it b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-it small { color: #6f6447; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.pt-hit span { display: inline-block; margin: 2px 4px 0 0; padding: 0 6px; border-radius: 8px; background: #fbefc9; border: 1px solid #e6cf86; color: #6b4e08; }
.pt-np { flex: none; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #efe3c2; color: #6b4e08; font-size: 11px; text-align: center; }
.pt-dist { flex: none; font-weight: 600; white-space: nowrap; }
.pt-more { display: block; width: calc(100% - 16px); margin: 8px; height: 28px; border: 1px solid #bba26a; border-radius: 3px; background: linear-gradient(#fff, #f3ead2); font: inherit; color: inherit; cursor: pointer; }
.pt-empty { padding: 16px; color: #7a6a44; text-align: center; line-height: 1.5; }
.pt-empty .pt-all { margin-top: 10px; }
.pt-foot { flex: none; padding: 5px 8px; border-top: 1px solid #efe5cc; background: #fffdf7; color: #6f6447; font-size: 10.5px; line-height: 1.35; }
.pt-foot p { margin: 0; }
.pt-foot p + p { margin-top: 3px; }
.pt-foot a { color: #1f6fd0; }
.pt-mod { font-style: italic; color: #6b5a33; }
.pt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-mapwrap { flex: 1; position: relative; min-height: 140px; }
.pt-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #e8e3d4; }
.pt-msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 1000; max-width: 80%; max-width: calc(100% - 100px); padding: 6px 12px; border-radius: 4px; background: rgba(255,255,255,.96); border: 1px solid #bba26a; box-shadow: 0 2px 8px rgba(0,0,0,.2); text-align: center; }
.pt-msg[hidden], .pt-info[hidden] { display: none; }
.pt-msg.pt-err { border-color: #c0392b; color: #8e1b10; }
.pt-root .leaflet-container { font: inherit; font-size: 12px; }
.pt-pin span { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); box-sizing: border-box; }
.pt-pin.pt-hasp span { border-color: #ffe28a; }
.pt-cl span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(199,154,30,.92); color: #fff; font-weight: 700; font-size: 12px;
  border: 3px solid rgba(255,244,200,.9); box-shadow: 0 1px 5px rgba(0,0,0,.45); box-sizing: border-box; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.pt-me span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #1f6fd0; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.4); box-sizing: border-box; }
/* Fiche du lieu, sous la carte */
.pt-info { flex: none; max-height: 48%; display: flex; flex-direction: column; border-top: 1px solid #cdb986; background: #fff; }
.pt-ihead { display: flex; align-items: center; padding: 7px 10px 3px; }
.pt-ihead > * + * { margin-left: 8px; }
.pt-ititle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-ititle b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-ititle small { color: #6f6447; }
.pt-x { flex: none; border: 0; background: none; cursor: pointer; color: #7a6a44; font-size: 14px; padding: 4px 6px; }
.pt-x:hover { color: #b72a1c; }
.pt-ibody { overflow: auto; padding: 0 10px; -webkit-overflow-scrolling: touch; }
.pt-desc { margin: 4px 0 6px; line-height: 1.4; }
.pt-approx { margin: 0 0 6px; color: #a35b00; font-size: 11px; }
.pt-ibody h4 { margin: 6px 0 4px; font-size: 12px; color: #6b4e08; }
.pt-prods { list-style: none; margin: 0; padding: 0; }
.pt-prods li { display: flex; flex-direction: column; padding: 5px 8px; margin-bottom: 4px; border-radius: 4px; background: #fbf7ea; border: 1px solid #efe3c2; }
.pt-prods li.pt-phit { background: #fbefc9; border-color: #e0c56e; }
.pt-pd { color: #4a4330; margin-top: 1px; }
.pt-cep { margin-top: 2px; color: #4a4330; }
.pt-cep i { display: inline-block; margin: 0 0 0 4px; padding: 0 6px; border-radius: 8px; background: #e7f2d9; border: 1px solid #bcd99c; font-style: normal; color: #2f5a10; }
.pt-ps { margin-top: 1px; color: #8a7d5c; font-size: 10.5px; }
.pt-ps a, .pt-help a { color: #1f6fd0; }
.pt-isrc { margin: 4px 0 6px; color: #8a7d5c; font-size: 10.5px; }
.pt-iact { display: flex; flex-wrap: wrap; padding: 4px 8px 6px; border-top: 1px solid #f2ead6; }
.pt-iact > * { margin: 2px; }
.pt-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid #bba26a; border-radius: 3px; background: linear-gradient(#fff, #f3ead2); color: var(--pt-ink, #2f2a1e); font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pt-btn:hover { border-color: #a07a1c; background: linear-gradient(#fff, #f6e2a8); }
.pt-btn.pt-primary { border-color: #8a6410; background: linear-gradient(#f6d77a, #d9a929); color: #3a2a02; font-weight: 600; }
.pt-help p { margin: 0 0 8px; line-height: 1.4; }
.pt-help ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.4; }
.pt-help { max-height: 360px; overflow: auto; padding-right: 4px; }
/* Fenêtre étroite (téléphone) : la liste passe par-dessus la carte, la fiche prend plus de place */
.pt-narrow .pt-side { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1100; width: 92%; max-width: 380px; box-shadow: 4px 0 14px rgba(0,0,0,.25); }
.pt-narrow .pt-tb span, .pt-narrow .pt-brand { display: none; }
.pt-narrow .pt-tb { padding: 0 12px; height: 34px; font-size: 16px; }
.pt-narrow .pt-layer { height: 34px; max-width: 130px; }
.pt-narrow .pt-info { max-height: 58%; }
.pt-narrow .pt-q { height: 36px; font-size: 15px; }
.pt-narrow .pt-cat, .pt-narrow .pt-pays, .pt-narrow .pt-type, .pt-narrow .pt-sort { height: 32px; }
.pt-narrow .pt-item { padding: 9px 10px; }
.pt-narrow .pt-btn { height: 32px; padding: 0 12px; }
.pt-narrow .pt-msg { max-width: 90%; max-width: calc(100% - 70px); }
.appmode .pt-it b { font-size: 14px; }
.appmode .pt-it small { font-size: 12px; }
.appmode .pt-root { font-size: 13px; }
.pt-pc { font-weight: 400; }

/* PicoloTour : adresse vérifiée et autres sites d'un lieu */
.pt-adr { margin: 0 0 6px; color: #4a4330; font-size: 11px; }
.pt-adr a { color: #1f6fd0; }

/* ==========================================================================
   Icônes au centre exact du bureau (os.js, place: 'milieu') sur petit écran : boîte posée sur la zone du bureau
   ========================================================================== */
#icons-milieu { position: absolute; left: 0; top: 0; right: 0; bottom: var(--taskbar-h); pointer-events: none; z-index: 1; }
#icons-milieu .dicon { position: absolute; margin: 0; pointer-events: auto; }
html[data-theme="osx"] #icons-milieu { top: 22px; }
.appmode #icons-milieu { display: none !important; }
#desktop.tm-noexplorer #icons-milieu { visibility: hidden; }

/* ==========================================================================
   Ator (os/ator.js) : diagnostic automobile en direct, préfixe at-
   ========================================================================== */
.at-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: #222; }
.at-root:focus { outline: none; }
.at-accueil, .at-vue { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.at-accueil[hidden], .at-vue[hidden], .at-pane[hidden] { display: none; }
.at-accueil { overflow: auto; background: linear-gradient(#eef3f9, #fff 220px); }
.at-acc { max-width: 900px; margin: 0 auto; padding: 18px 20px 24px; box-sizing: border-box; width: 100%; }
.at-hero { display: flex; align-items: center; gap: 16px; }
.at-hico { flex: none; width: 72px; height: 72px; }
.at-hico svg { width: 100%; height: 100%; }
.at-hero h1 { margin: 0; font-size: 26px; font-weight: normal; color: #1e3287; }
.at-hero p { margin: 4px 0 0; color: #3d4a5a; font-size: 14px; line-height: 1.4; }
.at-form { margin: 18px 0 8px; padding: 14px 16px; border: 1px solid #b9c9dc; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(30,60,100,.08); }
.at-form label b { font-weight: normal; font-size: 15px; color: #1e3287; }
.at-fl { display: flex; gap: 8px; margin-top: 8px; }
.at-vinin.txt7 { flex: 1; min-width: 0; height: 30px; box-sizing: border-box; font: 16px Consolas, "Courier New", monospace; letter-spacing: .06em; padding: 0 8px; text-transform: uppercase; }
.at-fl .btn7 { min-width: 90px; }
.at-err { min-height: 18px; margin-top: 6px; color: #b8402f; }
.at-rec { margin: 8px 0 4px; }
.at-rec b { font-weight: normal; color: #1e3287; }
.at-rec ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.at-rec a { display: inline-block; padding: 5px 10px; border: 1px solid #c5d2e3; border-radius: 3px; background: #f5f8fc; color: #1e395b; text-decoration: none; }
.at-rec a:hover { background: #e3effb; border-color: #7da2ce; }
.at-rec a span { color: #5b6878; }
.at-cols { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.at-box { flex: 1 1 300px; min-width: 0; padding: 4px 16px 10px; border: 1px solid #dde3ea; border-radius: 4px; background: #fff; line-height: 1.45; }
.at-box h2 { font-size: 15px; font-weight: normal; color: #1e3287; margin: 10px 0 6px; }
.at-box ol { margin: 0; padding-left: 20px; }
.at-box li { margin: 4px 0; }
.at-box code, .at-acc code { font: 12px Consolas, "Courier New", monospace; background: #eef2f7; padding: 0 3px; border-radius: 2px; }
.at-note { color: #4d5a6a; font-size: 12px; }
.at-apk { margin-left: 8px; }

.at-tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: linear-gradient(#2d3a4a, #1b2430); color: #e9eef4; }
.at-id { min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.at-vin { font: bold 15px Consolas, "Courier New", monospace; letter-spacing: .05em; color: #fff; }
.at-veh { color: #b9c6d6; }
.at-vkm { background: none; border: 0; padding: 0; color: #d5e4f2; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.at-id { position: relative; }
.at-vkmp { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; max-width: 560px; margin-top: 4px; padding: 8px 10px; background: #fff; color: #1b2430; border: 1px solid #9fb0c2; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35); font-size: 12px; }
.at-vkmp table, .at-tabkm table { border-collapse: collapse; width: 100%; margin: 4px 0; }
.at-vkmp th, .at-vkmp td, .at-tabkm th, .at-tabkm td { text-align: left; padding: 2px 6px; border-bottom: 1px solid #e1e7ee; white-space: nowrap; }
.at-vkmp tr.on td { font-weight: bold; }
.at-vkmp small { color: #4d5a6a; white-space: normal; }
.at-tabkm { overflow-x: auto; font-size: 12px; }
.at-dkm { margin-left: 6px; color: #2d5a87; font-size: 12px; }
.at-fiche { flex: 1 1 100%; min-width: 0; color: #d5dee8; font-size: 12px; }
.at-fiche .at-fv { white-space: nowrap; }
.at-fiche small { font-size: 10px; color: #8fa3b8; margin-left: 3px; vertical-align: 1px; }
.at-fiche .at-fconf { color: #f0c36a; }
.at-fiche .at-fstat { color: #f0c36a; white-space: nowrap; }
.at-fiche .at-fstat.at-fok { color: #8fd19e; }
.at-fiche .at-fplus { display: block; color: #a9b8c8; font-size: 11px; margin-top: 1px; }
.at-etat { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,.1); white-space: nowrap; font-size: 12px; }
.at-etat i { width: 9px; height: 9px; border-radius: 50%; background: #8a96a3; }
.at-etat.at-on i { background: #3ad06a; box-shadow: 0 0 6px #3ad06a; animation: at-puls 1.6s infinite; }
.at-etat.at-off i { background: #d0453a; }
.at-etat.at-err i { background: #e8a23a; }
@keyframes at-puls { 50% { opacity: .45; } }
.at-tabs { flex: none; display: flex; gap: 2px; padding: 6px 8px 0; background: linear-gradient(#f6f9fc, #e7eef7); border-bottom: 1px solid #a9bcd3; }
.at-tabs button { position: relative; top: 1px; padding: 4px 18px; border: 1px solid #a9bcd3; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#f3f6fa, #dde6f0); font: inherit; color: #1e395b; cursor: pointer; }
.at-tabs button:hover { background: linear-gradient(#fafdff, #e3effb); }
.at-tabs button.on { background: #fff; padding-top: 6px; margin-top: -2px; border-bottom: 1px solid #fff; color: #1e3287; }
.at-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.at-pdirect { overflow: auto; background: radial-gradient(ellipse at 50% 0, #f4f7fb, #e4eaf1); }
.at-msg { margin: 12px 12px 0; padding: 10px 14px; border: 1px solid #e3c27a; border-radius: 4px; background: #fff8e3; color: #5a4512; line-height: 1.45; }
.at-jauges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 14px 12px 6px; }
.at-jauges.at-dim { opacity: .45; }
.at-j { flex: 0 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 8px 10px; border-radius: 10px; background: linear-gradient(#26313e, #11171e); color: #e9eef4; box-shadow: 0 2px 8px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12); box-sizing: border-box; }
.at-jt { font-size: 12px; color: #b9c6d6; text-align: center; }
.at-dial { width: 100%; max-width: 240px; height: auto; display: block; }
.at-dtrack { fill: none; stroke: #3a4757; stroke-width: 6; }
.at-dzone { fill: none; stroke-width: 6; }
.at-dmaj { stroke: #e9eef4; stroke-width: 2; }
.at-dmin { stroke: #8a96a3; stroke-width: 1; }
.at-dlab { fill: #cfd8e3; font: 12px "Segoe UI", Tahoma, sans-serif; text-anchor: middle; }
.at-needle { transform-origin: 100px 100px; transition: transform .9s cubic-bezier(.3,.7,.4,1); }
.at-npath { fill: #ff5a3c; }
.at-hub { fill: #c9d1da; stroke: #3b444e; stroke-width: 1.5; }
.at-dval { fill: #fff; font: bold 26px "Segoe UI", Tahoma, sans-serif; text-anchor: middle; }
.at-dunit { fill: #9fb0c3; font: 12px "Segoe UI", Tahoma, sans-serif; text-anchor: middle; }
.at-nd .at-npath { fill: #6b7683; }
.at-nd .at-dval { fill: #8a96a3; }
.at-jrun { justify-content: center; gap: 6px; min-height: 120px; }
.at-run { font: bold 28px "Segoe UI", Tahoma, sans-serif; color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.at-runh { color: #9fb0c3; font-size: 12px; min-height: 15px; }
.at-der { text-align: center; padding: 6px 12px 14px; color: #2d3a4a; }
.at-der small { color: #5b6878; }

.at-cbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px 4px; }
.at-traj { max-width: 100%; }
.at-traj[hidden] { display: none; }
.at-zoom { display: inline-flex; gap: 3px; }
.at-zoom .btn7 { min-width: 30px; padding-left: 6px; padding-right: 6px; }
/* Courbes : menu vertical des grandeurs à gauche (défile seul), graphique à droite qui défile verticalement */
.at-ccorps { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 0 8px 0 8px; position: relative; }
.at-gch { flex: none; width: 200px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1px;
  padding: 4px 6px 8px; border: 1px solid #dde3ea; background: #fbfcfe; font-size: 12px; }
.at-gchb { display: flex; gap: 4px; padding-bottom: 4px; position: sticky; top: -4px; background: inherit; z-index: 1; }
.at-gchb .btn7 { flex: 1 1 auto; min-width: 0; padding-left: 4px; padding-right: 4px; font-size: 11px; white-space: nowrap; }
.at-gth { margin: 6px 0 2px; font-weight: 600; color: #3d4a5a; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.at-gch label { display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 1px 2px; border-radius: 3px; line-height: 1.35; }
.at-gch label:hover { background: #eef3f9; }
.at-gch .at-gvide { color: #666; font-style: italic; padding: 4px 2px; }   /* point 119 : aucune grandeur reçue */
.at-gch label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-gch label::after { content: ''; flex: none; display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.at-gmenub { display: none; }
.at-cdroite { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.at-cdefil { flex: 1 1 260px; min-height: 220px; overflow-y: auto; overflow-x: hidden; border: 1px solid #dde3ea; background: #f7f9fc; }
.at-chart { position: relative; min-height: 100%; background: #f7f9fc; overflow: hidden; }
.at-cdefil .at-stats { border-top: 1px solid #dde3ea; background: #fff; }
.at-chart canvas { position: absolute; left: 0; top: 0; display: block; touch-action: pan-y; cursor: crosshair; }
.at-chart.at-charge::after { content: 'Chargement…'; position: absolute; right: 8px; top: 6px; padding: 2px 8px; border-radius: 3px; background: rgba(255,255,255,.9); color: #5b6878; font-size: 11px; }
.at-tip { position: absolute; z-index: 2; pointer-events: none; padding: 5px 8px; border: 1px solid #9fb0c3; border-radius: 3px; background: rgba(255,255,255,.96); box-shadow: 0 2px 6px rgba(0,0,0,.18); font-size: 12px; line-height: 1.45; white-space: nowrap; }
.at-tip > div { color: #1e3287; margin-bottom: 2px; }
.at-tip small { color: #5b6878; }
.at-cvide { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #5b6878; line-height: 1.45; }
.at-cvide[hidden] { display: none; }
.at-stats { flex: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 12px 8px; font-size: 12px; color: #3d4a5a; }
.at-stats span { border-left: 3px solid var(--c, #c5d2e3); padding-left: 6px; }
.at-stats b { font-weight: normal; color: var(--c); }
.at-stats .at-sn { color: #5b6878; }

/* Écran étroit (téléphone, mode application) */
.at-etroit .at-acc { padding: 12px 12px 18px; }
.at-etroit .at-hico { width: 52px; height: 52px; }
.at-etroit .at-hero h1 { font-size: 22px; }
.at-etroit .at-hero p { font-size: 13px; }
.at-etroit .at-jauges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.at-etroit .at-j { padding: 6px 4px 8px; border-radius: 8px; }
.at-etroit .at-jrun { min-height: 0; }
.at-etroit .at-run { font-size: 20px; }
.at-etroit .at-tete { padding: 6px 10px; }
.at-etroit .at-vin { font-size: 13px; }
.at-etroit .at-veh { font-size: 12px; }
.at-etroit .at-cbar { padding: 6px 8px 2px; }
.at-etroit .at-per { flex: 1; min-width: 0; }
.at-etroit .at-traj { flex: 1 1 100%; }
.at-etroit .at-ccorps, .appmode .at-ccorps { padding: 0 4px; }
.at-etroit .at-cdefil { min-height: 300px; }
/* Menu des courbes repliable : bouton « Courbes affichées (n) », panneau par-dessus le graphique */
.at-etroit .at-gmenub, .appmode .at-gmenub { display: inline-block; }
.at-etroit .at-gch, .appmode .at-gch { display: none; position: absolute; z-index: 5; left: 4px; top: 0; bottom: 0; width: 220px; max-width: calc(100% - 8px);
  box-shadow: 0 4px 14px rgba(0,0,0,.22); font-size: 13px; }
.at-etroit .at-gch.at-gouvert, .appmode .at-gch.at-gouvert { display: flex; }
.appmode .at-gch label { padding: 4px 2px; }
.at-etroit .at-stats { flex-direction: column; }
.appmode .at-tabs button { padding: 8px 22px; font-size: 14px; }
.appmode .at-tabs button.on { padding-top: 10px; }
.appmode .at-zoom .btn7 { min-width: 38px; min-height: 32px; }
/* Ator 1.2 : tension batterie et état « module connecté, voiture muette » */
.at-etat.at-mod i { background: #e8a23a; box-shadow: 0 0 6px #e8a23a; }
.at-etat.at-mod { white-space: normal; text-align: right; }
.at-muet .at-jkmh, .at-muet .at-jrpm, .at-muet .at-jcool, .at-muet .at-jrun { opacity: .45; filter: grayscale(1); }
.at-vavis { min-height: 15px; margin-top: -4px; font-size: 12px; color: #9fb0c3; text-align: center; }
.at-vfaible .at-vavis { color: #ff8a7a; }
.at-varret .at-vavis { color: #8fc0f2; }
.at-vcharge .at-vavis { color: #6fe39a; }
.at-vabsent .at-dial { opacity: .5; }
.at-sgris { border-left-color: #aab2bc !important; }
.at-etroit .at-jrun { grid-column: 1 / -1; }
.at-etroit .at-etat { font-size: 11px; max-width: 55%; }
/* Ator 1.3 : capteurs moteur (Direct) et onglet Carte */
.at-capteurs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 12px 6px; }
.at-capteurs[hidden] { display: none; }
.at-c { flex: 0 1 170px; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 7px 8px 8px; border-radius: 8px; background: linear-gradient(#26313e, #11171e); color: #e9eef4; box-shadow: 0 2px 6px rgba(0,0,0,.2); box-sizing: border-box; text-align: center; }
.at-c[hidden] { display: none; }
.at-c span { font-size: 11px; color: #b9c6d6; }
.at-c b { font: bold 20px "Segoe UI", Tahoma, sans-serif; margin-top: 2px; font-variant-numeric: tabular-nums; }
.at-c small { min-height: 14px; font-size: 11px; color: #f0b45a; }
.at-cmuet .at-c { opacity: .45; filter: grayscale(1); }
/* Point 313 : Direct à mémoire (âge discret de la dernière valeur, grisée quand elle est trop ancienne pour cette voiture) et,
   sur une liaison ancienne (ligne K), le moteur en avant : régime, température, tension, puis vitesse ; pression d'admission,
   rampe, richesse, charge, pédale avant les autres cases */
.at-age { display: block; font-style: normal; font-size: 11px; line-height: 1.2; letter-spacing: normal; text-transform: none; color: #8b97a5; margin-top: 1px; }
.at-vieux > b, .at-vieux .at-dval, .at-vieux .at-needle { opacity: .45; }
.at-ancienne .at-jrpm { order: 1; } .at-ancienne .at-jcool { order: 2; } .at-ancienne .at-jvolt { order: 3; } .at-ancienne .at-jkmh { order: 4; } .at-ancienne .at-jrun { order: 5; }
.at-ancienne .at-capteurs > .at-c { order: 10; }
.at-ancienne .at-c[data-c="map"] { order: 1; } .at-ancienne .at-c[data-c="rail"] { order: 2; } .at-ancienne .at-c[data-c="lambda"] { order: 3; }
.at-ancienne .at-c[data-c="load"] { order: 4; } .at-ancienne .at-c[data-c="pedale"] { order: 5; } .at-ancienne .at-c[data-c="papillon"] { order: 6; }
/* Ator 1.14 : voyants des états 0/1 du calculateur Renault (rouge = 1, vert = 0, gris = ancien) */
.at-etats { margin: 4px 12px 8px; padding: 8px 10px; border: 1px solid #d0d7e2; border-radius: 6px; background: #f7f9fc; }
.at-etitre { font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.at-etitre small { font-weight: 400; color: #667; margin-left: 6px; }
.at-egrille { display: flex; flex-wrap: wrap; gap: 6px; }
.at-evide { font-size: 12px; color: #667; font-style: italic; }
.at-ev { display: flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 12px; background: #fff; border: 1px solid #dde3ec; font: 12px/1.2 Consolas, monospace; }
.at-ev i { width: 12px; height: 12px; border-radius: 50%; background: #aaa; box-shadow: inset 0 -1px 2px rgba(0,0,0,.25); }
.at-e1 i { background: #e02424; box-shadow: 0 0 5px rgba(224,36,36,.7); }
.at-e0 i { background: #1e9e4a; box-shadow: 0 0 5px rgba(30,158,74,.55); }
.at-evieux { opacity: .55; }
.at-echange { outline: 2px solid #f0b400; }
/* Ator 1.17 : états regroupés par thème avec libellé, sens et identifiant ; grandeurs Renault ; test de la batterie */
.at-egrille { flex-direction: column; flex-wrap: nowrap; }
.at-eth { margin-bottom: 4px; }
.at-ethn { font-size: 11px; font-weight: 600; color: #3a4a5e; text-transform: uppercase; letter-spacing: .03em; margin: 2px 0 4px; }
.at-ethl { display: flex; flex-wrap: wrap; gap: 6px; }
.at-ev { font: 12px/1.25 "Segoe UI", Tahoma, sans-serif; max-width: 100%; flex-wrap: wrap; box-sizing: border-box; }
.at-ev i { flex: none; }
.at-ev .at-evn { min-width: 0; }
.at-ev em { font-style: normal; font-weight: 600; color: #1e395b; white-space: nowrap; }
.at-ev small { font: 10px Consolas, monospace; color: #8a94a3; white-space: nowrap; }
.at-renault .at-c { background: linear-gradient(#3b2a1e, #1b130d); }
.at-batt { margin: 4px 12px 8px; padding: 8px 10px; border: 1px solid #d0d7e2; border-radius: 6px; background: #f7f9fc; font-size: 12px; }
.at-batt[hidden] { display: none; }
.at-btitre { font-weight: 600; font-size: 13px; }
.at-btitre small { font-weight: 400; color: #667; margin-left: 6px; }
.at-bok { color: #1e7e3e; }
.at-bko { color: #c0281e; }
.at-bmoy { color: #a86400; }
.at-bval { margin-top: 3px; }
.at-btexte { margin-top: 3px; color: #445; }
/* Point 103 : module OBD testé par l'application 1.36 (onglet Direct) ; point 102 : VIN saisi à la main (en-tête) */
.at-module { margin: 4px 12px 8px; padding: 8px 10px; border: 1px solid #d0d7e2; border-radius: 6px; background: #f7f9fc; font-size: 12px; }
.at-module[hidden] { display: none; }
.at-mtests { margin-top: 5px; }
.at-mtests summary { cursor: pointer; color: #2a5d9c; }
.at-mtabw { overflow-x: auto; }
.at-mtab { border-collapse: collapse; margin-top: 4px; min-width: 100%; }
.at-mtab th, .at-mtab td { text-align: left; padding: 2px 10px 2px 0; border-bottom: 1px solid #e3e8ef; white-space: nowrap; }
.at-mtab th { font-weight: 600; color: #556; }
.at-mcode { font-family: Consolas, "Courier New", monospace; }
.at-mko td { color: #c0281e; }
.at-mabs { margin: 2px 0 0 18px; padding: 0; }
.at-vsaisi { margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: #fff3cd; color: #7a5200; font-size: 12px; }
.at-vsaisi[hidden] { display: none; }
/* Point 140 : véhicule d'exemple (bandeau de la page, lien de l'accueil) */
.at-exemple { margin: 6px 0 2px; padding: 5px 10px; border: 1px solid #e3c766; border-radius: 3px; background: #fff8dc; color: #5c4400; font-size: 13px; }
.at-exemple[hidden] { display: none; }
/* Point 299 : « Ce que cette voiture sait donner » (sous l'en-tête du véhicule, replié par défaut) */
.at-fvoit { flex: none; margin: 6px 8px 2px; border: 1px solid #c9d6e4; border-radius: 3px; background: #f7fafd; color: #1b2430; font-size: 13px; }
.at-fvoit[hidden] { display: none; }
.at-fvoit > summary { cursor: pointer; padding: 5px 10px; line-height: 1.4; }
.at-fvoit > summary b { color: #1e3287; font-weight: bold; }
.at-fvr { color: #4d5a6a; }
.at-fvc { max-height: 45vh; overflow: auto; padding: 0 10px 8px; border-top: 1px solid #dde5ee; }
.at-fvb { margin-top: 6px; }
.at-fvb > b { color: #2d3a4a; }
.at-fvb ul { margin: 2px 0 0; padding-left: 20px; }
.at-fvb li { margin: 1px 0; }
.at-fvd { margin-top: 8px; }
.at-fvd > summary { cursor: pointer; color: #2d5a87; }
.at-fvst { margin: 8px 0 2px; font-weight: bold; color: #2d3a4a; }
.at-fvt { border-collapse: collapse; margin: 4px 0; font-size: 12px; }
.at-fvt th, .at-fvt td { text-align: left; padding: 2px 8px 2px 0; border-bottom: 1px solid #e1e7ee; vertical-align: top; }
.at-fvt td:first-child { color: #4d5a6a; }
.at-fvd { overflow-x: auto; }
.at-exl { margin: 6px 0 0; font-size: 13px; }
.at-pcarte { flex-direction: row; min-height: 0; }
.at-tcol { flex: none; width: 250px; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #c5d2e3; background: #f5f8fc; }
.at-tlist { flex: 1; min-height: 0; overflow: auto; padding: 4px; box-sizing: border-box; }
.at-ti { display: block; width: 100%; text-align: left; margin: 0 0 4px; padding: 6px 8px; border: 1px solid #d3dde9; border-radius: 4px; background: #fff; font: inherit; color: #1e395b; cursor: pointer; }
.at-ti:hover { background: #eef5fd; border-color: #9fbbe0; }
.at-ti.on { background: #dcebfb; border-color: #5d8fd0; box-shadow: inset 3px 0 0 #2a7fd4; }
.at-ti b { display: block; font-weight: normal; color: #1e3287; }
.at-ti em { font-style: normal; font-size: 11px; color: #fff; background: #3a9a5a; border-radius: 3px; padding: 0 4px; }
.at-ti span { display: block; font-size: 12px; color: #4d5a6a; }
.at-ti i { color: #a05a10; }
/* Point 309 : séance moteur tournant à l'arrêt dans la liste des trajets (rien à tracer : pas cliquable) */
.at-tarret .at-tia { cursor: default; background: #f6f8fb; border-style: dashed; border-radius: 4px; }
.at-tarret .at-tia:hover { background: #f6f8fb; border-color: #d3dde9; }
.at-tarret .at-tia em { background: #6b7a8c; }
.at-tvide { margin: 10px; color: #5b6878; }
.at-mapbox { position: relative; flex: 1; min-width: 0; min-height: 0; }
.at-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #dfe6ee; }
.at-fond { position: absolute; top: 8px; right: 8px; z-index: 500; max-width: 46%; }
.at-leg { position: absolute; left: 10px; bottom: 22px; z-index: 500; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 11px; color: #2d3a4a; }
.at-leg[hidden] { display: none; }
.at-leg i { display: inline-block; width: 110px; height: 8px; border-radius: 4px; }
.at-mmsg { position: absolute; left: 50%; top: 50%; z-index: 600; transform: translate(-50%, -50%); max-width: 80%; padding: 10px 16px; border-radius: 6px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.25); color: #2d3a4a; text-align: center; }
.at-mmsg[hidden], .at-mtip[hidden] { display: none; }
.at-mtip { position: absolute; z-index: 700; pointer-events: none; padding: 5px 8px; border: 1px solid #9fb0c3; border-radius: 4px; background: rgba(255,255,255,.97); box-shadow: 0 2px 6px rgba(0,0,0,.2); font-size: 12px; line-height: 1.45; color: #2d3a4a; max-width: 260px; }
.at-etroit .at-pcarte { flex-direction: column; }
.at-etroit .at-tcol { width: auto; border-right: 0; border-bottom: 1px solid #c5d2e3; }
.at-etroit .at-tlist { flex: none; max-height: 132px; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; }
.at-etroit .at-ti { flex: none; width: 168px; margin: 0; }
.at-etroit .at-mapbox { flex: 1 1 300px; }
.at-etroit .at-c { flex-basis: 30%; }
.at-etroit .at-c b { font-size: 17px; }
/* Ator : relecture d'un trajet et cercle de l'accéléromètre (onglet Carte) */
.at-lect { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 650; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.at-lect[hidden], .at-accel[hidden], .at-pval[hidden], .at-lsuivre[hidden] { display: none; }
.at-lect .btn7 { min-width: 32px; padding-left: 6px; padding-right: 6px; }
.at-lpos { flex: 1; min-width: 60px; }
.at-lheure { font-variant-numeric: tabular-nums; color: #2d3a4a; min-width: 58px; text-align: center; }
.at-lsuivre { font-weight: bold; color: #1e3287; }
.at-mapbox .at-leg { bottom: 70px; }
.at-voit { width: 22px; height: 22px; }
.at-voit i { display: block; width: 14px; height: 14px; margin: 1px; border-radius: 50%; background: #111; border: 3px solid #fff; box-shadow: 0 0 0 2px #111, 0 2px 6px rgba(0,0,0,.5); }
.at-pval { position: absolute; left: 54px; top: 8px; z-index: 640; max-width: 300px; padding: 5px 8px; border-radius: 4px; background: rgba(255,255,255,.95); box-shadow: 0 1px 5px rgba(0,0,0,.22); font-size: 12px; line-height: 1.45; color: #2d3a4a; }
.at-accel { position: absolute; right: 10px; top: 44px; z-index: 640; display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; width: 214px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.75); box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.at-accel canvas { width: 180px; height: 180px; display: block; }
.at-accz { position: relative; width: 18px; border: 1px solid #aab4c0; border-radius: 3px; background: #fff; }
.at-accz::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #8e9cad; }
.at-accz i { position: absolute; left: 3px; right: 3px; top: 50%; height: 0; background: #3a7bd5; border-radius: 2px; }
.at-accz span { position: absolute; left: 0; right: 0; bottom: 1px; font-size: 9px; text-align: center; color: #5b6878; }
.at-acct { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: #2d3a4a; }
.at-acct label { white-space: nowrap; cursor: pointer; }
.at-etroit .at-lect { left: 4px; right: 4px; bottom: 18px; gap: 4px; padding: 4px; flex-wrap: wrap; }
.at-etroit .at-lpos { order: 5; flex-basis: 100%; }
.at-etroit .at-lheure { min-width: 0; font-size: 12px; }
.at-etroit .at-mapbox .at-leg { bottom: 92px; left: 4px; }
.at-etroit .at-accel { top: auto; bottom: 92px; right: 4px; width: 140px; padding: 4px; }
.at-etroit .at-accel canvas { width: 112px; height: 112px; }
.at-etroit .at-accz { width: 14px; }
.at-etroit .at-acct { font-size: 10px; flex-wrap: wrap; }
.at-etroit .at-pval { left: 50px; right: 4px; max-width: none; font-size: 11px; padding: 3px 6px; }
.appmode .at-lect .btn7 { min-height: 34px; min-width: 40px; }
.at-etroit .at-pval { top: 44px; }
.at-etroit .at-mapbox .at-leg { font-size: 10px; padding: 3px 6px; }
.at-etroit .at-mapbox .at-leg i { width: 60px; }
/* Ator : plusieurs trajets sur la carte (cases à cocher, superposer, aller-retour) */
.at-tbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 5px 6px; border-bottom: 1px solid #d3dde9; background: #eaf1f9; font-size: 12px; color: #2d3a4a; }
.at-tnb { flex: 1 1 100%; }
.at-tbtn { display: flex; flex-wrap: wrap; gap: 4px; }
.at-tbar .btn7 { min-width: 0; padding-left: 8px; padding-right: 8px; }
.at-tbar .btn7.on { background: #dcebfb; border-color: #2a7fd4; color: #1e3287; font-weight: bold; }
.at-tbar.vide .at-tbtn { display: none; }
.at-tbar.vide .at-tnb { color: #5b6878; }
.at-tinfo, .at-mwarn { padding: 4px 7px; border: 1px solid #e0c060; border-radius: 4px; background: #fff3cd; color: #6a4a00; }
.at-tinfo { flex: 1 1 100%; }
.at-tfus { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 6px; border-bottom: 1px solid #d3dde9; background: #f6f9fc; }
.at-tfus[hidden], .at-tfus .btn7[hidden] { display: none; }
.at-tfus .btn7 { min-width: 0; padding-left: 8px; padding-right: 8px; }
.at-tinfo[hidden] { display: none; }
.at-trow { display: flex; align-items: stretch; margin: 0 0 4px; }
.at-trow .at-ti { flex: 1; min-width: 0; margin: 0; border-radius: 0 4px 4px 0; }
.at-tck { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; border: 1px solid #d3dde9; border-right: 0; border-radius: 4px 0 0 4px; background: #fff; cursor: pointer; }
.at-tck:hover { background: #eef5fd; }
.at-tck input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--c, #2a7fd4); }
.at-trow.ck .at-tck { box-shadow: inset 5px 0 0 var(--c); }
.at-trow.vu .at-ti { border-color: var(--c); box-shadow: inset 0 -3px 0 var(--c); }
.appmode .at-tck, .at-etroit .at-tck { width: 44px; }
.appmode .at-tck input, .at-etroit .at-tck input { width: 22px; height: 22px; }
.at-etroit .at-tlist .at-trow { flex: none; width: 210px; margin: 0; }
.at-etroit .at-trow .at-ti { flex: 1; width: auto; }
.at-etroit .at-tbar { padding: 4px; }
.at-etroit .at-tnb { flex: 1 1 auto; }
.at-lgris .btn7, .at-lgris input, .at-lgris select { opacity: .45; cursor: not-allowed; }
.at-lnote { font-size: 12px; color: #5b6878; white-space: nowrap; }
.at-lnote[hidden] { display: none; }
.at-etroit .at-lnote { order: 6; flex-basis: 100%; text-align: center; font-size: 11px; }
.at-mleg { position: absolute; left: 54px; top: 8px; z-index: 645; display: flex; flex-direction: column; width: 340px; max-width: calc(100% - 64px); max-height: calc(100% - 92px); box-sizing: border-box; border-radius: 6px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 12px; color: #2d3a4a; }
.at-mleg[hidden] { display: none; }
.at-mleg.ferme { width: auto; }
.at-mlegt { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 5px 10px; border: 0; background: none; font: inherit; font-weight: bold; color: #1e3287; text-align: left; cursor: pointer; }
.at-mlegt i { font-style: normal; color: #5b6878; }
.at-mlegc { overflow: auto; padding: 0 8px 8px; }
.at-mleg.ferme .at-mlegc { display: none; }
.at-mrow { display: grid; grid-template-columns: 22px 1fr; column-gap: 7px; width: 100%; margin: 0 0 2px; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.at-mrow i { grid-row: span 2; align-self: center; height: 5px; border-radius: 3px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.15); }
.at-mrow b { font-weight: normal; color: #1e3287; }
.at-mrow em { font-style: normal; font-size: 10px; color: #fff; background: #3a9a5a; border-radius: 3px; padding: 0 4px; }
.at-mrow span { font-size: 11px; color: #4d5a6a; }
.at-mrow:hover { background: #eef5fd; }
.at-mrow.on { background: #dcebfb; border-color: #5d8fd0; }
.at-mmise .at-mrow:not(.on) { opacity: .55; }
.at-mcmp { width: 100%; margin: 6px 0 2px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.at-mcmp th, .at-mcmp td { padding: 3px 4px; border-bottom: 1px solid #e3e9f1; text-align: right; white-space: nowrap; vertical-align: top; }
.at-mcmp td small { display: block; margin: 0; color: #6b7888; }
.at-mcmp th:first-child { text-align: left; font-weight: normal; color: #5b6878; }
.at-mcmp tr:first-child th { color: #1e3287; }
.at-mcmp th i, .at-mtt i { display: inline-block; width: 14px; height: 5px; margin-right: 4px; border-radius: 3px; vertical-align: middle; }
.at-mlegc p { margin: 6px 0 0; }
.at-mlegc small { display: block; margin-top: 6px; color: #6b7888; }
.at-mbadge b { display: block; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: bold 11px/20px "Segoe UI", Tahoma, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.45); }
.at-fl svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.at-etroit .at-lgris .at-lpos { display: none; }
.at-etroit .at-mleg { left: 50px; right: 4px; top: 44px; width: auto; max-width: none; max-height: calc(100% - 150px); }
.at-etroit .at-mleg.ferme { right: auto; }
.at-etroit .at-mcmp th, .at-etroit .at-mcmp td { padding: 2px 3px; font-size: 11px; }
/* Ator, point 339 : tours de circuit sous la carte (seulement pour un trajet qui en a) */
.at-pcarte.at-avtours:not([hidden]) { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: minmax(220px, 1fr) auto; }
.at-pcarte.at-avtours .at-tcol { grid-row: 1 / span 2; grid-column: 1; }
.at-pcarte.at-avtours .at-mapbox { grid-row: 1; grid-column: 2; }
.at-tours { grid-row: 2; grid-column: 2; max-height: 40vh; overflow: auto; border-top: 1px solid #c5d2e3; background: #f5f8fc; font-size: 12px; color: #2d3a4a; }
.at-tours[hidden], .at-trcourbes[hidden], .at-trquit[hidden] { display: none; }
.at-trhead { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 8px; border-bottom: 1px solid #d3dde9; background: #eaf1f9; }
.at-trhead b { color: #1e3287; font-size: 13px; }
.at-trres { flex: 1; color: #4d5a6a; }
.at-trquit { min-width: 0; padding-left: 8px; padding-right: 8px; }
.at-trcorps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 6px 8px 0; }
.at-trtab { flex: 0 1 440px; min-width: 0; overflow-x: auto; }
.at-trt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: #fff; border: 1px solid #d3dde9; }
.at-trt th { padding: 3px 5px; border-bottom: 1px solid #c5d2e3; background: #f0f4f9; color: #4d5a6a; font-weight: normal; text-align: right; white-space: nowrap; }
.at-trt td { padding: 2px 5px; border-bottom: 1px solid #e6ecf3; text-align: right; white-space: nowrap; vertical-align: middle; }
.at-trt th:nth-child(2), .at-trt td:nth-child(2) { text-align: left; white-space: normal; }
.at-trt th:first-child, .at-trt td:first-child { width: 26px; padding: 0 2px 0 6px; text-align: center; }
.at-trt td:nth-child(2) b { font-weight: normal; color: #1e3287; white-space: nowrap; }
.at-trt td small { font-size: 10px; color: #6b7888; }
.at-trt td:nth-child(2) small { white-space: nowrap; }
.at-trt td:nth-child(n+5) small { margin-left: 2px; }
.at-trt input { width: 17px; height: 17px; margin: 0; vertical-align: middle; cursor: pointer; accent-color: var(--c, #2a7fd4); }
.at-trt tr.ck td:first-child { box-shadow: inset 4px 0 0 var(--c); }
.at-trt tr.ck td { background: #f2f7fd; }
.at-trt tr.at-trm td:nth-child(3) { font-weight: bold; color: #1e3287; }
.at-trt tr.at-trx td { color: #6b7888; background: #fafbfd; }
.at-trstar { font-style: normal; color: #c98a00; }
.at-trbest { display: inline-block; padding: 0 4px; border-radius: 3px; background: #2e7d4a; color: #fff; font-size: 10px; }
.at-trcourbes { flex: 1 1 360px; min-width: 0; }
.at-trcv { display: block; width: 100%; height: 200px; touch-action: pan-y; cursor: crosshair; background: #fff; border: 1px solid #d3dde9; box-sizing: border-box; }
.at-trval { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 36px; box-sizing: border-box; padding: 4px 2px; font-variant-numeric: tabular-nums; }
.at-trval i, .at-trvleg i { display: inline-block; width: 14px; height: 5px; margin-right: 4px; border-radius: 3px; vertical-align: middle; }
.at-trvleg { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.at-trvaide { color: #6b7888; }
.at-trecart { color: #1e3287; font-weight: bold; }
.at-trnote { margin: 4px 8px 8px; font-size: 11px; color: #5b6878; }
.at-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* téléphone : la page de la carte défile (liste, carte de hauteur fixe, tours et courbes) */
.at-etroit .at-pcarte.at-avtours:not([hidden]) { display: flex; flex-direction: column; overflow-y: auto; }
.at-etroit .at-pcarte.at-avtours .at-tcol { flex: none; }
.at-etroit .at-pcarte.at-avtours .at-mapbox { flex: none; height: 360px; }
.at-etroit .at-tours { flex: none; max-height: none; overflow: visible; }
.at-etroit .at-trcorps { padding: 4px 4px 0; }
.at-etroit .at-trtab, .at-etroit .at-trcourbes { flex: 1 1 100%; }
.at-etroit .at-trt th, .at-etroit .at-trt td { padding: 3px 3px; }
.at-etroit .at-trt td:nth-child(n+5) small { display: block; margin: 0; }
.at-etroit .at-trt td:nth-child(2) small { display: block; }
.at-etroit .at-trcv { height: 226px; }
.at-etroit .at-trval { min-height: 58px; }
.appmode .at-trt input, .at-etroit .at-trt input { width: 22px; height: 22px; }
/* Ator 1.5 : codes défaut (recherche, page d'un code, onglet Défauts) */
.at-codev { flex: 1; min-height: 0; overflow: auto; background: linear-gradient(#eef3f9, #fff 220px); }
.at-codev[hidden], .at-pdefauts[hidden] { display: none; }
.at-cres { margin-top: 6px; }
.at-clist { list-style: none; margin: 4px 0 0; padding: 0; max-height: 320px; overflow: auto; border: 1px solid #dde3ea; border-radius: 3px; background: #fff; }
.at-clist li { padding: 4px 8px; border-bottom: 1px solid #eef2f6; }
.at-clist li:last-child { border-bottom: 0; }
.at-clien { text-decoration: none; }
.at-clien code { font: bold 13px Consolas, "Courier New", monospace; color: #1e3287; background: #eef3fb; border: 1px solid #c5d2e3; border-radius: 3px; padding: 0 4px; }
.at-clien:hover code { background: #dcebfb; border-color: #7da2ce; }
.at-clib { color: #2d3a4a; }
.at-cpage h1 { margin: 6px 0 12px; font-size: 22px; font-weight: normal; color: #1e3287; }
.at-cpage h1 code { font: bold 24px Consolas, "Courier New", monospace; margin-right: 8px; }
.at-cpage h1 span { display: inline; }
.at-cpage .at-box ul { margin: 4px 0 8px; padding-left: 20px; }
.at-cnav { margin: 0 0 4px; }
.at-csrc { margin-top: 12px; }
.at-pdefauts { overflow: auto; }
.at-dliste { max-width: 900px; padding: 10px 14px 18px; box-sizing: border-box; }
.at-dl { margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dde3ea; border-left: 4px solid #d0453a; border-radius: 4px; background: #fff; }
.at-dl.at-dok { border-left-color: #3a9a5a; }
.at-dl.at-deff { border-left-color: #8e9cad; background: #f7f9fc; }
/* 1.24 : autres calculateurs (onglet Défauts) et comparaison du test de la batterie */
.at-dsec { margin: 14px 0 6px; font-size: 15px; color: #1c2a3a; }
.at-dcalc { margin: 0 0 12px; }
.at-dcalc h4 { margin: 8px 0 4px; font-size: 13px; color: #2c3e50; }
.at-dcalc h4 small, .at-dl small { font-weight: normal; color: #6b7785; }
.at-dl.at-dancien { opacity: .75; }
.at-dl.at-dincomplet { border-left-style: dashed; }   /* point 57 : liste des défauts incomplète (réponse tronquée) */
.at-dplus { color: #8a5a00; font-size: 12px; margin-left: 4px; }
.at-dl code { font-family: Consolas, monospace; font-weight: bold; color: #1565c0; }
.at-dinterp { color: #4d5a6a; font-size: 12px; }
.at-bref { margin-top: 6px; font-size: 12px; color: #4d5a6a; }
.at-bref.at-bcontra { color: #8a4b00; background: #fff3e0; padding: 4px 6px; border-radius: 3px; }
.at-ddate { display: inline-block; min-width: 130px; margin-right: 10px; color: #5b6878; font-variant-numeric: tabular-nums; }
.at-dl ul { list-style: none; margin: 6px 0 0; padding: 0; }
.at-dl li { margin: 3px 0; }
.at-dl em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 3px; background: #eef2f7; color: #4d5a6a; white-space: nowrap; }
.at-dl em.at-dt-permanent { background: #fde4e1; color: #a0281c; }
.at-dl em.at-dt-attente { background: #fff3d6; color: #8a5a00; }
/* point 63 : défauts actifs, défauts anciens (mémorisés, pas présents : à part et en gris) ; résumé en tête des autres calculateurs */
.at-dl em.at-dtc-present { background: #fde4e1; color: #a0281c; }
.at-dl em.at-dtc-intermittent { background: #fff3d6; color: #8a5a00; }
.at-dl em.at-dtc-ancien { background: #eceff3; color: #6b7785; }
.at-dl.at-dlanciens { border-left-color: #a3adb9; }
.at-dl li.at-dold, .at-dl li.at-dold code { color: #6b7785; }
.at-dl li.at-dold .at-clien code { color: #6b7785; background: #f3f5f8; border-color: #dde3ea; }
.at-dold-t { margin: 8px 0 0; font-size: 12px; font-weight: bold; color: #6b7785; }
/* point 298 : onglet Défauts, conditions au moment du défaut, contrôles antipollution (contrôle technique), sondes à oxygène */
.at-ap { margin: 4px 0 0; }
.at-ap-bloc { display: block; word-wrap: break-word; overflow-wrap: anywhere; }
.at-ap-bloc.at-ap-reste { border-left-color: #e0a030; }
.at-ap-intro { margin: 6px 0 2px; color: #2d3a4a; }
.at-dl ul.at-ap-liste { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 16px; }
.at-ap-liste li { margin: 2px 0; }
.at-ap-nom { color: #4d5a6a; }
.at-ap-att { color: #8a5a00; }
.at-ap-conseil { margin: 8px 0 0; padding: 6px 8px; border-radius: 3px; background: #f1f5fa; color: #2d3a4a; font-size: 12px; line-height: 1.45; }
.at-ap-sondes { border-collapse: collapse; width: 100%; margin: 6px 0 0; font-size: 12px; table-layout: fixed; }
.at-ap-sondes th, .at-ap-sondes td { text-align: left; padding: 2px 4px; border-bottom: 1px solid #e1e7ee; vertical-align: top; word-wrap: break-word; overflow-wrap: anywhere; }
.at-ap-sondes th:nth-child(1), .at-ap-sondes td:nth-child(1) { width: 50px; }
.at-ap-sondes th:nth-child(5), .at-ap-sondes td:nth-child(5) { width: 26px; text-align: center; }
.at-ap-sondes th:nth-child(3), .at-ap-sondes td:nth-child(3) { width: 64px; }
.at-ap-sondes th:nth-child(4), .at-ap-sondes td:nth-child(4) { width: 92px; }
.at-dresume { margin: 6px 0 12px; padding: 8px 12px; border: 1px solid #dde3ea; border-radius: 4px; background: #f1f3f6; color: #2d3a4a; line-height: 1.45; }
.at-dresume b { display: block; }
.at-dresume.at-dresume-actif { background: #fff3e0; border-color: #f0cf9a; color: #8a4b00; }
.at-drevenu { color: #8a4b00; font-size: 12px; font-weight: bold; }   /* point 63 : lu après un effacement fait par Ator : revenu */
.at-dvide { margin: 20px auto; max-width: 520px; padding: 16px; text-align: center; color: #4d5a6a; line-height: 1.5; border: 1px dashed #c5d2e3; border-radius: 6px; background: #fff; }
.at-etroit .at-ddate { display: block; min-width: 0; margin: 0 0 2px; }
.at-etroit .at-dliste { padding: 8px; }
.at-etroit .at-cpage h1 { font-size: 18px; }
.at-etroit .at-tabs button { padding-left: 10px; padding-right: 10px; }
.at-codein.txt7 { flex: 1; min-width: 0; height: 30px; box-sizing: border-box; font-size: 14px; padding: 0 8px; }
.at-cform .at-fl .btn7 { min-width: 90px; }
/* Ator : catalogue des codes défaut par catégorie (/ator/codes) */
.at-catv { flex: 1; min-height: 0; overflow: auto; background: linear-gradient(#eef3f9, #fff 220px); }
.at-catv[hidden] { display: none; }
.at-compv { flex: 1; min-height: 0; overflow: auto; background: linear-gradient(#eef3f9, #fff 220px); }   /* point 105 */
.at-compv[hidden] { display: none; }
.at-cplus { margin: 8px 0 0; }
.at-cpage h1 small, .at-cath small { font-size: 13px; color: #5b6878; margin-left: 6px; }
.at-cath { font-size: 16px; font-weight: normal; color: #1e3287; margin: 18px 0 8px; }
.at-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.at-cat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid #c5d2e3; border-radius: 5px; background: #fff; color: #1e395b; text-decoration: none; box-shadow: 0 1px 3px rgba(30,60,100,.06); }
.at-cat:hover { border-color: #7da2ce; background: #f3f8fe; }
.at-cat b { font-weight: normal; font-size: 14px; color: #1e3287; }
.at-catn { font-weight: bold; font-size: 13px; color: #2d3a4a; }
.at-cat small { color: #5b6878; line-height: 1.35; }
.at-clong { max-height: none; }
.at-cpage-n { margin: 8px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.at-etroit .at-cats { grid-template-columns: 1fr; }
/* Point 105 : « Ma voiture est-elle compatible ? » (/ator/compatible) et ligne « Même type de voiture » de l'en-tête */
.at-compa { margin: 10px 0 0; padding: 10px 14px; border: 1px solid #b9c9dc; border-radius: 4px; background: #f3f8fe; }
.at-compa a { color: #1e395b; text-decoration: none; }
.at-compa a b { color: #1e3287; font-weight: normal; font-size: 15px; margin-right: 6px; }
.at-compa a:hover { text-decoration: underline; }
.at-cmpfl { flex-wrap: wrap; }
.at-cmpfl .sel7 { flex: 1 1 150px; min-width: 0; }
.at-cmpfl .at-cmpa { flex: 0 1 90px; width: 90px; }
.at-cmpres { margin: 10px 0; }
.at-cmpc { margin: 0 0 12px; padding-bottom: 12px; }
.at-cmpc h2 { font-size: 17px; }
.at-cmpc h2 small { font-size: 13px; color: #5b6878; margin-left: 6px; }
.at-cmpc h3 { font-size: 14px; font-weight: normal; color: #1e3287; margin: 12px 0 4px; border-top: 1px solid #e4e9ef; padding-top: 8px; }
.at-cmpn { margin: 4px 0 6px; }
.at-cmpl { list-style: none; margin: 0; padding: 0; }
.at-cmpl li { margin: 3px 0; padding-left: 26px; position: relative; }
.at-cmpl li > span { position: absolute; left: 0; top: 0; width: 22px; text-align: center; }
.at-cmpl li small { color: #5b6878; margin-left: 4px; }
.at-cmpl li.at-cmp0 { color: #7a8796; }
.at-cmpd { color: #4d5a6a; font-size: 12px; }
.at-cmpm2, .at-cmpko2 { margin: 2px 0 4px; padding-left: 20px; }
.at-cmpm2 li, .at-cmpko2 li { margin: 3px 0; }
.at-cmpm2 small { color: #5b6878; }
.at-cmpko2 li { color: #6b3a2f; }
.at-cmpstore { margin-top: 14px; }
.at-compl { display: block; flex: 1 1 100%; min-width: 0; color: #a9b8c8; font-size: 11px; margin-top: 1px; }
.at-compl a { color: #bcd7f5; }
/* Ator, point 81 : codes des constructeurs (page d'un code, catalogue par marque et par calculateur) */
.at-cmq h3.at-cmqm, .at-cmqcat h3.at-cmqm, .at-cresm h3.at-cmqm { font-size: 14px; color: #1e3287; margin: 14px 0 6px; }
.at-csig { border-left: 3px solid #c5d2e3; padding: 4px 10px; margin: 6px 0; }
.at-csig p { margin: 2px 0; }
.at-csig ul { margin: 2px 0 4px; padding-left: 20px; }
.at-cvotre { border-left-color: #1e5fb4; background: #f3f8fe; }
.at-csigl { font-weight: bold; color: #2d3a4a; }
.at-csigp { color: #5b6878; }
.at-cmqc { color: #5b6878; }
.at-ctitre { font-size: .75em; color: #2d3a4a; }
/* Ator : onglet Debug (traces des échanges OBD) */
.at-pdebug { flex-direction: row; min-height: 0; }
.at-pdebug[hidden] { display: none; }
.at-glist { flex: none; width: 230px; overflow: auto; border-right: 1px solid #c5d2e3; background: #f5f8fc; padding: 4px; box-sizing: border-box; }
.at-gvue { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.at-gbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; border-bottom: 1px solid #dde3ea; background: #f7f9fc; }
.at-gfiltre.txt7 { width: 200px; max-width: 100%; height: 26px; box-sizing: border-box; padding: 0 6px; }
.at-gbar label { white-space: nowrap; cursor: pointer; }
.at-gtel { text-decoration: none; color: inherit; display: inline-block; line-height: 20px; }
.at-gtel[hidden] { display: none; }
.at-ginfo { color: #5b6878; font-size: 12px; }
.at-gtexte { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 4px 0; background: #fff; font: 12px/1.5 Consolas, "Courier New", monospace; color: #2d3a4a; }
.at-gl { padding: 0 8px; white-space: pre-wrap; word-break: break-word; }
.at-gh { color: #8a96a3; }
.at-gq { color: #1e5fb4; font-weight: bold; }
.at-gms { color: #8a96a3; }
.at-gr { color: #2e7d32; }
.at-g-mes { color: #7a8796; }
.at-g-acoup { background: #d0453a; color: #fff; font-weight: bold; }
.at-g-acoup .at-gh { color: #ffe0dc; }
.at-g-acoupb { background: #fde4e1; }
.at-g-acoup.at-g-vu { outline: 3px solid #ffb300; outline-offset: -3px; }
.at-g-bus { background: #e3effb; color: #1e3287; font-weight: bold; }
.at-g-regl { background: #fff3d6; color: #6b4a00; font-weight: bold; }
.at-g-titre { color: #6b3fa0; font-weight: bold; }
.at-g-tete { color: #8a96a3; font-style: italic; }
.at-etroit .at-pdebug { flex-direction: column; }
.at-etroit .at-glist { width: auto; max-height: 110px; border-right: 0; border-bottom: 1px solid #c5d2e3; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; }
.at-etroit .at-glist .at-ti { flex: none; width: 168px; margin: 0; }
.at-etroit .at-gfiltre.txt7 { width: 100%; }
.at-etroit .at-gtexte { font-size: 11px; }
/* Ator 1.7 : capteurs du téléphone (Direct, carte) */
.at-cfl { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; fill: #ffb05a; transition: transform .6s ease-out; }
.at-c[data-c="cap"] b em { font-style: normal; }
.at-sigb { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; vertical-align: -2px; margin-left: 4px; }
.at-sigb i { display: inline-block; width: 4px; background: #c5d2e3; border-radius: 1px; opacity: .45; }
.at-sigb i.on { background: currentColor; opacity: 1; }
.at-c .at-sigb i.on { background: #e9eef4; }
.at-voit .at-vfl { position: absolute; left: 3px; top: -9px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #111; transform-origin: 8px 20px; }
.at-voit i { position: relative; }
.at-rnom { border-bottom: 4px solid #9aa4b0; padding: 0 2px; }

/* ==========================================================================
   ConsoTrack (os/consotrack.js) : suivi gaz / électricité / eau. Préfixe ct-.
   ========================================================================== */
.ct-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: #222; }
.ct-root:focus { outline: none; }
.ct-tabs { flex: none; display: flex; gap: 2px; padding: 6px 8px 0; background: linear-gradient(#f6f9fc, #e7eef7); border-bottom: 1px solid #a9bcd3; }
.ct-tabs button { position: relative; top: 1px; padding: 4px 16px; border: 1px solid #a9bcd3; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#f3f6fa, #dde6f0); font: inherit; color: #1e395b; cursor: pointer; }
.ct-tabs button:hover { background: linear-gradient(#fafdff, #e3effb); }
.ct-tabs button.on { background: #fff; padding-top: 6px; margin-top: -2px; border-bottom: 1px solid #fff; color: #1e3287; }
.ct-fluides { flex: none; display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #c5d2e3; background: #f7f9fc; flex-wrap: wrap; }
.ct-fl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid #b7c5d6; border-radius: 14px; background: linear-gradient(#fbfdff, #eaf1f8); font: inherit; color: #333; cursor: pointer; }
.ct-fl i { width: 11px; height: 11px; border-radius: 50%; background: var(--fl); border: 1px solid rgba(0,0,0,.2); }
.ct-fl small { color: #6a7686; }
.ct-fl:hover { background: linear-gradient(#ffffff, #e3effb); }
.ct-fl.on { border-color: var(--fl); background: #fff; box-shadow: inset 0 0 0 1px var(--fl); color: #1e3287; }
.ct-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ct-pane[hidden] { display: none; }
.ct-addbar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #dde3ea; background: #fbfcfe; flex-wrap: wrap; }
.ct-addbar .ct-new { padding: 4px 16px; }
.ct-unit-note { color: #6a7686; font-size: 12px; }
.ct-lh { flex: none; display: flex; align-items: center; gap: 6px; color: #1e395b; padding: 8px 14px 6px; border-bottom: 1px solid #eef2f6; }
.ct-lh small { color: #6a7686; }
.ct-list { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; }
.ct-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; max-width: 760px; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; color: #222; text-align: left; cursor: pointer; }
.ct-row:hover, .ct-row:focus-visible { border-color: #b8d6fb; background: linear-gradient(#fafdff, #e8f3fe); outline: none; }
.ct-rd { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; }
.ct-rd small { color: #8a94a2; font-size: 11px; }
.ct-rv { min-width: 0; font-weight: bold; color: #1e3287; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-rv small { display: block; font-weight: normal; color: #5b6878; font-size: 11px; }
.ct-rv .ct-rnote { display: block; font-weight: normal; font-style: italic; color: #8a7a4a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.ct-rx { text-align: right; color: #6a7686; font-size: 12px; white-space: nowrap; }
.ct-rx small { display: block; font-size: 10px; }
.ct-rx.ct-up { color: #1e3287; }
.ct-rx.ct-down { color: #c0392b; }
.ct-none { padding: 24px 12px; text-align: center; color: #777; line-height: 1.5; }
.ct-pstats { padding: 8px 12px 8px; gap: 8px; }
.ct-ctrl { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ct-vues { display: inline-flex; border: 1px solid #b7c5d6; border-radius: 4px; overflow: hidden; }
.ct-vue { padding: 4px 14px; border: 0; border-right: 1px solid #c5d2e3; background: linear-gradient(#fbfdff, #e9f0f7); font: inherit; color: #1e395b; cursor: pointer; }
.ct-vue:last-child { border-right: 0; }
.ct-vue:hover { background: linear-gradient(#ffffff, #e3effb); }
.ct-vue.on { background: #2b6fc0; color: #fff; }
.ct-reg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #333; }
.ct-reg[hidden] { display: none; }
.ct-regl { color: #1e395b; }
.ct-regc { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ct-regc i { width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(0,0,0,.2); }
.ct-chart { position: relative; flex: 1 0 200px; min-height: 160px; border: 1px solid #dde3ea; background: #fff; overflow: hidden; }
.ct-chart canvas { position: absolute; left: 0; top: 0; display: block; touch-action: manipulation; }
.ct-tip { position: absolute; z-index: 2; pointer-events: none; padding: 4px 8px; background: #fffff0; border: 1px solid #767676; box-shadow: 1px 2px 4px rgba(0,0,0,.25); font-size: 12px; white-space: nowrap; line-height: 1.35; }
.ct-tip b { color: #1e3287; }
.ct-tip small { color: #666; }
.ct-empty { position: absolute; left: 10%; top: 42%; width: 80%; text-align: center; color: #888; line-height: 1.5; }
.ct-empty[hidden], .ct-tip[hidden] { display: none; }
.ct-legend { flex: none; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; color: #444; }
.ct-legend:empty { display: none; }
.ct-legend i { display: inline-block; width: 12px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.ct-hint { flex: none; margin: 0; color: #6a7686; font-size: 11px; font-style: italic; }
.ct-hint:empty { display: none; }
.ct-root .statusbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-root .statusbar .ct-bad { color: #b00; }
/* Fenêtres de saisie */
.ct-dlg { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.ct-form { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ct-form label { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: #1e395b; }
.ct-form label.ct-hclab { flex-direction: row; align-items: center; gap: 6px; color: #222; }
.ct-form .txt7 { width: 100%; box-sizing: border-box; height: 24px; }
.ct-form .ct-req { font-weight: normal; font-size: 11px; color: #c0392b; }
.ct-form .i-hcwrap[hidden] { display: none; }
.ct-note { margin: 2px 0 0; color: #6a7686; font-size: 11px; }
.ct-dlg .dialog-foot { align-items: center; }
.ct-dlg .ct-err { flex: 1; display: block; color: #b00; font-size: 12px; }
/* Affichage étroit (téléphone, mode application) */
.ct-narrow .ct-tabs button { flex: 1; padding: 7px 8px; }
.ct-narrow .ct-tabs button.on { padding-top: 9px; }
.ct-narrow .ct-fluides { gap: 4px; padding: 6px 8px; }
.ct-narrow .ct-fl { flex: 1; justify-content: center; padding: 7px 4px; border-radius: 4px; }
.ct-narrow .ct-addbar { padding: 8px 10px; }
.ct-narrow .ct-addbar .ct-new { flex: 1; height: 34px; }
.ct-narrow .ct-list { padding: 4px; }
.ct-narrow .ct-row { padding: 9px 6px; gap: 6px; max-width: none; }
.ct-narrow .ct-pstats { padding: 8px; }
.ct-narrow .ct-ctrl { gap: 6px; }
.ct-narrow .ct-vue { padding: 7px 10px; }
.ct-narrow .statusbar .ct-sum { display: none; }
.ct-root .ct-moy[hidden] { display: none; }
.ct-root .ct-moy span, .ct-root .ct-moy span:first-child { flex: none; padding: 0 12px; border-left: 1px solid #d0d0d0; }
.ct-root .ct-moy .ct-moy-t, .ct-root .ct-moy span:first-child { padding-left: 0; border: 0; color: #5b6878; }
.ct-narrow .ct-moy { flex-direction: column; }
.ct-narrow .ct-moy span, .ct-narrow .ct-moy span:first-child { padding: 0; border: 0; }
@media (max-width: 600px) {
  .ct-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
}

/* Barre des tâches sur téléphone (03/11/2026) : six programmes épinglés ne tiennent pas en largeur ;
   les boutons défilent au doigt au lieu d'être coupés (Messagerie et fenêtres ouvertes restent accessibles). */
@media (max-width: 700px) {
  #tasks { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #tasks::-webkit-scrollbar { display: none; }
}

/* Fausse « mise à jour » vers Windows 11 (os/maj11.js, première visite) : barre de progression et petits textes */
.maj11-body .dmsg { padding-top: 2px; }
.maj11-bar { height: 14px; margin: 4px 0 10px; border: 1px solid #b2b2b2; border-radius: 3px; background: #e6e6e6; overflow: hidden; }
.maj11-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(#7fd06b, #3fae2a); animation: maj11Bar 1.6s ease-out; }
@keyframes maj11Bar { from { width: 4%; } }
.maj11-small { margin: 0 0 6px; color: #555; font-size: 12px; }
html[data-theme="bs"] .maj11-bar { border-color: #dee2e6; border-radius: .375rem; background: #e9ecef; }
html[data-theme="bs"] .maj11-bar i { background: #0d6efd; }
html[data-theme="bs"] .maj11-small { color: #6c757d; }
@media (prefers-reduced-motion: reduce) { .maj11-bar i { animation: none; } }

/* ===== MétéoPhix (mx-) : prévisions, vigilances, cartes de pluie et d'orages ===== */
.mx-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #f4f7fb; color: #1f2933; }
.mx-root:focus { outline: none; }
.mx-tabs { flex: none; display: flex; gap: 2px; padding: 6px 8px 0; background: #e9eff6; border-bottom: 1px solid #b9c7d8; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.mx-tab { flex: none; position: relative; top: 1px; max-width: 180px; padding: 5px 14px; border: 1px solid #b9c7d8; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f3f6fa; font: inherit; color: #1e395b; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-tab:hover { background: #fff; }
.mx-tab.on { background: #fff; color: #0b57b0; font-weight: bold; border-bottom: 1px solid #fff; }
.mx-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.mx-home, .mx-lieu { max-width: 980px; margin: 0 auto; padding: 12px 16px 18px; }
.mx-h { margin: 16px 0 8px; font-size: 14px; color: #1e395b; border-bottom: 1px solid #e3e9f0; padding-bottom: 4px; }
.mx-mute { color: #6b7785; }
.mx-bad { color: #b42318; }
.mx-ok { color: #1f7a3a; margin: 4px 0; }
.mx-src { margin: 16px 0 0; font-size: 11px; color: #6b7785; line-height: 1.5; }
.mx-src a, .mx-note a { color: #0b57b0; }
.mx-note { margin: 6px 0 0; font-size: 11.5px; color: #5b6878; line-height: 1.45; }
.mx-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-search { display: flex; gap: 6px; flex: 1 1 320px; min-width: 0; }
.mx-q { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid #a9b8ca; border-radius: 4px; font: inherit; }
.mx-add2 { display: flex; gap: 6px; }
.mx-add .btn7 svg, .mx-btn svg { width: 15px; height: 15px; vertical-align: -3px; }
.mx-res { flex: 1 1 100%; }
.mx-res-l { display: flex; flex-direction: column; border: 1px solid #d5dee9; border-radius: 4px; overflow: hidden; }
.mx-res-i { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-bottom: 1px solid #e8edf3; background: #fff; font: inherit; color: #1f2933; cursor: pointer; }
.mx-res-i:last-child { border-bottom: 0; }
.mx-res-i:hover, .mx-res-i:focus-visible { background: #eaf3ff; outline: none; }
.mx-res-i small { color: #6b7785; }
.mx-vide p { margin: 4px 0 8px; line-height: 1.5; }
.mx-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mx-chip { padding: 4px 12px; border: 1px solid #a9c4e6; border-radius: 14px; background: #f1f7ff; color: #0b57b0; font: inherit; cursor: pointer; }
.mx-chip:hover { background: #e0edff; }
.mx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mx-card { display: flex; align-items: stretch; border: 1px solid #d5dee9; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16,38,66,.06); overflow: hidden; }
.mx-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mx-card-main:hover, .mx-card-main:focus-visible { background: #f3f8ff; outline: none; }
.mx-card-ico .mx-ico { width: 44px; height: 44px; }
.mx-card-ico { flex: none; width: 44px; height: 44px; }
.mx-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-card-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.mx-card-txt small { color: #6b7785; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-card-t { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.mx-card-t b { font-size: 22px; font-weight: 600; color: #12355b; }
.mx-card-t small { color: #6b7785; white-space: nowrap; }
.mx-card-act { flex: none; display: flex; flex-direction: column; border-left: 1px solid #e3e9f0; }
.mx-mini { min-width: 30px; flex: 1; padding: 2px 6px; border: 0; background: none; color: #5b6878; font: inherit; font-size: 11px; cursor: pointer; }
.mx-mini:hover:not([disabled]) { background: #eef3f9; color: #0b57b0; }
.mx-mini[disabled] { opacity: .3; cursor: default; }
.mx-del:hover:not([disabled]) { color: #b42318; }
.mx-badge { display: inline-block; margin-top: 3px; padding: 0 7px; border-radius: 9px; font-size: 11px; line-height: 17px; color: #1f2933; }
.mx-badge.mx-n2, .mx-al.mx-n2 .mx-al-p { background: #ffd600; }
.mx-badge.mx-n3, .mx-al.mx-n3 .mx-al-p { background: #ff8c1a; }
.mx-badge.mx-n4, .mx-al.mx-n4 .mx-al-p { background: #e0261d; color: #fff; }
.mx-al-lieu { margin-bottom: 8px; }
.mx-al-nom { padding: 0; border: 0; background: none; font: inherit; font-weight: bold; color: #0b57b0; cursor: pointer; }
.mx-al { display: flex; gap: 10px; margin: 6px 0; padding: 8px 10px; border: 1px solid #e3e1d3; border-radius: 6px; background: #fffdf3; }
.mx-al.mx-n3 { background: #fff6ec; border-color: #f3d2b1; }
.mx-al.mx-n4 { background: #fff0ef; border-color: #f1b8b4; }
.mx-al-p { flex: none; width: 6px; border-radius: 3px; }
.mx-al-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-al-t small { color: #5b6878; }
.mx-al-t p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; }
.mx-al-t .mx-al-c { color: #5b6878; }
.mx-al-t a { font-size: 12px; color: #0b57b0; }
.mx-al-d summary { cursor: pointer; font-size: 12px; color: #0b57b0; margin-top: 2px; }
.mx-al-d[open] summary { margin-bottom: 2px; }
.mx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mx-titre { display: flex; flex-direction: column; min-width: 0; }
.mx-titre b { font-size: 19px; color: #12355b; }
.mx-titre small { color: #6b7785; }
.mx-actions { display: flex; gap: 8px; }
.mx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #0b57b0; border-radius: 6px; background: #0b67d0; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.mx-btn:hover { background: #0a59b5; }
.mx-btn.mx-b-eclairs { background: #fff8e1; color: #7a4f00; border-color: #e0b000; }
.mx-btn.mx-b-eclairs:hover { background: #ffefb8; }
.mx-now { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; padding: 10px 14px; border-radius: 8px; background: linear-gradient(135deg, #e8f2ff, #f6f9fd); border: 1px solid #d5e3f5; flex-wrap: wrap; }
.mx-ico { width: 30px; height: 30px; display: block; }
.mx-ico-l { width: 64px; height: 64px; }
.mx-now-t { display: flex; flex-direction: column; }
.mx-now-t b { font-size: 34px; font-weight: 600; color: #12355b; line-height: 1.1; }
.mx-now-d { display: flex; flex-direction: column; gap: 3px; color: #33475b; }
.mx-now-d small { color: #6b7785; }
.mx-fl { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; fill: #3c5878; }
.mx-jours { margin-top: 10px; }
.mx-jl-h, .mx-jh { display: grid; grid-template-columns: minmax(118px, 1.4fr) 36px 70px 80px 90px 80px 18px; align-items: center; gap: 6px; }
.mx-jl-h { padding: 0 10px 4px; font-size: 11px; color: #6b7785; }
.mx-jour { border: 1px solid #dbe3ec; border-radius: 8px; margin-bottom: 6px; background: #fff; overflow: hidden; }
.mx-jh { width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mx-jh:hover, .mx-jh:focus-visible { background: #f3f8ff; outline: none; }
.mx-jour.open > .mx-jh { background: #eef5ff; border-bottom: 1px solid #dbe3ec; }
.mx-jd { display: flex; flex-direction: column; min-width: 0; }
.mx-jd small { color: #6b7785; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-jt b { color: #c2410c; font-size: 15px; } .mx-jt small { color: #1d5fae; margin-left: 4px; font-size: 13px; }
.mx-jp, .mx-jv { white-space: nowrap; } .mx-jp { color: #1d5fae; }
.mx-jp small, .mx-jv small { display: block; color: #6b7785; font-size: 11px; }
.mx-js { color: #8a6100; white-space: nowrap; font-size: 12px; }
.mx-chev { color: #6b7785; transition: transform .15s; }
.mx-jour.open .mx-chev { transform: rotate(180deg); }
.mx-det { padding: 0 8px; }
.mx-jour.open .mx-det { padding: 6px 8px 10px; }
.mx-tab2 { display: flex; flex-direction: column; }
.mx-tr { display: grid; grid-template-columns: 52px 38px 52px 130px 150px 70px 70px; justify-content: start; align-items: center; gap: 6px; padding: 3px 4px; border-bottom: 1px solid #f0f3f7; }
.mx-tr:last-child { border-bottom: 0; }
.mx-th { font-size: 11px; color: #6b7785; border-bottom: 1px solid #dbe3ec; }
.mx-th small { font-size: 10px; }
.mx-passe { opacity: .45; }
.mx-humide { background: #f2f8ff; }
.mx-c-h { font-weight: 600; color: #33475b; }
.mx-c-t { font-weight: 600; color: #c2410c; }
.mx-c-v { white-space: nowrap; } .mx-c-v b { font-weight: 600; } .mx-c-v small { color: #6b7785; margin-left: 4px; font-size: 11px; }
.mx-c-s { position: relative; height: 18px; border-radius: 3px; background: #f1f3f6; overflow: hidden; }
.mx-c-s i { position: absolute; left: 0; top: 0; bottom: 0; background: #ffd65c; }
.mx-c-s em { position: relative; font-style: normal; font-size: 11px; padding-left: 4px; line-height: 18px; color: #5a4300; white-space: nowrap; }
.mx-c-pp { color: #1d5fae; } .mx-c-pr { color: #1d5fae; font-weight: 600; }
.mx-etroit .mx-jl-h { display: none; }
.mx-etroit .mx-jh { grid-template-columns: minmax(0, 1fr) 32px 58px 64px 16px; }
.mx-etroit .mx-jv, .mx-etroit .mx-js { display: none; }
.mx-etroit .mx-tr { grid-template-columns: 38px 30px 36px minmax(0, 1.25fr) minmax(0, 1fr) 36px 38px; justify-content: stretch; gap: 3px; font-size: 12px; padding: 3px 2px; }
.mx-etroit .mx-tr .mx-ico { width: 26px; height: 26px; }
.mx-etroit .mx-c-v small { display: block; margin-left: 0; font-size: 10px; }
.mx-etroit .mx-c-s em { font-size: 10px; }
.mx-etroit .mx-home, .mx-etroit .mx-lieu { padding: 10px 10px 16px; }
.mx-etroit .mx-cards { grid-template-columns: 1fr; }
.mx-etroit .mx-actions { width: 100%; } .mx-etroit .mx-btn { flex: 1; justify-content: center; }
.mx-etroit .mx-now-t b { font-size: 28px; } .mx-etroit .mx-ico-l { width: 52px; height: 52px; }
/* Fenêtres de carte */
.mx-map-win { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.mx-map-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid #dbe3ec; background: #f6f9fc; flex-wrap: wrap; }
.mx-map-top b { color: #12355b; } .mx-map-l { flex: 1; color: #6b7785; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-fond { font: inherit; padding: 2px 4px; }
.mx-map { flex: 1; min-height: 180px; background: #dfe7ef; }
.mx-map .leaflet-tile-pane { filter: saturate(.45) brightness(1.06); }
.mx-map-ctl { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-top: 1px solid #dbe3ec; flex-wrap: wrap; }
.mx-map-ctl .mx-mini { flex: none; min-width: 34px; height: 30px; border: 1px solid #b9c7d8; border-radius: 4px; font-size: 14px; background: #fff; }
.mx-range { flex: 1 1 160px; min-width: 120px; }
.mx-t { flex: 1 1 100%; font-size: 12.5px; color: #1f2933; }
.mx-map-info { flex: none; max-height: 34%; overflow: auto; padding: 4px 10px 8px; font-size: 12px; }
.mx-leg { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; font-size: 11px; color: #5b6878; }
.mx-leg span { margin-right: 4px; font-weight: 600; } .mx-leg i { width: 18px; height: 10px; border-radius: 2px; } .mx-leg small { margin-right: 6px; }
.mx-dist { margin: 6px 0 0; font-size: 13px; }
.mx-lien { padding: 0; border: 0; background: none; font: inherit; color: #0b57b0; text-decoration: underline; cursor: pointer; }
.mx-ring { color: #495057; font-size: 10px; font-weight: 600; text-align: center; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; white-space: nowrap; }
.mx-dlg { display: flex; flex-direction: column; height: 100%; }
.mx-form { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.mx-form label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mx-form select { min-width: 160px; font: inherit; padding: 2px 4px; }
.mx-form p { margin: 0; font-size: 12px; }
.statusbar .mx-msg.mx-bad { color: #b42318; }
@media (max-width: 600px) {
  .mx-tab { padding: 6px 12px; }
  .mx-search .btn7 { padding-left: 10px; padding-right: 10px; }
  .mx-add2 { width: 100%; } .mx-add2 .btn7 { flex: 1; }
  .mx-map-info { max-height: 40%; }
}
/* Ator : tableau de bord virtuel (os/ator-tdb.js) */
.at-tdb { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.at-tdb-cadre { width: 100%; max-width: 1100px; margin: 0 auto; }
.at-tdb-svg { display: block; width: 100%; height: auto; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; user-select: none; }
.at-tdb-seg { fill: #1b2532; transition: fill .15s; }
.at-tdb-seg.at-tdb-zr { fill: #3a1d1d; }
.at-tdb-seg.at-tdb-on { fill: #f2f6fa; }
.at-tdb-seg.at-tdb-rouge { fill: #ff4d3d; }
.at-tdb-seg.at-tdb-gris { fill: #161d26; }
.at-tdb-seg.at-tdb-zr.at-tdb-gris { fill: #241a1a; }
.at-tdb-grad { fill: #8796a8; font-size: 18px; text-anchor: middle; }
.at-tdb-pt { fill: #7d8da0; font-size: 15px; letter-spacing: .12em; font-weight: 600; }
.at-tdb-rpm { fill: #c8d3df; font-size: 22px; }
.at-tdb-vit { fill: #ffffff; font-size: 160px; font-weight: 300; letter-spacing: -.02em; }
.at-tdb-kmh { fill: #9fb0c2; font-size: 24px; letter-spacing: .08em; }
.at-tdb-reg { fill: #e8eef5; font-size: 22px; font-weight: 600; letter-spacing: .1em; }
.at-tdb-reg.at-tdb-vert { fill: #38d66b; }
.at-tdb-gbox { fill: #0a121b; stroke: #2c3c50; stroke-width: 2; }
.at-tdb-gear { fill: #ffd27a; font-size: 78px; font-weight: 600; }
.at-tdb-pu { fill: #c8d3df; font-size: 21px; font-weight: 500; }   /* point 64 : ch utilisés */
.at-tdb-co { fill: #c8d3df; font-size: 21px; font-weight: 500; }   /* point 65 : consommation instantanée */
.at-tdb-bv { fill: #f2f6fa; font-size: 32px; font-weight: 500; }
.at-tdb-bu { fill: #8796a8; font-size: 18px; }
.at-tdb-bs { fill: #1b2532; }
.at-tdb-bs.at-tdb-on { fill: #5cc8ff; }
.at-tdb-bs.at-tdb-rouge { fill: #ff4d3d; }
.at-tdb-b[data-b="batterie"] .at-tdb-bs.at-tdb-on { fill: #c9d6e3; }
.at-tdb-b.at-tdb-alerte .at-tdb-bv { fill: #ff7a6b; }
.at-tdb-gris, .at-tdb-b.at-tdb-gris .at-tdb-bv { fill: #4a5666 !important; }
.at-tdb-vit.at-tdb-gris { fill: #3b4654 !important; }
.at-tdb-odo, .at-tdb-heure { fill: #c8d3df; font-size: 22px; }
.at-tdb-etat { fill: #ffad1f; font-size: 20px; }
/* Voyants : allumé (couleur et lueur), éteint (contour sombre), pas de donnée (gris pointillé) */
.at-tdb-v .at-tdb-vfond { fill: #0a1018; stroke: #1f2a37; stroke-width: 1.5; }
.at-tdb-v .at-tdb-ico { stroke: currentColor; fill: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.at-tdb-v .at-tdb-ico [fill="none"] { fill: none; }
.at-tdb-v .at-tdb-vt { font-size: 12px; font-weight: 700; letter-spacing: .06em; fill: currentColor; stroke: none; }
.at-tdb-v1 { color: var(--c); }
.at-tdb-v1 .at-tdb-ico { filter: url(#at-tdb-lueur); }
.at-tdb-v1 .at-tdb-vfond { stroke: var(--c); stroke-opacity: .55; }
.at-tdb-v0 { color: #3c4a5a; }
.at-tdb-vnd { color: #252e39; }
.at-tdb-vnd .at-tdb-vfond { stroke-dasharray: 4 4; stroke: #2a3440; fill: #070b10; }
/* 1.19 : carburant, témoins du commodo (clignotants qui clignotent), ouvrants */
.at-tdb-b[data-b="carburant"] .at-tdb-bs.at-tdb-on { fill: #ffd27a; }
.at-tdb-b[data-b="carburant"].at-tdb-alerte .at-tdb-bs.at-tdb-on { fill: #ff4d3d; }
.at-tdb-t .at-tdb-ico { stroke: currentColor; fill: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.at-tdb-t .at-tdb-ico [fill="none"] { fill: none; }
.at-tdb-t.at-tdb-v0 { color: #2e3a48; }
.at-tdb-t.at-tdb-vnd { color: #7a8899; }   /* point 56 : inconnu (pas de donnée récente) : gris clair, jamais « éteint » */
.at-tdb-t.at-tdb-vnd .at-tdb-ico { stroke-dasharray: 3 3; }
.at-tdb-t .at-tdb-tq { display: none; }
.at-tdb-t.at-tdb-vnd .at-tdb-tq { display: inline; fill: #7a8899; stroke: none; font-size: 15px; font-weight: 700; }
.at-tdb-t.at-tdb-v1.at-tdb-cl { animation: at-tdb-clig 1s steps(1, end) infinite; }
@keyframes at-tdb-clig { 0% { opacity: 1; } 50% { opacity: .12; } }
.at-tdb-caisse { fill: none; stroke: #3c4a5a; stroke-width: 2; }
.at-tdb-o line { stroke-width: 5; stroke-linecap: round; }
.at-tdb-o .at-tdb-oo { display: none; }
.at-tdb-o1 .at-tdb-of { display: none; }
.at-tdb-o1 .at-tdb-oo { display: inline; stroke: #ff4d3d; filter: url(#at-tdb-lueur); }
.at-tdb-o0 .at-tdb-of { stroke: #5a6b7e; }
.at-tdb-ond .at-tdb-of { stroke: #2a3440; stroke-dasharray: 4 5; }
.at-tdb-silt { font-size: 13px; }
.at-tdb-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; max-width: 1100px; margin: 0 auto; width: 100%; font-size: 12px; color: #555; }
.at-tdb-leg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.at-tdb-l1 { background: #ffad1f; box-shadow: 0 0 4px #ffad1f; }
.at-tdb-l0 { background: #3c4a5a; }
.at-tdb-lnd { border: 1px dashed #8a96a4; }
.at-tdb-lr { flex: 1; min-width: 200px; }
.at-tdb-form { max-width: 1100px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid #c9d6e3; border-radius: 6px; background: #f6f9fc; font-size: 13px; }
.at-tdb-form[hidden] { display: none; }
.at-tdb-fl { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.at-tdb-fl label { display: flex; align-items: center; gap: 4px; }
.at-tdb-form input[type=number] { width: 64px; }
.at-tdb-mesure { color: #2a5a8a; }
.at-etroit .at-tdb { padding: 6px; }

/* Ator : vue 3D du véhicule (os/ator-3d.js) */
.at-3d { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.at-3d-barre { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #dbe3ec; }
.at-3d-barre .btn7.on { background: linear-gradient(#dcebfc, #c4dcf6); border-color: #6c98c9; }
.at-3d-aide { margin-left: auto; font-size: 11.5px; color: #6b7785; }
.at-3d-insp { margin-left: 8px; font-size: 11.5px; font-style: italic; color: #4f5b68; }   /* point 139 */
.at-etroit .at-3d-insp { flex-basis: 100%; margin-left: 0; }
.at-3d-vue { position: relative; flex: 1; min-height: 240px; overflow: hidden; background: #e9eef3; }
.at-3d-can { position: absolute; left: 0; top: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.at-3d-can:active { cursor: grabbing; }
/* Tableau de bord HTML posé sur l'écran du modèle par une matrice de perspective (place du conducteur). Point 289 : il est SOUS
   le canvas (z-index), qui est percé à l'endroit de l'écran : le volant, dessiné devant, le cache là où il passe. */
.at-3d-hud { position: absolute; left: 0; top: 0; z-index: 0; width: 1000px; height: 440px; overflow: hidden; background: #05080c; transform-origin: 0 0; pointer-events: none; }
.at-3d-hud[hidden] { display: none; }
.at-3d-hud .at-tdb { padding: 0; gap: 0; }
.at-3d-hud .at-tdb-cadre { max-width: none; width: 1000px; }
.at-3d-hud .at-tdb-leg, .at-3d-hud .at-tdb-form { display: none; }
.at-3d-msg { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 86%; padding: 10px 14px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #1f2933; font-size: 13px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.at-3d-msg[hidden] { display: none; }
.at-3d-msg.at-3d-err { border: 1px solid #e3b4ae; background: #fff6f5; color: #7a1d12; }
.at-3d-etat { position: absolute; z-index: 2; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: #5b6878; font-size: 11.5px; pointer-events: none; }
.at-3d-etat[hidden] { display: none; }
.at-3d-leg { flex: none; display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 6px 10px 8px; border-top: 1px solid #dbe3ec; font-size: 11.5px; color: #3e4a59; max-height: 30%; overflow: auto; }
.at-3d-it { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.at-3d-it i { width: 9px; height: 9px; border-radius: 50%; background: #c3ccd6; flex: none; }
.at-3d-it em { font-style: normal; color: #6b7785; }
.at-3d-l1 i { background: #f0a020; box-shadow: 0 0 4px #f0a020; }
.at-3d-l1 em { color: #8a5300; font-weight: 600; }
.at-3d-l0 i { background: #5d6a78; }
.at-3d-lnd i, .at-3d-lauto i { background: transparent; border: 1px dashed #9aa6b3; }
.at-3d-lnd em, .at-3d-lauto em { font-style: italic; color: #98a2ad; }
.at-etroit .at-3d-aide { display: none; }
.at-etroit .at-3d-leg { font-size: 11px; gap: 2px 9px; padding: 5px 8px 6px; }
.at-3d-attente { margin: 16px; color: #5b6878; }
/* Ator : 7 onglets avec la vue 3D : barre défilante en largeur étroite plutôt que des onglets coupés */
.at-etroit .at-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.at-etroit .at-tabs::-webkit-scrollbar { display: none; }
.at-etroit .at-tabs button { flex: none; white-space: nowrap; }
/* Point 109 : barre des onglets qui déborde en largeur moyenne : elle défile comme en largeur étroite (os/ator.js, ongletsDefile) */
.at-tabs.at-tabs-defile { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.at-tabs.at-tabs-defile::-webkit-scrollbar { display: none; }
.at-tabs.at-tabs-defile button { flex: none; white-space: nowrap; }

/* ===== Comparateur de prix (fq-, application « fouine ») : onglets, recherche, filtres, résultats ===== */
.fq-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #f8f9fa; color: #212529; }
.fq-root:focus { outline: none; }
.fq-tabs { flex: none; display: flex; padding: 6px 8px 0; background: #eef1f5; border-bottom: 1px solid #ced4da; overflow-x: auto; overflow-y: hidden; }
.fq-tab { flex: none; position: relative; top: 1px; margin-right: 2px; padding: 6px 18px; border: 1px solid #ced4da; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f6f7f9; font: inherit; color: #495057; cursor: pointer; }
.fq-tab:hover { background: #fff; }
.fq-tab.on { background: #fff; color: #0d6efd; font-weight: bold; border-bottom: 1px solid #fff; }
.fq-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.fq-pan { padding: 12px 14px; }
.fq-form { display: flex; align-items: stretch; }
.fq-q { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #ced4da; border-radius: 6px 0 0 6px; font: inherit; font-size: 15px; background: #fff; color: #212529; }
.fq-q:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13, 110, 253, .2); }
.fq-go, .fq-aff { flex: none; padding: 6px 14px; font: inherit; cursor: pointer; border: 1px solid #0d6efd; }
.fq-go { background: #0d6efd; color: #fff; border-radius: 0 6px 6px 0; }
.fq-go:hover { background: #0b5ed7; }
.fq-aff { margin-left: 8px; background: #fff; color: #0d6efd; border-radius: 6px; }
.fq-aff:hover { background: #e7f1ff; }
.fq-srcs { margin: 8px 0 4px; font-size: 12px; color: #6c757d; }
.fq-srcs-t { margin-right: 4px; }
.fq-src { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border: 1px solid #b6d4fe; border-radius: 12px; background: #e7f1ff; color: #084298; font: inherit; font-size: 12px; cursor: pointer; }
.fq-src i { font-style: normal; font-weight: bold; margin-left: 2px; }
.fq-src.fq-off { border-color: #dee2e6; background: #f1f3f5; color: #868e96; }
.fq-src.fq-err { border-color: #f1aeb5; background: #f8d7da; color: #842029; }
.fq-src.fq-ign { border-color: #dee2e6; background: #fff; color: #6c757d; }
.fq-src.fq-att { opacity: .7; }
.fq-lien { border: 0; background: none; padding: 0; color: #0d6efd; text-decoration: underline; cursor: pointer; font: inherit; }
.fq-accueil { max-width: 760px; margin-top: 10px; line-height: 1.5; }
.fq-accueil h2 { margin: 6px 0; font-size: 18px; color: #212529; }
.fq-accueil h3 { margin: 16px 0 6px; font-size: 14px; color: #495057; }
.fq-ex { color: #6c757d; }
.fq-chip { margin: 2px 6px 2px 0; padding: 3px 10px; border: 1px solid #ced4da; border-radius: 14px; background: #fff; color: #0d6efd; font: inherit; cursor: pointer; }
.fq-chip:hover { background: #e7f1ff; }
.fq-fiches { margin: 0; padding: 0; list-style: none; }
.fq-fiches li { margin-bottom: 8px; padding: 8px 10px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; }
.fq-fiches li.fq-off { background: #f8f9fa; color: #6c757d; }
.fq-ok { padding: 0 6px; border-radius: 8px; background: #d1e7dd; color: #0f5132; font-size: 12px; }
.fq-nc { padding: 0 6px; border-radius: 8px; background: #e9ecef; color: #495057; font-size: 12px; }
.fq-aide { color: #6c757d; font-size: 12px; }
.fq-pied { margin-top: 14px; color: #6c757d; font-size: 12px; }
.fq-zone { display: flex; align-items: flex-start; margin-top: 8px; }
.fq-filtres { flex: none; width: 220px; margin-right: 14px; font-size: 13px; }
.fq-fh { margin-bottom: 6px; }
.fq-fh .fq-lien { margin-left: 6px; font-size: 12px; }
.fq-g { margin: 0 0 10px; padding: 6px 8px 8px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; min-width: 0; }
.fq-g legend { padding: 0 4px; font-weight: bold; color: #495057; font-size: 12px; }
.fq-goff { background: #f8f9fa; color: #adb5bd; }
.fq-goff legend { color: #adb5bd; }
.fq-raison { margin: 4px 0 0; font-size: 11px; color: #6c757d; line-height: 1.35; }
.fq-radios label, .fq-case { display: block; padding: 2px 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.fq-goff label { cursor: default; }
.fq-case.fq-cache { display: none; }
.fq-n { color: #868e96; font-size: 11px; }
.fq-prix input { width: 5.5em; padding: 2px 4px; border: 1px solid #ced4da; border-radius: 4px; font: inherit; }
.fq-col { flex: 1; min-width: 0; }
.fq-tete { display: flex; align-items: center; flex-wrap: wrap; padding: 2px 0 6px; border-bottom: 1px solid #dee2e6; font-size: 13px; color: #495057; }
.fq-nb { font-weight: bold; margin-right: 12px; }
.fq-tri { color: #6c757d; margin-right: 12px; }
.fq-bf { display: none; margin-left: auto; padding: 3px 10px; border: 1px solid #ced4da; border-radius: 6px; background: #fff; font: inherit; cursor: pointer; }
.fq-vide { padding: 18px 4px; color: #495057; line-height: 1.5; }
.fq-notes { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #6c757d; }
.fq-liste { margin: 0; padding: 0; list-style: none; }
.fq-item { border-bottom: 1px solid #e9ecef; }
.fq-a { display: flex; align-items: flex-start; padding: 10px 6px; color: inherit; text-decoration: none; }
.fq-a:hover { background: #f1f6ff; }
.fq-a:focus { outline: 2px solid #86b7fe; outline-offset: -2px; }
.fq-img { flex: none; width: 56px; height: 56px; margin-right: 10px; object-fit: contain; background: #fff; border: 1px solid #e9ecef; border-radius: 4px; }
.fq-txt { flex: 1; min-width: 0; }
.fq-t { font-weight: bold; color: #0a58ca; overflow-wrap: break-word; }
.fq-a:hover .fq-t { text-decoration: underline; }
.fq-st { font-size: 13px; color: #495057; }
.fq-m { margin-top: 2px; font-size: 12px; color: #6c757d; }
.fq-ext { margin-top: 2px; font-size: 12px; color: #198754; }
.fq-dom { color: #6c757d; }
.fq-prixcol { flex: none; margin-left: 12px; text-align: right; min-width: 120px; }
.fq-p { font-size: 18px; font-weight: bold; color: #212529; white-space: nowrap; }
.fq-p small { font-size: 12px; font-weight: normal; color: #6c757d; }
.fq-u, .fq-liv, .fq-tot { font-size: 12px; color: #495057; white-space: nowrap; }
.fq-liv { color: #146c43; }
.fq-liv.fq-na { color: #868e96; white-space: normal; }
.fq-tot { font-weight: bold; }
.fq-isole { margin: 18px 0 4px; padding: 6px 8px; font-size: 13px; color: #664d03; background: #fff3cd; border: 1px solid #ffecb5; border-radius: 6px; }
.fq-bad { color: #b02a37; }
.fq-err { color: #842029; }
/* Fenêtre étroite (téléphone, mode application) : filtres repliés derrière un bouton */
.fq-etroit .fq-pan { padding: 8px; }
.fq-etroit .fq-zone { display: block; }
.fq-etroit .fq-filtres { display: none; width: auto; margin: 6px 0 8px; }
.fq-etroit .fq-zone.fq-fo .fq-filtres { display: block; }
.fq-etroit .fq-bf { display: inline-block; }
.fq-etroit .fq-aff { margin-left: 6px; padding: 6px 8px; }
.fq-etroit .fq-go { padding: 6px 10px; }
.fq-etroit .fq-img { width: 44px; height: 44px; }
.fq-etroit .fq-a { flex-wrap: wrap; }
.fq-etroit .fq-txt { flex: 1 1 200px; }
.fq-etroit .fq-prixcol { flex: 1 1 100%; min-width: 0; margin: 4px 0 0; text-align: left; }
.fq-etroit .fq-p { font-size: 16px; }
.fq-etroit .fq-u, .fq-etroit .fq-liv, .fq-etroit .fq-tot { display: inline; margin-right: 8px; white-space: normal; }
.fq-etroit .fq-sum { display: none; }
@media (max-width: 600px) {
  .fq-tab { padding: 7px 14px; }
  .fq-q { font-size: 16px; }
}

/* Ator 1.21 : onglet Cartographie (os/ator-carto.js) */
.at-pcarto { overflow: auto; }
.at-carto { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 14px; max-width: 1100px; }
.at-kbar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.at-kbar select { max-width: 100%; }
.at-kinfo { color: #666; font-size: 12px; }
.at-kmsg { padding: 10px 12px; background: #f6f5f2; border: 1px solid #e2dfd8; border-radius: 4px; color: #444; }
.at-ktitre { font-size: 13px; margin-bottom: 4px; }
.at-ktitre small { color: #666; font-weight: normal; }
.at-kmarque { display: inline-block; padding: 0 6px; border-radius: 8px; background: #eef3fb; color: #1c5cab; font-size: 11px; line-height: 17px; }
.at-kzone { position: relative; }
.at-ksvg { display: block; max-width: 100%; height: auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; user-select: none; -webkit-user-select: none; }
.at-kcase { cursor: crosshair; stroke: none; }
.at-kcase.at-ksurv { stroke: #222; stroke-width: 1.5px; }
.at-kax { font-size: 11px; fill: #555; }
.at-kaxt { fill: #444; }
.at-ktip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); padding: 5px 8px; font-size: 12px; line-height: 1.4; color: #222; white-space: nowrap; }
.at-kleg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: #444; margin-top: 4px; }
.at-kgrad { display: inline-block; width: 160px; height: 10px; border-radius: 2px; }
.at-klh { color: #666; }
.at-kvsw { display: inline-block; width: 14px; height: 10px; vertical-align: -1px; border-radius: 2px; background: repeating-linear-gradient(45deg, #f3f2ef 0 3px, #d9d6d0 3px 5px); }
.at-kvide { color: #666; font-size: 13px; }
.at-ktab { font-size: 12px; margin-top: 6px; }
.at-ktab summary { cursor: pointer; color: #1c5cab; }
.at-ktab div { overflow: auto; max-height: 320px; }
.at-ktab table { border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.at-ktab th, .at-ktab td { border: 1px solid #e2dfd8; padding: 2px 5px; text-align: right; white-space: nowrap; }
.at-ktab th { background: #f6f5f2; font-weight: normal; color: #444; }
.at-kcyl { border-top: 1px solid #e6e3dc; padding-top: 10px; }
.at-kcsvg { display: block; width: 100%; max-width: 520px; height: auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.at-kcg { stroke: #ecebe7; stroke-width: 1; }
.at-kc0 { stroke: #9a978f; stroke-width: 1; }
.at-kcb { fill: #2a78d6; }
.at-kcw { stroke: #222; stroke-width: 1.5; }
.at-kcv { font-size: 10px; fill: #222; }
.at-kcn { fill: #888; font-size: 9px; }
.at-kavis { margin: 6px 0 0; font-size: 13px; color: #222; }
.at-kavis span { font-weight: bold; }
.at-kavis1 span { color: #0a7d0a; }
.at-kavis2 span, .at-kavis3 span { color: #b8660b; }
.at-kaide { margin: 0; font-size: 12px; color: #666; line-height: 1.45; }

/* Ator : onglet Diagnostic (os/ator-diag.js) */
.at-pdiag { overflow: auto; }
.at-diag { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 16px; max-width: 1000px; font-size: 13px; line-height: 1.45; color: #222; }
.at-dbarre { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.at-dlper { display: inline-flex; align-items: center; gap: 6px; color: #444; }
.at-dgo { font-weight: bold; }
.at-dinfo { color: #666; font-size: 12px; }
.at-dintro p { margin: 0 0 8px; color: #333; }
.at-dleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #444; }
.at-dprog { padding: 10px 12px; border: 1px solid #dfe3e8; border-radius: 6px; background: #f8fafc; }
.at-dpt { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.at-dcpt { font-variant-numeric: tabular-nums; font-weight: bold; color: #1c5cab; }
.at-dbar { height: 14px; border-radius: 7px; background: #e3e8ee; overflow: hidden; }
.at-dbar i { display: block; height: 100%; width: 0; border-radius: 7px; background: #2a78d6; transition: width .25s ease-out; }
.at-del { margin-top: 6px; color: #333; min-height: 1.45em; }
.at-dmsg { padding: 10px 12px; background: #f6f5f2; border: 1px solid #e2dfd8; border-radius: 4px; color: #444; margin: 0; }
.at-dres { padding: 10px 12px; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; }
.at-dres h3, .at-ddom h3 { margin: 0 0 6px; font-size: 15px; }
.at-dtot { margin: 0 0 8px; font-size: 14px; }
.at-dtot small { color: #666; font-size: 12px; }
.at-dc { display: inline-block; padding: 0 7px; margin-right: 2px; border-radius: 9px; font-weight: bold; font-variant-numeric: tabular-nums; }
.at-dc-ok { background: #e6f4ea; color: #1e6b34; }
.at-dc-alerte { background: #fdf0d9; color: #8a5300; }
.at-dc-hors { background: #fbe1df; color: #a02621; }
.at-dc-pause { background: #eceff3; color: #4a5562; }
.at-dsom { border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.at-dsom th, .at-dsom td { border: 1px solid #e2e5e9; padding: 3px 10px; text-align: center; }
.at-dsom tbody th { text-align: left; font-weight: normal; }
.at-dsom thead th { background: #f4f6f8; font-weight: normal; }
.at-dsom small { color: #777; }
.at-dpoints { margin: 4px 0 6px; }
.at-drap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 2px; padding-top: 8px; border-top: 1px solid #e2e5e9; }
.at-drap a.at-drapb { display: inline-block; text-decoration: none; color: inherit; font-weight: 600; }
.at-drap label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.at-drap .at-dnote { flex: 1 1 100%; margin: 0; }
.at-dpoints a, .at-dvoir { color: #1c5cab; }
.at-dctrl { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.at-dctrl label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #444; }
.at-ddom { margin-top: 8px; }
.at-ddom h4 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5b6570; font-weight: 600; }
.at-dt { border: 1px solid #e3e6ea; border-left: 4px solid #c9ced4; border-radius: 4px; margin: 0 0 4px; background: #fff; }
.at-dt > summary { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; cursor: pointer; list-style: none; }
.at-dt > summary::-webkit-details-marker { display: none; }
.at-dt > summary::before { content: '▸'; color: #888; flex: 0 0 auto; }
.at-dt[open] > summary::before { content: '▾'; }
.at-dico { flex: 0 0 1.4em; text-align: center; }
.at-dnom { font-weight: 600; flex: 0 1 auto; }
.at-dcourt { color: #555; flex: 1 1 0; min-width: 0; font-size: 12px; }
.at-dt-attente { opacity: .55; }
.at-dv-ok { border-left-color: #2e9e4f; }
.at-dv-alerte { border-left-color: #e3a008; }
.at-dv-hors { border-left-color: #d93025; }
.at-dv-pause { border-left-color: #9aa4b0; }
.at-dcorps { padding: 2px 10px 10px 34px; }
.at-dcorps p { margin: 4px 0; }
.at-dstats { color: #333; font-variant-numeric: tabular-nums; }
.at-dpire b { font-variant-numeric: tabular-nums; }
.at-dapprox { display: inline-block; padding: 0 6px; border-radius: 8px; background: #eef3fb; color: #1c5cab; font-size: 11px; line-height: 17px; }
.at-dregle { border-collapse: collapse; margin: 6px 0 2px; width: 100%; font-size: 12px; }
.at-dregle th { text-align: left; vertical-align: top; font-weight: normal; color: #5b6570; padding: 2px 10px 2px 0; white-space: nowrap; width: 1%; }
.at-dregle td { padding: 2px 0; color: #222; }
.at-dfiab { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 17px; }
.at-dfiab-av { background: #fdf0d9; color: #8a5300; }
.at-dfiab-ok { background: #e6f4ea; color: #1e6b34; }
.at-dnote { color: #666; font-size: 12px; }
.at-dconseil { color: #0d366b; background: #eef3fb; border-radius: 4px; padding: 4px 8px; margin: 4px 0; }   /* point 124 : conseil d'un indice de panne */
.at-dlignes { margin: 4px 0; padding-left: 2px; font-size: 12px; list-style: none; }
.at-dlignes li { margin: 1px 0; }
.at-dcourbe { margin: 6px 0; max-width: 560px; }
.at-dsvg { display: block; width: 100%; height: auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.at-dsg { stroke: #eceef1; stroke-width: 1; }
.at-dsa { font-size: 10px; fill: #666; }
.at-dsl { font-size: 10px; fill: #444; }
.at-ds80 { stroke: #d93025; stroke-width: 1; stroke-dasharray: 4 3; }
.at-ds20 { stroke: #9aa4b0; stroke-width: 1; stroke-dasharray: 2 3; }
.at-dsref { stroke: #2e9e4f; stroke-width: 1.5; }
.at-dsc { fill: none; stroke: #2a78d6; stroke-width: 2; stroke-linejoin: round; }
.at-dannexes { display: flex; flex-direction: column; gap: 6px; }
.at-dindic { background: #f3eefb; color: #5b3b99; }   /* point 309 */
/* Point 318 : santé de la voiture, cinq pastilles sous l'en-tête de /ator/<VIN> */
.at-sante { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; padding: 6px 10px; background: #f6f8fb; border-bottom: 1px solid #d3dde9; }
.at-past { flex: 1 1 170px; display: grid; grid-template-columns: 14px 1fr; column-gap: 6px; text-align: left; font: inherit; font-size: 12px; color: #1e395b; background: #fff; border: 1px solid #d3dde9; border-left: 4px solid #9aa5b1; border-radius: 4px; padding: 5px 8px; cursor: pointer; }
.at-past:hover { background: #eef5fd; }
.at-past i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #9aa5b1; margin-top: 2px; }
.at-past b { font-weight: 600; }
.at-past span { grid-column: 2; color: #4d5a6a; font-size: 11.5px; }
.at-past-vert { border-left-color: #0ca30c; } .at-past-vert i { background: #0ca30c; }
.at-past-orange { border-left-color: #eda100; } .at-past-orange i { background: #eda100; }
.at-past-rouge { border-left-color: #d03b3b; } .at-past-rouge i { background: #d03b3b; }
.at-sinfo { flex: 1 0 100%; color: #5b6570; font-size: 11px; }
/* Point 317 : en largeur étroite (téléphone), pastilles compactes : le nom seul, deux ou trois par ligne (la phrase reste au survol et
   dans le Diagnostic) ; la page garde de la place pour le contenu */
.at-etroit .at-sante { gap: 4px; padding: 4px 8px; }
.at-etroit .at-past { flex: 1 1 30%; min-width: 0; padding: 3px 6px; font-size: 11px; column-gap: 4px; grid-template-columns: 10px 1fr; }
.at-etroit .at-past i { width: 9px; height: 9px; grid-row: auto; margin-top: 3px; }
.at-etroit .at-past b { font-weight: 600; line-height: 1.2; }
.at-etroit .at-past span { display: none; }
.at-dposs { margin: 0 0 4px; }
.at-dann { font-size: 12px; }
.at-dann summary { cursor: pointer; color: #1c5cab; }
.at-dann ul { margin: 4px 0; padding-left: 18px; }
.at-dann li { margin: 2px 0; }
.at-etroit .at-diag { padding: 8px 8px 14px; }
.at-etroit .at-dt > summary { flex-wrap: wrap; }
.at-etroit .at-dcourt { flex-basis: 100%; padding-left: 2.6em; }
.at-etroit .at-dnom { flex: 1 1 0; min-width: 0; }
.at-etroit .at-dcorps { padding-left: 10px; }
.at-etroit .at-dregle th { white-space: normal; width: 30%; }
@media (prefers-reduced-motion: reduce) { .at-dbar i { transition: none; } }

/* ---- Ator, point 64 : onglet Puissance (os/ator-puissance.js) : banc de puissance virtuel et puissance utilisée ----
   Graphiques en SVG : marques fines, grille en filets, texte en encre (jamais la couleur d'une série) ; couleurs des
   rapports et de la courbe posées par le script ; verdict : couleurs d'état réservées, avec icône et libellé. */
.at-ppuiss { overflow: auto; }
.at-pu { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 16px; max-width: 960px; font-size: 13px; line-height: 1.45; color: #222; }
.at-pu-barre { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.at-pu-ltraj { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; color: #444; }
.at-pu-traj { min-width: 0; max-width: 100%; }
.at-pu-info { color: #666; font-size: 12px; }
.at-pu-note { margin: 0; padding: 6px 10px; border-left: 3px solid #9aa4b0; background: #f6f7f9; color: #333; }
.at-pu-msg { padding: 10px 12px; background: #f6f5f2; border: 1px solid #e2dfd8; border-radius: 4px; color: #444; }
.at-pu-corps { display: flex; flex-direction: column; gap: 16px; transition: opacity .2s; }
.at-pu-attente .at-pu-corps { opacity: .55; }   /* nouveau calcul : l'ancien résultat reste en place, atténué */
.at-pu-res { display: flex; flex-direction: column; gap: 8px; }
.at-pu-trajet { color: #52514e; font-size: 12px; }
.at-pu-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.at-pu-test { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef3fb; color: #1c3d6e; font-size: 12px; font-weight: 600; }   /* point 115 */
.at-pu-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.at-pu-big { font: 600 48px/1.05 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0b0b0b; white-space: nowrap; }
.at-pu-sub { color: #52514e; font-size: 14px; }
.at-pu-verdict { padding: 8px 12px; border: 1px solid #e3e6ea; border-left: 4px solid #9aa4b0; border-radius: 4px; background: #fff; }
.at-pu-v-bon { border-left-color: #0ca30c; }
.at-pu-v-alerte { border-left-color: #fab219; }
.at-pu-v-serieux { border-left-color: #ec835a; }
.at-pu-vi { margin-right: 6px; }
.at-pu-tuiles { display: flex; flex-wrap: wrap; gap: 8px; }
.at-pu-tuile { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid #e3e6ea; border-radius: 6px; background: #fafbfc; }
.at-pu-tt { color: #52514e; font-size: 12px; }
.at-pu-tv { color: #0b0b0b; font-size: 18px; font-weight: 600; }
.at-pu-ts { color: #52514e; font-size: 11px; }
.at-pu-ts.at-pu-fst { color: #8a5a00; }
.at-pu-ts.at-pu-fst.at-pu-fok { color: #1f7a3a; }
.at-pu-g1 { margin: 0; padding: 8px 12px; border-radius: 4px; background: #eef3fb; color: #1c3d6e; }
.at-pu-pnote { margin: 0; color: #52514e; font-size: 12px; }
.at-pu-ecart { padding: 6px 10px; border-left: 3px solid #9aa4b0; background: #f6f7f9; color: #333; }   /* point 70 : mesures écartées */
.at-pu-tl { margin: 0; padding-left: 18px; }   /* point 71 : temps d'accélération */
.at-pu-tl li { margin: 2px 0; font-variant-numeric: tabular-nums; }
.at-pu h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #1c2a3a; }
.at-pu-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 4px; font-size: 12px; color: #52514e; }
.at-pu-li { display: inline-flex; align-items: center; gap: 5px; color: #222; }
.at-pu-lrond { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.at-pu-lref { display: inline-block; width: 18px; height: 0; border-top: 1px dashed #52514e; }
.at-pu-zone { position: relative; }
.at-pu-svg { display: block; max-width: 100%; height: auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; user-select: none; -webkit-user-select: none; }
.at-pu-svg:focus { outline: 1px dotted #52514e; }
.at-pu-gh { stroke: #e1e0d9; stroke-width: 1; }
.at-pu-gv { stroke: #f0efec; stroke-width: 1; }
.at-pu-base { stroke: #c3c2b7; stroke-width: 1; }
.at-pu-ax { font-size: 11px; fill: #52514e; font-variant-numeric: tabular-nums; }
.at-pu-ptitre { font-size: 12px; font-weight: 600; fill: #1c2a3a; }
.at-pu-ref { stroke: #52514e; stroke-width: 1; stroke-dasharray: 5 4; }   /* référence (fiche), pas une grille */
.at-pu-reft { font-size: 11px; fill: #52514e; }
.at-pu-plage { stroke-width: 3; stroke-linecap: round; stroke-opacity: .5; }
.at-pu-marge { fill: none; stroke-width: 1.5; stroke-opacity: .7; }
.at-pu-pc { stroke: #fff; stroke-width: 2; }
.at-pu-hit { fill: transparent; pointer-events: all; }
.at-pu-pt { cursor: pointer; outline: none; }
.at-pu-pt:hover .at-pu-pc, .at-pu-pt:focus .at-pu-pc { stroke: #222; }
.at-pu-lab { font-size: 12px; fill: #222; }
.at-pu-labx { font-weight: 600; }
.at-pu-bande { fill: #52514e; fill-opacity: .08; }
.at-pu-aire { fill-opacity: .10; stroke: none; }
.at-pu-ligne { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.at-pu-croix { stroke: #52514e; stroke-width: 1; }
.at-pu-tip { position: absolute; z-index: 5; pointer-events: none; padding: 5px 8px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 12px; line-height: 1.45; color: #222; white-space: nowrap; }
.at-pu-key { display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; }
.at-pu-usrc { margin: 0 0 4px; color: #52514e; font-size: 12px; }
.at-pu-tab { margin-top: 6px; font-size: 12px; }
.at-pu-tab summary, .at-pu-aide summary { cursor: pointer; color: #1c5cab; }
.at-pu-tab div { overflow: auto; max-height: 340px; }
.at-pu-tab table { border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.at-pu-tab th, .at-pu-tab td { padding: 3px 8px; border: 1px solid #e2e5e9; text-align: left; white-space: nowrap; }
.at-pu-tab thead th { background: #f4f6f8; font-weight: normal; }
.at-pu-aide { color: #333; }
.at-pu-aide p { margin: 6px 0; }
.at-etroit .at-pu { padding: 8px 8px 14px; }
.at-etroit .at-pu-tuile { flex-basis: 140px; }
@media (prefers-reduced-motion: reduce) { .at-pu-corps { transition: none; } }

/* ---- Ator, point 66 : onglet Conduite (os/ator-conduite.js) : note de conduite et consommation du trajet (point 65) ----
   Note : une seule série (bleu de la palette) ; barres des critères en bleu sur une piste du même bleu plus clair ;
   mention : couleurs d'état réservées, toujours avec une icône et le libellé ; textes en encre, jamais en couleur de série. */
.at-pconduite { overflow: auto; }
.at-co { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 16px; max-width: 960px; font-size: 13px; line-height: 1.45; color: #222; }
.at-co-barre { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.at-co-ltraj { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; color: #444; }
.at-co-traj { min-width: 0; max-width: 100%; }
.at-co-info { color: #666; font-size: 12px; }
.at-co-note { margin: 0; padding: 6px 10px; border-left: 3px solid #9aa4b0; background: #f6f7f9; color: #333; }
.at-co-msg { padding: 10px 12px; background: #f6f5f2; border: 1px solid #e2dfd8; border-radius: 4px; color: #444; }
.at-co-corps { display: flex; flex-direction: column; gap: 16px; transition: opacity .2s; }
.at-co-attente .at-co-corps { opacity: .55; }   /* nouveau calcul : l'ancien résultat reste en place, atténué */
.at-co-res { display: flex; flex-direction: column; gap: 6px; }
.at-co-trajet { color: #52514e; font-size: 12px; }
.at-co-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 8px 14px; border: 1px solid #e3e6ea; border-left: 4px solid #9aa4b0; border-radius: 4px; background: #fff; }
.at-co-e-bon { border-left-color: #0ca30c; }
.at-co-e-alerte { border-left-color: #fab219; }
.at-co-e-serieux { border-left-color: #ec835a; }
.at-co-e-critique { border-left-color: #d03b3b; }
.at-co-big { font: 600 48px/1.05 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0b0b0b; white-space: nowrap; }
.at-co-big small { margin-left: 2px; font-size: 20px; font-weight: 500; color: #52514e; }
.at-co-mention { font-size: 20px; color: #0b0b0b; }
.at-co-mention b { font-weight: 600; }
.at-co-vi { margin-right: 6px; }
.at-co-nonnote { padding: 8px 12px; border: 1px solid #e3e6ea; border-left: 4px solid #9aa4b0; border-radius: 4px; background: #fff; color: #333; }
.at-co-tp { margin: 0; padding: 6px 10px; border-radius: 4px; background: #eef3fb; color: #1c3d6e; font-size: 13px; }   /* point 115 : test de puissance hors note */
.at-co h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #1c2a3a; }
.at-co-barres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.at-co-c { min-width: 0; }
.at-co-ct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.at-co-ct b { font-weight: 600; color: #1c2a3a; }
.at-co-cp { color: #6b6a65; font-size: 11px; }
.at-co-tag { padding: 0 6px; border-radius: 8px; background: #eef3fb; color: #1c3d6e; font-size: 11px; }
.at-co-cv { margin-left: auto; font-weight: 600; color: #0b0b0b; font-variant-numeric: tabular-nums; }
.at-co-nd .at-co-cv { font-weight: normal; color: #6b6a65; }
.at-co-piste { height: 8px; margin: 4px 0 3px; border-radius: 4px; background: #cde2fb; overflow: hidden; }
.at-co-piste i { display: block; height: 100%; border-radius: 4px; background: #2a78d6; }
.at-co-cd { color: #52514e; font-size: 12px; }
.at-co-conseil { margin: 0; padding: 8px 12px; border-radius: 4px; background: #eef3fb; color: #1c3d6e; }
.at-co-mnote, .at-co-enote, .at-co-csrc { margin: 0 0 6px; color: #52514e; font-size: 12px; }
.at-co-csrc { margin: 6px 0 0; }
.at-co-mliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.at-co-mom { display: flex; align-items: baseline; gap: 10px; width: 100%; box-sizing: border-box; padding: 6px 10px; border: 1px solid #e3e6ea; border-radius: 4px; background: #fff; font: inherit; color: #222; text-align: left; }
button.at-co-mom { cursor: pointer; }
button.at-co-mom:hover, button.at-co-mom:focus { background: #eef5fd; border-color: #9fbbe0; outline: none; }
.at-co-mh { color: #1c2a3a; font-variant-numeric: tabular-nums; }
.at-co-mt { flex: 1; min-width: 0; }
.at-co-mp { font-style: normal; font-weight: 600; color: #52514e; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* point 118 : patinages et dérapages (Conduite, Carte, Courbes) */
.at-co-dr { border-left: 4px solid #8e9cad; }
.at-co-dr-patinage { border-left-color: #c46a00; }
.at-co-dr-arriere { border-left-color: #b8202a; }
.at-co-dr-avant { border-left-color: #6b3fa0; }
.at-co-dr-esp { border-left-color: #2a78d6; }
.at-co-tel { margin: 6px 0 0; padding: 6px 10px; border-radius: 4px; background: #fff6e5; color: #5a3d00; font-size: 12px; }
.at-co-tel[hidden], .at-co-drp[hidden] { display: none; }
.at-co-tuiles { display: flex; flex-wrap: wrap; gap: 8px; }
.at-co-tuiles[hidden] { display: none; }
.at-co-tuile { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid #e3e6ea; border-radius: 6px; background: #fafbfc; }
.at-co-tt { color: #52514e; font-size: 12px; }
.at-co-tv { color: #0b0b0b; font-size: 18px; font-weight: 600; }
.at-co-ts { color: #52514e; font-size: 11px; }
.at-co-zone { position: relative; }
.at-co-svg { display: block; max-width: 100%; height: auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; user-select: none; -webkit-user-select: none; }
.at-co-svg:focus { outline: 1px dotted #52514e; }
.at-co-gh { stroke: #e1e0d9; stroke-width: 1; }
.at-co-base { stroke: #c3c2b7; stroke-width: 1; }
.at-co-ax { font-size: 11px; fill: #52514e; font-variant-numeric: tabular-nums; }
.at-co-zm { font-size: 11px; fill: #6b6a65; }
.at-co-ligne { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.at-co-pt { stroke: #fff; stroke-width: 2; }
.at-co-anneau { fill: none; stroke: #0b0b0b; stroke-width: 1.5; }
.at-co-croix { stroke: #52514e; stroke-width: 1; }
.at-co-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.at-co-lab { font-size: 12px; fill: #222; }
.at-co-labx { font-weight: 600; }
.at-co-tip { position: absolute; z-index: 5; pointer-events: none; padding: 5px 8px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 12px; line-height: 1.45; color: #222; white-space: nowrap; }
.at-co-key { display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; }
.at-co-tab { margin-top: 6px; font-size: 12px; }
.at-co-tab summary, .at-co-aide summary { cursor: pointer; color: #1c5cab; }
.at-co-tab div { overflow: auto; max-height: 340px; }
.at-co-tab table { border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.at-co-tab th, .at-co-tab td { padding: 3px 8px; border: 1px solid #e2e5e9; text-align: left; white-space: nowrap; }
.at-co-tab thead th { background: #f4f6f8; font-weight: normal; }
.at-co-aide { color: #333; }
.at-co-aide p { margin: 6px 0; }
.at-etroit .at-co { padding: 8px 8px 14px; }
.at-etroit .at-co-barres { grid-template-columns: minmax(0, 1fr); }
.at-etroit .at-co-tuile { flex-basis: 140px; }
@media (prefers-reduced-motion: reduce) { .at-co-corps { transition: none; } }

/* ---- Ator, point 109 : onglet Suivi (os/ator-suivi.js) : la voiture comparée à elle-même dans le temps ----
   Une carte par indicateur ; une seule série par graphique (bleu de la palette), référence en pointillé gris, zone
   « à surveiller » en léger lavis ; états : couleurs réservées, toujours avec une icône et le libellé ; textes en encre. */
.at-psuivi { overflow: auto; }
.at-su { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 16px; max-width: 960px; font-size: 13px; line-height: 1.45; color: #222; }
.at-su-barre { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.at-su-info { color: #666; font-size: 12px; }
.at-su-intro { margin: 0; color: #52514e; }
.at-su-msg { padding: 10px 12px; background: #f6f5f2; border: 1px solid #e2dfd8; border-radius: 4px; color: #444; }
.at-su-corps { display: flex; flex-direction: column; gap: 14px; transition: opacity .2s; }
.at-su-attente .at-su-corps { opacity: .55; }   /* nouveau calcul : l'ancien résultat reste en place, atténué */
.at-su-synth { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 8px 12px; border: 1px solid #e3e6ea; border-radius: 4px; background: #fafbfc; }
.at-su-synth b { font-weight: 600; color: #1c2a3a; }
.at-su-cpt { color: #333; white-space: nowrap; }
.at-su-vi { margin-right: 5px; }
.at-su-liste { display: flex; flex-direction: column; gap: 12px; }
.at-su-ind { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 12px; border: 1px solid #e3e6ea; border-left: 4px solid #9aa4b0; border-radius: 4px; background: #fff; min-width: 0; }
.at-su-e-ok { border-left-color: #0ca30c; }
.at-su-e-surveiller { border-left-color: #fab219; }
.at-su-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.at-su h3 { margin: 0; font-size: 15px; font-weight: 600; color: #1c2a3a; }
.at-su-badge { font-size: 13px; color: #0b0b0b; white-space: nowrap; }
.at-su-e-surveiller .at-su-badge { font-weight: 600; }
.at-su-chiffres { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 22px; }
.at-su-der b { font-size: 22px; font-weight: 600; color: #0b0b0b; margin-right: 6px; }
.at-su-der small, .at-su-refv small { color: #52514e; font-size: 12px; }
.at-su-refv b { margin-left: 6px; font-size: 15px; font-weight: 600; color: #333; }
.at-su-verdict { margin: 0; color: #222; }
.at-su-e-surveiller .at-su-verdict { padding: 6px 10px; border-radius: 4px; background: #fff7e4; color: #3d2c00; }
.at-su-quoi, .at-su-leg { margin: 0; color: #52514e; font-size: 12px; }
.at-su-quoi b { color: #333; font-weight: 600; }
.at-su-zone { position: relative; }
.at-su-svg { display: block; max-width: 100%; height: auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; user-select: none; -webkit-user-select: none; }
.at-su-svg:focus { outline: 1px dotted #52514e; }
.at-su-gh { stroke: #e1e0d9; stroke-width: 1; }
.at-su-base { stroke: #c3c2b7; stroke-width: 1; }
.at-su-ax { font-size: 11px; fill: #52514e; font-variant-numeric: tabular-nums; }
.at-su-zalerte { fill: #fdf1d6; }
.at-su-zm { font-size: 11px; fill: #6b5a2e; }
.at-su-ref { stroke: #52514e; stroke-width: 1.5; stroke-dasharray: 5 4; }
.at-su-reflab { font-size: 11px; fill: #333; font-variant-numeric: tabular-nums; }
.at-su-ligne { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.at-su-pt { stroke: #fff; stroke-width: 2; }
.at-su-ptb { fill: #fff; stroke-width: 2; }
.at-su-lab { font-size: 12px; font-weight: 600; fill: #222; }
.at-su-anneau { fill: none; stroke: #0b0b0b; stroke-width: 1.5; }
.at-su-croix { stroke: #52514e; stroke-width: 1; }
.at-su-hit { fill: transparent; pointer-events: all; cursor: crosshair; }
.at-su-tip { position: absolute; z-index: 5; pointer-events: none; padding: 5px 8px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 12px; line-height: 1.45; color: #222; max-width: 300px; }
.at-su-tipr { color: #52514e; }
.at-su-key { display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; }
.at-su-tab { font-size: 12px; color: #333; }
.at-su-tab summary, .at-su-aide summary { cursor: pointer; color: #1c5cab; }
.at-su-tab p { margin: 6px 0; }
.at-su-tabw { overflow: auto; max-height: 300px; }
.at-su-tab table { border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.at-su-tab th, .at-su-tab td { padding: 3px 8px; border: 1px solid #e2e5e9; text-align: left; }
.at-su-tab td:first-child, .at-su-tab td:nth-child(2) { white-space: nowrap; }
.at-su-tab thead th { background: #f4f6f8; font-weight: normal; }
.at-su-abs ul { margin: 4px 0 0; padding-left: 18px; color: #52514e; }
.at-su-abs li { margin: 2px 0; }
.at-su-abs b { color: #333; font-weight: 600; }
.at-su-aide { color: #333; }
.at-su-aide p { margin: 6px 0; }
.at-etroit .at-su { padding: 8px 8px 14px; }
.at-etroit .at-su-ind { padding: 8px 10px 10px; }
@media (prefers-reduced-motion: reduce) { .at-su-corps { transition: none; } }
/* Liste des trajets de la Carte : note de conduite en pastille (point de la couleur de la mention, chiffre en encre) */
.at-ti .at-tnote { display: inline-flex; align-items: center; gap: 4px; float: right; margin-left: 6px; padding: 0 6px; border: 1px solid #d3dde9; border-radius: 9px; background: #fff; color: #0b0b0b; font-size: 11px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; }
.at-ti .at-tnote i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* ===== Sopremapool Tool (spm-, application « sopremapool ») : connexion, formulaire, plan 3D, lés, liste de courses ===== */
.spm-root { height: 100%; min-height: 0; display: flex; flex-direction: column; background: #f8f9fa; color: #212529; font-size: 13px; }
.spm-root:focus { outline: none; }
.spm-attente { margin: auto; color: #6c757d; padding: 20px; }
.spm-cache { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.spm-bad { color: #b02a37 !important; }
.spm-btn { padding: 5px 12px; border: 1px solid #ced4da; border-radius: 6px; background: #fff; color: #212529; font: inherit; cursor: pointer; }
.spm-btn:hover { background: #e9ecef; }
.spm-btn:disabled { opacity: .6; cursor: default; }
.spm-prim { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.spm-prim:hover { background: #0b5ed7; }
/* Connexion */
.spm-login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: linear-gradient(160deg, #e7f1fb, #f8f9fa 60%); }
.spm-login-card { width: 100%; max-width: 360px; padding: 22px 24px; border: 1px solid #dee2e6; border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(13, 54, 100, .12); text-align: center; }
.spm-login-ico { width: 64px; height: 64px; margin: 0 auto 4px; }
.spm-login-ico svg { width: 64px; height: 64px; }
.spm-login h2 { margin: 2px 0 6px; font-size: 20px; }
.spm-login-t { margin: 0 0 14px; color: #495057; line-height: 1.45; }
.spm-login-l { display: block; text-align: left; font-weight: bold; color: #495057; }
.spm-login-l input, .spm-chg input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: #212529; }
.spm-login-l input:focus, .spm-chg input:focus, .spm-in input:focus, .spm-form select:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13, 110, 253, .2); }
.spm-login-b { width: 100%; margin-top: 12px; padding: 8px; font-size: 14px; }
.spm-login-msg { min-height: 18px; margin: 10px 0 0; color: #495057; }
.spm-login-pied { margin: 12px 0 0; color: #6c757d; font-size: 11px; line-height: 1.4; }
.spm-chg { padding: 12px 14px; font-size: 13px; color: #212529; background: #fff; height: 100%; box-sizing: border-box; overflow: auto; }
.spm-chg label { display: block; margin-bottom: 8px; color: #495057; }
.spm-chg-msg { min-height: 16px; margin: 4px 0 8px; }
.spm-chg-b { text-align: right; }
/* Application */
.spm-app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.spm-main { flex: 1; min-height: 0; display: flex; }
.spm-form { flex: none; width: 330px; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 10px 12px; border-right: 1px solid #dee2e6; background: #fff; box-sizing: border-box; }
.spm-form fieldset { margin: 0 0 8px; padding: 6px 10px 8px; border: 1px solid #dee2e6; border-radius: 6px; min-width: 0; }
.spm-form legend { padding: 0 4px; font-weight: bold; color: #0a58ca; }
.spm-f { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; gap: 8px; }
.spm-f > span:first-child { flex: 1; color: #495057; }
.spm-in { display: inline-flex; align-items: center; flex: none; }
.spm-in input { width: 74px; padding: 4px 6px; border: 1px solid #ced4da; border-radius: 5px; font: inherit; text-align: right; background: #fff; color: #212529; }
.spm-in i { width: 22px; margin-left: 4px; font-style: normal; color: #6c757d; }
.spm-form select { max-width: 190px; padding: 4px; border: 1px solid #ced4da; border-radius: 5px; font: inherit; background: #fff; color: #212529; }
.spm-ref input { width: 150px; padding: 4px 6px; border: 1px solid #ced4da; border-radius: 5px; font: inherit; }
.spm-radios label, .spm-case { display: block; margin: 3px 0; cursor: pointer; }
.spm-note { margin: 2px 0 0; color: #6c757d; font-size: 11px; }
.spm-sens { margin-top: 4px; font-size: 11.5px; color: #6c757d; line-height: 1.45; }
.spm-sens .on { color: #146c43; }
.spm-inactif { opacity: .45; }
.spm-erreurs { display: none; margin-bottom: 8px; padding: 6px 8px; border: 1px solid #f1aeb5; border-radius: 6px; background: #f8d7da; color: #842029; font-size: 12px; }
.spm-erreurs.spm-avert { border-color: #ffe69c; background: #fff3cd; color: #664d03; }
.spm-erreurs ul { margin: 3px 0 0; padding-left: 16px; }
.spm-cl { display: flex; align-items: center; justify-content: space-between; margin: 3px 0; gap: 6px; }
.spm-cl-n { color: #495057; }
.spm-sw { flex: none; display: inline-flex; gap: 3px; }
.spm-pastille { display: inline-block; min-width: 46px; padding: 2px 6px; border: 2px solid transparent; border-radius: 12px; font: inherit; font-size: 11.5px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.spm-pastille.on { border-color: #212529; font-weight: bold; }
.spm-gris { background: #a3acb1; color: #1d262c; }
.spm-bleu { background: #3d92d4; color: #fff; }
.spm-blanc { background: #eef3f5; color: #24333c; }
i.spm-pastille { min-width: 0; width: 11px; height: 11px; padding: 0; border-width: 1px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; cursor: default; }
.spm-tout { margin: 0 0 6px; color: #495057; }
.spm-tout .spm-pastille { margin-left: 3px; }
.spm-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.spm-droite { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spm-tabs { flex: none; display: flex; padding: 6px 8px 0; background: #eef1f5; border-bottom: 1px solid #ced4da; overflow-x: auto; overflow-y: hidden; }
.spm-tab { flex: none; position: relative; top: 1px; margin-right: 2px; padding: 6px 14px; border: 1px solid #ced4da; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f6f7f9; font: inherit; color: #495057; cursor: pointer; }
.spm-tab:hover { background: #fff; }
.spm-tab.on { background: #fff; color: #0d6efd; font-weight: bold; border-bottom: 1px solid #fff; }
.spm-pans { flex: 1; min-height: 0; position: relative; background: #fff; }
.spm-pan { display: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.spm-pan.on { display: block; }
.spm-p3d.on { display: flex; flex-direction: column; overflow: hidden; }
.spm-barre3d { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid #dee2e6; background: #f8f9fa; }
.spm-aide3d { margin-left: 6px; color: #6c757d; font-size: 11.5px; }
.spm-scene { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #dce8f1; }
.spm-scene.spm-charge::after { content: 'Chargement de la 3D…'; position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: #495057; }
.spm-canvas { display: block; touch-action: none; cursor: grab; }
.spm-bulle { display: none; position: absolute; z-index: 2; max-width: 260px; padding: 5px 8px; border: 1px solid #adb5bd; border-radius: 6px; background: rgba(255, 255, 255, .96); color: #212529; font-size: 12px; line-height: 1.4; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.spm-legende { flex: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 10px; border-top: 1px solid #dee2e6; background: #f8f9fa; color: #495057; font-size: 11.5px; }
.spm-hach, .spm-rec { display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: -1px; border: 1px solid #6c757d; }
.spm-hach { background: repeating-linear-gradient(135deg, rgba(232, 89, 12, .55) 0 3px, rgba(160, 50, 0, .9) 3px 4px); }
.spm-rec { background: #5a6369; opacity: .7; }
.spm-sousfond { display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: -1px; border: 1px dashed #5028be; background: repeating-linear-gradient(135deg, rgba(112, 72, 232, .35) 0 3px, rgba(80, 40, 190, .85) 3px 4px); }
.spm-marches:empty { display: none; }
.spm-marches .spm-btn { margin-top: 4px; }
.spm-sans3d { max-width: 520px; margin: 40px auto; padding: 14px 16px; border: 1px solid #ffe69c; border-radius: 8px; background: #fff3cd; color: #664d03; line-height: 1.5; }
.spm-sans3d p { margin: 6px 0 0; }
.spm-doc { padding: 10px 14px 16px; }
.spm-doc h3 { margin: 14px 0 6px; font-size: 14px; color: #212529; }
.spm-doc h3:first-child { margin-top: 2px; }
.spm-doc h4 { margin: 8px 0 4px; font-size: 13px; }
.spm-doc h4 small { font-weight: normal; color: #6c757d; }
.spm-t { width: 100%; border-collapse: collapse; margin: 2px 0 6px; font-size: 12.5px; }
.spm-t th, .spm-t td { padding: 4px 7px; border: 1px solid #dee2e6; text-align: left; vertical-align: top; }
.spm-t th { background: #f1f3f5; color: #495057; }
.spm-t .spm-n { text-align: right; white-space: nowrap; }
.spm-t tr.spm-on td { background: #e8f5ee; }
.spm-coupe { display: inline-block; margin-right: 8px; white-space: nowrap; }
.spm-plan { overflow-x: auto; padding: 4px 0; }
.spm-svg { max-width: 100%; height: auto; }
.spm-vide { padding: 18px 14px; color: #6c757d; }
.spm-aide { padding: 10px 16px 18px; max-width: 820px; line-height: 1.5; }
.spm-aide h3 { margin: 14px 0 4px; font-size: 14px; color: #0a58ca; }
.spm-aide h3:first-child { margin-top: 2px; }
.spm-aide ul { margin: 4px 0; padding-left: 20px; }
.spm-aide p { margin: 4px 0; }
.spm-root .statusbar { flex: none; display: flex; justify-content: space-between; gap: 10px; }
.spm-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Affichage étroit (téléphone, fenêtre étroite) : le formulaire devient l'onglet « Mesures » */
.spm-etroit .spm-form { display: none; width: auto; border-right: 0; }
.spm-etroit.spm-voir-form .spm-form { display: block; flex: 1; }
.spm-etroit.spm-voir-form .spm-droite { flex: none; }
.spm-etroit.spm-voir-form .spm-pans { display: none; }
.spm-etroit.spm-voir-form .spm-main { flex-direction: column-reverse; }
.spm-etroit .spm-aide3d { display: none; }
.spm-etroit .spm-tab { padding: 6px 10px; }
.spm-etroit .spm-sum { display: none; }

/* ===== PicToBurn (ptb-, application « pictoburn ») : planche de variantes, aperçu, réglages, export LightBurn ===== */
.ptb { display: flex; flex-direction: column; flex: 1; min-height: 0; outline: 0; }
.ptb .cmdbar button.on { background: #dbe9f9; box-shadow: inset 0 0 0 1px #7da2ce; }
.ptb-sep { width: 1px; height: 20px; background: #b6c3d3; margin: 0 4px; flex: none; }
.ptb-body { flex: 1; min-height: 0; display: flex; }
.ptb-main { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #5a5f67; }
.ptb-main.over::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(80,150,230,.25); outline: 2px dashed #9cc8f5; outline-offset: -10px; pointer-events: none; }
.ptb-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #eef1f5; text-align: center; padding: 20px; }
.ptb-empty .ico { width: 72px; height: 72px; }
.ptb-empty .ico svg { width: 100%; height: 100%; }
.ptb-empty b { font-size: 16px; font-weight: normal; }
.ptb-empty .btn7 { color: #000; }
.ptb-empty small { color: #c9d0d8; max-width: 420px; line-height: 1.45; }
.ptb-planche { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-content: start; }
.ptb-card { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 5px; margin: 0; border: 1px solid #3f444b; border-radius: 4px; background: #eef1f4; color: #1e2a3a; cursor: pointer; text-align: left; font: inherit; }
.ptb-card:hover { border-color: #8ec1ff; box-shadow: 0 0 0 2px rgba(80,150,230,.5); }
.ptb-card.on { border-color: #e2541c; box-shadow: 0 0 0 2px #e2541c; }
.ptb-cv { position: relative; display: block; background: #fff; line-height: 0; }
.ptb-cv canvas { width: 100%; height: auto; display: block; }
.ptb-wait { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: #888; font-style: normal; line-height: 1.2; }
.ptb-cn { font-size: 12px; font-weight: bold; line-height: 1.3; }
.ptb-card small { color: #5b6573; font-size: 11px; min-height: 14px; }
.ptb-apercu { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: auto; padding: 12px; text-align: center; }
.ptb-apercu.ajuste { display: flex; align-items: center; justify-content: center; }
.ptb-apercu.hidden { display: none; }
.ptb-can { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.45); image-rendering: auto; }
.ptb-apercu:not(.ajuste) .ptb-can { image-rendering: pixelated; }
.ptb-busy { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(255,255,255,.95); color: #1e395b; border: 1px solid #8ea7c4; padding: 6px 14px; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.35); white-space: nowrap; z-index: 2; }
.ptb-side { width: 310px; flex: none; overflow: auto; background: #f5f8fc; border-left: 1px solid #c5d2e3; }
.ptb-sec { border-bottom: 1px solid #dde5ef; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.ptb-sec h3 { margin: 0; font-size: 13px; font-weight: normal; color: #1e3287; }
.ptb-sub { color: #555; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.ptb-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ptb-line label { display: flex; align-items: center; gap: 5px; flex: 1; color: #1e395b; white-space: nowrap; }
.ptb-line .sel7 { flex: 1; min-width: 0; }
.ptb-line input[type=number] { width: 70px; min-width: 0; }
.ptb-sl { display: grid; grid-template-columns: 1fr 42px; grid-template-rows: auto auto; column-gap: 6px; color: #1e395b; }
.ptb-sll { grid-column: 1 / 3; font-size: 12px; }
.ptb-sl input[type=range] { width: 100%; min-width: 0; margin: 0; }
.ptb-sl output { text-align: right; font-size: 12px; color: #333; }
.ptb-mm { color: #777; }
.ptb-chk { display: flex; align-items: center; gap: 6px; color: #1e395b; font-size: 12px; }
.ptb-sw { display: inline-block; width: 14px; height: 14px; border: 1px solid #889; border-radius: 2px; }
.ptb-sec .btn7 { align-self: stretch; }
.ptb-det summary { cursor: pointer; color: #1e3287; font-size: 12px; margin: 2px 0; }
.ptb-det { display: flex; flex-direction: column; gap: 5px; }
.ptb-stats { color: #1b6d2e; }
.ptb-aide { line-height: 1.5; }
@media (max-width: 700px) {
  .ptb .cmdbar { overflow-x: auto; }
  .ptb-body { flex-direction: column; }
  .ptb-main { min-height: 45%; }
  .ptb-side { width: auto; height: 50%; border-left: 0; border-top: 1px solid #c5d2e3; }
  .ptb-planche { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ===== Vote 2027 (vt-, application « vote2027 », adresse /vote-2027) : vote humoristique, compte à rebours, résultat à la clôture ===== */
.vt-root { height: 100%; width: 100%; overflow: auto; box-sizing: border-box; padding: 18px;
  background: linear-gradient(180deg, #7cc4f5 0%, #bfe4fb 55%, #f4f9e8 100%); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #17324d; }
.vt-carte { max-width: 560px; margin: 0 auto; box-sizing: border-box; background: rgba(255,255,255,.88); border-radius: 18px; padding: 20px 20px 14px;
  box-shadow: 0 10px 30px rgba(20,60,100,.18); text-align: center; }
.vt-titre { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2a7bc0; }
.vt-q1 { font-size: 28px; font-weight: 700; margin: 6px 0 14px; }
.vt-choix { display: flex; align-items: stretch; gap: 10px; }
.vt-ou { align-self: center; font-style: italic; font-weight: 600; color: #5a7590; }
.vt-btn { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px;
  border: 2px solid #b9d6ee; border-radius: 16px; background: #fff; color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.vt-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(30,90,150,.2); border-color: #2a7bc0; }
.vt-btn:focus-visible { outline: 3px solid #f0a020; outline-offset: 2px; }
.vt-btn:disabled { cursor: default; }
.vt-emoji { font-size: 54px; line-height: 1.1; }
.vt-btn-pilote .vt-emoji { animation: vt-vol 3s ease-in-out infinite; }
.vt-btn-saute .vt-emoji { animation: vt-chute 3.6s ease-in-out infinite; }
@keyframes vt-vol { 0%, 100% { transform: translate(-4px, 0) rotate(-4deg); } 50% { transform: translate(4px, -5px) rotate(3deg); } }
@keyframes vt-chute { 0%, 100% { transform: translateY(-4px) rotate(-6deg); } 50% { transform: translateY(5px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .vt-emoji { animation: none !important; } }
.vt-label { font-size: 18px; font-weight: 700; }
.vt-sous { font-size: 12.5px; color: #5a7590; }
.vt-barre { display: none; width: 100%; height: 10px; border-radius: 5px; background: #e3eef7; overflow: hidden; margin-top: 4px; }
.vt-barre-in { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2a7bc0, #49b0f0); border-radius: 5px; transition: width 1.2s ease-out; }
.vt-score { font-size: 15px; font-weight: 700; color: #17324d; }
.vt-score:empty { display: none; }
.vt-vote .vt-btn { opacity: .55; }
.vt-vote .vt-btn.vt-mien { opacity: 1; border-color: #2fa35a; box-shadow: 0 0 0 3px rgba(47,163,90,.25); }
.vt-btn.vt-mien::after { content: "Mon vote"; position: absolute; top: 8px; right: -26px; transform: rotate(35deg); background: #2fa35a; color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 28px; }
.vt-ferme .vt-barre { display: block; }
.vt-ferme .vt-btn { opacity: .8; }
.vt-ferme .vt-btn.vt-gagnant { opacity: 1; border-color: #f0a020; box-shadow: 0 0 0 3px rgba(240,160,32,.3); }
.vt-ferme .vt-gagnant .vt-barre-in { background: linear-gradient(90deg, #f0a020, #ffc94d); }
.vt-info { margin-top: 16px; font-size: 16px; font-weight: 600; }
.vt-compte { margin-top: 10px; display: inline-block; padding: 6px 14px; border-radius: 20px; background: #17324d; color: #fff;
  font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.vt-compte:empty { display: none; }
.vt-fin { margin-top: 10px; font-size: 13px; color: #3d5a75; line-height: 1.45; }
.vt-msg { margin-top: 8px; min-height: 1em; font-size: 13px; color: #3d5a75; }
.vt-msg.vt-err { color: #b8402f; }
/* Point 148 : résultat réservé (menu Résultats, mot de passe) */
.vt-cadre { display: flex; flex-direction: column; height: 100%; width: 100%; }
.vt-cadre > .vt-root { flex: 1; min-height: 0; height: auto; }
.vt-prive .vt-barre { display: block; }
.vt-prive-txt { margin-top: 12px; padding: 6px 10px; border-radius: 10px; background: #fff4dc; color: #6b4a00; font-size: 13.5px; font-weight: 600; }
.vt-prive-txt:empty { display: none; }
.vt-mdp-err { min-height: 1.2em; font-size: 12.5px; color: #b8402f; }
.vt-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid #dbe7f1; font-size: 11.5px; color: #6c8399; }
@media (max-width: 520px) {
  .vt-root { padding: 10px; }
  .vt-carte { padding: 16px 12px 12px; }
  .vt-q1 { font-size: 24px; }
  .vt-choix { flex-direction: column; }
  .vt-btn { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; text-align: left; column-gap: 12px; padding: 12px 14px; }
  .vt-emoji { font-size: 42px; flex: 0 0 auto; }
  .vt-btn .vt-label { flex: 1 1 60%; }
  .vt-sous { flex: 1 1 100%; }
  .vt-score { flex: 1 1 100%; }
}

/* ==========================================================================
   WIFI Carto (point 82, outil privé /wifi-carto, os/wificarto.js) : préfixe wc-
   ========================================================================== */
.wc-root { height: 100%; min-height: 0; display: flex; flex-direction: column; background: #f8f9fa; color: #212529; font-size: 13px; }
.wc-root:focus { outline: none; }
.wc-root.wc-ok { flex-direction: row; }
.wc-attente { margin: auto; padding: 20px; color: #495057; font-size: 15px; text-align: center; }
.wc-mauvais { color: #b02a37 !important; }
.wc-cache { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wc-gris { color: #6c757d; }
.wc-btn { display: inline-block; padding: 5px 10px; border: 1px solid #ced4da; border-radius: 6px; background: #fff; color: #212529; font: inherit; line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap; }
.wc-btn:hover { background: #e9ecef; }
.wc-btn:disabled, .wc-btn.wc-inactif { opacity: .55; cursor: default; background: #fff; }
.wc-prim { background: #1c5fae; border-color: #1c5fae; color: #fff; }
.wc-prim:hover { background: #164d8f; }
/* Connexion */
.wc-login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: linear-gradient(160deg, #e7f1fb, #f8f9fa 60%); }
.wc-login-carte { width: 100%; max-width: 360px; padding: 22px 24px; border: 1px solid #dee2e6; border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(13, 54, 100, .12); text-align: center; }
.wc-login-ico { width: 64px; height: 64px; margin: 0 auto 4px; }
.wc-login-ico svg { width: 64px; height: 64px; }
.wc-login h2 { margin: 2px 0 6px; font-size: 20px; }
.wc-login-t { margin: 0 0 14px; color: #495057; line-height: 1.45; }
.wc-login-l { display: block; text-align: left; font-weight: bold; color: #495057; }
.wc-login-l input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: #212529; }
.wc-login-l input:focus, .wc-filtre:focus, .wc-fond:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13, 110, 253, .2); }
.wc-login-b { width: 100%; margin-top: 12px; padding: 8px; font-size: 14px; }
.wc-login-msg { min-height: 18px; margin: 10px 0 0; color: #495057; }
/* Liste à gauche */
.wc-cote { flex: 0 0 330px; width: 330px; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid #dee2e6; background: #fff; }
.wc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; }
.wc-nb { color: #6c757d; font-size: 12px; white-space: nowrap; }
.wc-filtre { margin: 0 12px 8px; padding: 6px 8px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; color: #212529; }
.wc-liste { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; border-top: 1px solid #e9ecef; }
.wc-it { padding: 8px 12px; border-bottom: 1px solid #f1f3f5; cursor: pointer; }
.wc-it:hover { background: #f1f6fd; }
.wc-it:focus { outline: 2px solid #86b7fe; outline-offset: -2px; }
.wc-it.wc-sel { background: #dbe9fb; }
.wc-l1 { display: flex; justify-content: space-between; gap: 8px; }
.wc-ssid { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-ssid i { font-weight: normal; color: #495057; }
.wc-dist { flex: none; color: #6c757d; }
.wc-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.wc-l3 { margin-top: 2px; color: #6c757d; font-size: 12px; }
.wc-secu { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 17px; color: #fff; background: #6c757d; }
.wc-f-ouvert { background: #1f9d55; }
.wc-f-faible { background: #e8590c; }
.wc-f-protege { background: #2f6fd6; }
.wc-f-entreprise { background: #8e44ad; }
.wc-prec { font-weight: bold; }
.wc-prec.wc-pas { font-weight: normal; font-style: italic; color: #6c757d; }
.wc-nouv { color: #1c5fae; font-size: 11px; }
.wc-vide { padding: 14px 12px; color: #6c757d; line-height: 1.45; }
.wc-pied { padding: 7px 12px; border-top: 1px solid #e9ecef; color: #6c757d; font-size: 11.5px; line-height: 1.4; }
.wc-liens { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; }
.wc-lien { padding: 0; border: 0; background: none; color: #1c5fae; font: inherit; cursor: pointer; }
.wc-lien:hover { text-decoration: underline; }
/* Carte à droite */
.wc-droite { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.wc-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #dee2e6; background: #f8f9fa; }
.wc-esp { flex: 1; }
.wc-fond { padding: 4px 6px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; color: #212529; }
.wc-cartebox { position: relative; flex: 1; min-height: 0; }
.wc-carte { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #e9ecef; }
.wc-msg { position: absolute; top: 10px; left: 50%; z-index: 500; transform: translateX(-50%); max-width: 80%; padding: 6px 12px; border-radius: 6px; background: rgba(33, 37, 41, .85); color: #fff; font-size: 12px; text-align: center; }
.wc-legende { position: absolute; left: 10px; bottom: 24px; z-index: 450; max-width: 72%; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font-size: 11px; line-height: 1.7; }
.wc-legende > div > b { margin-right: 2px; }
.wc-legende span { margin-left: 8px; white-space: nowrap; }
.wc-legende i, .wc-echelle i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; vertical-align: -1px; }
/* Rond de précision (point 101 : seulement pour le réseau sélectionné ; couleur continue, vert précis → rouge imprécis) */
.wc-legende .wc-l-rond { padding-bottom: 11px; }
.wc-legende span.wc-degrade { position: relative; display: inline-block; width: 140px; height: 8px; margin: 0 14px 0 6px; border-radius: 4px; vertical-align: middle; }
.wc-degrade em { position: absolute; top: 9px; transform: translateX(-50%); font-style: normal; font-size: 10px; line-height: 1.2; color: #495057; white-space: nowrap; }
.wc-degrade em:last-child { transform: translateX(-60%); }
.wc-legende i.wc-rond, .wc-prec i.wc-rond { width: 11px; height: 11px; box-sizing: border-box; border: 2px solid #7f8c95; background: rgba(255, 255, 255, .6); vertical-align: -1px; }
.wc-prec i.wc-rond { display: inline-block; margin-right: 4px; border-radius: 50%; }
.wc-detail { position: absolute; top: 10px; right: 10px; z-index: 500; width: 330px; max-width: calc(100% - 20px); max-height: calc(100% - 20px); overflow: auto; box-sizing: border-box; padding: 10px 14px; border: 1px solid #dee2e6; border-radius: 8px; background: rgba(255, 255, 255, .97); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); line-height: 1.45; }
.wc-detail h3 { margin: 0 24px 6px 0; font-size: 15px; word-break: break-word; }
.wc-detail p { margin: 0 0 6px; }
.wc-detail ul { margin: 4px 0 0; padding-left: 16px; }
.wc-detail code { font-size: 11.5px; }
.wc-detail summary { cursor: pointer; color: #1c5fae; }
.wc-raison { color: #1c5fae; }
.wc-attente2 { color: #495057; font-style: italic; }
.wc-fermer { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: #495057; font-size: 20px; line-height: 1; cursor: pointer; }
.wc-fermer:hover { color: #000; }
/* Téléphones connectés */
.wc-tels { height: 100%; display: flex; flex-direction: column; box-sizing: border-box; padding: 12px 14px; background: #fff; color: #212529; font-size: 13px; line-height: 1.45; }
.wc-tels p { margin: 0 0 8px; color: #495057; }
.wc-tlist { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; border: 1px solid #e9ecef; border-radius: 6px; }
.wc-tlist li { padding: 8px 10px; border-bottom: 1px solid #f1f3f5; }
.wc-tlist .wc-btn { float: right; margin-top: -2px; }
.wc-revoque { float: right; color: #b02a37; font-size: 12px; }
.wc-tb { padding-top: 10px; text-align: right; }
/* Écran étroit (téléphone, petite fenêtre) : la carte en haut, la liste en dessous */
.wc-root.wc-ok.wc-etroit { flex-direction: column-reverse; }
.wc-etroit .wc-cote { flex: 0 0 42%; width: auto; border-right: 0; border-top: 1px solid #dee2e6; }
.wc-etroit .wc-barre { padding: 4px 6px; gap: 4px; }
.wc-etroit .wc-barre .wc-btn, .wc-etroit .wc-fond { padding: 3px 7px; font-size: 12px; }
.wc-etroit .wc-detail { top: auto; bottom: 10px; width: auto; left: 10px; max-height: 60%; }
.wc-etroit .wc-legende { display: none; }
/* Point 288 : recherche partout et appareils Bluetooth */
.wc-cherche { display: flex; gap: 6px; margin: 10px 12px 4px; }
.wc-cherche .wc-q { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; color: #212529; }
.wc-cherche .wc-q:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13, 110, 253, .2); }
.wc-res { flex: 0 1 auto; max-height: 45%; overflow-y: auto; margin: 4px 12px 6px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; }
.wc-res > p { margin: 6px 10px; }
.wc-res-t { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f1f3f5; background: #fff; }
.wc-res-x { border: 0; background: none; color: #495057; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.wc-r { padding: 7px 10px; border-bottom: 1px solid #f1f3f5; cursor: pointer; }
.wc-r:hover, .wc-r:focus { background: #f1f6ff; outline: none; }
.wc-r code, .wc-detail code { font-size: 11px; }
.wc-genre { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #fff; vertical-align: 1px; }
.wc-g-wifi { background: #2f6fd6; }
.wc-g-bt { background: #d6336c; }
.wc-case { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; cursor: pointer; user-select: none; }
.wc-case i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }

/* ==========================================================================
   Discothèque (point 149, os/discotheque.js) : musique privée de Steve
   ========================================================================== */
.dq-root { height: 100%; min-height: 0; display: flex; flex-direction: column; background: #f6f7f9; color: #1f2328; font-size: 13px; position: relative; }
.dq-root:focus { outline: none; }
.dq-attente { margin: auto; padding: 24px; max-width: 460px; text-align: center; color: #57606a; line-height: 1.5; }
.dq-mauvais { color: #b42318; }
.dq-login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: linear-gradient(160deg, #fbeee3, #f6f7f9 60%); }
.dq-login-carte { width: 100%; max-width: 360px; padding: 22px 24px; border: 1px solid #e3e6ea; border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(60, 30, 10, .10); text-align: center; }
.dq-login-ico svg { width: 64px; height: 64px; }
.dq-login h2 { margin: 6px 0 4px; font-size: 20px; }
.dq-login-t { margin: 0 0 14px; color: #57606a; line-height: 1.45; }
.dq-login-l { display: block; text-align: left; font-weight: 600; margin-bottom: 10px; }
.dq-mdp { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid #c9ced6; border-radius: 6px; font-size: 15px; }
.dq-login-g { display: block; text-align: left; margin: 2px 0 14px; color: #3d444d; }
.dq-cache { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dq-login-b { width: 100%; padding: 9px; font-size: 14px; }
.dq-login-msg { min-height: 1.3em; margin: 10px 0 0; color: #57606a; }
.dq-btn { -webkit-appearance: none; appearance: none; border: 1px solid #c9ced6; background: #fff; color: #1f2328; border-radius: 6px; padding: 5px 11px; font: inherit; cursor: pointer; line-height: 1.3; text-decoration: none; display: inline-block; }
.dq-btn:hover { background: #f0f2f5; }
.dq-btn:disabled { opacity: .5; cursor: default; }
.dq-btn.dq-prim { background: #c2410c; border-color: #a5370a; color: #fff; font-weight: 600; }
.dq-btn.dq-prim:hover { background: #a5370a; }
.dq-btn.dq-danger { border-color: #d0453b; color: #b42318; margin-top: 10px; }
.dq-btn.dq-actif { background: #1f2328; border-color: #1f2328; color: #fff; }
.dq-btn.dq-petit { padding: 2px 8px; font-size: 12px; }
.dq-barre { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #e3e6ea; background: #fff; flex: 0 0 auto; }
.dq-cherche { flex: 0 1 300px; min-width: 120px; padding: 6px 10px; border: 1px solid #c9ced6; border-radius: 16px; font: inherit; }
.dq-esp { flex: 1; }
.dq-menu { font-size: 16px; padding: 1px 12px; }
.dq-corps { flex: 1; min-height: 0; display: flex; position: relative; }
.dq-cote { flex: 0 0 210px; display: flex; flex-direction: column; border-right: 1px solid #e3e6ea; background: #fff; min-height: 0; }
.dq-cote-t { padding: 10px 12px 6px; font-weight: 700; color: #57606a; font-size: 12px; }
.dq-artistes { list-style: none; margin: 0; padding: 0 0 8px; overflow: auto; flex: 1; }
.dq-art { display: flex; gap: 6px; align-items: baseline; padding: 5px 12px; cursor: pointer; }
.dq-art:hover { background: #f3f4f6; }
.dq-art.dq-sel { background: #fde8dc; color: #8a2c07; font-weight: 600; }
.dq-art-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-art-c { color: #8c959f; font-size: 11px; }
.dq-main { flex: 1; min-width: 0; overflow: auto; padding: 14px 18px 24px; }
.dq-main:focus { outline: none; }
.dq-titre { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.dq-titre h2 { margin: 0; font-size: 20px; }
.dq-sous { color: #57606a; }
.dq-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dq-h3 { margin: 18px 0 8px; font-size: 14px; color: #3d444d; }
.dq-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; }
.dq-carte { cursor: pointer; min-width: 0; border-radius: 6px; padding: 6px; }
.dq-carte:hover, .dq-carte:focus { background: #eceef1; outline: none; }
.dq-carte-t { margin-top: 6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-carte-s { color: #57606a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-poch { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: #d8dce2; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.dq-poch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dq-poch-vide { display: flex; align-items: center; justify-content: center; }
.dq-poch-vide span { color: rgba(255, 255, 255, .92); font-weight: 700; font-size: 28px; letter-spacing: .5px; }
.dq-poch-g { width: 220px; flex: 0 0 220px; }
.dq-poch-g.dq-poch-vide span { font-size: 54px; }
.dq-album { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 16px; }
.dq-album-i { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dq-album-k { color: #8c959f; font-size: 12px; }
.dq-album h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.dq-lien { color: #a5370a; text-decoration: none; cursor: pointer; font-weight: 600; }
.dq-lien:hover { text-decoration: underline; }
.dq-album .dq-actions { margin-top: 8px; }
.dq-pistes { list-style: none; margin: 0; padding: 0; }
.dq-piste, .dq-file-p { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 5px; cursor: pointer; }
.dq-piste:hover, .dq-piste:focus { background: #eceef1; outline: none; }
.dq-piste.dq-encours, .dq-file-p.dq-encours { background: #fde8dc; }
.dq-piste.dq-encours .dq-p-titre { color: #8a2c07; font-weight: 700; }
.dq-p-no { flex: 0 0 24px; text-align: right; color: #8c959f; font-variant-numeric: tabular-nums; }
.dq-p-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dq-p-titre, .dq-p-art { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-p-art { color: #57606a; font-size: 12px; }
.dq-p-d { color: #57606a; font-variant-numeric: tabular-nums; }
.dq-p-b { display: flex; gap: 4px; visibility: hidden; }
.dq-piste:hover .dq-p-b, .dq-piste:focus-within .dq-p-b { visibility: visible; }
.dq-disque { padding: 12px 8px 4px; font-weight: 700; color: #57606a; }
.dq-liste-art { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dq-vide { max-width: 520px; margin: 40px auto; text-align: center; color: #3d444d; line-height: 1.5; }
.dq-file { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; max-width: 90%; background: #fff; border-left: 1px solid #e3e6ea; box-shadow: -6px 0 18px rgba(0, 0, 0, .08); display: flex; flex-direction: column; z-index: 2; }
.dq-file[hidden] { display: none; }
.dq-file-t { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #e3e6ea; }
.dq-file-t b { flex: 1; }
.dq-file-l { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.dq-file-vide { padding: 12px; color: #57606a; }
.dq-lecteur { flex: 0 0 auto; display: grid; grid-template-columns: 56px minmax(120px, 1.2fr) auto minmax(160px, 2fr) auto; grid-template-areas: 'poch infos cmd temps opt'; align-items: center; gap: 6px 14px; padding: 8px 14px; background: #1f2328; color: #f6f8fa; }
.dq-l-poch { grid-area: poch; width: 56px; }
.dq-l-poch .dq-poch { box-shadow: none; }
.dq-l-poch .dq-poch-vide span { font-size: 16px; }
.dq-l-infos { grid-area: infos; min-width: 0; cursor: pointer; }
.dq-l-titre { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-l-art { color: #b7bfc8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-l-cmd { grid-area: cmd; display: flex; align-items: center; gap: 8px; }
.dq-btn.dq-rond { width: 34px; height: 34px; border-radius: 50%; padding: 0; background: transparent; border-color: #57606a; color: #f6f8fa; font-size: 14px; }
.dq-btn.dq-rond:hover { background: #2f353d; }
.dq-btn.dq-rond.dq-lire { width: 42px; height: 42px; background: #f6f8fa; color: #1f2328; border-color: #f6f8fa; font-size: 16px; }
.dq-btn.dq-rond.dq-lire:hover { background: #fff; }
.dq-rond svg { width: 18px; height: 18px; display: block; margin: auto; }
.dq-rond.dq-lire svg { width: 22px; height: 22px; }
.dq-l-temps { grid-area: temps; display: flex; align-items: center; gap: 8px; min-width: 0; }
.dq-l-t { font-variant-numeric: tabular-nums; color: #b7bfc8; font-size: 12px; min-width: 34px; text-align: center; }
.dq-l-barre { flex: 1; min-width: 60px; accent-color: #f08c4a; }
.dq-l-opt { grid-area: opt; display: flex; align-items: center; gap: 6px; }
.dq-l-opt .dq-btn { background: transparent; color: #f6f8fa; border-color: #57606a; }
.dq-l-opt .dq-btn:hover { background: #2f353d; }
.dq-l-opt .dq-btn.dq-actif { background: #f08c4a; border-color: #f08c4a; color: #1f2328; }
.dq-l-vol { width: 80px; accent-color: #f08c4a; }
.dq-avis { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); background: #1f2328; color: #fff; padding: 7px 14px; border-radius: 16px; font-size: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 3; max-width: 90%; text-align: center; pointer-events: none; }
.dq-dlg { display: flex; flex-direction: column; height: 100%; }
.dq-dlg-c { flex: 1; overflow: auto; padding: 12px 14px; line-height: 1.45; }
.dq-dlg-c p { margin: 0 0 10px; }
.dq-dlg-c .dq-btn.dq-prim { display: block; text-align: center; margin: 6px 0 10px; }
.dq-petit-t { font-size: 12px; color: #57606a; }
.dq-tout-titre { font-weight: 600; }
.dq-tout-n { font-size: 22px; font-weight: 600; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.dq-tout-barre { height: 10px; border-radius: 5px; background: #eceef1; overflow: hidden; margin: 0 0 12px; }
.dq-tout-barre > div { height: 100%; background: #c2410c; transition: width .4s; }
.dq-tout-b { display: flex; flex-wrap: wrap; gap: 8px; }
.dq-tout-b .dq-btn.dq-danger { margin-top: 0; }
.dq-tout-l { margin: 0 0 10px; padding-left: 18px; font-size: 12px; color: #3d444d; overflow-wrap: anywhere; }
.dq-app-l { list-style: none; margin: 0 0 6px; padding: 0; }
.dq-app { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eceef1; }
.dq-app-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dq-app-t span { color: #57606a; font-size: 12px; }
.dq-fonds { display: inline-flex; border: 1px solid #c9ced6; border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.dq-fonds .dq-btn.dq-fonds-b { border: 0; border-radius: 0; padding: 5px 10px; }
.dq-fonds .dq-btn.dq-fonds-b + .dq-fonds-b { border-left: 1px solid #c9ced6; }
.dq-fonds .dq-btn.dq-fonds-b.dq-actif { background: #c2410c; color: #fff; }
.dq-intro { margin: -4px 0 14px; color: #57606a; line-height: 1.45; max-width: 720px; }
.dq-licence { margin: 18px 0 0; padding: 4px 14px 12px; border: 1px solid #e3e6ea; border-radius: 6px; background: #fff; max-width: 760px; }
.dq-licence .dq-h3 { margin: 10px 0 6px; }
.dq-licence-t { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: #3d444d; line-height: 1.45; }
.dq-btn.dq-login-r { display: block; width: 100%; margin-top: 12px; }
.dq-etroit .dq-fonds { order: 3; }
.dq-etroit .dq-menu { order: 4; }
.dq-etroit .dq-cote { display: none; }
.dq-etroit .dq-barre { flex-wrap: wrap; }
.dq-etroit .dq-cherche { flex: 1 1 100%; order: 5; }
.dq-etroit .dq-main { padding: 10px 10px 18px; }
.dq-etroit .dq-grille { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 8px; }
.dq-etroit .dq-album { flex-direction: column; align-items: flex-start; }
.dq-etroit .dq-poch-g { width: 160px; flex-basis: auto; }
.dq-etroit .dq-p-b { visibility: visible; }
.dq-etroit .dq-p-b .dq-btn { padding: 2px 6px; }
.dq-etroit .dq-lecteur { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: 'poch infos cmd' 'temps temps temps' 'opt opt opt'; padding: 8px 10px; }
.dq-etroit .dq-l-poch { width: 48px; }
.dq-etroit .dq-l-opt { justify-content: center; }
/* Discothèque, point 170 : conversion à l'écoute, chanson illisible */
.dq-l-art.dq-conv { color: #f6c177; font-style: italic; }
.dq-piste.dq-illisible .dq-p-titre { color: #8c959f; text-decoration: line-through; }
/* Discothèque, point 173 : noms d'artistes */
.dq-actions .dq-art-menu { min-width: 32px; }
.dq-noms .dq-h3 { margin: 14px 0 6px; }
.dq-noms .dq-app-t b { overflow-wrap: anywhere; }
.dq-noms .dq-app-t span { overflow-wrap: anywhere; }
.dq-garde { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #3d444d; }
.dq-garde select { max-width: 260px; font: inherit; }

/* ===== Codes QR (qrc-, application « codesqr », adresse /codes-qr, point 187) : modèles de contenu, réglages, aperçu, PNG / SVG / impression ===== */
.qrc { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #fff; }
.qrc-body { flex: 1; min-height: 0; display: flex; }
.qrc-side { width: 360px; flex: none; overflow: auto; background: #f5f8fc; border-right: 1px solid #c5d2e3; }
.qrc-sec { border-bottom: 1px solid #dde5ef; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.qrc-sec h3 { margin: 0; font-size: 13px; font-weight: normal; color: #1e3287; }
.qrc-types { display: flex; flex-wrap: wrap; gap: 4px; }
.qrc-t { font: inherit; font-size: 12px; padding: 4px 9px; border: 1px solid #a9b8cb; border-radius: 3px; background: #fff; color: #1e395b; cursor: pointer; }
.qrc-t:hover { border-color: #3c7fb1; background: #eaf6fd; }
.qrc-t.on { background: #2b6fd6; border-color: #174f9f; color: #fff; }
.qrc-t:focus-visible { outline: 2px solid #f0a020; outline-offset: 1px; }
.qrc-ttitre { margin: 2px 0 0; color: #555; font-size: 12px; }
.qrc-form { display: flex; flex-wrap: wrap; gap: 7px 10px; }
.qrc-l { display: flex; flex-direction: column; gap: 3px; color: #1e395b; font-size: 12px; flex: 1 1 100%; min-width: 0; }
.qrc-l.qrc-demi { flex: 1 1 140px; }
.qrc-l .txt7, .qrc-l .sel7 { width: 100%; box-sizing: border-box; min-width: 0; }
.qrc-l textarea.txt7 { resize: vertical; font: 12px var(--font); }
.qrc-l.qrc-off { opacity: .5; }
.qrc-chk { display: flex; align-items: center; gap: 6px; color: #1e395b; font-size: 12px; flex: 1 1 100%; }
.qrc-2 { display: flex; gap: 10px; }
.qrc-2 .qrc-l { flex: 1 1 0; }
.qrc-coul input[type=color] { width: 100%; height: 26px; padding: 1px; border: 1px solid #abadb3; background: #fff; box-sizing: border-box; cursor: pointer; }
.qrc-aide { margin: 0; color: #555; font-size: 11px; line-height: 1.4; }
.qrc-sec .qrc-raz { align-self: flex-start; }
.qrc-main { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: #eef2f7; }
.qrc-apercu { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 200px; }
.qrc-can { width: 340px; max-width: 100%; height: auto; image-rendering: pixelated; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.qrc-can.hidden, .qrc-vide.hidden { display: none; }
.qrc-vide { width: 300px; max-width: 100%; aspect-ratio: 1 / 1; min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; box-sizing: border-box;
  border: 2px dashed #a9b8cb; border-radius: 6px; color: #4a5a70; background: #f8fafc; font-size: 13px; }
.qrc-alertes { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 6px; }
.qrc-alertes:empty { display: none; }
.qrc-al { margin: 0; padding: 7px 10px; border-radius: 3px; font-size: 12px; line-height: 1.4; }
.qrc-warn { background: #fff4d6; border: 1px solid #e0b545; color: #5c4300; }
.qrc-err { background: #fde3e1; border: 1px solid #d9796f; color: #7a1d14; }
.qrc-info2 { background: #e5f0fc; border: 1px solid #9cc0e8; color: #1e395b; }
.qrc-info { margin: 0; color: #333; font-size: 12px; text-align: center; max-width: 460px; }
.qrc-det { width: 100%; max-width: 460px; font-size: 12px; }
.qrc-det summary { cursor: pointer; color: #1e3287; }
.qrc-brut { margin: 6px 0 0; padding: 8px; max-height: 160px; overflow: auto; background: #fff; border: 1px solid #c5d2e3; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px Consolas, Menlo, monospace; }
.qrc-prive { margin: 0; color: #5b6573; font-size: 11px; text-align: center; max-width: 460px; }
@media (max-width: 700px) {
  .qrc .cmdbar { overflow-x: auto; }
  .qrc-body { flex-direction: column; overflow: auto; }
  .qrc-main { order: -1; flex: none; overflow: visible; padding: 10px; }
  .qrc-side { width: auto; flex: none; overflow: visible; border-right: 0; border-top: 1px solid #c5d2e3; }
  .qrc-can { width: 240px; }
  .qrc-vide { width: 240px; min-height: 160px; }
  .qrc-t { padding: 7px 11px; font-size: 13px; }
  .qrc-l .txt7, .qrc-l .sel7 { font-size: 16px; padding: 6px 7px; }   /* 16 px : pas de zoom automatique sur iPhone */
}

/* ===== Convertisseur (cvt-, application « convertisseur », adresse /convertisseur, point 197) : texte ↔ décimal, octal, binaire, base64, chiffrement AES-GCM ===== */
.cvt { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #fff; }
.cvt .cmdbar { flex-wrap: nowrap; overflow-x: auto; }
.cvt-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.cvt-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 22px; padding: 9px 12px 8px; background: #f5f8fc; border-bottom: 1px solid #dde5ef; flex: none; }
.cvt-grp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cvt-grp.cvt-off .cvt-gt { color: #8a96a6; }
.cvt-gt { font-size: 12px; color: #1e3287; }
.cvt-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.cvt-b { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid #a9b8cb; border-radius: 3px; background: #fff; color: #1e395b; cursor: pointer; white-space: nowrap; }
.cvt-b:hover:not(:disabled) { border-color: #3c7fb1; background: #eaf6fd; }
.cvt-b.on { background: #2b6fd6; border-color: #174f9f; color: #fff; }
.cvt-b.on:hover:not(:disabled) { background: #2563c4; border-color: #174f9f; }
.cvt-b:disabled { opacity: .45; cursor: default; }
.cvt-b:focus-visible, .cvt-oeil:focus-visible, .cvt-lien:focus-visible { outline: 2px solid #f0a020; outline-offset: 1px; }
.cvt-cle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 12px; background: #f5f8fc; border-bottom: 1px solid #dde5ef; flex: none; min-height: 26px; }
.cvt-chk { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #1e395b; cursor: pointer; white-space: nowrap; }
.cvt-chk.cvt-off { color: #8a96a6; cursor: default; }
.cvt-clebox { display: flex; align-items: stretch; flex: 0 1 300px; min-width: 160px; }
.cvt-clebox .txt7 { flex: 1; min-width: 0; border-right: 0; font-size: 13px; }
.cvt-masque { -webkit-text-security: disc; text-security: disc; }
.cvt-oeil { flex: none; width: 30px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #abadb3; border-top-color: #8e8f8f; background: #fff; color: #4a5a70; cursor: pointer; }
.cvt-oeil:hover { background: #eaf6fd; color: #1e395b; }
.cvt-oeil[aria-pressed="true"] { background: #e5f0fc; color: #174f9f; }
.cvt-oeil svg { width: 17px; height: 17px; }
.cvt:not(.cvt-aveccle) .cvt-clebox, .cvt:not(.cvt-aveccle) .cvt-go { display: none; }
.cvt-go { min-width: 90px; }
.cvt-note { font-size: 11px; color: #7a5208; flex: 1 1 200px; min-width: 0; }
.cvt-note:empty { display: none; }
.cvt-note.cvt-note-err { color: #7a1d14; }
.cvt-zones { flex: 1; min-height: 210px; display: flex; align-items: stretch; gap: 4px; padding: 10px 12px 6px; }
.cvt-zone { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cvt-zh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.cvt-zt { color: #1e3287; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvt-zc { color: #667; font-size: 11px; white-space: nowrap; }
.cvt-zone textarea.txt7 { flex: 1; min-height: 130px; width: 100%; box-sizing: border-box; resize: none; font: 13px/1.45 var(--font); padding: 6px 8px; overflow-wrap: anywhere; }
.cvt-zone textarea.txt7.cvt-code { font: 12.5px/1.5 Consolas, Menlo, "DejaVu Sans Mono", monospace; }   /* coupure aux espaces ; un long bloc (base64, collés) se coupe n'importe où */
.cvt-zone textarea.cvt-out { background: #fbfcfe; }
.cvt-calcul .cvt-zone textarea.cvt-out { cursor: progress; }
.cvt-fleche { flex: none; align-self: center; width: 22px; text-align: center; color: #7a8aa0; font-size: 18px; user-select: none; }
.cvt-msgs { padding: 0 12px; flex: none; }
.cvt-msgs:empty { display: none; }
.cvt-m { margin: 2px 0 6px; padding: 7px 10px; border-radius: 3px; font-size: 12px; line-height: 1.45; }
.cvt-err { background: #fde3e1; border: 1px solid #d9796f; color: #7a1d14; }
.cvt-ok { background: #e3f4e1; border: 1px solid #8cc084; color: #1d4d16; }
.cvt-info { background: #e5f0fc; border: 1px solid #9cc0e8; color: #1e395b; }
.cvt-warn { background: #fff4d6; border: 1px solid #e0b545; color: #5c4300; }
.cvt-lien { font: inherit; padding: 0; margin: 0 0 0 2px; border: 0; background: none; color: #0b57d0; text-decoration: underline; cursor: pointer; }
.cvt-prive { margin: 2px 12px 6px; color: #5b6573; font-size: 11px; flex: none; }
.cvt-aide { margin: 0 12px 10px; font-size: 12px; color: #333; flex: none; }
.cvt-aide summary { cursor: pointer; color: #1e3287; }
.cvt-aide ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.45; }
.cvt-aide li { margin-bottom: 4px; }
@media (max-width: 700px) {
  .cvt-opts { gap: 8px 14px; padding: 8px 10px; }
  .cvt-b { padding: 7px 11px; font-size: 13px; }
  .cvt-cle { padding: 8px 10px; }
  .cvt-chk { font-size: 13px; }
  .cvt-clebox { flex: 1 1 100%; }
  .cvt-clebox .txt7, .cvt-zone textarea.txt7, .cvt-zone textarea.txt7.cvt-code { font-size: 16px; }   /* 16 px : pas de zoom automatique sur iPhone */
  .cvt-oeil { width: 40px; }
  .cvt-go { min-height: 32px; }
  .cvt-zones { flex: none; flex-direction: column; min-height: 0; padding: 8px 10px 4px; }
  .cvt-zone textarea.txt7 { min-height: 96px; height: 19vh; flex: none; }
  .cvt-fleche { transform: rotate(90deg); height: 18px; line-height: 18px; }
  .cvt-msgs { padding: 0 10px; }
  .cvt-prive, .cvt-aide { margin-left: 10px; margin-right: 10px; }
}
/* Apparence Bootstrap : couleurs et coins de Bootstrap */
html[data-theme="bs"]:not(.appmode) .cvt-opts, html[data-theme="bs"]:not(.appmode) .cvt-cle { background: #f8f9fa; border-bottom-color: #dee2e6; }
html[data-theme="bs"]:not(.appmode) .cvt-gt, html[data-theme="bs"]:not(.appmode) .cvt-zt { color: #212529; font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .cvt-b { border-color: #ced4da; border-radius: .375rem; color: #212529; padding: 5px 12px; font-size: 13px; }
html[data-theme="bs"]:not(.appmode) .cvt-b:hover:not(:disabled) { background: #e9ecef; border-color: #adb5bd; }
html[data-theme="bs"]:not(.appmode) .cvt-b.on, html[data-theme="bs"]:not(.appmode) .cvt-b.on:hover:not(:disabled) { background: #0d6efd; border-color: #0d6efd; color: #fff; }
html[data-theme="bs"]:not(.appmode) .cvt-chk { color: #212529; font-size: 13px; }
html[data-theme="bs"]:not(.appmode) .cvt-clebox .txt7 { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html[data-theme="bs"]:not(.appmode) .cvt-oeil { border-color: #ced4da; border-radius: 0 .25rem .25rem 0; color: #495057; }
html[data-theme="bs"]:not(.appmode) .cvt-zone textarea.cvt-out { background: #fcfcfd; }
html[data-theme="bs"]:not(.appmode) .cvt-m { border-radius: .375rem; }
html[data-theme="bs"]:not(.appmode) .cvt-lien { color: #0d6efd; }

/* --------------------------------------------------------------------------
   Mentions légales et confidentialité (point 176, os/mentions.js, préfixe ml-) : page de contenu (.page) avec un
   sommaire, une carte par application (lignes « Ce qui est gardé », « Combien de temps »…) et la liste des services
   extérieurs. Les lignes passent l'une sous l'autre quand la fenêtre est étroite (flex-wrap, sans media query :
   la largeur qui compte est celle de la fenêtre). Lien « Confidentialité » des fiches Projets : .proj-conf.
   -------------------------------------------------------------------------- */
.ml { line-height: 1.5; }
.ml .page-body { max-width: 900px; }
.ml p { margin: 0 0 10px; }
.ml-som { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ml-aller { padding: 3px 10px; border: 1px solid #c3d4e7; border-radius: 10px; background: linear-gradient(#fafcff, #e8f0fa); color: #1e395b; font: inherit; font-size: 11px; cursor: pointer; }
.ml-aller:hover { border-color: #7da2ce; background: #fff; }
.ml-liste { margin: 0 0 10px; padding-left: 20px; }
.ml-liste li { margin-bottom: 6px; }
.ml-app { margin: 0 0 12px; padding: 8px 12px 6px; border: 1px solid #d9e2ec; border-radius: 4px; background: linear-gradient(#fff, #f7fafd); scroll-margin-top: 8px; }
.ml-app h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.ml-app h3 small { margin-left: 6px; font-size: 11px; font-weight: 400; color: #5a6779; }
.ml-app.ml-vu { animation: ml-vu 1.6s ease-out; }
@keyframes ml-vu { 0%, 30% { box-shadow: 0 0 0 3px rgba(61,123,209,.45); } 100% { box-shadow: 0 0 0 3px rgba(61,123,209,0); } }
.ml-dl { margin: 0; }
.ml-dl > div { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 4px 0; border-top: 1px solid #e3e9f0; }
.ml-dl > div:first-child { border-top: 0; }
.ml-dl dt { flex: 0 0 130px; font-weight: 600; color: #1e395b; }
.ml-dl dd { flex: 1 1 280px; min-width: 0; margin: 0; }
.ml-svc { margin: 0 0 10px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ml-svc li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid #d9e2ec; border-radius: 4px; background: #fbfcfe; }
.ml-svc li i { font-style: normal; color: #5a6779; }
.ml-maj { color: #6d6d6d; font-size: 11px; }
.ml a, .proj-conf a { color: #1a5fb4; }
.proj-conf { margin: 8px 0 0; font-size: 11px; color: #555; }
/* Apparences : Bootstrap (couleurs et coins de Bootstrap), Matrix (noir et vert) */
html[data-theme="bs"]:not(.appmode) .ml-aller { border-color: #dee2e6; border-radius: .375rem; background: #fff; color: #0d6efd; font-size: 12px; padding: 3px 10px; }
html[data-theme="bs"]:not(.appmode) .ml-aller:hover { background: #e7f1ff; border-color: #9ec5fe; }
html[data-theme="bs"]:not(.appmode) .ml-app { border-color: #dee2e6; border-radius: .5rem; background: #fff; }
html[data-theme="bs"]:not(.appmode) .ml-app h3, html[data-theme="bs"]:not(.appmode) .ml-dl dt { color: #212529; font-weight: 600; }
html[data-theme="bs"]:not(.appmode) .ml-dl > div { border-top-color: #e9ecef; }
html[data-theme="bs"]:not(.appmode) .ml-svc li { border-color: #dee2e6; border-radius: .5rem; background: #f8f9fa; }
html[data-theme="bs"]:not(.appmode) .ml a, html[data-theme="bs"]:not(.appmode) .proj-conf a { color: #0d6efd; }
html[data-theme="matrix"] .ml-aller, html[data-theme="matrix"] .ml-app, html[data-theme="matrix"] .ml-svc li { background: #000; border-color: var(--m-dark); color: var(--m); border-radius: 0; }
html[data-theme="matrix"] .ml-app h3, html[data-theme="matrix"] .ml-dl dt, html[data-theme="matrix"] .ml a, html[data-theme="matrix"] .proj-conf a { color: var(--m); }
html[data-theme="matrix"] .ml-app h3 small, html[data-theme="matrix"] .ml-svc li i, html[data-theme="matrix"] .ml-maj, html[data-theme="matrix"] .proj-conf { color: var(--m-dim); }
html[data-theme="matrix"] .ml-dl > div { border-top-color: var(--m-dark); }

/* ===== Logimètre (lm-, point 227) : prix de vente, loyers et DPE par commune ===== */
.lm-root { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; width: 100%; overflow: hidden; background: #f8f9fa; color: #212529; }
.lm-body, .lm-pan, .lm-top, .lm-cols, .lm-col, .lm-tw { min-width: 0; max-width: 100%; }
.lm-root:focus { outline: none; }
.lm-top, .lm-comp { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px 4px; background: #eef1f5; }
.lm-comp { padding-top: 0; }
.lm-cher { position: relative; flex: 1 1 260px; min-width: 0; display: block; }
.lm-q, .lm-q2, .lm-adr { box-sizing: border-box; width: 100%; padding: 7px 10px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: #212529; }
.lm-q:focus, .lm-q2:focus, .lm-adr:focus, .lm-form input:focus, .lm-form select:focus { outline: none; border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13, 110, 253, .2); }
.lm-sug { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 300px; overflow: auto; border: 1px solid #ced4da; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.lm-sug[hidden], .lm-comp[hidden] { display: none; }
.lm-s { display: block; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid #f1f3f5; background: #fff; text-align: left; font: inherit; color: #212529; cursor: pointer; }
.lm-s:hover, .lm-s.on { background: #e7f1ff; }
.lm-s small { color: #6c757d; }
.lm-top button, .lm-comp button, .lm-go, .lm-lien-go { flex: none; padding: 6px 12px; border: 1px solid #0d6efd; border-radius: 6px; background: #fff; color: #0d6efd; font: inherit; cursor: pointer; }
.lm-top button:hover, .lm-comp button:hover { background: #e7f1ff; }
.lm-go, .lm-lien-go { background: #0d6efd; color: #fff; padding: 7px 18px; }
.lm-go:hover, .lm-lien-go:hover { background: #0b5ed7; }
.lm-tabs { flex: none; display: flex; padding: 4px 8px 0; background: #eef1f5; border-bottom: 1px solid #ced4da; overflow-x: auto; overflow-y: hidden; }
.lm-tab { flex: none; position: relative; top: 1px; margin-right: 2px; padding: 6px 16px; border: 1px solid #ced4da; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f6f7f9; font: inherit; color: #495057; cursor: pointer; }
.lm-tab:hover { background: #fff; }
.lm-tab.on { background: #fff; color: #0d6efd; font-weight: bold; border-bottom: 1px solid #fff; }
.lm-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.lm-pan { padding: 10px 14px 16px; }
.lm-tete h2 { margin: 2px 0 6px; font-size: 18px; }
.lm-tete small { font-size: 13px; font-weight: normal; color: #6c757d; }
.lm-h { margin: 14px 0 6px; font-size: 14px; color: #1c56a8; }
.lm-acc { max-width: 760px; line-height: 1.5; }
.lm-acc h2 { margin: 4px 0 6px; font-size: 18px; }
.lm-chip { margin: 2px 4px 2px 0; padding: 3px 12px; border: 1px solid #ced4da; border-radius: 14px; background: #fff; color: #0d6efd; font: inherit; cursor: pointer; }
.lm-chip:hover { background: #e7f1ff; }
.lm-note { margin: 6px 0; padding: 7px 10px; border-left: 3px solid #f0b40f; background: #fff8e1; font-size: 13px; line-height: 1.45; }
.lm-src { margin: 6px 0; color: #6c757d; font-size: 12px; line-height: 1.45; }
.lm-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lm-t { border-collapse: collapse; width: 100%; font-size: 13px; }
.lm-t th, .lm-t td { padding: 5px 8px; border-bottom: 1px solid #e9ecef; text-align: right; white-space: nowrap; }
.lm-t th:first-child, .lm-t td:first-child { text-align: left; }
.lm-t th { background: #f1f3f5; color: #495057; font-weight: 600; font-size: 12px; white-space: normal; }
.lm-t tr.lm-peu td { color: #868e96; }
.lm-t tr.lm-est td { font-style: italic; background: #f8f9ff; white-space: normal; }
.lm-t tr.lm-est2 td { font-size: 12px; color: #495057; text-align: left; padding-top: 0; }
.lm-t tr.lm-est:not(.lm-est2) td { border-bottom: 0; }
.lm-etroit .lm-t { font-size: 12px; }
.lm-etroit .lm-t th, .lm-etroit .lm-t td { padding: 4px 5px; }
.lm-tag { display: inline-block; padding: 0 6px; border-radius: 8px; background: #e9ecef; color: #495057; font-size: 11px; font-style: normal; }
.lm-tag-e { background: #e7f1ff; color: #0a58ca; border: 1px dashed #6ea8fe; }
.lm-fiab { padding: 0 7px; border-radius: 8px; font-size: 12px; }
.lm-bonne { background: #d1e7dd; color: #0f5132; }
.lm-moyenne { background: #fff3cd; color: #664d03; }
.lm-faible { background: #f8d7da; color: #842029; }
.lm-graph { display: block; width: 100%; max-width: 560px; height: auto; margin: 2px 0 4px; font: 11px Arial, sans-serif; fill: #495057; }
.lm-det { margin: 8px 0; font-size: 13px; }
.lm-det summary { cursor: pointer; color: #0d6efd; }
.lm-2, .lm-cols { display: flex; gap: 18px; }
.lm-2 > div, .lm-col { flex: 1; min-width: 0; }
.lm-col + .lm-col { border-left: 1px solid #dee2e6; padding-left: 16px; }
.lm-dr { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 13px; }
.lm-dl { flex: none; width: 22px; height: 20px; line-height: 20px; border-radius: 3px; text-align: center; color: #fff; font: bold 13px Arial, sans-serif; }
.lm-db { flex: 1; min-width: 40px; height: 12px; background: #f1f3f5; border-radius: 3px; overflow: hidden; }
.lm-db i { display: block; height: 100%; }
.lm-dn { flex: none; width: 108px; text-align: right; }
.lm-dn small { color: #6c757d; }
.lm-pas { margin: 6px 0; font-size: 13px; }
.lm-regles { margin: 4px 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.lm-alerte { padding: 8px 10px 8px 28px; border: 1px solid #f1aeb5; border-radius: 6px; background: #fdf2f3; color: #842029; }
.lm-lien { border: 0; background: none; padding: 0; color: #0d6efd; text-decoration: underline; cursor: pointer; font: inherit; }
.lm-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0; font-size: 13px; }
.lm-form label { display: flex; flex-direction: column; gap: 3px; color: #495057; }
.lm-form input, .lm-form select { padding: 6px 8px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #212529; }
.lm-form input[type=number] { width: 7em; }
.lm-ladr { flex: 1 1 320px; min-width: 0; }
.lm-ladr .lm-cher { flex: none; }
.lm-letts { display: flex; flex-wrap: wrap; gap: 4px; }
.lm-lett { min-width: 32px; padding: 5px 8px; border: 2px solid transparent; border-radius: 5px; background: #e9ecef; color: #fff; font: bold 14px Arial, sans-serif; cursor: pointer; opacity: .6; }
.lm-lett[data-l=""] { color: #495057; font: inherit; font-size: 13px; }
.lm-lett.on { opacity: 1; border-color: #212529; }
.lm-dpes { display: flex; flex-direction: column; gap: 4px; }
.lm-dpe { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #dee2e6; border-radius: 6px; font-size: 13px; cursor: pointer; }
.lm-dpe.on { border-color: #0d6efd; background: #f3f8ff; }
.lm-dpe small { color: #6c757d; }
.lm-chip2 { flex: none; width: 26px; height: 24px; line-height: 24px; border-radius: 4px; text-align: center; color: #fff; font: bold 14px Arial, sans-serif; }
.lm-cartes { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.lm-carte { flex: 1 1 260px; padding: 10px 14px; border: 1px solid #dee2e6; border-radius: 8px; background: #fbfcfe; }
.lm-carte h4 { margin: 0 0 4px; font-size: 13px; color: #495057; }
.lm-carte p { margin: 2px 0; font-size: 13px; }
.lm-carte .lm-gros { font-size: 22px; font-weight: bold; color: #1c56a8; }
.lm-carte .lm-gros small { font-size: 13px; font-weight: normal; }
.lm-av, .lm-carte .lm-av { color: #6c757d; font-size: 12px; font-weight: normal; }
.lm-t small.lm-av { font-size: 11px; }
.lm-t tr.lm-loc td { background: #f3f8ff; }
.lm-t td.lm-niv { white-space: normal; text-align: left; min-width: 180px; font-size: 12px; }
.lm-loy td:first-child { white-space: normal; min-width: 120px; }
.lm-etroit .lm-loy td:first-child { min-width: 96px; max-width: 130px; }
/* Point 247 : onglet Carte */
.lm-body.lm-bcarte { overflow: hidden; }
.lm-pcarte { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 6px 8px 4px; }
.lm-cbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; font-size: 13px; }
.lm-cbar label { display: flex; align-items: center; gap: 5px; color: #495057; }
.lm-cbar select, .lm-cq { padding: 5px 8px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-size: 13px; background: #fff; color: #212529; }
.lm-cadr { flex: 1 1 220px; }
.lm-cq { box-sizing: border-box; width: 100%; }
.lm-cpos { flex: none; padding: 5px 12px; border: 1px solid #0d6efd; border-radius: 6px; background: #fff; color: #0d6efd; font: inherit; font-size: 13px; cursor: pointer; }
.lm-cpos:hover { background: #e7f1ff; }
.lm-map { flex: 1; min-height: 320px; border: 1px solid #ced4da; border-radius: 6px; background: #e9ecef; }
.lm-cinfo { flex: none; margin: 4px 0 0; }
.lm-leg { padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); font: 12px/1.35 Arial, sans-serif; color: #212529; }
.lm-leg div { display: flex; align-items: center; gap: 6px; }
.lm-leg i { flex: none; width: 16px; height: 11px; border-radius: 2px; }
.lm-leg i.lm-leg-vide { background: #adb5bd; opacity: .5; }
.lm-leg i.lm-leg-par { background: rgba(249, 115, 22, .45); border: 1.5px solid #c2410c; box-sizing: border-box; }
.lm-leg { cursor: pointer; max-width: 210px; }
.lm-map.lm-pop-ouvert .leaflet-control-container { display: none; }   /* fiche d'une parcelle ouverte : boutons et légende cachés (ils passeraient devant) */
.lm-leg .lm-leg-mini { display: none; }
.lm-leg.lm-leg-ferme > div, .lm-leg.lm-leg-ferme > small:last-child { display: none; }
.lm-leg.lm-leg-ferme .lm-leg-mini { display: flex; margin-top: 3px; }
.lm-leg-mini i { width: 14px; height: 9px; border-radius: 0; }
.lm-cfil { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -2px 0 6px; padding: 5px 8px; border: 1px solid #fed7aa; border-radius: 6px; background: #fff7ed; font-size: 12px; }
.lm-cfil[hidden] { display: none; }
.lm-cfc { display: contents; }
.lm-cfb { display: none; padding: 2px 10px; border: 1px solid #fdba74; border-radius: 5px; background: #fff; color: #9a3412; font: inherit; cursor: pointer; }
.lm-etroit .lm-cfb { display: inline-block; }
.lm-etroit .lm-cfil:not(.lm-cfil-ouvert) .lm-cfc { display: none; }
.lm-cfil b { color: #9a3412; }
.lm-cfil label { display: flex; align-items: center; gap: 4px; }
.lm-cfil select, .lm-cfil input { padding: 3px 5px; border: 1px solid #ced4da; border-radius: 5px; font: inherit; background: #fff; color: #212529; }
.lm-cfil input { width: 6.5em; }
.lm-pop .leaflet-popup-content { margin: 10px 12px; font-size: 12px; line-height: 1.4; }
.lm-pv h4 { margin: 0 0 6px; font-size: 13px; color: #212529; }
.lm-pv h4 small { font-weight: normal; color: #6c757d; }
.lm-pvv { padding: 5px 0; border-top: 1px solid #e9ecef; }
.lm-pvv ul { margin: 2px 0 0; padding-left: 16px; }
.lm-pv .lm-src { margin: 6px 0 0; font-size: 11px; }
.lm-bat:empty { display: none; }
.lm-bat { margin: 6px 0 0; padding: 4px 7px; border-radius: 6px; background: #f1f3f5; font-size: 11px; line-height: 1.35; }
.lm-batl { display: flex; align-items: flex-start; gap: 5px; margin: 3px 0; }
.lm-batl .lm-chip2 { flex: none; width: 16px; height: 16px; line-height: 16px; font-size: 10px; }
/* Point 253 : en-tête de la fiche d'une parcelle (numéro + date et prix de la dernière vente), toujours visible quand elle défile */
.lm-pvh { margin: 0 0 4px; padding: 0 0 5px; background: #fff; border-bottom: 1px solid #fed7aa; }
.lm-pvh h4 { margin-bottom: 4px; }
.leaflet-popup-scrolled .lm-pvh { position: sticky; top: 0; z-index: 1; }   /* seulement quand la fiche défile (Leaflet ajoute alors cette classe) */
.lm-pres { padding: 5px 8px; border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: 14px; font-weight: 700; line-height: 1.35; }
.lm-pres .lm-pm2 { font-weight: 400; font-size: 12px; color: #7c2d12; }
.lm-pres small { display: block; font-weight: 400; font-size: 11px; color: #6c757d; }
.lm-pres0 { background: #f8f9fa; color: #495057; font-size: 12px; font-weight: 400; }
.lm-pvh + .lm-pvv { border-top: 0; }
/* Point 260 : partager le lien d'un bien vendu (en-tête de la fiche) ; LogiFinance en bas de la fiche */
.lm-part { float: right; margin: -2px 16px 2px 8px; padding: 2px 9px; border: 1px solid #c2410c; border-radius: 5px; background: #fff; color: #9a3412; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lm-part:hover { background: #fff7ed; }
/* Point 267 : bulle « Partager ce bien », au-dessus de la carte (Windows 7 ici ; Bootstrap et mode application plus bas) */
.lm-sh { position: absolute; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(0,0,0,.35); }
.lm-shb { width: 580px; max-width: 100%; max-height: 100%; overflow: auto; display: flex; flex-direction: column; border: 1px solid #6d8fb3; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.45); color: #1e1e1e; }
.lm-shh { display: flex; align-items: center; padding: 6px 6px 6px 12px; border-radius: 5px 5px 0 0; background: linear-gradient(#dbe9f8, #c3d8f0 50%, #b3cde9 51%, #c6dbf1); border-bottom: 1px solid #8fa9c8; }
.lm-shh h3 { flex: 1; margin: 0; font-size: 13px; font-weight: normal; color: #000; }
.lm-shx { width: 30px; height: 20px; padding: 0; border: 1px solid #8a3b2e; border-radius: 3px; background: linear-gradient(#e9a99a, #d47a63 50%, #c4523a 51%, #d0745c); color: #fff; font-size: 15px; font-weight: bold; line-height: 16px; cursor: pointer; }
.lm-shx:hover { background: linear-gradient(#f4b9aa, #e48a73 50%, #e0452b 51%, #e88068); }
.lm-shc { padding: 14px 16px 6px; }
.lm-shl { display: block; margin: 0 0 6px; font-size: 12px; color: #444; }
.lm-shu { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 2px solid #3399ff; border-radius: 3px; background: #f5faff; color: #0b3d91; font: 14px/1.3 Consolas, "Courier New", monospace; resize: none; overflow: hidden; word-break: break-all; white-space: pre-wrap; }
.lm-shu:focus { outline: none; border-color: #0b6fd6; background: #fff; }
.lm-shn { margin: 8px 0 0; font-size: 12px; color: #555; }
.lm-shm { margin: 6px 0 0; font-size: 12px; color: #b42318; }
.lm-shm:empty { display: none; }
.lm-shf { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid #dfdfdf; background: #f0f0f0; border-radius: 0 0 5px 5px; }
.lm-shf .btn7 { min-width: 86px; height: 26px; font: 12px var(--font); }
.lm-shf .lm-shp { margin-right: auto; }
.lm-shf .btn7.lm-shok { border-color: #2f8f46; background: linear-gradient(#e7f7ea, #d3f0d9 50%, #bde6c6 51%, #aedcb9); color: #14532d; font-weight: bold; }
html[data-theme="bs"]:not(.appmode) .lm-shb { border: 1px solid rgba(0,0,0,.175); border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); color: #212529; }
html[data-theme="bs"]:not(.appmode) .lm-shh { padding: 12px 12px 12px 16px; background: #fff; border-bottom: 1px solid #dee2e6; border-radius: .5rem .5rem 0 0; }
html[data-theme="bs"]:not(.appmode) .lm-shh h3 { font-size: 1.15rem; font-weight: 500; color: #212529; }
html[data-theme="bs"]:not(.appmode) .lm-shx { width: 30px; height: 30px; border: 0; border-radius: .375rem; background: transparent; color: #6c757d; font-size: 22px; font-weight: normal; line-height: 28px; }
html[data-theme="bs"]:not(.appmode) .lm-shx:hover { background: #e9ecef; color: #212529; }
html[data-theme="bs"]:not(.appmode) .lm-shc { padding: 16px; }
html[data-theme="bs"]:not(.appmode) .lm-shl { font-size: .875rem; color: #495057; font-weight: 500; }
html[data-theme="bs"]:not(.appmode) .lm-shu { border: 1px solid #86b7fe; border-radius: .375rem; background: #fff; color: #0a58ca; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
html[data-theme="bs"]:not(.appmode) .lm-shn { font-size: .875rem; color: #6c757d; }
html[data-theme="bs"]:not(.appmode) .lm-shf { padding: 12px 16px; background: #fff; border-top: 1px solid #dee2e6; border-radius: 0 0 .5rem .5rem; }
html[data-theme="bs"]:not(.appmode) .lm-shf .btn7 { height: 34px; padding: 0 14px; font-size: .9rem; }
html[data-theme="bs"]:not(.appmode) .lm-shf .btn7.default.lm-shok, html[data-theme="bs"]:not(.appmode) .lm-shf .btn7.default.lm-shok:hover { background: #198754; border-color: #198754; color: #fff; }
html.appmode .lm-shb, .lm-etroit .lm-shb { width: 100%; }
html.appmode .lm-shh h3, .lm-etroit .lm-shh h3 { font-size: 17px; }
html.appmode .lm-shx { width: 40px; height: 34px; font-size: 20px; }
html.appmode .lm-shu, .lm-etroit .lm-shu { font-size: 16px; padding: 10px; }
html.appmode .lm-shn, html.appmode .lm-shl, html.appmode .lm-shm { font-size: 14px; }
html.appmode .lm-shf .btn7 { height: 42px; min-width: 0; flex: 1 1 auto; padding: 0 14px; font-size: 16px; }
html.appmode .lm-shf .lm-shp { margin-right: 0; }
html[data-theme="matrix"] .lm-shb, html[data-theme="matrix"] .lm-shh, html[data-theme="matrix"] .lm-shf, html[data-theme="matrix"] .lm-shu { background: #000; color: var(--m); border-color: var(--m-dark); }
html[data-theme="matrix"] .lm-shh h3, html[data-theme="matrix"] .lm-shl, html[data-theme="matrix"] .lm-shn { color: var(--m); }
.lm-pfin { margin: 6px 0 0; }
.lm-fin2 { padding: 3px 10px; border: 1px solid #0d6efd; border-radius: 5px; background: #0d6efd; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
html.appmode .lm-part, html.appmode .lm-fin2 { padding: 6px 12px; font-size: 14px; }
.lm-etroit .lm-pop .leaflet-popup-content, html.appmode .lm-pop .leaflet-popup-content { font-size: 13px; }
.lm-etroit .lm-pres, html.appmode .lm-pres { font-size: 15px; }
html.appmode .lm-cfil select, html.appmode .lm-cfil input { font-size: 16px; padding: 6px; }
.lm-cdet { flex: none; margin: 3px 0 0; font-size: 12px; }
.lm-cdet summary { cursor: pointer; color: #0d6efd; }
.lm-etroit .lm-leg { font-size: 11px; padding: 4px 6px; }
.lm-etroit .lm-cinfo { font-size: 11px; }
.lm-etroit .lm-cl { display: none; }
.lm-etroit .lm-cbar { gap: 5px 6px; }
html.appmode .lm-cbar select, html.appmode .lm-cq, html.appmode .lm-cpos { font-size: 16px; padding: 8px 10px; }
.lm-interdit { border-color: #f1aeb5; background: #fdf2f3; }
.lm-interdit .lm-gros { color: #842029; text-decoration: line-through; }
.lm-liste { margin: 4px 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.lm-et-ok { color: #0f5132; }
.lm-et-refuse { color: #842029; }
.lm-lien-r { font-size: 13px; }
.lm-ok { color: #0f5132; }
.lm-bad { color: #b02a37; }
.lm-etroit .lm-cols, .lm-etroit .lm-2 { flex-direction: column; gap: 6px; }
.lm-etroit .lm-col + .lm-col { border-left: 0; padding-left: 0; border-top: 2px solid #dee2e6; padding-top: 8px; }
.lm-etroit .lm-tab { padding: 6px 10px; }
.lm-etroit .lm-pan { padding: 8px 10px 14px; }
html.appmode .lm-q, html.appmode .lm-q2, html.appmode .lm-adr, html.appmode .lm-form input, html.appmode .lm-form select { font-size: 16px; padding: 9px 10px; }
html.appmode .lm-tab { padding: 9px 12px; }
html.appmode .lm-s { padding: 11px 12px; }
html[data-theme="matrix"] .lm-root, html[data-theme="matrix"] .lm-body, html[data-theme="matrix"] .lm-top, html[data-theme="matrix"] .lm-comp, html[data-theme="matrix"] .lm-tabs { background: #000; color: var(--m); }
html[data-theme="matrix"] .lm-t th, html[data-theme="matrix"] .lm-tab, html[data-theme="matrix"] .lm-carte, html[data-theme="matrix"] .lm-note { background: #000; color: var(--m); border-color: var(--m-dark); }
/* ===== LogiFinance (lf-, point 249) : financement d'un achat immobilier, travaux, rentabilité locative ===== */
.lf-root { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; width: 100%; overflow: hidden; background: #f8f9fa; color: #212529; }
.lf-root:focus { outline: none; }
.lf-body, .lf-pan, .lf-tw, .lf-grid { min-width: 0; max-width: 100%; }
.lf-tabs { flex: none; display: flex; padding: 6px 8px 0; background: #eef3ef; border-bottom: 1px solid #ced4da; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.lf-tab { flex: none; position: relative; top: 1px; margin-right: 2px; padding: 6px 12px; border: 1px solid #ced4da; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f6f7f9; font: inherit; color: #495057; cursor: pointer; white-space: nowrap; }
.lf-tab i { display: inline-block; min-width: 16px; height: 16px; margin-right: 5px; border-radius: 8px; background: #dee2e6; color: #495057; font-size: 11px; font-style: normal; line-height: 16px; text-align: center; }
.lf-tab:hover { background: #fff; }
.lf-tab.on { background: #fff; color: #1f7a46; font-weight: bold; border-bottom: 1px solid #fff; }
.lf-tab.on i { background: #1f7a46; color: #fff; }
.lf-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.lf-pan { max-width: 1040px; padding: 10px 16px 18px; }
.lf-tete h2 { margin: 4px 0 4px; font-size: 18px; color: #1f5132; }
.lf-intro { margin: 0 0 8px; max-width: 760px; font-size: 13px; line-height: 1.5; color: #495057; }
.lf-grp { margin: 10px 0; padding: 8px 12px 10px; border: 1px solid #e3e8e4; border-radius: 8px; background: #fbfcfb; }
.lf-grp h3 { margin: 0 0 6px; font-size: 14px; color: #1f7a46; }
.lf-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; }
.lf-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; font-size: 13px; color: #495057; }
.lf-fc { flex: 1 1 100%; }
.lf-l { font-weight: 600; color: #343a40; }
.lf-u { display: flex; align-items: center; gap: 5px; }
.lf-u i { font-style: normal; color: #6c757d; white-space: nowrap; }
.lf-in, .lf-sel, .lf-adr { box-sizing: border-box; padding: 6px 8px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #212529; }
.lf-u .lf-in { width: 10.5em; }
.lf-txt { width: 15em; max-width: 100%; }
.lf-sel { max-width: 100%; min-width: 12em; }
.lf-in::placeholder { color: #8a949e; font-style: italic; }
.lf-in:focus, .lf-sel:focus, .lf-adr:focus { outline: none; border-color: #6fbf8f; box-shadow: 0 0 0 3px rgba(31, 122, 70, .18); }
.lf-aide { max-width: 34em; color: #6c757d; font-size: 12px; line-height: 1.35; }
.lf-plein { flex: 1 1 100%; max-width: none; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.lf-c { padding: 5px 11px; border: 1px solid #b9c7bd; border-radius: 15px; background: #fff; color: #1f5132; font: inherit; font-size: 13px; cursor: pointer; }
.lf-c:hover { background: #eef7f1; }
.lf-c.on { background: #1f7a46; border-color: #1f7a46; color: #fff; }
.lf-c0 { border-style: dashed; color: #6c757d; }
.lf-c0.on { background: #6c757d; border-color: #6c757d; color: #fff; }
.lf-lieu { display: flex; flex-direction: column; gap: 4px; }
.lf-cher { position: relative; display: block; max-width: 620px; }
.lf-cher[hidden] { display: none; }
.lf-adr { width: 100%; font-size: 15px; padding: 7px 10px; }
.lf-sug { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 300px; overflow: auto; border: 1px solid #ced4da; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.lf-sug[hidden] { display: none; }
.lf-s { display: block; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid #f1f3f5; background: #fff; text-align: left; font: inherit; color: #212529; cursor: pointer; }
.lf-s:hover, .lf-s.on { background: #eef7f1; }
.lf-s small { color: #6c757d; }
.lf-choisi { margin: 2px 0; font-size: 14px; }
.lf-lien { border: 0; background: none; padding: 0; color: #0d6efd; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; font-weight: normal; }
.lf-b { padding: 7px 14px; border: 1px solid #1f7a46; border-radius: 6px; background: #fff; color: #1f7a46; font: inherit; cursor: pointer; }
.lf-b:hover { background: #eef7f1; }
.lf-bp { background: #1f7a46; color: #fff; }
.lf-bp:hover { background: #18643a; }
.lf-nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 4px; padding-top: 10px; border-top: 1px solid #e9ecef; }
.lf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.lf-live { margin: 12px 0; padding: 10px 12px; border: 1px solid #cfe3d6; border-radius: 8px; background: #f6fbf8; }
.lf-live[hidden] { display: none; }
.lf-h { margin: 16px 0 6px; font-size: 15px; color: #1f5132; border-bottom: 1px solid #e3e8e4; padding-bottom: 3px; }
.lf-h4 { margin: 10px 0 4px; font-size: 13px; color: #1f5132; }
.lf-note { margin: 6px 0; padding: 7px 10px; border-left: 3px solid #f0b40f; background: #fff8e1; font-size: 13px; line-height: 1.45; }
.lf-src { margin: 6px 0; color: #6c757d; font-size: 12px; line-height: 1.45; }
.lf-av { color: #6c757d; font-size: 12px; }
.lf-ok { margin: 6px 0; color: #0f5132; font-size: 13px; }
.lf-bad, .lf-rouge { color: #b02a37; }
.lf-vert { color: #0f5132; }
.lf-cartes { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.lf-carte { flex: 1 1 210px; padding: 9px 12px; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; }
.lf-carte-forte { border-color: #1f7a46; background: #f3faf5; }
.lf-carte h4 { margin: 0 0 3px; font-size: 13px; color: #495057; }
.lf-carte p { margin: 2px 0; font-size: 13px; }
.lf-carte .lf-gros { font-size: 21px; font-weight: bold; color: #1f5132; }
.lf-carte .lf-gros.lf-rouge { color: #b02a37; }
.lf-carte .lf-gros small { font-size: 12px; font-weight: normal; color: #6c757d; }
.lf-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0; }
.lf-t { border-collapse: collapse; width: 100%; font-size: 13px; }
.lf-t th, .lf-t td { padding: 5px 8px; border-bottom: 1px solid #e9ecef; text-align: right; white-space: nowrap; }
.lf-t th:first-child, .lf-t td:first-child { text-align: left; white-space: normal; }
.lf-t th { background: #f1f5f2; color: #495057; font-weight: 600; font-size: 12px; white-space: normal; }
.lf-t small { color: #6c757d; font-weight: normal; }
.lf-t tr.lf-tot td { font-weight: bold; border-top: 1px solid #adb5bd; }
.lf-t tr.lf-gris td { color: #868e96; }
.lf-t .lf-act { background: #e8f5ec; font-weight: bold; }
.lf-t2 { max-width: 560px; }
.lf-dpe { display: inline-block; width: 24px; height: 22px; line-height: 22px; border-radius: 4px; text-align: center; color: #fff; font: bold 13px Arial, sans-serif; vertical-align: middle; }
.lf-dpe-p { width: 20px; height: 18px; line-height: 18px; font-size: 12px; }
.lf-dpe-x { background: #adb5bd; }
.lf-dpel1 { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.lf-dpes { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.lf-dpel { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; text-align: left; font: inherit; font-size: 13px; color: #212529; cursor: pointer; }
.lf-dpel.on { border-color: #1f7a46; background: #f3faf5; }
.lf-dpel small { color: #6c757d; }
.lf-regles { margin: 4px 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.lf-alerte { padding: 8px 10px 8px 28px; border: 1px solid #f1aeb5; border-radius: 6px; background: #fdf2f3; color: #842029; }
.lf-liste { margin: 4px 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.lf-det { margin: 12px 0; font-size: 13px; }
/* Point 261 : encadré d'endettement (vert, orange, rouge) et reste à vivre (bleu, indicatif) */
.lf-endet { margin: 8px 0 10px; padding: 9px 12px; border: 1px solid #ced4da; border-left-width: 5px; border-radius: 6px; background: #f8f9fa; font-size: 13px; line-height: 1.45; }
.lf-endet > b { display: block; font-size: 15px; }
.lf-endet p { margin: 3px 0; }
.lf-endet small { color: #6c757d; font-weight: normal; }
.lf-endet .lf-liste { margin: 4px 0; }
.lf-endet-rouge { border-color: #d7221f; background: #fdf2f3; color: #842029; }
.lf-endet-rouge > b { color: #b02a37; }
.lf-endet-orange { border-color: #e8890c; background: #fff4e5; color: #6b3d00; }
.lf-endet-orange > b { color: #a85d00; }
.lf-endet-vert { border-color: #1f7a46; background: #eef7f1; color: #0f5132; }
.lf-endet-info { border-color: #6c8ebf; background: #f1f5fb; color: #2b3e5c; }
.lf-endet-gris { color: #495057; }
.lf-dosbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 14px; margin: 0 0 2px; font-size: 12px; color: #6c757d; }
.lf-dosbar > span { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lf-dosbar .lf-lien { font-size: 12px; }
html.appmode .lf-dosbar .lf-lien { font-size: 14px; padding: 4px 0; }
.lf-dos { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow: auto; }
.lf-dos-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; }
.lf-dos-l.on { border-color: #1f7a46; background: #f3faf5; }
.lf-dos-l > span { flex: 1 1 200px; min-width: 0; }
.lf-dos-l small { color: #6c757d; }
.lf-dos-b { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.lf-det summary { cursor: pointer; color: #0d6efd; }
.lf-etroit .lf-pan { padding: 8px 10px 14px; }
.lf-etroit .lf-t { font-size: 12px; }
.lf-etroit .lf-t th, .lf-etroit .lf-t td { padding: 4px 5px; }
.lf-etroit .lf-tab { padding: 6px 9px; }
.lf-etroit .lf-grid { gap: 8px 10px; }
.lf-etroit .lf-u .lf-in { width: 8em; }
html.appmode .lf-in, html.appmode .lf-sel, html.appmode .lf-adr { font-size: 16px; padding: 9px 10px; }
html.appmode .lf-c { padding: 8px 13px; font-size: 15px; }
html.appmode .lf-tab { padding: 9px 12px; }
html.appmode .lf-s { padding: 11px 12px; }
html.appmode .lf-b { padding: 10px 16px; }
html[data-theme="matrix"] .lf-root, html[data-theme="matrix"] .lf-body, html[data-theme="matrix"] .lf-tabs { background: #000; color: var(--m); }
html[data-theme="matrix"] .lf-t th, html[data-theme="matrix"] .lf-tab, html[data-theme="matrix"] .lf-carte, html[data-theme="matrix"] .lf-note, html[data-theme="matrix"] .lf-grp, html[data-theme="matrix"] .lf-live { background: #000; color: var(--m); border-color: var(--m-dark); }
/* Point 249 : bouton « Simuler le financement » de LogiDPE (ouvre LogiFinance) */
.dpe-fin { margin: 12px 0 4px; }
.dpe-fin small { color: #6c757d; }
/* Logimètre, point 250 : année partielle (janvier-juin 2026) et comparaison avec l'estimation */
.lm-tag-p { background: #fff3cd; color: #664d03; }
.lm-t tr.lm-part td { background: #fffdf5; }
.lm-est2p { margin: 0; padding: 4px 8px 6px; background: #f8f9ff; color: #495057; font-size: 12px; font-style: italic; line-height: 1.4; }
.lm-cmp { margin: 0 0 4px; padding: 5px 8px; border-top: 1px solid #e9ecef; background: #fffdf5; color: #343a40; font-size: 12px; line-height: 1.45; }
.lm-carte .lm-reel { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #dee2e6; font-size: 12px; }
/* Logimètre, point 255 : vignette « Ventes connues » de Mon logement, à gauche du prix juste et de la même taille */
.lm-vb { background: #fffaf3; border-color: #f1d3ae; }
.lm-vb h4 .lm-av { font-size: 12px; }
.lm-carte .lm-vb-d { color: #9a3412; font-weight: 700; }
.lm-vb .lm-gros { color: #9a3412; }
.lm-carte .lm-vb-pru, .lm-vb-pru { color: #8a5300; font-size: 12px; }
.lm-carte .lm-vb-ec { margin-top: 5px; }
.lm-vb-l { margin: 6px 0 0; padding: 6px 0 0 18px; border-top: 1px dashed #ecc9a0; font-size: 12px; line-height: 1.35; }
.lm-vb-l li { margin: 3px 0; }
.lm-vb-aut { margin-top: 6px; font-size: 12px; }
.lm-vb-aut summary { cursor: pointer; color: #495057; }
.lm-vb-aut .lm-vb-l { border-top: 0; padding-top: 2px; }
html[data-theme="matrix"] .lm-vb .lm-gros, html[data-theme="matrix"] .lm-carte .lm-vb-d, html[data-theme="matrix"] .lm-vb-pru { color: var(--m); }
.lm-prud { font-size: 12px; }
.lm-leg small.lm-leg-pos { display: block; max-width: 190px; margin-top: 3px; white-space: normal; }
.lm-leg.lm-leg-ferme > small.lm-leg-car, .lm-leg.lm-leg-ferme > small.lm-leg-pos { display: none; }
html[data-theme="matrix"] .lm-t tr.lm-part td, html[data-theme="matrix"] .lm-cmp, html[data-theme="matrix"] .lm-est2p { background: #000; color: var(--m); }
/* Point 251 : « Trouver sur la carte » (os/logicarte.js), par-dessus LogiDPE et LogiFinance */
.lc-hote { position: relative; }
.lc-ov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f8f9fa; color: #212529; font: 13px/1.4 "Segoe UI", Arial, sans-serif; }
.lc-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px; border-bottom: 1px solid #dee2e6; background: #fff; }
.lc-titre { font-size: 14px; margin-right: 4px; }
.lc-cher { position: relative; flex: 1 1 220px; min-width: 160px; }
.lc-q { box-sizing: border-box; width: 100%; padding: 6px 9px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; color: #212529; }
.lc-sug { position: absolute; z-index: 1001; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 300px; overflow: auto; border: 1px solid #ced4da; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.lc-sug[hidden] { display: none; }
.lc-s { display: block; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid #f1f3f5; background: none; text-align: left; font: inherit; color: #212529; cursor: pointer; }
.lc-s:hover { background: #e7f1ff; }
.lc-s small { color: #6c757d; }
.lc-b { flex: none; padding: 6px 12px; border: 1px solid #0d6efd; border-radius: 6px; background: #fff; color: #0d6efd; font: inherit; cursor: pointer; }
.lc-b:hover { background: #e7f1ff; }
.lc-bp { background: #0d6efd; color: #fff; }
.lc-bp:hover { background: #0b5ed7; }
.lc-x { border-color: #adb5bd; color: #495057; }
.lc-main { flex: 1; display: flex; min-height: 0; }
.lc-mapw { position: relative; flex: 1; min-width: 0; }
.lc-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #dee2e6; }
.lc-aide { position: absolute; z-index: 500; left: 50%; top: 8px; transform: translateX(-50%); max-width: calc(100% - 120px); padding: 5px 10px; border-radius: 6px; background: rgba(33, 37, 41, .82); color: #fff; font-size: 12px; text-align: center; pointer-events: none; }
.lc-aide[hidden], .lc-aide:empty { display: none; }
.lc-pan { position: relative; flex: none; width: 360px; overflow: auto; padding: 10px 12px; border-left: 1px solid #dee2e6; background: #fff; box-sizing: border-box; }
.lc-pan[hidden] { display: none; }
.lc-pan h3 { margin: 0 26px 6px 0; font-size: 15px; }
.lc-pan h4 { margin: 10px 0 2px; font-size: 13px; }
.lc-pfer { position: absolute; right: 6px; top: 4px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; font-size: 20px; line-height: 1; color: #495057; cursor: pointer; }
.lc-pfer:hover { background: #f1f3f5; }
.lc-bat { margin: 0; }
.lc-adr { margin: 6px 0; }
.lc-src { margin: 4px 0; color: #6c757d; font-size: 11px; }
.lc-note { color: #495057; }
.lc-bad { color: #b02a37; }
.lc-aidep { margin: 0 0 4px; color: #495057; font-size: 12px; }
.lc-dpes { display: flex; flex-direction: column; gap: 4px; }
.lc-dpe { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; text-align: left; font: inherit; font-size: 12px; color: #212529; cursor: pointer; }
.lc-dpe:hover { border-color: #0d6efd; background: #f3f8ff; }
.lc-dpe > span:last-child { margin-left: 4px; min-width: 0; }
.lc-dpe small, .lc-cpl { color: #6c757d; }
.lc-p { flex: none; display: inline-block; width: 22px; height: 20px; line-height: 20px; border-radius: 4px; text-align: center; font: bold 12px Arial, sans-serif; vertical-align: middle; }
.lc-p-g { width: 18px; border-radius: 10px; font-size: 11px; }
.lc-p-x { background: #dee2e6; color: #495057; }
.lc-p + .lc-p { margin-left: 2px; }
.lc-rien { margin: 8px 0; padding: 8px 10px; border: 1px solid #ffe08a; border-radius: 6px; background: #fff9e6; }
.lc-rien p { margin: 0 0 6px; }
.lc-anc { margin: 10px 0 4px; }
.lc-anc summary { cursor: pointer; color: #6c757d; }
.lc-anc ul { margin: 4px 0; padding-left: 0; list-style: none; }
.lc-anc li { margin: 3px 0; color: #495057; font-size: 12px; }
.lc-t { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.lc-t th { width: 34%; padding: 4px 6px 4px 0; text-align: left; vertical-align: top; color: #6c757d; font-weight: normal; }
.lc-t td { padding: 4px 0; border-bottom: 1px solid #f1f3f5; }
.lc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lc-lien { color: #0d6efd; font-size: 12px; }
.lc-pied { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 3px 8px; border-top: 1px solid #dee2e6; background: #fff; font-size: 12px; }
.lc-msg { flex: 1 1 200px; min-height: 1.4em; color: #495057; }
.lc-msg.lc-bad { color: #b02a37; }
.lc-det { flex: 0 1 auto; max-width: 100%; }
.lc-det summary { cursor: pointer; color: #0d6efd; }
.lc-det[open] { flex-basis: 100%; }
.lc-det p { margin: 4px 0; color: #495057; font-size: 11px; }
.lc-etroit .lc-titre { display: none; }
.lc-etroit .lc-main { flex-direction: column; }
.lc-etroit .lc-pan { width: auto; flex: 0 0 auto; max-height: 58%; border-left: 0; border-top: 2px solid #adb5bd; }
.lc-etroit.lc-pan-ouvert .lc-mapw { flex: 1 1 42%; min-height: 160px; }
html.appmode .lc-q, html.appmode .lc-b { font-size: 16px; padding: 8px 10px; }
html.appmode .lc-dpe { font-size: 14px; padding: 8px; }
/* LogiCarte, point 255 : ventes connues du bâtiment, en haut de la fiche (LogiFinance seulement) */
.lc-vb { margin: 4px 0 10px; padding: 8px 10px; border: 1px solid #f1d3ae; border-radius: 8px; background: #fffaf3; font-size: 12px; line-height: 1.4; }
.lc-vb-att { border-style: dashed; background: #fff; }
.lc-vb-res { color: #9a3412; font-size: 14px; font-weight: 700; line-height: 1.35; }
.lc-vb-res small { display: block; margin-top: 1px; color: #6c757d; font-size: 11px; font-weight: 400; }
.lc-vb-m2 { color: #7c2d12; font-size: 12px; font-weight: 400; }
.lc-vb-det { margin: 4px 0; padding-left: 16px; color: #343a40; }
.lc-vb-det li { margin: 1px 0; }
.lc-vb-pru { color: #8a5300; }
p.lc-vb-pru { margin: 4px 0; }
.lc-vb-cmp { width: 100%; margin: 6px 0 2px; border-collapse: collapse; }
.lc-vb-cmp th { padding: 2px 6px 2px 0; color: #495057; font-weight: 400; text-align: left; }
.lc-vb-cmp td { padding: 2px 0 2px 6px; text-align: right; white-space: nowrap; }
.lc-vb-cmp tr:first-child td:nth-child(2) { font-weight: 700; }
.lc-vb-cmp td:last-child { color: #495057; }
.lc-vb .lc-acts { margin: 6px 0 2px; }
.lc-vb .lc-acts .lc-src { margin: 0; }
.lc-vb-ok { color: #146c43; font-weight: 700; }
.lc-vb-l { margin: 6px 0 0; padding: 6px 0 0 16px; border-top: 1px dashed #ecc9a0; }
.lc-vb-l li { margin: 3px 0; }
.lc-vb-aut { margin-top: 6px; }
.lc-vb-aut summary { color: #495057; cursor: pointer; }
.lc-vb-aut .lc-vb-l { padding-top: 2px; border-top: 0; }
.lc-vb0 { margin: 0; color: #495057; }
html.appmode .lc-vb { font-size: 14px; }
html.appmode .lc-vb-res { font-size: 16px; }
html[data-theme="matrix"] .lc-vb, html[data-theme="matrix"] .lc-vb-res, html[data-theme="matrix"] .lc-vb-m2, html[data-theme="matrix"] .lc-vb-pru { background: #000; color: var(--m); border-color: var(--m-dark); }
.dpe-carte .dpe-cl2 { display: none; }
.dpe-narrow .dpe-carte .dpe-cl1 { display: none; }
.dpe-narrow .dpe-carte .dpe-cl2 { display: inline; }
.lf-carte1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 2px; }
.lf-carte1 .lf-aide { margin: 0; }

/* ===== LogiRadar (lr-, point 257) : où des DPE ont été faits récemment (communes ou cercle, période) ===== */
.lr-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #f8f9fa; color: #212529; font: 13px/1.4 "Segoe UI", Arial, sans-serif; outline: none; }
.lr-bar { flex: none; padding: 6px 8px 4px; border-bottom: 1px solid #dee2e6; background: #fff; }
.lr-l1, .lr-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lr-l2 { margin-top: 4px; }
.lr-modes { display: inline-flex; flex: none; border: 1px solid #0d6efd; border-radius: 6px; overflow: hidden; }
.lr-mb { padding: 6px 11px; border: 0; background: #fff; color: #0d6efd; font: inherit; cursor: pointer; }
.lr-mb + .lr-mb { border-left: 1px solid #0d6efd; }
.lr-mb.lr-on { background: #0d6efd; color: #fff; }
.lr-cher { position: relative; flex: 1 1 220px; min-width: 160px; }
.lr-q { box-sizing: border-box; width: 100%; padding: 6px 9px; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; color: #212529; }
.lr-sug { position: absolute; z-index: 1001; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 300px; overflow: auto; border: 1px solid #ced4da; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.lr-sug[hidden] { display: none; }
.lr-s { display: block; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid #f1f3f5; background: none; text-align: left; font: inherit; color: #212529; cursor: pointer; }
.lr-s:hover { background: #e7f1ff; }
.lr-s small { color: #6c757d; }
.lr-s0 { display: block; padding: 7px 10px; color: #6c757d; }
.lr-cer { display: none; align-items: center; gap: 6px; }
.lr-mcercle .lr-cer { display: inline-flex; }
.lr-lab { display: inline-flex; align-items: center; gap: 4px; color: #495057; }
.lr-lab select, .lr-lab input[type=date], .lr-filtres select, .lr-filtres input[type=number] { padding: 4px 6px; border: 1px solid #ced4da; border-radius: 6px; background: #fff; color: #212529; font: inherit; }
.lr-chk { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.lr-b { flex: none; padding: 6px 12px; border: 1px solid #0d6efd; border-radius: 6px; background: #fff; color: #0d6efd; font: inherit; cursor: pointer; }
.lr-b:hover { background: #e7f1ff; }
.lr-b:disabled { opacity: .5; cursor: default; background: #fff; }
.lr-bp { background: #0d6efd; color: #fff; }
.lr-bp:hover { background: #0b5ed7; }
.lr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-height: 22px; }
.lr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 12px; background: #e7f1ff; color: #084298; }
.lr-chip small { color: #6c757d; }
.lr-chip button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 10px; background: none; color: #084298; font-size: 15px; line-height: 1; cursor: pointer; }
.lr-chip button:hover { background: #cfe2ff; }
.lr-chip0 { padding: 2px 0; color: #6c757d; }
.lr-main { flex: 1; display: flex; min-height: 0; }
.lr-info { display: none; }
.lr-etroit .lr-info:not(:empty) { display: block; flex: none; padding: 5px 10px; border-bottom: 1px solid #dee2e6; background: #e7f1ff; color: #084298; font-size: 12px; }
.lr-etroit .lr-info.lr-bad { background: #f8d7da; color: #842029; }
.lr-mapw { position: relative; flex: 1; min-width: 0; }
.lr-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #dee2e6; }
.lr-fond { position: absolute; z-index: 500; right: 10px; top: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.lr-aide { position: absolute; z-index: 500; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: 80%; padding: 5px 10px; border-radius: 6px; background: rgba(33, 37, 41, .82); color: #fff; font-size: 12px; text-align: center; pointer-events: none; }
.lr-aide:empty { display: none; }
.lr-pan { flex: none; display: flex; flex-direction: column; width: 380px; min-height: 0; border-left: 1px solid #dee2e6; background: #fff; }
.lr-compte { flex: none; padding: 8px 10px 4px; }
.lr-filtres { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; padding: 4px 10px 8px; border-bottom: 1px solid #dee2e6; }
.lr-filtres input[type=number] { width: 58px; }
.lr-fcl { display: inline-flex; gap: 2px; }
.lr-fc { padding: 1px; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.lr-fsome .lr-fc { opacity: .5; }
.lr-fsome .lr-fc[aria-pressed=true] { border-color: #212529; opacity: 1; }
.lr-liste { flex: 1; overflow: auto; padding: 4px 6px 8px; }
.lr-ligne { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 0 0 3px; padding: 6px 8px; border: 1px solid #e9ecef; border-radius: 6px; background: #fff; text-align: left; font: inherit; color: #212529; cursor: pointer; }
.lr-ligne:hover { border-color: #0d6efd; background: #f3f8ff; }
.lr-ligne.lr-sel { border-color: #0d6efd; background: #e7f1ff; }
.lr-lt { min-width: 0; }
.lr-lt small { display: block; color: #6c757d; overflow: hidden; text-overflow: ellipsis; }
.lr-plus { display: block; margin: 6px auto; }
.lr-vide { margin: 10px 4px; color: #6c757d; }
.lr-p { flex: none; display: inline-block; width: 22px; height: 20px; line-height: 20px; border-radius: 4px; text-align: center; font: bold 12px Arial, sans-serif; vertical-align: middle; }
.lr-p-g { width: 18px; margin-left: 2px; border-radius: 10px; font-size: 11px; }
.lr-p-x { background: #dee2e6; color: #495057; }
.lr-new { display: inline-block; padding: 0 6px; border-radius: 8px; background: #d6336c; color: #fff; font-size: 11px; font-weight: bold; }
.lr-neuf { display: inline-block; padding: 0 6px; border-radius: 8px; background: #e9ecef; color: #495057; font-size: 11px; }
.lr-bad { color: #b02a37; }
.lr-avis { flex: none; padding: 5px 10px; border-top: 1px solid #dee2e6; background: #fff8e1; color: #5c4a00; font-size: 12px; }
.lr-avis a { color: #084298; }
.lr-root .statusbar .lr-src { margin-left: auto; color: #6c757d; }
.leaflet-marker-icon.lr-grp { display: flex; align-items: center; justify-content: center; border: 3px solid rgba(13, 110, 253, .35); border-radius: 50%; background: #0d6efd; background-clip: padding-box; color: #fff; font: bold 12px Arial, sans-serif; box-sizing: border-box; }
.leaflet-marker-icon.lr-grp-n { border-color: rgba(214, 51, 108, .55); }
.lr-bulle { box-sizing: border-box; width: 260px; max-height: 320px; overflow-x: hidden; overflow-y: auto; padding-right: 4px; overflow-wrap: break-word; font: 12px/1.45 "Segoe UI", Arial, sans-serif; }
.lr-bn { margin: 0 0 4px; color: #495057; }
.lr-bd { padding: 4px 0 6px; border-bottom: 1px solid #e9ecef; }
.lr-bd:last-child { border-bottom: 0; }
.lr-bsel { background: #f3f8ff; }
.lr-bl { margin-bottom: 2px; }
.lr-badr { margin-top: 2px; }
.lr-bnum { color: #6c757d; }
.lr-liens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lr-lien { padding: 3px 8px; border: 1px solid #0d6efd; border-radius: 5px; background: #fff; color: #0d6efd; font: inherit; text-decoration: none; cursor: pointer; }
.lr-lien:hover { background: #e7f1ff; }
.lr-ul { margin: 0; padding-left: 18px; }
.lr-ul li { margin-bottom: 5px; }
/* Fenêtre étroite (téléphone) : la liste passe sous la carte, la page défile */
.lr-etroit { overflow: auto; height: auto; min-height: 100%; }
.lr-etroit .lr-main { flex: none; flex-direction: column; }
.lr-etroit .lr-mapw { flex: none; height: 360px; }
.lr-etroit .lr-pan { width: auto; border-left: 0; border-top: 1px solid #dee2e6; }
.lr-etroit .lr-liste { overflow: visible; }
.lr-etroit .lr-cher { flex-basis: 100%; order: 3; }
.appmode .lr-etroit .lr-mapw { height: 56vh; }
/* LogiRadar, point 258 : prix, travaux, surveillances, administration */
.lr-fprix input[type=number] { width: 92px; }
.lr-fprix, .lr-fvis { display: inline-flex; align-items: center; gap: 4px; }
.lr-lprix { color: #0a6b3d !important; }
.lr-bprix { color: #0a6b3d; }
.lr-bprix small { color: #6c757d; }
.lr-dlg { box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px 14px; overflow: auto; background: #fff; color: #212529; font: 13px/1.45 "Segoe UI", Arial, sans-serif; }
.lr-dlg p { margin: 0; }
.lr-dlg-note { color: #495057; font-size: 12px; }
.lr-dlg-pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 6px; }
.lr-sv { flex: 1; min-height: 0; overflow: auto; }
.lr-svz { margin: 0 0 10px; padding: 8px 10px; border: 1px solid #dee2e6; border-radius: 8px; background: #f8f9fa; }
.lr-svh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.lr-svc { color: #495057; font-size: 12px; }
.lr-svx { padding: 3px 10px; border-color: #b02a37; color: #b02a37; }
.lr-svx:hover { background: #f8d7da; }
.lr-sva { margin-top: 5px; }
.lr-adm-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lr-adm-f label { display: flex; flex: 1 1 260px; align-items: center; gap: 6px; }
.lr-adm-f[hidden] { display: none; }
/* LogiRadar, point 276 : une surveillance par appareil (remplacer), alertes par e-mail */
.lr-dlg-warn { padding: 6px 8px; border-radius: 6px; background: #fff3cd; color: #664d03; }
.lr-dlg-mail { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.lr-dlg-mail input { box-sizing: border-box; width: 100%; padding: 6px 8px; border: 1px solid #ced4da; border-radius: 6px; font: 14px "Segoe UI", Arial, sans-serif; font-weight: normal; }
.lr-dlg .lr-bad { color: #b02a37; }
.lr-svm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: #495057; font-size: 12px; }
.lr-svm .lr-b { padding: 2px 9px; }
