/* ══════════════════════════════════════════════════════════════════════
   admin-chrome.css — le cadre de l'admin organisateur (Nuit & Jour × Wizz)
   Barre latérale, barre du haut, dock mobile en pilule, bascules de thème
   et de langue, panneau de notifications, bulle de support, voiles.
   Chargé EN DERNIER (après auth.css) : tout est rangé sous .app-shell ou
   sous des identifiants propres à admin.html, rien ne touche .auth-stage.
   Jetons : admin.css § 0 (--adm-*) et base.css. Aucune couleur en dur.
   ══════════════════════════════════════════════════════════════════════ */

/* ══ 1. COQUE ════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  height: 100dvh; height: -webkit-fill-available;
  overflow: hidden;
  background: var(--adm-canvas);
  color: var(--text);
}
.main-area {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#content-area {
  flex: 1;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 28px calc(32px + var(--safe-right, 0px)) calc(48px + var(--safe-bottom, 0px)) calc(32px + var(--safe-left, 0px));
}
#content-area > div { max-width: 1120px; margin-left: auto; margin-right: auto; }
#content-area.adm-content-enter { animation: admContentIn .28s cubic-bezier(.22,1,.36,1); }
/* Opacité seule : un transform ferait de #content-area le bloc conteneur des éléments
   position:fixed qu'il héberge (barre du direct, célébrations) pendant l'animation */
@keyframes admContentIn { from { opacity: 0; } to { opacity: 1; } }

/* ══ 2. BARRE LATÉRALE ═══════════════════════════════════════════════ */
.app-shell .sidebar {
  width: 264px; flex: none;
  display: flex; flex-direction: column;
  background: var(--adm-side);
  border-right: 1px solid var(--border);
  box-shadow: none;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
  padding-bottom: var(--safe-bottom, 0px);
  z-index: 100;
  transition: width .2s ease, transform .28s cubic-bezier(.25,.8,.25,1);
}
.app-shell .sidebar-logo {
  display: flex; flex-direction: column; gap: 10px;
  padding: calc(20px + var(--safe-top, 0px)) 20px 12px;
  background: none; border: 0;
}
/* Logo : « Kla » + « rrr » or (côté organisateur) + « o » ; le o n'est jamais coloré */
.app-shell .brand {
  font-family: var(--adm-serif); font-weight: 900;
  font-size: 1.625rem; line-height: 1; letter-spacing: -.02em;
  color: var(--text);
  /* Le mot-symbole ne se coupe jamais, même quand la barre se resserre (bureau 1280 px, barre réduite). */
  white-space: nowrap;
}
.app-shell .brand .rrr { display: inline-flex; color: var(--display-accent-gold); }
.app-shell .brand .rrr i { font-style: normal; display: inline-block; animation: admGrr 2.8s ease-in-out infinite; }
.app-shell .brand .rrr i:nth-child(2) { animation-delay: .09s; }
.app-shell .brand .rrr i:nth-child(3) { animation-delay: .18s; }
@keyframes admGrr {
  0%, 100% { transform: none; }
  4%  { transform: translate(-1.5px, 1px) rotate(-3deg); }
  8%  { transform: translate(1.5px, -1px) rotate(3deg); }
  12% { transform: translate(-1px, 1.5px) rotate(-2deg); }
  16% { transform: translate(1px, -.5px) rotate(2deg); }
  22%, 98% { transform: none; }
}
.app-shell .sidebar-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.app-shell .role-badge,
.app-shell .plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; margin: 0; padding: 3px 10px;
  border: 0; border-radius: var(--r-full);
  font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--adm-accent-soft); color: var(--adm-accent);
}
.app-shell .plan-badge { background: var(--adm-fg-06); color: var(--text2); }
.app-shell .plan-badge.plan-solo   { background: var(--adm-ok-soft); color: var(--adm-ok); }
.app-shell .plan-badge.plan-etoile,
.app-shell .plan-badge.plan-elite  { background: var(--adm-accent-soft); color: var(--adm-accent); }
.app-shell .plan-badge.plan-pro    { background: var(--adm-violet-soft); color: var(--adm-violet); }
.app-shell .plan-badge.plan-demo   { background: var(--adm-fg-06); color: var(--text2); }
.app-shell .credit-badge {
  display: block; margin: 8px 0 0; padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: .8125rem; font-weight: 700; text-align: center;
  background: var(--adm-fg-06); color: var(--text2);
}
.app-shell .credit-badge.low { background: var(--adm-danger-soft); color: var(--adm-danger); }

