/* Le Régisseur HORS DU VPN (note 43, lot 6, 04/12/2026) — servi par app.symphonius.ai. Les jetons du thème du cockpit
 * (clair, nuit) dont le panneau a besoin, l'écran d'appairage et d'ouverture, les toasts. Aucune police externe : la
 * politique de sécurité de la page n'autorise que ce domaine. */
:root {
  --bg: #f5f0e8; --surface: #ffffff; --surface-warm: #faf6ee; --text: #0a0a0a; --text-muted: #6b6560;
  --accent: #b8860b; --accent-hover: #9a7209; --border: rgba(0, 0, 0, 0.06); --border-medium: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.1); --code-bg: rgba(0, 0, 0, 0.06); --subtle-bg: rgba(0, 0, 0, 0.03);
  --terminal-green: #7dc87d; --terminal-red: #e06c6c; --radius: 12px; --z-app-floating: 50; --z-drawer-side: 5000;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1714; --surface: #252119; --surface-warm: #1e1a14; --text: #e0ddd5; --text-muted: #8a847d;
    --accent: #d4a843; --accent-hover: #e0ba55; --border: rgba(255, 255, 255, 0.06); --border-medium: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.1); --code-bg: rgba(255, 255, 255, 0.08); --subtle-bg: rgba(255, 255, 255, 0.03);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1714; --surface: #252119; --surface-warm: #1e1a14; --text: #e0ddd5; --text-muted: #8a847d;
  --accent: #d4a843; --accent-hover: #e0ba55; --border: rgba(255, 255, 255, 0.06); --border-medium: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.1); --code-bg: rgba(255, 255, 255, 0.08); --subtle-bg: rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

.dehors { min-height: 100dvh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.dehors__carte { width: 100%; max-width: 380px; display: grid; gap: 14px; text-align: center; }
.dehors__logo { width: 72px; height: 72px; margin: 0 auto; border-radius: 18px; }
.dehors__titre { margin: 0; font: 600 1.6rem/1.2 Georgia, 'Times New Roman', serif; }
.dehors__texte { margin: 0; color: var(--text-muted); font-size: .95rem; }
.dehors__champ { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: center; }
.dehors__champ--code { font: 600 1.35rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.dehors__bouton { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 600 1rem/1.2 inherit; cursor: pointer; }
.dehors__bouton:disabled { opacity: .55; cursor: default; }
.dehors__bouton--discret { background: none; color: var(--text-muted); border: 1px solid var(--border-strong); }
.dehors__erreur { margin: 0; color: var(--terminal-red); font-size: .9rem; }
.dehors__note { margin: 0; color: var(--text-muted); font-size: .8rem; }

/* Face ID demandé pour un geste : au-dessus du panneau (le toucher du bouton déclenche Face ID). */
.dehors-faceid { position: fixed; inset: 0; z-index: calc(var(--z-drawer-side) + 20); display: grid; place-items: end center; background: rgba(10, 10, 10, .45);
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.dehors-faceid__boite { width: 100%; max-width: 420px; display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.dehors-faceid__titre { margin: 0; font-weight: 600; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 10000; padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; line-height: 1.45; pointer-events: none; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); animation: toast-in .3s ease-out; }
.toast--ok, .toast--success { background: var(--terminal-green); color: #0a0a0a; }
.toast--error { background: var(--terminal-red); color: #fff; }
.toast--warning, .toast--warn { background: var(--accent); color: #fff; }
.toast--info { background: var(--surface); color: var(--text); border-color: var(--accent); border-left-width: 4px; }
.toast--out { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast--out { animation: none; } }
.dehors-faceid__geste { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--subtle-bg); border: 1px solid var(--border-strong); font-weight: 500; overflow-wrap: anywhere; }
