/*
 * SecMet — démo : habillage autour de la réplique (barre de contrôle,
 * bureau du banc, panneau, PolicyKit, veille, applications du bureau,
 * visite guidée) et mise en page de la fenêtre SecMet.
 */
:root {
  --demo-bar-bg: #101418;
  --demo-bar-fg: #e8edf2;
  --demo-accent: #4ade80;
  --demo-accent-strong: #22c55e;
  --demo-muted: #94a3b8;
  --demo-border: rgba(255, 255, 255, 0.1);
  --panel-h: 38px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #0b0e11;
  color: var(--demo-bar-fg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  overflow: hidden;
}
button {
  font-family: inherit;
}
[hidden] {
  display: none !important;
}
code {
  font-family: var(--font-mono, monospace);
  background: rgba(127, 127, 127, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Barre de contrôle de la démo ────────────────────────────────────── */
.demo-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: var(--demo-bar-bg);
  border-bottom: 1px solid var(--demo-border);
  position: relative;
  z-index: 50;
}
.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.demo-brand .mark {
  width: 30px;
  height: 34px;
  display: inline-flex;
}
.demo-brand .mark svg {
  width: 100%;
  height: 100%;
}
.demo-brand b {
  font-size: 15px;
  letter-spacing: 0.2px;
}
.demo-brand .tag {
  font-size: 11px;
  color: #0b0e11;
  background: var(--demo-accent);
  border-radius: 99px;
  padding: 2px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.demo-bar .grow {
  flex: 1;
}
.demo-seg {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.demo-seg button,
.demo-btn {
  border: none;
  background: transparent;
  color: var(--demo-bar-fg);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.demo-seg button:hover,
.demo-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.demo-seg button.on {
  background: var(--demo-accent);
  color: #0b0e11;
}
.demo-btn {
  background: rgba(255, 255, 255, 0.06);
}
.demo-btn.primary {
  background: var(--demo-accent);
  color: #0b0e11;
}
.demo-btn.primary:hover {
  background: var(--demo-accent-strong);
}
.demo-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--demo-muted);
  white-space: nowrap;
}
.demo-field select {
  background: rgba(255, 255, 255, 0.06);
  color: var(--demo-bar-fg);
  border: 1px solid var(--demo-border);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 600;
}
.demo-field select option {
  background: #1b2128;
}
.demo-clock {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--demo-muted);
  white-space: nowrap;
}
.demo-clock b {
  color: var(--demo-bar-fg);
}
.demo-menu {
  position: relative;
}
.demo-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: #1a2027;
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.demo-menu-pop .item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--demo-bar-fg);
  text-align: left;
  font-size: 13px;
}
.demo-menu-pop .item:hover {
  background: rgba(255, 255, 255, 0.07);
}
.demo-menu-pop .item small {
  display: block;
  color: var(--demo-muted);
  font-size: 11.5px;
  margin-top: 2px;
  line-height: 1.35;
}
.demo-menu-pop .item input {
  margin-top: 2px;
  accent-color: var(--demo-accent);
}
.demo-menu-pop hr {
  border: none;
  border-top: 1px solid var(--demo-border);
  margin: 4px 0;
}