/* Toute la barre défile (navigation + pied) : le pied ne recouvre jamais la liste */
.app-shell .sidebar-nav { flex: 1 0 auto; min-height: auto; padding: 4px 12px 12px; overflow: visible; }
.app-shell .sidebar-search { position: relative; padding: 4px 0 8px; }
.app-shell .sidebar-search .adm-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-62%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.app-shell .sidebar-search input { padding-left: 40px; background: var(--adm-field); border-radius: var(--r-full); }
.app-shell .nav-label {
  display: block;
  padding: 18px 12px 6px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border: 0;
  opacity: 1;                 /* contre layout.css (.nav-label { opacity: .55 }) : 2,4:1 sinon */
}
.app-shell .nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px;
  margin: 0 0 2px; padding: 0 14px;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text2);
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 600; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .14s ease, color .14s ease;
  box-shadow: none;
}
.app-shell .nav-item:hover { background: var(--adm-hover); color: var(--text); }
.app-shell .nav-item.active {
  /* Entrée active : fond or à 14 % + barre or à gauche, texte plein. L'or plein reste à l'action principale de la page. */
  background: var(--adm-accent-soft) !important;   /* contre l'ancien dégradé d'admin-chrome (!important) */
  color: var(--text);
  font-weight: 800;
  border: 0; box-shadow: none;
}
.app-shell .nav-item.active::after { content: none; display: none; }
.app-shell .nav-item.active::before {
  content: ''; display: block;
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: var(--r-full); background: var(--adm-accent);
}
.app-shell .nav-item .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: none; opacity: 1;
}
.app-shell .nav-item .icon .adm-ico { width: 19px; height: 19px; }
.app-shell .nav-item .count-badge { margin-left: auto; }

.app-shell .nav-item.locked { opacity: .6; }

.app-shell .sidebar-footer {
  flex: none; margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px calc(16px + var(--safe-bottom, 0px));
  border-top: 1px solid var(--border);
}
.app-shell .sidebar-account { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.app-shell .sidebar-account-name {
  margin: 0; padding: 0;
  font-size: .875rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border: 0;
}
.app-shell .sidebar-account-name:empty { display: none; }
.app-shell .connected-indicator { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .8125rem; color: var(--text2); }
.app-shell .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); }
.app-shell .dot.green { background: var(--adm-ok-fill); box-shadow: 0 0 0 3px var(--adm-ok-soft); }
.app-shell .dot.red   { background: var(--adm-danger-fill); }
.app-shell #btn-logout { justify-content: flex-start; gap: 10px; }
.app-shell #btn-sidebar-collapse { align-self: flex-start; min-width: 44px; padding: 0; }
.app-shell #btn-sidebar-collapse .adm-ico { transition: transform .2s ease; }
.app-shell .sidebar.collapsed #btn-sidebar-collapse .adm-ico { transform: rotate(180deg); }

/* Barre réduite (bureau) */
.app-shell .sidebar.collapsed { width: 84px; }
.app-shell .sidebar.collapsed .nav-item { justify-content: center; padding: 0; }
.app-shell .sidebar.collapsed .nav-item > span:not(.icon),
.app-shell .sidebar.collapsed .nav-label,
.app-shell .sidebar.collapsed .sidebar-account,
.app-shell .sidebar.collapsed .sidebar-badges,
.app-shell .sidebar.collapsed .sidebar-search,
.app-shell .sidebar.collapsed .adm-seg,
.app-shell .sidebar.collapsed #btn-logout span,
.app-shell .sidebar.collapsed .credit-badge,
.app-shell .sidebar.collapsed .brand-full { display: none; }
.app-shell .sidebar.collapsed .sidebar-logo { align-items: center; padding-left: 0; padding-right: 0; }
/* Barre de 84 px : « Klarrro » garde une marge de chaque côté. */
.app-shell .sidebar.collapsed .brand { font-size: 1.125rem; }
.app-shell .sidebar.collapsed #btn-logout { justify-content: center; padding: 0; }
.app-shell .sidebar.collapsed #btn-sidebar-collapse { align-self: center; }

/* Bascules segmentées (thème, langue) */
.adm-seg {
  display: flex; gap: 2px; padding: 3px;
  border-radius: var(--r-full);
  background: var(--adm-fg-06);
  box-shadow: inset 0 0 0 1px var(--border);
}
.adm-seg__btn, .adm-seg .lang-btn {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 8px;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text2);
  font-family: var(--adm-sans); font-size: .8125rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .14s ease, color .14s ease;
}
.adm-seg__btn .adm-ico { width: 16px; height: 16px; }
.adm-seg__btn:hover, .adm-seg .lang-btn:hover { color: var(--text); }
.adm-seg__btn[aria-pressed="true"], .adm-seg .lang-btn.active {
  background: var(--adm-card); color: var(--text);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--adm-shade) 30%, transparent), inset 0 0 0 1px var(--border);
}

/* ══ 3. BARRE DU HAUT ════════════════════════════════════════════════ */
/* Contre components.css : [data-theme="light"] .topbar { background: blanc 85 % !important } */
html[data-theme] .app-shell .topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; flex: none;
  padding: calc(10px + var(--safe-top, 0px)) calc(24px + var(--safe-right, 0px)) 10px calc(24px + var(--safe-left, 0px));
  background: var(--adm-topbar) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none;
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
          backdrop-filter: saturate(1.4) blur(16px);
}
.app-shell .mobile-menu-btn,
.app-shell .topbar-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r-full);
  background: var(--adm-fg-06); color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.app-shell .mobile-menu-btn { display: none; }
