/* HORYS — feuille de style commune au site public.
   Aucune dépendance externe : polices système, aucun script tiers. */
:root {
  color-scheme: dark;
  --bg: #050b20;
  --surface: #0b1226;
  --surface-2: #101a33;
  --border: #1e2a45;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(59, 130, 246, 0.2), transparent 62%),
    radial-gradient(800px 420px at 0% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family:
    'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #9cc6ff;
}

a:hover {
  color: #c7ddff;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 34px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: block;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 6px;
  font-size: 18px;
}

.tagline {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 2px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 26px;
  font-size: 17px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 26px 0 8px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h2,
.card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.card .sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: #33507f;
  background: rgba(255, 255, 255, 0.03);
}

.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}

.hash {
  display: block;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #070d1c;
  border: 1px solid #16213a;
  color: #9fb3d1;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
}

.section {
  margin-top: 42px;
}

.section > h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 16px 44px;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.steps li strong {
  color: var(--text);
}

.notice {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid;
  margin: 18px 0;
}

.notice.info {
  background: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.32);
  color: #cfe2ff;
}

.notice.warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

.notice.error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.notice.ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
}

footer.site {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.center {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center .card {
  width: 100%;
  max-width: 520px;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 18px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
  .btn {
    transition: none;
  }
}

code,
.mono {
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  font-size: 0.92em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
