/* Easy Panel — parcours d'installation (splash → notifications → code → réglages) + verrou.
   Actif uniquement en app installée (display-mode: standalone). */

.ep-lock {
  position: fixed; inset: 0; z-index: 9999;
  display: none;                               /* navigateur classique : jamais */
  flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 32px 24px;
  background: #0e0e0e; color: #f2f2ef;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
  text-align: center;
}
@media (display-mode: standalone) { .ep-lock { display: flex; } }
@supports (-webkit-touch-callout: none) { .ep-lock.ep-standalone { display: flex; } }
/* Navigation interne déjà déverrouillée cette session : overlay masqué dès le 1er paint. */
html.ep-ok .ep-lock { display: none !important; }
html.ep-locked, body.ep-locked { overflow: hidden; }

/* --- Étapes --- */
.ep-stage { display: none; flex-direction: column; align-items: center; gap: 18px; width: min(340px, 100%); }
.ep-lock[data-stage="splash"]  .ep-s-splash  { display: flex; }
.ep-lock[data-stage="notif"]   .ep-s-notif   { display: flex; }
.ep-lock[data-stage="code"]    .ep-s-code    { display: flex; }
.ep-lock[data-stage="session"] .ep-s-session { display: flex; }

.ep-lock-head .brand-logo { width: 48px; height: 48px; }
.ep-lock-title { margin: 0; font-size: 18px; font-weight: 600; }
.ep-lock-sub { margin: 0; font-size: 14px; line-height: 1.5; color: #a8a8a4; max-width: 300px; }

/* --- Splash --- */
.ep-s-splash .brand-logo { width: 84px; height: 84px; }
.ep-lock-brand { font-family: var(--brand, system-ui); font-size: 30px; letter-spacing: .02em; }
.ep-lock-brand b { font-weight: 700; }
.ep-lock .ep-s-splash .ep-spiral { stroke-dasharray: 100; stroke-dashoffset: 100; }
.ep-lock .ep-s-splash .ep-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.ep-lock.ep-animate .ep-s-splash .ep-spiral { animation: epDraw .85s cubic-bezier(.55,0,.25,1) .1s forwards; }
.ep-lock.ep-animate .ep-s-splash .ep-dot    { animation: epPop .35s cubic-bezier(.3,1.6,.5,1) .9s forwards; }

/* --- Boutons (notif / session) --- */
.ep-btn {
  width: 100%; max-width: 300px; min-height: 48px; padding: 0 18px;
  border-radius: 12px; border: 0; cursor: pointer;
  background: #f2f2ef; color: #0e0e0e; font-size: 15px; font-weight: 600;
}
.ep-btn:disabled { opacity: .6; }
.ep-link { background: none; border: 0; color: #9a9a9a; font-size: 14px; cursor: pointer; padding: 6px; }

/* --- Réglages session --- */
.ep-field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; max-width: 300px; text-align: left; }
.ep-field span { font-size: 13px; color: #a8a8a4; }
.ep-field select {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px;
  background: #161616; color: #f2f2ef; border: 1px solid #2c2c2c; font-size: 15px;
}

/* --- Clavier du code --- */
.ep-lock-dots { display: flex; gap: 14px; margin: 2px 0 8px; }
.ep-lock-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid #6a6a6a; transition: background .1s, border-color .1s; }
.ep-lock-dots i.plein { background: #f2f2ef; border-color: #f2f2ef; }
.ep-lock.ep-shake .ep-lock-dots { animation: epShake .4s; }
@keyframes epShake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }

.ep-lock-keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px; justify-content: center; }
.ep-lock-keys button {
  width: 72px; height: 72px; border-radius: 50%;
  background: #161616; border: 1px solid #2c2c2c; color: #f2f2ef;
  font-size: 28px; font-weight: 400; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .08s;
}
.ep-lock-keys button:active { background: #f2f2ef; color: #000; }
.ep-lock-keys .ep-k-empty { visibility: hidden; }
.ep-lock-keys .ep-k-del { background: none; border: 0; font-size: 15px; color: #cfcfcf; }
.ep-lock-note { margin: 0; min-height: 18px; font-size: 13px; color: #8a8a8a; }
.ep-lock-note.err { color: #ff6b6b; }

@media (prefers-reduced-motion: reduce) {
  .ep-lock.ep-animate .ep-s-splash .ep-spiral, .ep-lock.ep-animate .ep-s-splash .ep-dot { animation: none; stroke-dashoffset: 0; transform: none; }
}
