/* Signed-out screens: inscription, connexion, password reset, données. */
/* Inscription (screen « Inscription parent », 1280px board): header, then the welcome aside on the
   left and the form card on the right. Below 900px one column: the welcome, the form, then the
   steps and the reassurance (the form stays within the first screen of a phone). */
.signup { min-height: 100vh; display: flex; flex-direction: column; }
.signup svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.signup__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: 20px var(--space-12);
  border-bottom: 1px solid var(--line);
}
.signup__logo { gap: 10px; }
.signup__logo .brand__tile { width: 36px; height: 36px; border-radius: 11px; font-size: 22px; }
.signup__login { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.signup__login a { font-weight: 800; }

.signup__main {
  flex-grow: 1;
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: var(--space-12);
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 460px);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". card" "intro card" "details card" ". card";
  column-gap: var(--space-12);
  justify-content: center;
}
.signup__intro { grid-area: intro; }
.signup__details { grid-area: details; margin-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.signup__card { grid-area: card; align-self: center; }

.signup__eyebrow { margin-bottom: 10px; color: var(--ink-muted); }
.signup h1 { margin-bottom: var(--space-3); font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -0.01em; }
.signup__lead { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink-muted); }

.signup__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.signup__steps li { display: flex; gap: 14px; align-items: flex-start; }
.signup__steps strong { display: block; font-size: 17px; font-weight: 800; }
.signup__steps span { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-muted); }
.signup .signup__step-number {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup__profiles { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.signup__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-4) 10px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 2px solid var(--line);
  font-size: 16px;
  font-weight: 800;
}
.signup__level { color: var(--ink-muted); font-weight: 700; }
.signup__profile--more { padding: 10px var(--space-4); background: none; border-style: dashed; border-color: var(--line-strong); color: var(--ink-muted); font-size: 15px; font-weight: 700; }
.signup__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
}
.signup__avatar--info { background: var(--info); }

.signup__reassurance {
  list-style: none;
  margin: 0;
  padding: 20px 22px;
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}
.signup__reassurance li { display: flex; gap: 10px; align-items: flex-start; }
.signup__reassurance svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: var(--success); stroke-width: 2.6; }

.signup .signup__card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  gap: 22px;
}
.signup__card-title { margin-bottom: 6px; font-size: 26px; line-height: 32px; font-weight: 800; }
.signup__card-intro { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-muted); }
.signup__card .field__input { height: 48px; padding: 0 14px; }
.signup .signup__submit { height: auto; min-height: 56px; margin-top: var(--space-1); padding: var(--space-2) 0; gap: 10px; text-align: center; }
.signup__submit svg { flex: none; width: 22px; height: 22px; stroke-width: 2.5; }
.signup__footnote { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); text-align: center; }

@media (max-width: 900px) {
  .signup__main {
    max-width: 560px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "card" "details";
    align-content: start;
    gap: var(--space-8);
  }
  .signup__details { margin-top: 0; }
}
@media (max-width: 640px) {
  .signup__header { padding: var(--space-3) var(--space-4); }
  .signup__main { padding: var(--space-6) var(--space-4) var(--space-12); gap: var(--space-6); }
  .signup h1 { font-size: 30px; line-height: 36px; }
  .signup__lead { font-size: 17px; line-height: 26px; }
  .signup .signup__card { padding: var(--space-6); border-radius: var(--radius-md); }
}
@media (max-width: 640px), (pointer: coarse) {
  .signup__login a, .signup__reassurance a { display: inline-block; padding: 13px 0; margin: -13px 0; }
}

.centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  gap: 40px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth-card h1 { font-size: 26px; line-height: 32px; font-weight: 800; }
.auth-card__intro { margin-top: calc(-1 * var(--space-4)); color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.footnote { max-width: 420px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); text-align: center; }

.prose { max-width: 640px; display: flex; flex-direction: column; gap: var(--space-4); }
.prose h1 { font-size: 32px; line-height: 38px; font-weight: 800; }
.prose h2 { font-size: 20px; line-height: 26px; font-weight: 800; margin-top: var(--space-4); }
.prose p, .prose li { font-size: 16px; line-height: 24px; }
.prose ul { margin: 0; padding-left: var(--space-6); }
.page {
  min-height: 100vh;
  padding: var(--space-8) var(--space-12) var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (max-width: 640px) {
  .centered { padding: var(--space-8) var(--space-4); }
  .auth-card { padding: var(--space-6); }
  .page { padding: var(--space-6) var(--space-4); }
}
