:root {
  --primary-dark: #0A0A0A;
  --primary-light: #014421;
  --bg: #F5F7F6;
  --text: #0A0A0A;
  --white: #ffffff;
  --medium-gray: #e9ecef;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --emerald-signature: #014421;
  --emerald-hover: #016A33;
  --gold-premium: #D4AF37;
  --dark-intense: #0A0A0A;
  --danger: #DC2626;
  --success: #016A33;
  --warning: #B8860B;
  --blue: #2563EB;
  --rose: #DC2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
}

h1, h2, h3, h4 {
  color: var(--dark-intense);
}

.wk-body-90 {
  width: min(92%, 1240px);
  margin: 0 auto;
}

.wk-body-90 > *:first-child {
  margin-top: 110px;
}

/* =========================================================
   LAYOUT - sidebar fixe + colonne principale
   ========================================================= */

.network-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 100px;
}

@media (max-width: 960px) {
  .network-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.network-sidebar {
  position: sticky;
  top: 90px;
  padding: 36px 26px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background-color: var(--white);
  background-image: radial-gradient(rgba(1, 68, 33, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
}

@media (max-width: 960px) {
  .network-sidebar {
    position: static;
  }
}

.eyebrow.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-signature);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.eyebrow.section-badge::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--gold-premium);
  display: inline-block;
}

.network-sidebar h1 {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.network-sidebar__lede {
  margin: 12px 0 0;
  color: rgba(10, 10, 10, 0.62);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Timeline verticale */
.wizard-rail {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed rgba(10, 10, 10, 0.18);
  position: relative;
}

.wizard-rail::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 40px;
  bottom: 14px;
  width: 2px;
  background: rgba(10, 10, 10, 0.12);
}

.wizard-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  cursor: default;
}

.wizard-step.done { cursor: pointer; }

.wizard-step__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(10, 10, 10, 0.22);
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(10, 10, 10, 0.45);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.wizard-step__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.45);
  transition: color 0.2s ease;
}

.wizard-step.active .wizard-step__num {
  border-color: var(--emerald-signature);
  background: var(--emerald-signature);
  color: var(--white);
}

.wizard-step.active .wizard-step__label {
  color: var(--primary-dark);
}

.wizard-step.done .wizard-step__num {
  border-color: var(--emerald-signature);
  color: var(--emerald-signature);
  background: var(--white);
}

.wizard-step.done .wizard-step__label {
  color: rgba(10, 10, 10, 0.7);
}

/* Pourquoi rejoindre */
.sidebar-points {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(10, 10, 10, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-point {
  padding-left: 14px;
  border-left: 3px solid var(--emerald-signature);
}

.sidebar-point--rose { border-left-color: var(--rose); }
.sidebar-point--blue { border-left-color: var(--blue); }
.sidebar-point--gold { border-left-color: var(--gold-premium); }

.sidebar-point h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.sidebar-point p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.58);
}

/* =========================================================
   MAIN COLUMN
   ========================================================= */

.network-main {
  min-width: 0;
  padding-top: 8px;
}

.network-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

#progressLabel {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-signature);
  white-space: nowrap;
}

.network-progress__bar {
  flex: 1;
  height: 4px;
  background: rgba(10, 10, 10, 0.08);
}

.network-progress__fill {
  height: 100%;
  width: 16.66%;
  background: var(--emerald-signature);
  transition: width 0.3s ease;
}

/* =========================================================
   ALERTS
   ========================================================= */

.network-alerts {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  padding: 12px 16px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-left: 3px solid var(--primary-light);
  font-size: 0.92rem;
  color: var(--primary-dark);
  background: var(--white);
}

.alert-success { border-left-color: var(--success); }
.alert-danger,
.alert-error { border-left-color: var(--danger); }
.alert-warning { border-left-color: var(--warning); }
.alert-info { border-left-color: var(--blue); }

/* =========================================================
   FORM SECTIONS
   ========================================================= */

.form-step { display: none; }
.form-step.active { display: block; }

.form-section {
  border: 1px solid rgba(10, 10, 10, 0.1);
  padding: 30px 32px 32px;
  margin-bottom: 20px;
}

.form-section h3 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.optional-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(10, 10, 10, 0.15);
  padding: 2px 7px;
}

.field { margin-top: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(10, 10, 10, 0.16);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-signature);
  box-shadow: 0 0 0 3px rgba(1, 68, 33, 0.12);
}

.form-control.field-invalid {
  border-color: var(--danger);
}

.form-control.field-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.help-text {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(10, 10, 10, 0.5);
}

.text-danger {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 600;
}

/* =========================================================
   SPECIALIZATIONS
   ========================================================= */

.specialization-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.specialization-checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(10, 10, 10, 0.75);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.specialization-checkboxes label:hover {
  border-color: rgba(1, 68, 33, 0.4);
}

.specialization-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--emerald-signature);
  flex-shrink: 0;
}

.specialization-checkboxes label:has(input:checked) {
  border-color: var(--emerald-signature);
  background: rgba(1, 68, 33, 0.06);
  color: var(--primary-dark);
  font-weight: 600;
}

/* =========================================================
   REVIEW STEP
   ========================================================= */

.review-list { margin-top: 18px; }

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.review-row:last-child { border-bottom: none; }

.review-row__label {
  flex: 0 0 40%;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.55);
}

.review-row__value {
  flex: 1;
  font-size: 0.92rem;
  color: var(--primary-dark);
  text-align: right;
  word-break: break-word;
}

/* =========================================================
   WIZARD NAVIGATION
   ========================================================= */

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.wizard-nav__spacer { flex: 1; }

.btn-back,
.btn-next,
.btn-submit {
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 13px 26px;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-back {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid rgba(10, 10, 10, 0.2);
}

.btn-back:hover { border-color: var(--primary-dark); }

.btn-next {
  background: var(--emerald-signature);
  color: var(--white);
}

.btn-next:hover {
  background: var(--emerald-hover);
  box-shadow: 0 10px 24px rgba(1, 68, 33, 0.2);
}

.btn-submit {
  background: var(--emerald-signature);
  color: var(--white);
  display: none;
}

.btn-submit:hover {
  background: var(--emerald-hover);
  box-shadow: 0 10px 24px rgba(1, 68, 33, 0.2);
}

.btn-back:focus-visible,
.btn-next:focus-visible,
.btn-submit:focus-visible {
  outline: 2px solid var(--emerald-signature);
  outline-offset: 2px;
}

/* =========================================================
   FOOTER NOTE
   ========================================================= */

.network-login-note {
  text-align: left;
  margin-top: 28px;
  color: rgba(10, 10, 10, 0.65);
  font-size: 0.92rem;
}

.network-login-note a {
  color: var(--emerald-signature);
  font-weight: 700;
  text-decoration: none;
}

.network-login-note a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .form-section { padding: 24px 20px 26px; }
}
