
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #071a35;
  --navy-2: #0d2b52;
  --blue: #2463eb;
  --blue-light: #eaf1ff;
  --text: #14243a;
  --muted: #64748b;
  --line: #dce4ef;
  --white: #ffffff;
}

body {
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #f4f7fb;
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

/* BARRE DU HAUT */

.topbar {
  height: 82px;
  padding: 0 7.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid #e8edf4;
}

.brand,
.mobile-brand {
  color: var(--navy);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -1.7px;
}

.brand span,
.mobile-brand span {
  color: var(--blue);
}

.topbar p {
  color: var(--muted);
  font-size: 15px;
}

.topbar p a {
  margin-left: 5px;
}

/* STRUCTURE PRINCIPALE */

.page {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

/* PARTIE GAUCHE */

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 11%;
  color: var(--white);
  background: linear-gradient(145deg, #071a35 0%, #0b2b55 100%);
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -180px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(255,255,255,.025),
    0 0 0 110px rgba(255,255,255,.02);
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 530px;
}

.eyebrow,
.step {
  display: inline-block;
  color: #8db5ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.intro h1 {
  margin: 24px 0 22px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -2.5px;
}

.intro-content > p {
  max-width: 490px;
  color: #c5d2e5;
  font-size: 18px;
  line-height: 1.75;
}

/* AVANTAGES */

.benefits {
  display: grid;
  gap: 19px;
  margin-top: 42px;
}

.benefits div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #e6edf7;
  font-size: 16px;
  line-height: 1.5;
}

.check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(75, 133, 244, .3);
  font-size: 14px;
  font-weight: 800;
}

.intro-bottom {
  position: absolute;
  left: 11%;
  bottom: 34px;
  color: #9fb2cb;
  font-size: 13px;
  letter-spacing: .3px;
}

/* FORMULAIRE */

.form-side {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 6%;
  background: #f4f7fb;
}

.form-wrap {
  width: 100%;
  max-width: 560px;
  padding: 38px 42px;
  background: var(--white);
  border: 1px solid #e8edf4;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(16, 42, 76, .07);
}

.mobile-brand {
  display: none;
}

.heading {
  margin-bottom: 28px;
}

.heading h2 {
  margin-top: 12px;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* CHAMPS */

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 19px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #24364d;
  font-size: 15px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder {
  color: #9aa8ba;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 99, 235, .12);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 43px;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: #8492a5;
  font-size: 14px;
  pointer-events: none;
  transform: translateY(-50%);
}

.label-icon {
  width: 17px;
  margin-right: 7px;
  color: #8492a5;
  text-align: center;
}

.field .iti {
  width: 100%;
}

.field small {
  display: block;
  margin-top: 7px;
  color: #7a899c;
  font-size: 12px;
}

/* CONDITIONS */

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 23px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.terms input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.terms a {
  font-weight: 600;
}

/* BOUTON */

button {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

button:hover {
  background: #174fc8;
  transform: translateY(-1px);
}

/* BAS DU FORMULAIRE */

.form-feedback {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-feedback.is-error { color: #b42318; }
.form-feedback.is-info { color: var(--blue); }
.form-feedback.is-success { color: #18794e; }

.login-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.secure-note {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid #edf1f6;
  text-align: center;
  color: #8492a5;
  font-size: 12px;
}

.secure-note span {
  color: #28a36a;
  margin-right: 5px;
}

/* TABLETTES */

@media (max-width: 1000px) {
  .page {
    grid-template-columns: .8fr 1.2fr;
  }

  .intro {
    padding: 55px 9%;
  }

  .form-side {
    padding: 36px 4%;
  }

  .form-wrap {
    padding: 34px 30px;
  }

  .intro h1 {
    font-size: 43px;
  }
}

/* MOBILES */

@media (max-width: 760px) {
  .topbar {
    height: 70px;
    padding: 0 6%;
  }

  .topbar .brand {
    font-size: 28px;
  }

  .topbar p {
    font-size: 13px;
  }

  .page {
    display: block;
    min-height: calc(100vh - 70px);
  }

  .intro {
    display: none;
  }

  .form-side {
    min-height: calc(100vh - 70px);
    padding: 28px 16px;
  }

  .form-wrap {
    max-width: 560px;
    padding: 30px 25px;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 25px;
    font-size: 29px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 18px;
  }

  .topbar p {
    font-size: 12px;
  }

  .form-side {
    padding: 16px 12px;
  }

  .form-wrap {
    padding: 25px 19px;
    border-radius: 14px;
  }

  .heading h2 {
    font-size: 29px;
  }

  .heading p {
    font-size: 15px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field input,
  .field select {
    height: 51px;
  }

  button {
    height: 54px;
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 82px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
  }

  .topbar .brand {
    flex: 0 0 100%;
    max-width: 100%;
    font-size: clamp(22px, 6.2vw, 27px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .topbar p {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    line-height: 1.4;
  }

  .topbar p a {
    margin-left: 0;
  }

  .page {
    min-height: calc(100vh - 82px);
  }

  .form-side {
    min-height: 0;
    padding: 20px 16px;
  }

  .form-wrap {
    width: 100%;
    min-width: 0;
    max-width: 560px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .mobile-brand {
    display: none;
  }

  .heading h2 {
    font-size: clamp(26px, 7.5vw, 30px);
    line-height: 1.2;
    letter-spacing: -.8px;
  }

  .heading p {
    font-size: 15px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .field,
  .field-row,
  .input-with-icon,
  .field .iti {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .field input,
  .field select {
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
  }

  .login-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    line-height: 1.5;
  }

  .terms span,
  .secure-note {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
