/* Barre « Voir le site en tant que » (maquette), chargée sur toutes les pages */
body.has-demo-bar { padding-bottom: 92px; }
body.has-demo-bar .messenger-float { bottom: 96px; }

.demo-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 70; /* au-dessus de la bulle Messenger, sous les fenêtres et menus */
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px);
  background: #2a2230; color: #fff; border-radius: 16px; padding: 8px 10px 8px 16px;
  font: 600 .85rem/1.2 'Nunito Sans', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.demo-label { white-space: nowrap; color: #e9dfee; }
.demo-seg { display: inline-flex; gap: 4px; background: #43384a; border-radius: 12px; padding: 4px; }
.demo-seg button {
  display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 9px; cursor: pointer;
  background: none; color: #d9cfe0; font: inherit; padding: 5px 10px 5px 5px; text-align: left;
}
.demo-seg button:hover { background: #55485d; color: #fff; }
.demo-seg button.on { background: #fff; color: #2a2230; }
.demo-seg button:focus-visible, .demo-reset:focus-visible { outline: 3px solid #fc4192; outline-offset: 2px; }
.demo-av {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fc4192; color: #fff; font-size: .72rem; font-weight: 800;
}
.demo-av.admin { background: #d9733f; }
.demo-seg button[data-r=""] .demo-av { background: #6d6472; font-size: .9rem; }
.demo-txt strong { display: block; font-size: .85rem; }
.demo-txt small { display: block; font-size: .72rem; font-weight: 600; opacity: .75; }
.demo-reset { background: none; border: none; color: #b9adc0; font: inherit; font-size: .75rem; cursor: pointer; text-decoration: underline; }

@media (max-width: 640px) {
  body.has-demo-bar { padding-bottom: 84px; }
  body.has-demo-bar .messenger-float { bottom: 78px; }
  .demo-bar { left: 8px; right: 8px; bottom: 8px; transform: none; justify-content: center; padding: 6px; }
  .demo-label, .demo-reset, .demo-txt small { display: none; }
  .demo-seg { width: 100%; justify-content: space-between; }
  .demo-seg button { flex: 1; justify-content: center; padding: 5px; }
}