/* ── Bureau du banc ─────────────────────────────────────────────────── */
.stage {
  position: absolute;
  inset: 52px 0 0 0;
  display: flex;
  flex-direction: column;
  /* Contexte d'empilement propre : les fenêtres (z-index jusqu'à 600) et
     couches système restent sous la barre de démo et son menu. */
  z-index: 0;
}
#desktop {
  position: relative;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% 15%, rgba(34, 197, 94, 0.13), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(56, 132, 228, 0.12), transparent 60%),
    linear-gradient(160deg, #1b232b 0%, #12171c 55%, #0d1115 100%);
}
#desktop.gtk-light {
  background:
    radial-gradient(1200px 600px at 75% 15%, rgba(34, 197, 94, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(56, 132, 228, 0.16), transparent 60%),
    linear-gradient(160deg, #c9d3dc 0%, #b4c0cb 60%, #a6b3bf 100%);
}
.desktop-mark {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 220px;
  opacity: 0.07;
  pointer-events: none;
}
.desktop-icons {
  position: absolute;
  left: 18px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.desktop-icon {
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}
.desktop-icon .glyph {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.desktop-icon .glyph svg {
  width: 28px;
  height: 32px;
}

/* Panneau (barre des tâches du banc) */
.panel {
  height: var(--panel-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: rgba(20, 24, 28, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #e5e7eb;
  position: relative;
  z-index: 40;
}
.panel button {
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
}
.panel button:hover {
  background: rgba(255, 255, 255, 0.08);
}
.panel button.running {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px #4ade80;
}
.panel .glyph svg {
  width: 16px;
  height: 18px;
  display: block;
}
.panel .grow {
  flex: 1;
}
.panel .tray {
  display: flex;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  padding-right: 6px;
}

/* Fenêtres : bascule entre modale et parent */
.modal-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.gtk-window.attention {
  animation: attention 0.3s;
}
@keyframes attention {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.gtk-message.warning .message-text {
  font-size: 14px;
}

/* ── Fenêtre principale SecMet ───────────────────────────────────────── */
.secmet-main .gtk-content {
  font-size: 13.5px;
}
.main-box {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.selection-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}
.selection-row .total-label {
  margin-left: auto;
}
.disk-scroll {
  flex: 1;
  min-height: 120px;
  padding-right: 4px;
}
.disk-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.bottom-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.bottom-row .spacer {
  flex: 1;
}
.global-status {
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom-row .gtk-button {
  flex: none;
}
.warning-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Dialogues ──────────────────────────────────────────────────────── */
.dialog-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.pre {
  white-space: pre-wrap;
}
.feedback:empty {
  display: none;
}
.hint {
  font-weight: bold;
  white-space: pre-wrap;
}
.message-extra .gtk-combo {
  margin-top: 4px;
}
.settings-box .spaced {
  margin-top: 6px;
}
.logo-preview {
  width: 320px;
  height: 90px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}
.logo-preview img,
.logo-preview .logo-default svg {
  max-width: 100%;
  max-height: 78px;
  display: block;
}
.row-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-inline-hint {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.45;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px dashed rgba(74, 222, 128, 0.55);
}
.demo-inline-hint::before {
  content: 'DÉMO';
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 99px;
  background: #4ade80;
  color: #0b0e11;
}
:root[lang='en'] .demo-inline-hint::before {
  content: 'DEMO';
}

/* TestDisk */
.testdisk-scroll,
.pdf-scroll {
  max-height: 280px;
  min-height: 120px;
  padding: 8px 10px;
}
.testdisk-list,
.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.testdisk-dialog-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testdisk-disk-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testdisk-disk-row .gtk-check {
  flex: 1;
}
.testdisk-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
}
.testdisk-status-row .status {
  flex: 1;
}
.recap-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.recap {
  flex: 1;
  white-space: pre-wrap;
}
.text-scroll {
  height: 420px;
  border-radius: 6px;
  background: var(--view-bg);
}
.text-view {
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-weight: normal;
  font-size: 12.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.format-frame {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.format-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* SMART */
.secmet-smart-window .gtk-content {
  font-size: 13px;
}
.secmet-smart-root,
.secmet-smart-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.secmet-smart-disk-header .titles {
  flex: 1;
  min-width: 0;
}
.temp-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}
.temp-range {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.secmet-smart-temp-bar .tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(var(--fg-rgb), 0.55);
}
.secmet-smart-statusbar .right {
  margin-left: auto;
}

/* ── PolicyKit, veille ──────────────────────────────────────────────── */
#system-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 900;
}
#system-layer > * {
  pointer-events: auto;
}
.polkit-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.polkit-dialog {
  width: min(430px, calc(100% - 32px));
  background: #2f343a;
  color: #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  text-align: center;
}
.polkit-dialog.shake {
  animation: attention 0.3s;
}
.polkit-dialog.busy {
  opacity: 0.85;
}
.polkit-icon svg {
  width: 44px;
  height: 44px;
  fill: #9ccfff;
}
.polkit-title {
  font-size: 17px;
  font-weight: 700;
}
.polkit-message {
  color: #cbd5e1;
}
.polkit-user {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 600;
}
.polkit-user .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4ade80;
  color: #0b0e11;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.polkit-input {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}
.polkit-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}
.polkit-hint {
  font-size: 12px;
  color: #86efac;
}
.polkit-error {
  color: #fca5a5;
  font-size: 12.5px;
  min-height: 0;
}
.polkit-error:empty {
  display: none;
}
.polkit-details {
  font-size: 12px;
  color: #94a3b8;
  text-align: left;
}
.polkit-details summary {
  cursor: pointer;
}
.polkit-details div {
  font-family: var(--font-mono, monospace);
  margin-top: 3px;
}
.polkit-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.polkit-btn {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.polkit-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.polkit-btn.primary {
  background: #3584e4;
}
.polkit-btn.primary:hover {
  background: #4a90e8;
}
.suspend-screen {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  outline: none;
}
.suspend-screen.on {
  opacity: 1;
}
.suspend-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
  animation: led 2.2s ease-in-out infinite;
}
@keyframes led {
  50% {
    opacity: 0.15;
  }
}
.suspend-wake {
  color: #64748b;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s;
}
.suspend-wake.show {
  opacity: 1;
}

/* ── Applications du bureau ─────────────────────────────────────────── */
.viewer-window .gtk-content,
.files-window .gtk-content,
.editor-window .gtk-content {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Cantarell, sans-serif;
  font-weight: 500;
}
.viewer-toolbar,
.files-toolbar,
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.12);
  flex: none;
}
.viewer-toolbar .spacer,
.files-toolbar .spacer,
.editor-toolbar .spacer {
  flex: 1;
}
.viewer-zoom {
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.viewer-scroll {
  flex: 1;
  overflow: auto;
  background: #525659;
  position: relative;
}
.viewer-pages {
  --zoom: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.viewer-page {
  width: calc(794px * var(--zoom));
  height: calc(1123px * var(--zoom));
  flex: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  background: #fff;
  overflow: hidden;
}
.viewer-page .cert-page {
  transform: scale(var(--zoom));
  transform-origin: 0 0;
}
.cert-qr.clickable {
  cursor: zoom-in;
  outline: 2px dashed transparent;
  transition: outline-color 0.2s;
}
.cert-qr.clickable:hover {
  outline-color: #22c55e;
}
.viewer-qr-panel {
  position: sticky;
  bottom: 12px;
  margin: 0 16px 12px;
  background: var(--dialog-bg);
  color: var(--fg);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qr-text {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--view-bg);
  color: var(--fg);
  border: 1px solid rgba(var(--fg-rgb), 0.15);
  border-radius: 6px;
  resize: vertical;
  word-break: break-all;
}
.files-path {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.crumb {
  border: none;
  background: rgba(var(--fg-rgb), 0.08);
  color: var(--fg);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
}
.crumb:hover {
  background: rgba(var(--fg-rgb), 0.14);
}
.files-scroll {
  flex: 1;
  background: var(--view-bg);
}
.files-list {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
}
.files-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 150px;
  gap: 10px;
  padding: 7px 14px;
  cursor: default;
  align-items: center;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.05);
}
.files-row.head {
  font-size: 12px;
  color: rgba(var(--fg-rgb), 0.6);
  position: sticky;
  top: 0;
  background: var(--view-bg);
}
.files-row:not(.head):hover {
  background: rgba(var(--fg-rgb), 0.05);
}
.files-row.selected {
  background: rgba(var(--accent-rgb), 0.3) !important;
}
.files-row .name {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.files-empty {
  padding: 30px;
  text-align: center;
  color: rgba(var(--fg-rgb), 0.5);
}
.image-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.image-view img {
  max-width: 90%;
  max-height: 90%;
}
.text-editor {
  flex: 1;
  border: none;
  resize: none;
  background: var(--view-bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 14px;
  outline: none;
  line-height: 1.45;
}
.editor-hint {
  margin: 8px 10px 0;
}
.terminal-window .gtk-content {
  background: #1c1f22;
}
.term {
  flex: 1;
  overflow: auto;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-weight: normal;
  font-size: 13px;
  line-height: 1.45;
  color: #e6e6e6;
  cursor: text;
}
.term-out div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-out .cmd {
  color: #e6e6e6;
}
.term-out .err {
  color: #ff8a80;
}
.term-out .ok {
  color: #8ae234;
  font-weight: bold;
}
.term-line {
  display: flex;
}
.term-prompt {
  color: #8ae234;
  white-space: pre;
}
.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e6e6e6;
  font: inherit;
  padding: 0;
}

/* ── Accueil, application fermée ─────────────────────────────────────── */
.overlay-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 10, 0.55);
  backdrop-filter: blur(3px);
  z-index: 800;
  padding: 16px;
}
.welcome {
  width: min(720px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #141a20;
  border: 1px solid var(--demo-border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 28px 30px 24px;
  color: #e8edf2;
}
.welcome .logo {
  height: 52px;
  margin-bottom: 14px;
}
.welcome .logo svg {
  height: 52px;
  width: auto;
}
.welcome h1 {
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.welcome p {
  color: #b6c2cf;
  line-height: 1.55;
  margin: 0 0 14px;
  font-size: 14.5px;
}
.welcome ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 13.5px;
  color: #d5dde6;
}
.welcome ul.features li {
  display: flex;
  gap: 8px;
}
.welcome ul.features li::before {
  content: '✓';
  color: var(--demo-accent);
  font-weight: 800;
}
.welcome .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.welcome .choice {
  border: 1px solid var(--demo-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.welcome .choice:hover {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(74, 222, 128, 0.07);
}
.welcome .choice.primary {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(74, 222, 128, 0.1);
}
.welcome .choice b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.welcome .choice span {
  font-size: 12.5px;
  color: #a7b4c2;
  line-height: 1.45;
}
.welcome .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: #a7b4c2;
}
.welcome .opts label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}
.welcome .opts input {
  accent-color: var(--demo-accent);
}
.welcome .note {
  margin-top: 14px;
  font-size: 12px;
  color: #7f8d9b;
}
.closed-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.closed-card > div {
  pointer-events: auto;
  background: rgba(20, 26, 32, 0.92);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
  color: #e8edf2;
  max-width: 420px;
}
.closed-card p {
  color: #a7b4c2;
  font-size: 14px;
}

/* ── Visite guidée ──────────────────────────────────────────────────── */
.tour-spot {
  position: fixed;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #4ade80, 0 0 0 9999px rgba(3, 6, 8, 0.38);
  pointer-events: none;
  z-index: 1000;
  transition: all 0.25s ease;
}
.tour-spot.none {
  box-shadow: none;
}
.tour-bubble {
  position: fixed;
  z-index: 1001;
  width: min(380px, calc(100vw - 24px));
  background: #f8fafc;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 16px 16px 12px;
  font-size: 14px;
  line-height: 1.5;
  transition: top 0.25s ease, left 0.25s ease;
}
.tour-bubble .step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #15803d;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.tour-bubble h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.tour-bubble p {
  margin: 0 0 8px;
}
.tour-bubble .action {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 8px;
}
.tour-bubble .action::before {
  content: '👉 ';
}
.tour-bubble .nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.tour-bubble .nav .grow {
  flex: 1;
}
.tour-bubble button {
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #e2e8f0;
  color: #0f172a;
}
.tour-bubble button.primary {
  background: #16a34a;
  color: #fff;
}
.tour-bubble button.link {
  background: transparent;
  color: #64748b;
  padding: 7px 4px;
}
.tour-progress {
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.tour-progress div {
  height: 100%;
  background: #22c55e;
  transition: width 0.3s;
}
.tour-bubble.autoplay .nav button.primary {
  display: none;
}
.kiosk-badge {
  position: fixed;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  background: rgba(22, 163, 74, 0.95);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 99px;
  padding: 5px 12px;
  z-index: 1002;
  cursor: pointer;
}

/* ── Petits écrans ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .demo-brand .tag,
  .demo-clock {
    display: none;
  }
}
@media (max-width: 820px) {
  .demo-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }
  .stage {
    top: var(--bar-h, 96px);
  }
  .demo-bar .grow {
    display: none;
  }
  .desktop-icons {
    display: none;
  }
  .intro-row {
    flex-direction: column;
    align-items: stretch;
  }
  .welcome .choices,
  .welcome ul.features {
    grid-template-columns: 1fr;
  }
  .progress-text {
    max-width: none;
  }
  .bottom-row {
    flex-wrap: wrap;
  }
  .disk-card .progress-row {
    flex-direction: column;
    align-items: stretch;
  }
  .files-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
  .files-row span:nth-child(3) {
    display: none;
  }
  .panel .label {
    display: none;
  }
}