.app-shell .mobile-menu-btn:hover, .app-shell .topbar-icon-btn:hover { background: var(--adm-press); }
.app-shell .topbar-icon-btn .adm-ico, .app-shell .mobile-menu-btn .adm-ico { width: 20px; height: 20px; }
.app-shell .topbar-dot {
  position: absolute; top: 9px; right: 9px;
  width: 10px; height: 10px; min-width: 0; min-height: 0; padding: 0;
  border-radius: 50%;
  background: var(--adm-danger-fill);
  box-shadow: 0 0 0 2px var(--adm-canvas);
}
.app-shell .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-shell .breadcrumb {
  min-width: 0; margin-left: 4px;
  font-size: .875rem; font-weight: 600; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Sélecteur de soirée : pilule */
.app-shell .event-switcher { position: relative; flex: 0 1 auto; min-width: 0; }
.app-shell .event-switcher-btn {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: min(320px, 46vw); min-height: 44px;
  padding: 0 14px 0 12px;
  border: 0; border-radius: var(--r-full);
  background: var(--adm-card); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--adm-field-line);
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.app-shell .event-switcher-btn:hover { box-shadow: inset 0 0 0 1px var(--adm-accent); }
.app-shell .event-switcher-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-shell .event-switcher-btn .adm-ico { width: 16px; height: 16px; color: var(--text2); }
.app-shell .status-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--muted); }
.app-shell .status-dot--live { background: var(--adm-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); animation: admLivePing 1.8s ease-out infinite; }
.app-shell .status-dot--upcoming { background: var(--adm-accent-fill); }
.app-shell .status-dot--past { background: var(--muted); }
@keyframes admLivePing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger) 0%, transparent); } }
.app-shell .event-switcher-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 600;
  width: max(300px, 100%); max-width: min(420px, calc(100vw - 32px)); max-height: 60dvh;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 6px;
  background: var(--adm-card);
  border: 1px solid var(--adm-card-line);
  border-radius: var(--r-lg);
  box-shadow: var(--adm-pop-shadow);
  animation: fadeUp .15s ease;
}
.app-shell .event-switcher-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 12px;
  border: 0; border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 600; color: var(--text);
  cursor: pointer;
}
.app-shell .event-switcher-item:hover { background: var(--adm-hover); }
.app-shell .event-switcher-item.active { background: var(--adm-accent-soft); color: var(--text); }
.app-shell .event-switcher-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .event-switcher-item__date { font-size: .8125rem; font-weight: 500; color: var(--text2); white-space: nowrap; }
.app-shell .event-switcher-item .adm-ico { color: var(--adm-accent); }
.app-shell .event-switcher-empty { padding: 12px 14px; font-size: .9375rem; color: var(--text2); }
.app-shell .event-switcher-empty--error { color: var(--adm-danger); }

/* Bandeau super admin / impersonation */
#sa-mode-banner.is-impersonation { background: var(--adm-warn-soft); color: var(--adm-warn); border-bottom-color: color-mix(in srgb, var(--warning) 40%, transparent); }

