/* ═══════════════════════════════════════
   LEADERECOM — inscription.css
   À ajouter dans assets/css/
   et linker dans header.php sur cette page
═══════════════════════════════════════ */

/* ── PAGE WRAPPER ── */
.reg-page {
  min-height: 100vh;
  background: var(--cream);
  padding: 3rem 1.5rem 5rem;
}

.reg-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── ALERT ── */
.reg-alert {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: .9rem;
  font-weight: 500;
}

.reg-alert i {
  font-size: 1.1rem;
  margin-top: .1rem;
  flex-shrink: 0
}

.reg-alert.success {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC
}

.reg-alert.danger {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5
}

.reg-alert.warning {
  background: #FEF9C3;
  color: #854D0E;
  border: 1px solid #FDE047
}

/* ── LAYOUT ── */
.reg-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

/* ══════════════════════
   GAUCHE
══════════════════════ */
.reg-left {
  position: sticky;
  top: 88px;
}

.reg-left-inner {
  background: linear-gradient(160deg, #060f2a 0%, #094196 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  color: #fff;
}

.reg-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.reg-pitch-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: .85rem;
}

.reg-pitch-title span {
  display: block
}

.reg-pitch-title em {
  color: var(--orange);
  font-style: normal
}

.reg-pitch-sub {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.reg-perks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.reg-perks li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
}

.reg-perks li i {
  color: #22C55E;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Commission card */
.reg-commission-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(254, 124, 2, .12);
  border: 1px solid rgba(254, 124, 2, .35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.reg-comm-amt {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}

.reg-comm-amt span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .5);
}

.reg-comm-lbl {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.5;
}

.reg-comm-lbl small {
  color: rgba(255, 255, 255, .4);
  font-size: .75rem
}

/* Testimonial */
.reg-testimonial {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.reg-testi-text {
  font-size: .83rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: .85rem;
}

.reg-testi-author {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.reg-testi-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.reg-testi-name {
  font-size: .82rem;
  font-weight: 700;
  color: #fff
}

.reg-testi-role {
  font-size: .72rem;
  color: rgba(255, 255, 255, .45)
}

/* ══════════════════════
   DROITE
══════════════════════ */
.reg-right {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(9, 65, 150, .06);
}

.reg-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.reg-form-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .3rem;
}

.reg-form-header p {
  font-size: .85rem;
  color: var(--muted);
}

/* Section titles */
.reg-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 1.75rem 0 1rem;
}

.reg-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form rows & fields */
.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reg-row.full {
  grid-template-columns: 1fr
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.reg-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
}

.reg-hint {
  font-weight: 400;
  color: var(--muted)
}

.reg-input {
  width: 100%;
  height: 42px;
  padding: 0 .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.reg-input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(6, 145, 223, .1);
}

select.reg-input {
  cursor: pointer
}

.reg-input-valid {
  border-color: #22C55E !important
}

.reg-input-invalid {
  border-color: #EF4444 !important
}

.reg-fb {
  font-size: .72rem;
  color: #B91C1C;
  display: none;
  margin-top: .15rem;
}

/* Password */
.reg-pw-wrap {
  position: relative;
}

.reg-pw-wrap .reg-input {
  padding-right: 2.5rem
}

.reg-pw-eye {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  padding: 0;
  line-height: 1;
}

.reg-pwd-strength {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: .4rem;
  overflow: hidden;
}

.reg-pwd-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s, background .3s;
}

/* Sous-domaine */
.reg-sdom-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.reg-sdom-wrap:focus-within {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(6, 145, 223, .1);
}

.reg-sdom-input {
  flex: 1;
  height: 42px;
  padding: 0 .9rem;
  border: none;
  outline: none;
  font-size: .875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: transparent;
}

.reg-sdom-suffix {
  padding: 0 .9rem;
  height: 42px;
  display: flex;
  align-items: center;
  background: var(--cream);
  border-left: 1.5px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Récap */
.reg-recap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.reg-recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
}

.reg-recap-row i {
  margin-right: .4rem;
  color: var(--blue-light)
}

.reg-recap-val {
  font-weight: 700;
  font-size: .9rem
}

.reg-recap-val.green {
  color: #16A34A
}

.reg-recap-val.orange {
  color: var(--orange)
}

/* CGU */
.reg-cgu {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.reg-cgu input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue)
}

.reg-cgu a {
  color: var(--blue-light);
  text-decoration: underline
}

.reg-cgu a:hover {
  color: var(--blue)
}

/* Submit */
.reg-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--orange2), var(--orange));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(254, 124, 2, .28);
}

.reg-submit:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(254, 124, 2, .36)
}

.reg-submit:active {
  transform: translateY(0)
}

.reg-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none
}

.reg-login-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--muted);
}

.reg-login-link a {
  color: var(--blue-light);
  font-weight: 600
}

.reg-login-link a:hover {
  color: var(--blue)
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .reg-layout {
    grid-template-columns: 1fr
  }

  .reg-left {
    position: static
  }

  .reg-left-inner {
    padding: 2rem 1.5rem
  }
}

@media (max-width: 540px) {
  .reg-page {
    padding: 1.5rem 1rem 4rem
  }

  .reg-right {
    padding: 1.75rem 1.25rem
  }

  .reg-row {
    grid-template-columns: 1fr
  }

  .reg-pitch-title {
    font-size: 1.3rem
  }
}