/* Styles locaux a la landing alpha, from-scratch. Pas de dep au bundle principal. */
/* Externalise depuis alpha.php le 2026-04-24 pour respecter la CSP stricte. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg, #0D1117);
  color: var(--text-primary, #E6EDF3);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--sky); }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

.alpha-shell {
  flex: 1 0 auto;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

/* ---- Wordmark identique a la nav ---- */
.alpha-wordmark {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "prefix suffix"
    "dot    dot   ";
  column-gap: 1px;
  row-gap: 10px;
  align-items: center;
  line-height: 1;
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
}
.alpha-wordmark::before {
  content: "";
  grid-column: prefix / suffix-end;
  grid-row: 1;
  align-self: end;
  justify-self: stretch;
  height: 1px;
  background: var(--sky);
  opacity: 0.55;
  margin-bottom: -5px;
}
.alpha-wordmark--sm { font-size: 14px; }
.alpha-wordmark-prefix { grid-area: prefix; font-weight: 700; letter-spacing: -0.02em; }
.alpha-wordmark-suffix { grid-area: suffix; font-weight: 400; letter-spacing: 0.08em; }
.alpha-wordmark-dots {
  grid-area: dot;
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.alpha-bar {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 2px;
}
.alpha-bar--sm { width: 8px; height: 8px; }
.alpha-bar--sky { background: var(--sky); }
.alpha-bar--blue { background: var(--blue); }
.alpha-bar--caramel { background: var(--caramel); }
.alpha-bar--yellow { background: var(--yellow); }
.alpha-bar--red { background: var(--red); }

/* ---- Hero ---- */
.alpha-hero {
  padding-top: 40px;
  text-align: center;
}
.alpha-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.alpha-mascotte {
  width: 72px; height: 72px;
  display: block;
  flex: 0 0 auto;
}
.alpha-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.alpha-hero .lede {
  font-size: 16px;
  color: var(--text-secondary, #B8C0CC);
  margin: 0 auto;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .alpha-hero .lede {
    white-space: normal;
    max-width: 540px;
    font-size: 17px;
  }
}

/* ---- Sections ---- */
.alpha-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark, #30363D);
}
.alpha-section h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin: 0 0 20px;
}
.alpha-section p { margin: 0 0 14px; }
.alpha-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alpha-section li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.alpha-section li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 2px;
  background: var(--sky);
  border-radius: 1px;
}

/* ---- Form ---- */
.alpha-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alpha-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.alpha-input {
  flex: 1 1 280px;
  min-width: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  background: var(--bg-card, #161B22);
  color: var(--text-primary);
  border: 1px solid var(--border-dark, #30363D);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.alpha-input::placeholder {
  color: var(--text-tertiary, #8B949E);
  letter-spacing: 0.05em;
}
.alpha-input:focus-visible {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(96, 191, 245, 0.25);
}
.alpha-btn {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  background: var(--sky);
  color: #0D1117;
  border: 1px solid var(--sky);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.alpha-btn:hover { background: #7BC8F2; }
.alpha-btn:active { transform: translateY(1px); }
.alpha-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.alpha-btn[disabled] { opacity: 0.6; cursor: wait; }

.alpha-hint {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.alpha-error {
  background: rgba(215, 0, 0, 0.12);
  border: 1px solid var(--red);
  color: #FFB4B4;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 16px;
}

/* ---- Footer ---- */
.alpha-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--border-dark);
  padding: 24px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}
.alpha-footer-links {
  display: inline-flex;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.alpha-footer-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.alpha-copyright {
  margin-top: 10px;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .alpha-shell { padding: 40px 20px 32px; }
  .alpha-hero { padding-top: 16px; }
  .alpha-brand { gap: 14px; margin-bottom: 28px; }
  .alpha-mascotte { width: 56px; height: 56px; }
  .alpha-input { flex-basis: 100%; }
  .alpha-btn { width: 100%; }
}

.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;
}