/* ══ 4. TIROIR + DOCK MOBILE (≤ 992 px) ══════════════════════════════ */
.sidebar-overlay { display: none; }
.adm-mobile-nav { display: none; }
@media (max-width: 992px) {
  .app-shell .mobile-menu-btn { display: inline-flex; }
  .app-shell #btn-sidebar-collapse { display: none; }
  .app-shell .sidebar,
  .app-shell .sidebar.collapsed {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(300px, 86vw);
    height: 100dvh;
    z-index: 9999;
    transform: translateX(-102%);
    box-shadow: var(--adm-pop-shadow);
  }
  .app-shell .sidebar.open { transform: none; }
  /* Contre layout.css (≤ 768 px) : largeur et ombre noire en dur, en !important */
  .app-shell .sidebar { width: min(300px, 86vw) !important; box-shadow: var(--adm-pop-shadow) !important; }
  .app-shell .sidebar:not(.open) { box-shadow: none !important; }
  .app-shell .sidebar.collapsed .nav-item > span:not(.icon),
  .app-shell .sidebar.collapsed .nav-label,
  .app-shell .sidebar.collapsed .sidebar-account,
  .app-shell .sidebar.collapsed .sidebar-badges,
  .app-shell .sidebar.collapsed .sidebar-search,
  .app-shell .sidebar.collapsed .adm-seg { display: revert; }
  .app-shell .sidebar.collapsed .nav-item { justify-content: flex-start; padding: 0 14px; }
  .sidebar-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 9998;
    background: var(--adm-scrim);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
    touch-action: none;
  }
  .sidebar-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Dock : pilule flottante (Wizz). Fixe, ne défile pas → le verre est permis */
  .adm-mobile-nav {
    display: flex; align-items: stretch; justify-content: space-between; gap: 2px;
    position: fixed; left: 12px; right: 12px;
    bottom: calc(10px + var(--safe-bottom, 0px));
    z-index: var(--z-header, 100);
    padding: 6px;
    border-radius: var(--r-full);
    background: var(--adm-dock);
    border: 1px solid var(--adm-dock-line);
    box-shadow: var(--adm-float-shadow);
    -webkit-backdrop-filter: saturate(1.5) blur(20px);
            backdrop-filter: saturate(1.5) blur(20px);
  }
  #content-area { padding: 20px calc(16px + var(--safe-right, 0px)) calc(108px + var(--safe-bottom, 0px)) calc(16px + var(--safe-left, 0px)); }
  /* Toasts au-dessus du dock (10 px de marge + 66 px de dock + 10 px d'air) */
  #gt-container { bottom: calc(86px + var(--safe-bottom, 0px)); }
  body.is-hq #gt-container { bottom: calc(16px + var(--safe-bottom, 0px)); }
  html[data-theme] .app-shell .topbar { padding-left: calc(16px + var(--safe-left, 0px)); padding-right: calc(16px + var(--safe-right, 0px)); min-height: 60px; gap: 8px; }
  .app-shell .breadcrumb { display: none; }
}
.adm-mnav-btn {
  position: relative;
  flex: 1 1 0; min-width: 0; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 4px 2px;
  border: 0; border-radius: var(--r-full);
  background: transparent;
  color: var(--adm-dock-text);
  font-family: var(--adm-sans); font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .14s ease, color .14s ease, transform .1s ease;
}
.adm-mnav-btn > span:not(.adm-mnav-badge) { opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.adm-mnav-btn:active { transform: scale(.94); }
.adm-mnav-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.adm-mnav-btn.active { color: var(--adm-dock-active); background: transparent; }
.adm-mnav-btn.active > span:not(.adm-mnav-badge) { opacity: 1; }
:root[data-theme="light"] .adm-mnav-btn.active { background: var(--adm-accent-fill); }
.adm-mnav-badge {
  position: absolute; top: 2px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--adm-danger-fill); color: var(--adm-on-danger);
  font-size: .6875rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* ══ 4b. SECTIONS : barre latérale, bandeau de sous-onglets, dock ═══════
   Cinq sections calées sur la vie d'une soirée ; carte unique dans core.js (SECTIONS). */
.app-shell .nav-groups { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
/* [hidden] perd contre display:flex des boutons : on le force */
.app-shell .nav-group[hidden],
.app-shell .nav-item[hidden],
.app-shell .adm-mnav-btn[hidden],
.adm-mnav-btn[hidden] { display: none !important; }
.app-shell .nav-section { font-weight: 700; color: var(--text); }
.app-shell .nav-section .icon { color: var(--text2); transition: color .14s ease; }
.app-shell .nav-section__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .nav-section .count-badge { margin-left: 0; }
.app-shell .nav-section__chev { display: inline-flex; flex: none; color: var(--muted); transition: transform .2s ease; }
.app-shell .nav-section__chev .adm-ico { width: 16px; height: 16px; }
.app-shell .nav-group.is-open > .nav-section .nav-section__chev { transform: rotate(180deg); }
.app-shell .nav-group.is-active > .nav-section { font-weight: 800; }
.app-shell .nav-group.is-active > .nav-section .icon { color: var(--adm-accent); }
/* Section d'une seule page (Accueil) : l'entrée porte l'état actif elle-même */
.app-shell .nav-group[data-single].is-active > .nav-section { background: var(--adm-accent-soft); }
.app-shell .nav-group[data-single].is-active > .nav-section::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: var(--r-full); background: var(--adm-accent);
}
/* Pages de la section : repliées, sauf pour la section active, le tiroir et la recherche */
.app-shell .nav-sub { display: none; margin: 2px 0 8px 22px; padding-left: 8px; border-left: 1px solid var(--border); }
.app-shell .nav-group.is-open > .nav-sub { display: block; }
.app-shell .nav-group[data-single] > .nav-sub { display: none; }
.app-shell .nav-sub .nav-item { font-size: .875rem; padding: 0 12px; }
.app-shell .nav-sub .nav-item .icon { display: none; }
.app-shell .nav-sub .nav-item.active::before { left: -9px; }
/* Barre repliée : seules les cinq icônes de section ; le bandeau prend le relais */
.app-shell .sidebar.collapsed .nav-group > .nav-sub { display: none; }
.app-shell .sidebar.collapsed .nav-group.is-active > .nav-section { background: var(--adm-accent-soft); }
.app-shell .sidebar.collapsed .nav-section .count-badge.count-badge {
  display: inline-flex; position: absolute; top: 6px; right: 14px; margin: 0;
  min-width: 16px; min-height: 16px; padding: 0 4px; font-size: .625rem;
}
.app-shell .sidebar.collapsed .nav-section .count-badge.hidden { display: none; }

/* Bandeau de sous-onglets : hors de #content-area, ne défile pas avec la page */
.adm-subnav {
  display: none;
  flex: none; align-items: center; gap: 8px;
  padding: 6px calc(12px + var(--safe-right, 0px)) 6px calc(12px + var(--safe-left, 0px));
  background: var(--adm-canvas);
  border-bottom: 1px solid var(--border);
}
.adm-subnav[hidden] { display: none !important; }
.adm-subnav__track {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.adm-subnav__track::-webkit-scrollbar { display: none; }
.adm-subnav__tab {
  flex: none; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text2);
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .14s ease, color .14s ease;
}
.adm-subnav__tab:hover { background: var(--adm-hover); color: var(--text); }
.adm-subnav__tab[aria-current="page"] {
  background: var(--adm-accent-soft); color: var(--text); font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--adm-accent-line);
}
.adm-subnav__action {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--r-full);
  background: var(--adm-accent-fill); color: var(--adm-on-accent);
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 800; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .1s ease, filter .14s ease;
}
/* Page détaillée d'En direct : « ‹ Pilotage en direct », titre de la page, puis Diffuser */
.adm-subnav__back {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 14px 0 10px;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text2);
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .14s ease, color .14s ease;
}
.adm-subnav__back:hover { background: var(--adm-hover); color: var(--text); }
.adm-subnav__chev { font-size: 1.5rem; line-height: 1; }
.adm-subnav__title {
  flex: 1 1 auto; min-width: 0; padding: 0 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 800; color: var(--text);
}
.adm-subnav__action .adm-ico { width: 18px; height: 18px; }
.adm-subnav__action:hover { filter: brightness(1.06); }
.adm-subnav__action:active { transform: scale(.96); }
.adm-subnav__tab:focus-visible,
.adm-subnav__back:focus-visible,
.adm-subnav__action:focus-visible,
.app-shell .nav-section:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; }
@media (max-width: 992px) {
  .adm-subnav:not([hidden]) { display: flex; }
}
@media (max-width: 520px) {
  /* Téléphone : « Diffuser » en icône seule (libellé porté par aria-label) pour
     laisser voir les onglets ; fondu au bord droit = il en reste à faire défiler */
  .adm-subnav__action { width: 44px; padding: 0; justify-content: center; }
  .adm-subnav__action span { display: none; }
  .adm-subnav__tab { padding: 0 14px; }
  .adm-subnav__track {
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
}
@media (min-width: 993px) {
  .app-shell #sidebar.collapsed ~ .main-area .adm-subnav:not([hidden]) {
    display: flex;
    padding-left: calc(24px + var(--safe-left, 0px)); padding-right: calc(24px + var(--safe-right, 0px));
  }
}
@media (max-width: 992px) {
  /* Tiroir : les cinq sections avec toutes leurs pages dépliées */
  .app-shell .sidebar.collapsed .nav-group.is-open > .nav-sub { display: block; }
  .app-shell .sidebar.collapsed .nav-section .count-badge.count-badge { position: static; margin: 0; min-width: 20px; min-height: 20px; padding: 2px 7px; font-size: .6875rem; }
  .app-shell .sidebar.collapsed .nav-section .count-badge.hidden { display: none; }
}
/* Siège de chaîne : ses quatre pages sont dans le tiroir, le dock des sections n'a pas d'objet */
body.is-hq .adm-mobile-nav { display: none; }
@media (prefers-reduced-motion: reduce) {
  .adm-subnav__tab, .adm-subnav__back, .adm-subnav__action, .app-shell .nav-section .icon, .app-shell .nav-section__chev { transition: none; }
  .adm-subnav__action:active { transform: none; }
}

