/* Page démo d'ISIRA® (/realisations/isira/demo) : barre AJH, écran d'entrée, cadre de la démo et panneau des fonctions. */
html, body.dz { height: 100%; }
body.dz { margin: 0; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); font-family: var(--font-sans); overflow: hidden; }

/* ---------- Barre ---------- */
.dz-barre { flex: none; display: flex; align-items: center; gap: var(--space-4); min-height: 58px; padding: 0 var(--space-4); background: var(--brand-noir); color: var(--brand-creme); }
.dz-logo { display: flex; align-items: center; color: inherit; }
.dz-logo img { height: 26px; width: auto; display: block; }
.dz-retour { color: var(--brand-creme); opacity: .85; text-decoration: none; font-size: 14px; white-space: nowrap; }
.dz-retour:hover { opacity: 1; text-decoration: underline; }
.dz-onglets { display: flex; background: var(--demo-voile-onglets); border-radius: var(--radius-pill); padding: 3px; }
.dz-onglets[hidden] { display: none; }
.dz-onglets button { border: 0; background: transparent; color: var(--brand-creme); font: 500 14px var(--font-sans); padding: 5px 15px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; }
.dz-onglets button[aria-current="true"] { background: var(--brand-creme); color: var(--brand-noir); font-weight: 700; }
.dz-onglets button:focus-visible, .dz-barre a:focus-visible { outline: 2px solid var(--brand-tomate); outline-offset: 2px; }
.dz-espace { flex: 1; }
.dz-fictif { display: flex; align-items: center; gap: 7px; border: 1px solid var(--demo-bord-fictif); border-radius: var(--radius-pill); padding: 3px 12px; font-size: 12.5px; white-space: nowrap; }
.dz-fictif i { width: 8px; height: 8px; border-radius: 50%; background: var(--demo-point-fictif); }
.dz-cta { white-space: nowrap; }

