/* GDN — Inscription (maquette multi-étapes) */
.header-login {
  display: none;
  padding: .55rem 1rem;
  font-size: .82rem;
}
@media (min-width: 1180px) {
  .header-login { display: inline-flex; }
}

body.is-register .site-footer { display: none; }
body.is-register #main { min-height: calc(100vh - 110px); }

.reg-page {
  background: #0a1628;
  min-height: calc(100vh - 100px);
}
.reg-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 110px);
}
@media (min-width: 1100px) {
  .reg-split { grid-template-columns: .92fr 1.18fr; }
}

/* LEFT */
.reg-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
}
.reg-hero-media { position: absolute; inset: 0; }
.reg-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.reg-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,21,46,.52) 0%, rgba(0,21,46,.78) 42%, rgba(0,21,46,.95) 100%),
    radial-gradient(circle at 48% 28%, rgba(0,209,255,.18), transparent 48%);
}
.reg-hero-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.75rem 1.25rem;
  max-width: 640px;
}
.reg-brand {
  display: inline-flex; align-items: center; gap: .7rem;
  width: fit-content; margin-bottom: 1.35rem;
  color: inherit; text-decoration: none;
}
.reg-logo {
  font-weight: 800; font-size: 1.45rem; letter-spacing: .04em;
  background: linear-gradient(135deg, #fff 40%, #00d1ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reg-brand strong { display: block; font-size: .9rem; }
.reg-brand small { display: block; color: #38bdf8; font-size: .72rem; margin-top: .1rem; }

.reg-hero h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.18; font-weight: 800; letter-spacing: -.02em;
  max-width: 18ch;
}
.reg-hero h1 span { color: #7dd3fc; }
.reg-hero-lead {
  margin: 0 0 1.2rem;
  color: rgba(226,232,240,.88);
  font-size: .92rem; line-height: 1.45;
  max-width: 38ch;
}

.reg-eco-grid {
  display: grid; gap: .55rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.15rem;
}
.reg-eco {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .7rem .75rem;
  border-radius: 12px;
  background: rgba(0,102,255,.22);
  border: 1px solid rgba(125,211,252,.22);
  backdrop-filter: blur(8px);
}
.reg-eco-ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,102,255,.35);
  border: 1px solid rgba(125,211,252,.28);
}
.reg-eco-ico svg { width: 16px; height: 16px; color: #e0f2fe; }
.reg-eco strong { display: block; font-size: .8rem; line-height: 1.25; }
.reg-eco span { display: block; font-size: .7rem; opacity: .8; margin-top: .15rem; line-height: 1.3; }

.reg-laptop {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  margin-bottom: 1rem;
  max-width: 380px;
  border: 1px solid rgba(255,255,255,.1);
}
.reg-laptop img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }

.reg-stats {
  display: grid; gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding: .85rem;
  border-radius: 12px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 700px) {
  .reg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.reg-stats > div { text-align: center; }
.reg-stats svg {
  width: 16px; height: 16px; color: #38bdf8;
  display: block; margin: 0 auto .25rem;
}
.reg-stats strong { display: block; font-size: .95rem; font-weight: 800; color: #7dd3fc; }
.reg-stats span { display: block; font-size: .68rem; opacity: .8; margin-top: .15rem; line-height: 1.25; }

/* RIGHT PANEL */
.reg-panel {
  background:
    radial-gradient(circle at 80% 10%, rgba(0,102,255,.08), transparent 40%),
    #eef3f9;
  padding: 1.25rem;
  display: flex; align-items: stretch;
}
@media (min-width: 1100px) {
  .reg-panel { padding: 1.5rem 1.75rem; }
}
.reg-card {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(15,23,42,.1);
  border: 1px solid #e5eaf0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
@media (min-width: 960px) {
  .reg-card { grid-template-columns: 1.5fr .72fr; }
}
.reg-card-main { padding: 1.4rem 1.35rem 1.25rem; }
.reg-card-head {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.1rem;
}
.reg-card-title { display: flex; gap: .75rem; align-items: flex-start; }
.reg-user-ico {
  width: 44px; height: 44px; border-radius: 999px;
  background: #e8f1ff; color: #0066ff;
  display: grid; place-items: center; flex-shrink: 0;
}
.reg-user-ico svg { width: 20px; height: 20px; }
.reg-card-title h1 { margin: 0; font-size: 1.45rem; color: #0f172a; }
.reg-card-title p { margin: .25rem 0 0; color: #64748b; font-size: .88rem; }
.reg-login-link { font-size: .84rem; color: #64748b; white-space: nowrap; text-decoration: none; }
.reg-login-link strong { color: #0066ff; }
.reg-login-link:hover strong { text-decoration: underline; }
.reg-login-side { display: none; margin-bottom: 1rem; text-align: right; white-space: normal; }
@media (min-width: 960px) {
  .reg-login-desktop { display: none; }
  .reg-login-side { display: block; }
}

.reg-alert {
  border-radius: 10px; padding: .7rem .85rem; margin-bottom: .9rem;
  font-size: .85rem; font-weight: 600;
}
.reg-alert.err { background: #fef2f2; color: #b91c1c; }
.reg-alert.ok { background: #ecfdf5; color: #047857; }

.reg-stepper {
  display: flex; flex-wrap: wrap; gap: .25rem;
  margin-bottom: 1.15rem; padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f7;
}
.reg-step {
  display: flex; align-items: center; flex: 1; min-width: 140px;
}
.reg-step button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: transparent; cursor: pointer;
  padding: .2rem; color: #94a3b8; font-weight: 700; font-size: .78rem; text-align: left;
}
.reg-step-num {
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #e2e8f0; color: #64748b; font-size: .75rem;
}
.reg-step.is-active button { color: #0f172a; }
.reg-step.is-active .reg-step-num {
  background: #0066ff; color: #fff;
  box-shadow: 0 6px 14px rgba(0,102,255,.28);
}
.reg-step.is-done .reg-step-num { background: #16a34a; color: #fff; }
.reg-step-line {
  flex: 1; height: 2px; background: #e2e8f0; margin: 0 .3rem; min-width: 10px;
  font-style: normal; display: block;
}
.reg-step.is-done .reg-step-line,
.reg-step.is-active .reg-step-line { background: #93c5fd; }

.reg-pane-head { margin-bottom: 1rem; }
.reg-pane-head h2 {
  margin: 0; font-size: 1.05rem; color: #0f172a; font-weight: 800;
}
.reg-pane-head h2 em { font-style: normal; color: #64748b; font-weight: 600; }
.reg-pane-head p {
  margin: .3rem 0 0; color: #64748b; font-size: .88rem;
}

.reg-grid-2 {
  display: grid; gap: .95rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .reg-grid-2 { grid-template-columns: 1fr 1fr; }
}

.rf { display: grid; gap: .35rem; }
.rf > span:first-child { font-size: .82rem; font-weight: 700; color: #0f172a; }
.rf > span:first-child i { color: #ef4444; font-style: normal; }
.rf-input {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  background: #fff; padding: 0 .8rem;
  transition: border-color .2s, box-shadow .2s;
  min-height: 46px;
}
.rf-input:focus-within {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
}
.rf-input > svg { width: 16px; height: 16px; color: #94a3b8; flex-shrink: 0; }
.rf-input input, .rf-input select {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: .8rem 0; color: #0f172a; min-width: 0; font: inherit;
}
.rf-flag { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.rf-phone { gap: 0; padding-left: 0; }
.rf-dial {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 0 .7rem;
  border-right: 1px solid #e2e8f0;
  height: 100%;
  min-height: 44px;
  color: #0f172a; font-size: .86rem;
  background: #f8fafc;
  border-radius: 9px 0 0 9px;
}
.rf-dial strong { font-weight: 700; letter-spacing: .01em; }
.rf-phone input { padding-left: .75rem; }
.rf-eye {
  border: 0; background: transparent; color: #94a3b8;
  display: inline-flex; padding: .2rem; cursor: pointer;
}
.rf-eye svg { width: 16px; height: 16px; }
.rf-err { color: #dc2626; font-size: .76rem; font-weight: 600; }
.rf-hint { color: #94a3b8; font-size: .74rem; }

.reg-pass-tips {
  list-style: none; padding: 0; margin: .9rem 0 0;
  display: flex; flex-wrap: wrap; gap: .45rem .85rem;
  font-size: .78rem; color: #94a3b8;
}
.reg-pass-tips li { display: inline-flex; align-items: center; gap: .3rem; }
.reg-pass-tips svg { width: 13px; height: 13px; opacity: .45; }
.reg-pass-tips li.ok { color: #16a34a; font-weight: 600; }
.reg-pass-tips li.ok svg { opacity: 1; color: #16a34a; }

.reg-summary {
  background: #f8fafc; border: 1px solid #e5eaf0;
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.reg-summary dl { margin: 0; display: grid; gap: .45rem; }
.reg-summary dl > div {
  display: grid; grid-template-columns: 110px 1fr; gap: .5rem; font-size: .88rem;
}
.reg-summary dt { margin: 0; color: #64748b; font-weight: 600; }
.reg-summary dd { margin: 0; font-weight: 600; color: #0f172a; }

.rf-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; color: #334155; font-weight: 500;
}
.rf-consent input { margin-top: .2rem; accent-color: #0066ff; width: 16px; height: 16px; }
.rf-consent a { color: #0066ff; font-weight: 700; }
.rf-consent i { color: #ef4444; font-style: normal; }

.reg-actions {
  display: flex; flex-wrap: wrap; gap: .65rem;
  justify-content: flex-end; align-items: center;
  margin-top: 1.25rem;
}
.reg-actions.is-first { display: block; }
.reg-actions .reg-prev { margin-right: auto; }
.reg-next {
  display: inline-flex; align-items: center; gap: .45rem;
  min-width: 180px; justify-content: center;
  border-radius: 999px !important;
  padding: .85rem 1.4rem !important;
  font-weight: 700;
}
.reg-actions.is-first .reg-next {
  width: 100%;
  min-width: 0;
}
.reg-next svg { width: 16px; height: 16px; }
.reg-next:disabled { opacity: .65; cursor: wait; }

.reg-social { margin-top: 1.25rem; }
.reg-divider {
  display: flex; align-items: center; gap: .75rem;
  color: #94a3b8; font-size: .8rem; font-weight: 600; margin-bottom: .75rem;
}
.reg-divider::before, .reg-divider::after {
  content: ""; flex: 1; height: 1px; background: #e2e8f0;
}
.reg-social-btns {
  display: grid; gap: .5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reg-social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid #e2e8f0; background: #fff; border-radius: 10px;
  padding: .7rem .4rem; font-size: .8rem; font-weight: 700; color: #334155;
  cursor: not-allowed; opacity: .85;
}
.reg-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.reg-secure {
  display: flex; gap: .65rem; align-items: flex-start;
  margin-top: 1.1rem; padding: .9rem 1rem;
  border-radius: 12px; background: #f0f7ff; border: 1px solid rgba(0,102,255,.12);
}
.reg-secure > svg { width: 22px; height: 22px; color: #0066ff; flex-shrink: 0; margin-top: .1rem; }
.reg-secure strong { display: block; font-size: .88rem; color: #0f172a; }
.reg-secure span { display: block; margin-top: .2rem; font-size: .8rem; color: #64748b; line-height: 1.4; }
.reg-secure a {
  display: inline-block; margin-top: .35rem;
  color: #0066ff; font-weight: 700; font-size: .8rem; text-decoration: none;
}
.reg-secure a:hover { text-decoration: underline; }

/* SIDEBAR */
.reg-side {
  background: #f8fafc;
  border-left: 1px solid #eef2f7;
  padding: 1.35rem 1.2rem;
}
.reg-side-visual {
  width: 150px; margin: 0 auto 1rem;
}
.reg-side-visual img { width: 100%; height: auto; object-fit: contain; display: block; }
.reg-side h3 { margin: 0 0 .75rem; font-size: 1rem; text-align: center; color: #0f172a; }
.reg-benefits {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  display: grid; gap: .5rem;
}
.reg-benefits li {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .84rem; font-weight: 600; color: #0f172a; line-height: 1.35;
}
.reg-benefits svg { width: 16px; height: 16px; color: #0066ff; flex-shrink: 0; margin-top: .15rem; }

.reg-help {
  border-top: 1px solid #e5eaf0; padding-top: 1rem;
  display: grid; gap: .65rem;
}
.reg-help h4 { margin: 0; font-size: .95rem; color: #0f172a; }
.reg-help > p { margin: 0; font-size: .8rem; color: #64748b; line-height: 1.4; }
.reg-help-item {
  display: flex; gap: .55rem; align-items: flex-start;
}
.reg-help-item > svg { width: 16px; height: 16px; color: #0066ff; flex-shrink: 0; margin-top: .2rem; }
.reg-help-item a {
  display: block; font-size: .86rem; font-weight: 700; color: #0f172a; text-decoration: none;
}
.reg-help-item a:hover { color: #0066ff; }
.reg-help-item small { display: block; color: #64748b; font-size: .75rem; margin-top: .1rem; }

.reg-wa {
  margin-top: .2rem;
  display: flex; align-items: center; gap: .55rem;
  background: #16a34a; color: #fff !important;
  border-radius: 999px; padding: .75rem 1rem;
  text-decoration: none;
}
.reg-wa svg { flex-shrink: 0; }
.reg-wa strong { display: block; font-size: .86rem; }
.reg-wa small { display: block; font-size: .74rem; opacity: .9; margin-top: .05rem; }
.reg-wa:hover { background: #15803d; }

@media (max-width: 959px) {
  .reg-side { border-left: 0; border-top: 1px solid #eef2f7; }
}
@media (max-width: 1099px) {
  .reg-laptop { display: none; }
}
@media (max-width: 699px) {
  .reg-social-btns { grid-template-columns: 1fr; }
  .reg-step { min-width: 100%; }
  .reg-step-line { display: none; }
}

[x-cloak] { display: none !important; }
