:root{
  --bg: #070A12;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --stroke: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.45);

  --a: #7C3AED;  /* violet */
  --b: #06B6D4;  /* cyan */
  --c: #22C55E;  /* vert */
  --d: #F97316;  /* orange */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(124,58,237,.25), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(6,182,212,.20), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(34,197,94,.15), transparent 60%),
    linear-gradient(180deg, #050714, #070A12 60%, #050714);
  overflow-x: hidden;
}

/* petits "orbes" flous */
.orb{
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  filter: blur(60px);
  opacity: .45;
  pointer-events: none;
  border-radius: 999px;
  mix-blend-mode: screen;
  transform: translateZ(0);
}
.orb.one{ left: -180px; top: -160px; background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.9), transparent 60%); }
.orb.two{ right: -220px; top: 60px; background: radial-gradient(circle at 40% 40%, rgba(6,182,212,.85), transparent 62%); }
.orb.three{ left: 20%; bottom: -260px; background: radial-gradient(circle at 40% 35%, rgba(34,197,94,.8), transparent 60%); }

.wrap{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.card{
  width: min(980px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  position: relative;
}

.card::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(700px 200px at 20% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(700px 220px at 80% 0%, rgba(6,182,212,.16), transparent 60%);
  pointer-events: none;
}

header{
  padding: 44px 40px 10px;
  position: relative;
  z-index: 1;
}

.brand-title{
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: 0.02em;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.70));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255,255,255,.08);
  position: relative;
  animation: floaty 8s ease-in-out infinite;
}

/* effet "glow/outline" discret */
.brand-title::after{
  content: "WOMBAT";
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
  filter: blur(.2px);
  pointer-events: none;
}

.subtitle{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
}

.content{
  padding: 26px 40px 42px;
  position: relative;
  z-index: 1;
}

.grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  color: var(--text);
  border-radius: 16px;
  padding: 16px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
  outline: none; /* on gère nous-mêmes le focus */
}

.btn::before{
  content:"";
  position:absolute;
  inset: -2px;
  background: radial-gradient(220px 90px at 20% 10%, rgba(255,255,255,.18), transparent 60%);
  opacity: .65;
  pointer-events:none;
}

.left{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.label{
  font-weight: 600;
  letter-spacing: .01em;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  flex: 0 0 auto;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.chip svg{ opacity: .9; }

/* === Accent system (premium) === */
.btn[data-accent="a"]{ --accent: var(--a); }
.btn[data-accent="b"]{ --accent: var(--b); }
.btn[data-accent="c"]{ --accent: var(--c); }
.btn[data-accent="d"]{ --accent: var(--d); }
.btn[data-accent="e"]{ --accent: rgba(255,255,255,.85); }

/* sheen coloré */
.btn::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 16px;
  pointer-events:none;
  opacity: 0;
  transition: opacity .18s ease;
  background:
    radial-gradient(360px 120px at 20% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%),
    radial-gradient(420px 160px at 90% 80%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%);
}

.btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.20));
  box-shadow:
    0 18px 40px rgba(0,0,0,.32),
    0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 25%, transparent);
}
.btn:hover::after{ opacity: .9; }

.btn:active{ transform: translateY(0px) scale(.995); }

.btn .chip{
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255,255,255,.10));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn:hover .chip{
  transform: translateX(2px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* focus clavier (accessibilité) */
.btn:focus-visible{
  box-shadow:
    0 18px 40px rgba(0,0,0,.32),
    0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.20));
}

footer{
  padding: 0 40px 34px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.kbd{
  display:inline-flex;
  gap: 6px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.kbd b{
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.75);
}

@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}

/* Réduction animations */
@media (prefers-reduced-motion: reduce){
  .brand-title{ animation: none; }
  .btn, .btn::after, .btn .chip{ transition: none; }
}

/* responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  header{ padding: 36px 22px 8px; }
  .content{ padding: 18px 22px 28px; }
  footer{ padding: 0 22px 26px; }
  .grid{ grid-template-columns: 1fr; }
}