/* ---------- Écran d'entrée ---------- */
.dz-main { flex: 1; min-height: 0; position: relative; display: flex; }
/* Carte centrée par des marges automatiques : si elle dépasse en hauteur (petit écran), son haut reste visible. */
.dz-entree { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: var(--space-6) var(--space-4); }
.dz-entree[hidden] { display: none; }
.dz-carte { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px 44px; max-width: 900px; margin-block: auto; text-align: center; }
.dz-sur { margin: 0; font-weight: 700; font-size: 12px; letter-spacing: 0; color: var(--ink-muted); }
.dz-titre { font: 400 clamp(28px, 4.4vw, 40px)/1.1 var(--font-display); margin: 12px 0 20px; text-wrap: balance; }
.dz-titre span { color: var(--brand-tomate); }
.dz-chapeau { margin: 0 auto; max-width: 62ch; font-size: 17px; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.dz-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); text-align: left; }
.dz-choix { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 20px; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.dz-choix:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.dz-choix:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dz-choix b { font-weight: 700; font-size: 18px; }
.dz-choix small { flex: 1; margin: 6px 0 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.dz-go { font-style: normal; background: var(--brand-noir); color: var(--brand-creme); border-radius: var(--radius-pill); padding: 8px 16px; font-weight: 700; font-size: 14.5px; }
.dz-go--tomate { background: var(--brand-tomate); color: var(--brand-noir); }
.dz-choix[aria-busy="true"] .dz-go::after { content: "…"; }
.dz-erreur { margin: var(--space-5) 0 0; color: var(--danger); }

/* ---------- Démo et panneau ---------- */
.dz-scene { flex: 1; min-width: 0; display: flex; position: relative; }
.dz-scene[hidden] { display: none; }
.dz-cadre { flex: 1; min-width: 0; border: 0; background: var(--demo-papier); display: block; }
.dz-panneau { flex: none; width: 340px; display: flex; flex-direction: column; background: var(--surface-raised); border-left: 1px solid var(--line); min-height: 0; }
.dz-scene.dz-replie .dz-panneau { display: none; }
.dz-p-tete { padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.dz-p-sur { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 11.5px; letter-spacing: 0; color: var(--accent-ink); }
.dz-p-masquer { border: 0; background: none; color: var(--ink-muted); font: 500 13px var(--font-sans); letter-spacing: 0; text-transform: none; cursor: pointer; padding: 4px 0; }
.dz-p-titre { font: 700 20px/1.25 var(--font-sans); margin: 8px 0 0; text-wrap: balance; }
.dz-p-intro { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.dz-p-intro:empty { display: none; }
.dz-vue { display: flex; margin-top: 14px; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 3px; }
.dz-vue[hidden] { display: none; }
.dz-vue button { flex: 1; border: 0; background: transparent; border-radius: var(--radius-pill); padding: 6px 8px; font: 500 13px var(--font-sans); color: var(--ink); cursor: pointer; }
.dz-vue button[aria-pressed="true"] { background: var(--brand-noir); color: var(--brand-creme); font-weight: 700; }
.dz-p-liste { list-style: none; margin: 0; padding: 8px 12px; overflow: auto; flex: 1; min-height: 0; }
.dz-p-liste li { display: flex; gap: 12px; padding: 14px 10px; border-radius: var(--radius-md); }
.dz-p-liste li + li { border-top: 1px solid var(--line); }
.dz-p-liste li.dz-actif { background: var(--accent-soft); }
.dz-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-sunken); color: var(--ink); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.dz-actif .dz-n { background: var(--brand-tomate); color: var(--brand-noir); }
.dz-f-titre { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.dz-f-texte { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.dz-voir { margin-top: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: var(--radius-pill); padding: 3px 12px; font: 500 13px var(--font-sans); cursor: pointer; }
.dz-voir:hover { border-color: var(--ink); }
.dz-p-commun { padding: 0 12px; border-top: 1px solid var(--line); }
.dz-p-commun[hidden] { display: none; }
.dz-p-commun summary { cursor: pointer; padding: 12px 10px; font-weight: 700; font-size: 14px; }
.dz-p-liste--commun { max-height: 40vh; padding: 0; }
.dz-p-essai { margin: 12px 16px 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.dz-p-essai[hidden] { display: none; }
.dz-p-essai b { font-weight: 700; }
.dz-p-pied { margin: 0; padding: 14px 20px 18px; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); }
.dz-ouvrir, .dz-ouvrir[hidden], .dz-montrer[hidden] { display: none; }
.dz-montrer { position: absolute; right: 16px; bottom: 18px; border: 0; background: var(--brand-noir); color: var(--brand-creme); border-radius: var(--radius-pill); padding: 10px 18px; font: 700 14px var(--font-sans); box-shadow: var(--shadow-overlay); cursor: pointer; }

/* ---------- Téléphone et petite tablette ---------- */
@media (max-width: 860px) {
  .dz-barre { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px 10px; min-height: 0; }
  .dz-logo img { height: 20px; }
  .dz-retour { font-size: 13px; }
  .dz-cta { display: none; }
  .dz-fictif { font-size: 11.5px; padding: 1px 9px; }
  .dz-onglets { order: 5; flex-basis: 100%; }
  .dz-onglets button { flex: 1; font-size: 13px; padding: 5px 0; }
  .dz-carte { padding: 26px 20px 28px; text-align: left; }
  .dz-sur { text-wrap: balance; }
  .dz-trois { grid-template-columns: 1fr; gap: 12px; margin-top: var(--space-5); }
  .dz-panneau { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 75%; border-left: 0; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-overlay); transform: translateY(105%); transition: transform .25s ease; }
  .dz-scene.dz-ouvert .dz-panneau { transform: none; }
  .dz-scene.dz-replie .dz-panneau { display: flex; }
  .dz-p-masquer { font-size: 14px; }
  .dz-montrer { display: none !important; }
  /* Bande noire sous la démo (choix B de Jimmy, aperçu du 22/11/2026) : le bouton ne cache jamais la page,
     ni la barre de menu du bas de l'application. La place est gardée même avant le premier chargement. */
  .dz-scene { flex-direction: column; background: var(--brand-noir); }
  .dz-cadre { flex: 1; min-height: 0; width: 100%; }
  .dz-ouvrir, .dz-ouvrir[hidden] { display: block; flex: none; order: 2; margin: 10px 14px calc(10px + env(safe-area-inset-bottom)); border: 0; background: var(--brand-creme); color: var(--brand-noir); border-radius: var(--radius-pill); padding: 12px 16px; font: 700 15px var(--font-sans); cursor: pointer; }
  .dz-ouvrir[hidden], .dz-scene.dz-ouvert .dz-ouvrir { visibility: hidden; }
  .dz-ouvrir:focus-visible { outline: 2px solid var(--brand-tomate); outline-offset: 2px; }
  .dz-ouvrir i { font-style: normal; background: var(--brand-tomate); color: var(--brand-noir); border-radius: var(--radius-pill); padding: 0 8px; margin-left: 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .dz-panneau, .dz-choix { transition: none; } }
