/* ====== Gestion du hidden ====== */
[hidden] { display: none !important; }

/* ====== Overlay bloquant ====== */
.devw-overlay {
  position: fixed; inset: 0; background: rgba(6, 8, 15, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

/* ====== Modale ====== */
.devw-modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 9999;
  padding: 2rem;
}

.devw-card {
  width: min(560px, 92vw);
  background: #111318;
  color: #f6f7fb;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 28px 24px;
  text-align: center;
  font: 500 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  animation: devw-pop .2s ease-out;
}

@keyframes devw-pop {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.devw-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.devw-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px;
}

.devw-desc {
  margin: 0 0 18px;
  color: #cfd3dc;
}

.devw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg,#6c8cff, #3b67ff);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(59,103,255,.35);
  transition: transform .06s ease, box-shadow .12s ease, filter .12s ease;
}

.devw-btn:focus {
  outline: 2px solid #9fb3ff;
  outline-offset: 3px;
}

.devw-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(59,103,255,.42);
  transform: translateY(-1px);
}

/* ====== Scroll lock quand modal ouverte ====== */
.devw-lock-scroll { overflow: hidden !important; }

/* ====== Boutons de commande désactivés ====== */
.devw-disabled {
  filter: grayscale(1) opacity(.55) !important;
  pointer-events: none !important;
}