/* ══ 5. PANNEAU DE NOTIFICATIONS ═════════════════════════════════════ */
.notif-backdrop { position: fixed; inset: 0; z-index: 9500; background: var(--adm-scrim); }
.notif-panel {
  position: fixed; z-index: 9600;
  top: calc(var(--safe-top, 0px) + 72px); right: 16px;
  width: min(400px, calc(100vw - 32px)); max-height: min(560px, 70dvh);
  display: flex; flex-direction: column;
  background: var(--adm-card);
  border: 1px solid var(--adm-card-line);
  border-radius: var(--r-lg);
  box-shadow: var(--adm-pop-shadow);
  overflow: hidden;
  transform: translateY(-8px); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.notif-panel.open { transform: none; opacity: 1; }
.notif-panel-header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); }
.notif-panel-title { font-family: var(--adm-serif); font-size: 1.125rem; font-weight: 800; color: var(--text); }
.notif-panel-actions { margin-left: auto; display: flex; gap: 4px; }
.notif-panel-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.notif-panel-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--text2); font-size: .9375rem; }
.notif-panel-empty .adm-ico { width: 28px; height: 28px; color: var(--muted); }
.notif-history-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px; min-height: 56px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.notif-history-item:hover { background: var(--adm-hover); }
.notif-history-item.unread { background: var(--adm-accent-soft); }
.notif-history-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--r-md);
  background: var(--adm-fg-06); color: var(--text2);
}
.notif-history-icon .adm-ico { width: 16px; height: 16px; }
.notif-history-content { flex: 1; min-width: 0; }
.notif-history-item-title { font-size: .9375rem; font-weight: 700; color: var(--text); }
.notif-history-item-body { margin-top: 2px; font-size: .8125rem; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-history-time { margin-top: 2px; font-size: .75rem; color: var(--text2); }
.notif-history-dot { width: 8px; height: 8px; flex: none; margin-top: 8px; border-radius: 50%; background: var(--adm-accent-fill); }
@media (max-width: 640px) {
  .notif-panel { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-height: 85dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); padding-bottom: var(--safe-bottom, 0px); }
  .notif-panel.open { transform: none; }
}

