* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-card: #ffffff;
  --error: #dc2626;
  --ok: #16a34a;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #eef2ff 100%);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(37, 99, 235, .25);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 26px; }

.field { margin-bottom: 18px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.req { color: var(--error); }

input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  color: var(--text);
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

input.invalid { border-color: var(--error); }

.error {
  color: var(--error);
  font-size: 13px;
  margin-top: 5px;
  min-height: 0;
}
.error:empty { display: none; }

/* Honeypot hors écran */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  overflow: hidden;
}

button {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s, transform .05s;
}

button:hover { background: var(--accent-dark); }
button:active { transform: scale(.99); }
button:disabled { opacity: .6; cursor: default; }

.form-msg { color: var(--error); font-size: 14px; margin-top: 12px; text-align: center; }
.form-msg:empty { display: none; }

/* Étape 2 : choix du nombre de salariés */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choices .choice {
  margin: 0;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-size: 15px;
  padding: 14px 12px;
  transition: border-color .15s, background .15s, transform .05s;
}

.choices .choice:last-child { grid-column: 1 / -1; }
.choices.choices-1col { grid-template-columns: 1fr; }
.choices .choice:hover { background: #eff6ff; border-color: var(--accent); }
.choices .choice.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.choices .choice:disabled { opacity: .6; }
.choices .choice.selected:disabled { opacity: 1; }

.skip { text-align: center; margin-top: 18px; }
.skip a { color: var(--muted); font-size: 14px; }
.skip a:hover { color: var(--accent-dark); }

.success { text-align: center; }

.check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--ok);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
