/* sam quiz : bloc de bienvenue personnalisable */
.wl-card {
  position: relative;
  margin: 0 0 12px;
  padding: 20px 16px 18px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: fadeUp 0.5s ease both;
}

.wl-edit {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted, #6b7280);
  background: rgba(127, 127, 127, 0.12);
}

.wl-hello {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.wl-name {
  display: none;
  margin: 6px 0 2px;
  font-family: "Pacifico", "Dancing Script", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, #3730a3, #7c3aed, #0ea5e9, #3730a3);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: wlShine 6s linear infinite;
}

.wl-name.solid {
  background: none;
  -webkit-text-fill-color: var(--wl-solid, #2563eb);
  color: var(--wl-solid, #2563eb);
  animation: none;
}

.wl-card.has-name .wl-name {
  display: block;
}

.wl-name.pop {
  animation: wlPop 0.8s cubic-bezier(0.2, 1.3, 0.3, 1) both, wlShine 6s linear 0.8s infinite;
}

.wl-name.solid.pop {
  animation: wlPop 0.8s cubic-bezier(0.2, 1.3, 0.3, 1) both;
}

.wl-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
}

.wl-card.wl-dark .wl-hello,
.wl-card.wl-dark .wl-sub {
  color: #cbd5e1;
}

.wl-card.wl-dark .wl-edit {
  color: #e2e8f0;
}

@keyframes wlShine {
  to { background-position: 200% 0; }
}

@keyframes wlPop {
  0% { opacity: 0; transform: translateY(14px) scale(0.9); }
  100% { opacity: 1; transform: none; }
}

/* fenêtre de personnalisation */
body.wl-lock { overflow: hidden; }

.wl-sheet {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wl-sheet[hidden] { display: none; }

.wl-back {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.wl-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 10px 18px 22px;
  border-radius: 22px 22px 0 0;
  background: var(--card, #ffffff);
  color: var(--text, #111827);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  animation: wlUp 0.28s ease both;
}

.wl-panel h3 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.wl-grip {
  width: 44px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 3px;
  background: rgba(127, 127, 127, 0.4);
}

.wl-lbl {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted, #6b7280);
}

.wl-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(127, 127, 127, 0.35);
  border-radius: 12px;
  font-size: 1rem;
  background: transparent;
  color: inherit;
}

.wl-input:focus {
  outline: none;
  border-color: #2563eb;
}

.wl-note {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
}

.wl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wl-sw {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(127, 127, 127, 0.35);
  border-radius: 50%;
  cursor: pointer;
}

.wl-sw.rainbow {
  background: conic-gradient(#3730a3, #7c3aed, #0ea5e9, #16a34a, #f59e0b, #db2777, #3730a3);
}

.wl-sw.on {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.wl-pick {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.wl-fonts { gap: 8px; }

.wl-font {
  padding: 10px 14px;
  border: 2px solid rgba(127, 127, 127, 0.35);
  border-radius: 12px;
  font-size: 0.95rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.wl-font.on {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

.wl-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.wl-btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
}

.wl-btn.ghost {
  background: rgba(127, 127, 127, 0.18);
  color: inherit;
}

@keyframes wlUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