/* ══ 6. BULLE ET PANNEAU DE SUPPORT ══════════════════════════════════ */
.support-bubble {
  position: fixed; right: 16px; bottom: calc(24px + var(--safe-bottom, 0px)); z-index: 9000;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--adm-accent-fill); color: var(--adm-on-accent);
  box-shadow: var(--shadow-cta-gold), var(--adm-float-shadow);
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, bottom .25s ease, right .25s ease, background-color .15s ease;
}
.support-bubble .adm-ico { width: 24px; height: 24px; }
.support-bubble:hover { transform: scale(1.06); }
.support-bubble.dragging { transition: none; }
.support-bubble.is-open { background: var(--adm-card); color: var(--text); box-shadow: inset 0 0 0 1px var(--border2), var(--adm-float-shadow); }
.sp-float {
  position: fixed; right: 16px; bottom: calc(92px + var(--safe-bottom, 0px)); z-index: 9001;
  width: min(380px, calc(100vw - 32px)); max-height: min(540px, 68dvh);
  display: flex; flex-direction: column;
  background: var(--adm-card);
  border: 1px solid var(--adm-card-line);
  border-radius: var(--r-xl);
  box-shadow: var(--adm-pop-shadow);
  overflow: hidden;
  transform-origin: bottom right;
  animation: spFloatOpen .25s cubic-bezier(.22,1,.36,1) both;
}
.sp-float.hidden { display: none !important; }
@keyframes spFloatOpen { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }
.sp-float-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); background: var(--adm-card-2); }
.sp-float-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-float-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--adm-accent-fill); color: var(--adm-on-accent);
  font-family: var(--adm-serif); font-size: 1.125rem; font-weight: 900;
}
.sp-float-name { font-size: .9375rem; font-weight: 800; color: var(--text); }
.sp-float-status { font-size: .8125rem; font-weight: 600; color: var(--text2); }
.sp-float-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: var(--r-full);
  background: var(--adm-fg-06); color: var(--text); cursor: pointer;
}
.sp-float-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.sp-float-footer { display: flex; gap: 8px; padding: 12px 12px calc(12px + var(--safe-bottom, 0px)); border-top: 1px solid var(--border); background: var(--adm-card); }
.sp-float-footer .adm-input { flex: 1; min-width: 0; }
.sp-msg-row { display: flex; margin-bottom: 8px; }
.sp-msg-row--me { justify-content: flex-end; }
.sp-msg-bubble {
  max-width: 82%; padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere;
  background: var(--adm-fg-06); color: var(--text);
}
.sp-msg-row--me .sp-msg-bubble { border-radius: 16px 16px 4px 16px; background: var(--adm-accent-soft); box-shadow: inset 0 0 0 1px var(--adm-accent-line); }
.sp-float-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 8px; text-align: center; color: var(--text2); }
.sp-float-empty .adm-ico { width: 32px; height: 32px; color: var(--adm-accent); }
.sp-float-empty strong { font-size: 1rem; color: var(--text); }
@media (max-width: 992px) {
  .support-bubble { bottom: calc(96px + var(--safe-bottom, 0px)); }
}
@media (max-width: 640px) {
  .sp-float { right: 0; left: 0; bottom: 0; width: 100%; max-height: 85dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; animation-name: admSheetUp; }
}

/* ══ 7. ÉCRANS HORS COQUE (2FA, accès révoqué, choix de soirée, maintenance) ══ */
.adm-auth-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: var(--adm-scrim);          /* voile du thème : noir en Nuit, encre douce en Jour */
}
.adm-auth-modal .card { width: min(400px, 100%); margin: 0; padding: 28px 24px; border-radius: var(--r-xl); box-shadow: var(--adm-pop-shadow); }
.adm-auth-modal__head { text-align: center; margin-bottom: 20px; }
.adm-auth-modal__title { margin: 8px 0 6px; font-family: var(--adm-serif); font-weight: 800; font-size: 1.375rem; line-height: 1.2; color: var(--text); }
.adm-auth-modal__desc { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text2); }
.adm-auth-modal .btn-primary { width: 100%; margin-top: 4px; color: var(--on-gold); }  /* Jour : jamais de blanc sur or */
.adm-auth-modal .err { margin-top: 12px; }
.adm-qr-box {
  display: flex; justify-content: center; align-items: center;
  width: fit-content; min-height: 120px; margin: 0 auto;
  padding: 10px; border-radius: var(--r-md);
  background: var(--adm-paper);            /* QR : papier blanc dans les deux thèmes, pour le scan */
}
.adm-qr-box--loading { color: var(--muted); font-size: .875rem; }
.adm-secret { margin-top: 8px; font-family: ui-monospace, Menlo, monospace; font-size: .8125rem; color: var(--text2); word-break: break-all; }
.twofa-input { text-align: center; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.adm-fullscreen {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: var(--adm-canvas); color: var(--text);
}
.adm-fullscreen__box { width: min(440px, 100%); text-align: center; }
.adm-fullscreen__title { margin: 12px 0 8px; font-family: var(--adm-serif); font-weight: 800; font-size: 1.5rem; color: var(--text); }
.adm-fullscreen__text { margin: 0 0 16px; color: var(--text2); line-height: 1.5; }
.adm-reason { text-align: left; }
.adm-reason__label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); margin-bottom: 4px; }
.staff-ev-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.staff-ev-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--adm-card-line); border-radius: var(--r-lg);
  background: var(--adm-card); box-shadow: var(--adm-card-shadow);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.staff-ev-card:hover, .staff-ev-card.is-busy { box-shadow: inset 0 0 0 2px var(--adm-accent); }
.staff-ev-card.is-error { box-shadow: inset 0 0 0 2px var(--adm-danger); }
.staff-ev-card__body { flex: 1; min-width: 0; }
.staff-ev-card__name { font-weight: 800; font-size: 1rem; }
.staff-ev-card__meta { margin-top: 2px; font-size: .8125rem; color: var(--text2); }
.adm-maint {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 32px; text-align: center;
  background: var(--bg); color: var(--text);
}
.adm-maint__icon { color: var(--adm-accent); animation: admPulse 2s ease-in-out infinite; }
.adm-maint__icon .adm-ico { width: 48px; height: 48px; stroke-width: 1.6; }
.adm-maint__mark { font-family: var(--adm-serif); font-size: 2rem; font-weight: 900; color: var(--text); }
.adm-maint__mark span { color: var(--display-accent-gold); }
.adm-maint__text { margin: 0; color: var(--text2); }
.adm-maint__dots { display: flex; gap: 8px; }
.adm-maint__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--adm-accent-fill); animation: admBounce .6s ease-in-out infinite alternate; }
.adm-maint__dots span:nth-child(2) { animation-delay: .2s; }
.adm-maint__dots span:nth-child(3) { animation-delay: .4s; }
@keyframes admPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes admBounce { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-12px); opacity: .4; } }
.adm-sw-update {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg); color: var(--text2); font-family: var(--adm-sans);
}

/* Mise à jour disponible */
.update-toast {
  position: fixed; top: calc(16px + var(--safe-top, 0px)); right: 16px; z-index: 100000;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px;
  background: var(--adm-card); color: var(--text);
  border: 1px solid var(--adm-accent-line);
  border-radius: var(--r-lg);
  box-shadow: var(--adm-pop-shadow);
  font-size: .9375rem; font-weight: 600;
  transform: translateY(-120%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.update-toast.show { transform: none; opacity: 1; }
.update-toast-btn { min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--adm-accent-fill); color: var(--adm-on-accent); font-weight: 800; cursor: pointer; }
.update-toast-close { width: 44px; height: 44px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--text2); cursor: pointer; }
.update-toast-close:hover { background: var(--adm-hover); color: var(--text); }

/* Réseau coupé */
.network-offline-overlay { background: var(--bg); }

/* ══ 8. TOASTS (goey-toast.js, partagé) — habillage admin, sans emoji ══ */
.adm-root .gt-toast {
  background: var(--adm-card);
  color: var(--text);
  border: 1px solid var(--adm-card-line);
  box-shadow: var(--adm-pop-shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.adm-root .gt-msg { color: var(--text); }
.adm-root .gt-desc { color: var(--text2); }
.adm-root .gt-close { color: var(--text2); min-width: 44px; min-height: 44px; }
.adm-root .gt-close:hover { color: var(--text); background: var(--adm-hover); }
.adm-root .gt-icon { font-size: 0; color: var(--text2); background: var(--adm-fg-06); border-color: transparent; }
.adm-root .gt-icon::before {
  content: ''; display: block; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: var(--adm-gt-mask) center / contain no-repeat;
          mask: var(--adm-gt-mask) center / contain no-repeat;
}
.adm-root .gt-toast { --adm-gt-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.adm-root .gt-success { --adm-gt-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E"); }
.adm-root .gt-error, .adm-root .gt-urgent { --adm-gt-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E"); }
.adm-root .gt-warning { --adm-gt-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.adm-root .gt-success .gt-icon { color: var(--adm-ok); background: var(--adm-ok-soft); }
.adm-root .gt-error .gt-icon, .adm-root .gt-urgent .gt-icon { color: var(--adm-danger); background: var(--adm-danger-soft); }
.adm-root .gt-warning .gt-icon { color: var(--adm-warn); background: var(--adm-warn-soft); }
.adm-root .gt-info .gt-icon { color: var(--adm-info); background: var(--adm-info-soft); }
.adm-root .gt-progress-bar, .adm-root .gt-progress > * { background: var(--adm-accent-fill); }

/* ══ 9. MOUVEMENT RÉDUIT ═════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .app-shell .brand .rrr i, .app-shell .status-dot--live, .adm-maint__icon, .adm-maint__dots span { animation: none; }
  .app-shell .sidebar, .sidebar-overlay, .notif-panel, .support-bubble, .update-toast { transition-duration: .01ms; }
  #content-area.adm-content-enter { animation: none; }
}

/* ══ 10. VISITE GUIDÉE (tour.js) ═════════════════════════════════════
   Voile = ombre de l'anneau (cible éclairée), aucun flou d'arrière-plan (iOS).
   Anneau déplacé par transform, carte en fondu : aucune fin de transition attendue. */
.adm-tour { position: fixed; inset: 0; z-index: 10020; }
.adm-tour.is-centered { background: var(--adm-scrim); }
.adm-tour__ring {
  position: fixed; top: 0; left: 0;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 2px var(--adm-accent), 0 0 0 100vmax var(--adm-scrim);
  pointer-events: none;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.adm-tour__ring[hidden] { display: none; }
.adm-tour__card {
  position: fixed;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - var(--safe-top, 0px) - var(--safe-bottom, 0px));
  overflow-y: auto;
  padding: 18px 18px 14px;
  border-radius: var(--r-lg, 16px);
  background: var(--adm-card);
  color: var(--text);
  border: 1px solid var(--adm-accent-line);
  box-shadow: var(--adm-pop-shadow);
  opacity: 0;
  transition: opacity .2s ease;
}
.adm-tour__card.is-visible { opacity: 1; }
.adm-tour__step { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; color: var(--adm-accent); }
.adm-tour__title { margin: 0 0 6px; font-family: var(--adm-serif); font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--text); }
/* Titre focalisé par le script pour la lecture d'écran : pas une commande, pas d'anneau */
.adm-tour__title:focus, .adm-tour__title:focus-visible { outline: none; }
.adm-tour__body { margin: 0 0 16px; font-family: var(--adm-sans); font-size: .9375rem; line-height: 1.5; color: var(--text2); }
.adm-tour__actions { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 8px; }
.adm-tour__btn {
  min-height: 44px; min-width: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-full);
  font-family: var(--adm-sans); font-size: .9375rem; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--text2);
}
.adm-tour__btn[hidden] { display: none; }
.adm-tour__skip { padding: 0 12px; }
.adm-tour__btn--primary { background: var(--adm-accent-fill); color: var(--adm-on-accent); }
.adm-tour__btn:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .adm-tour__ring, .adm-tour__card { transition: none; }
}

/* ══ SOIRÉE DE DÉMONSTRATION ═════════════════════════════════════════
   Bandeau fixe sous la barre du haut (enfant du flex .main-area : il ne défile
   pas et ne recouvre ni le dock mobile, ni le fil d'Ariane de la barre du haut).
   Pas de backdrop-filter : aucun risque de clignotement iOS. */
.adm-demo-bar[hidden] { display: none !important; }
.adm-demo-bar {
  flex: none;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 8px calc(16px + var(--safe-right, 0px)) 8px calc(16px + var(--safe-left, 0px));
  background: var(--adm-accent-soft);
  border-bottom: 1px solid var(--adm-accent-line);
  color: var(--text);
  font-size: .875rem;
}
.adm-demo-bar__tag {
  flex: none;
  padding: 2px 10px; border-radius: var(--r-full);
  background: var(--adm-accent); color: var(--adm-canvas);
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.adm-demo-bar__text { flex: 1 1 220px; min-width: 0; margin: 0; line-height: 1.4; }
.adm-demo-bar__text strong { font-weight: 800; }
.adm-demo-bar__text span:not(.adm-demo-bar__sep) { color: var(--text2); }
.adm-demo-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-demo-bar__btn {
  min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--adm-accent-line);
}
.adm-demo-bar__btn:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; }
.adm-demo-bar__btn[disabled] { opacity: .55; cursor: progress; }
@media (max-width: 600px) {
  .adm-demo-bar { padding-top: 6px; padding-bottom: 8px; font-size: .8125rem; }
  .adm-demo-bar__text { flex-basis: calc(100% - 80px); }
  .adm-demo-bar__actions { flex: 1 0 100%; }
  .adm-demo-bar__btn { flex: 1 1 0; padding: 0 8px; }
}
@media (max-width: 420px) {
  /* Petit écran : le texte du bandeau dit déjà « démonstration », la pastille ferait passer le texte sur deux lignes */
  .adm-demo-bar__tag { display: none; }
  .adm-demo-bar__text { flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .adm-demo-bar { animation: admDemoBarIn .22s ease-out; }
  @keyframes admDemoBarIn { from { opacity: 0; } to { opacity: 1; } }
}

/* Pastille « Démo » du sélecteur de soirée */
.adm-demo-pill {
  flex: none; padding: 1px 8px; border-radius: var(--r-full);
  background: var(--adm-accent-soft); color: var(--adm-accent);
  border: 1px solid var(--adm-accent-line);
  font-size: .6875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}

/* Lien discret de l'Accueil vers la démonstration */
.adm-demo-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 4px;
  background: none; border: 0; cursor: pointer;
  color: var(--text2); font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px;
}
.adm-demo-link:hover { color: var(--adm-accent); }
.adm-demo-link:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; border-radius: var(--r-sm, 6px); }
.adm-demo-link[disabled] { opacity: .55; cursor: progress; }
