:root {
  --night: #061625;
  --night-deep: #020b13;
  --panel: rgba(4, 17, 29, 0.94);

  --gold: #d9a441;
  --gold-light: #f3c969;

  --white: #fffdf8;
  --soft: #d7d6d2;
  --muted: #999a9b;

  --danger: #ef8d8d;
  --success: #9fd2a7;

  --border: rgba(217, 164, 65, 0.35);

  --trust-height: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background: var(--night-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}


/* ==========================================================
   PAGE GENERALE
   ========================================================== */

.registration-page {
  position: relative;
  width: 100%;
  min-height: 100vh;

  display: grid;

  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(470px, 0.88fr);

  padding-bottom: var(--trust-height);

  background: var(--night-deep);
}


/* ==========================================================
   PARTIE GAUCHE
   ========================================================== */

.registration-visual {
  position: relative;

  min-height:
    calc(100vh - var(--trust-height));

  overflow: hidden;

  padding:
    clamp(58px, 7vh, 88px)
    clamp(45px, 5vw, 90px)
    60px;

  background-image:
    linear-gradient(
      90deg,
      rgba(2, 10, 18, 0.80) 0%,
      rgba(2, 11, 19, 0.45) 45%,
      rgba(2, 10, 17, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 10, 17, 0.22) 0%,
      transparent 45%,
      rgba(2, 10, 17, 0.28) 100%
    ),
    url("../images/couple nouveau.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.registration-visual::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent 72%,
      rgba(2, 11, 19, 0.58) 100%
    );
}


/* ==========================================================
   GRAND TITRE GAUCHE
   ========================================================== */

.visual-message {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 15px;

  color: var(--gold-light);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.visual-message h1 {
  margin: 0;

  max-width: 590px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      44px,
      3.55vw,
      62px
    );

  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;

  text-shadow:
    0 4px 28px
    rgba(0, 0, 0, 0.72);
}

.visual-message h1 span {
  display: block;

  margin-top: 10px;

  color: var(--gold-light);
}


/* ==========================================================
   PARTIE DROITE
   ========================================================== */

.registration-area {
  position: relative;

  min-height:
    calc(100vh - var(--trust-height));

  padding:
    98px
    clamp(38px, 4vw, 70px)
    38px;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at top right,
      rgba(29, 67, 94, 0.30),
      transparent 38%
    ),
    var(--night-deep);
}


/* ==========================================================
   LOGO EN HAUT A DROITE
   ========================================================== */

.brand {
  position: absolute;

  z-index: 5;

  top: 22px;
  right: clamp(38px, 4vw, 70px);

  display: flex;

  align-items: center;

  gap: 12px;
}

.brand-symbol {
  width: 47px;
  height: 47px;

  display: grid;

  place-items: center;

  flex: 0 0 auto;

  border:
    2px solid
    var(--gold);

  border-radius: 50%;

  color: var(--gold-light);

  background:
    rgba(2, 11, 19, 0.55);

  font-size: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;

  line-height: 1.12;
}

.brand-text strong {
  color: var(--white);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 20px;
}

.brand-text small {
  margin-top: 4px;

  color: var(--gold-light);

  font-size: 11px;
}


/* ==========================================================
   CADRE INSCRIPTION
   ========================================================== */

.registration-card {
  width: 100%;
  max-width: 490px;

  padding:
    25px
    31px
    24px;

  border:
    1px solid
    rgba(217, 164, 65, 0.38);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(5, 19, 31, 0.91),
      rgba(2, 11, 19, 0.96)
    );

  box-shadow:
    0 25px 70px
    rgba(0, 0, 0, 0.28);
}


/* ==========================================================
   EN-TETE FORMULAIRE
   ========================================================== */

.back-link {
  display: inline-block;

  margin-bottom: 24px;

  color: #aaa9a6;

  font-size: 12px;

  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--gold-light);
}

.step-label {
  margin: 0 0 7px;

  color: var(--gold-light);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.18em;
}

.registration-heading h2 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 37px;

  line-height: 1.05;
}

.registration-heading > p:last-child {
  margin: 10px 0 24px;

  color: #aaa9a6;

  font-size: 13px;
}


/* ==========================================================
   CHAMPS
   ========================================================== */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: #e9e5df;

  font-size: 12px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  height: 47px;

  padding: 0 14px;

  border:
    1px solid
    rgba(217, 164, 65, 0.25);

  border-radius: 9px;

  outline: none;

  color: var(--white);

  background:
    rgba(255, 255, 255, 0.04);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: #74787c;
}

.form-group input:focus {
  border-color: var(--gold);

  background:
    rgba(255, 255, 255, 0.065);

  box-shadow:
    0 0 0 3px
    rgba(217, 164, 65, 0.09);
}


/* ==========================================================
   AFFICHAGE MOT DE PASSE
   ========================================================== */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 85px;
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 11px;

  transform: translateY(-50%);

  padding: 6px;

  border: 0;

  color: var(--gold-light);

  background: transparent;

  cursor: pointer;

  font-size: 11px;
  font-weight: 700;
}


/* ==========================================================
   REGLES DU MOT DE PASSE
   ========================================================== */

.password-rules {
  margin: -3px 0 17px;

  padding: 12px 14px;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    6px 15px;

  border:
    1px solid
    rgba(217, 164, 65, 0.13);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.022);
}

.password-rule {
  margin: 0;

  color: #8f9497;

  font-size: 10px;

  line-height: 1.35;

  transition: color 0.2s ease;
}

.password-rule span {
  display: inline-block;

  width: 15px;

  color: #777d81;
}

.password-rule.valid {
  color: var(--success);
}

.password-rule.valid span {
  color: var(--success);
}


/* ==========================================================
   CONFIRMATION MAJORITE
   ========================================================== */

.legal-consent {
  margin: 2px 0 17px;

  display: flex;

  align-items: flex-start;

  gap: 9px;

  color: #aaa9a6;

  cursor: pointer;

  font-size: 10px;

  line-height: 1.4;
}

.legal-consent input {
  margin-top: 2px;

  accent-color: var(--gold);
}


/* ==========================================================
   MESSAGES FORMULAIRE
   ========================================================== */

.form-message {
  display: none;

  margin-bottom: 14px;

  padding: 10px 12px;

  border-radius: 9px;

  font-size: 11px;

  line-height: 1.4;
}

.form-message.error {
  display: block;

  color: #ffd0d0;

  border:
    1px solid
    rgba(239, 141, 141, 0.32);

  background:
    rgba(124, 33, 33, 0.23);
}


/* ==========================================================
   MESSAGE DE SUCCES
   PLUS VISIBLE
   ========================================================== */

.form-message.success {
  display: block;

  position: relative;

  margin:
    4px
    0
    18px;

  padding:
    16px
    18px;

  color: #f6fff7;

  border:
    1px solid
    rgba(159, 210, 167, 0.75);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(37, 108, 60, 0.55),
      rgba(12, 55, 37, 0.70)
    );

  box-shadow:
    0 0 0 1px
    rgba(243, 201, 105, 0.08),
    0 8px 25px
    rgba(0, 0, 0, 0.24),
    0 0 22px
    rgba(159, 210, 167, 0.10);

  text-align: center;

  font-size: 15px;
  font-weight: 700;

  line-height: 1.4;

  animation:
    successAppear
    0.55s
    ease-out;
}

.form-message.success::before {
  content: "✓";

  display: inline-grid;

  place-items: center;

  width: 25px;
  height: 25px;

  margin-right: 9px;

  border:
    1px solid
    rgba(243, 201, 105, 0.75);

  border-radius: 50%;

  color: var(--gold-light);

  vertical-align: middle;

  font-size: 16px;
  font-weight: 900;

  line-height: 1;
}

@keyframes successAppear {

  from {
    opacity: 0;

    transform:
      translateY(8px)
      scale(0.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

}


/* ==========================================================
   BOUTON PRINCIPAL
   ========================================================== */

.submit-button {
  width: 100%;

  min-height: 49px;

  border: 0;

  border-radius: 999px;

  color: #171006;

  background:
    linear-gradient(
      135deg,
      #f5d27a,
      #d79c34
    );

  box-shadow:
    0 12px 30px
    rgba(217, 164, 65, 0.20);

  cursor: pointer;

  font-size: 13px;

  font-weight: 800;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 15px 34px
    rgba(217, 164, 65, 0.30);
}

.submit-button:disabled {
  opacity: 0.55;

  cursor: wait;

  transform: none;
}


/* ==========================================================
   BAS DU FORMULAIRE
   ========================================================== */

.login-link {
  margin-top: 18px;

  display: flex;

  justify-content: center;

  gap: 6px;

  color: #999da0;

  font-size: 11px;
}

.login-link a {
  color: var(--gold-light);

  font-weight: 700;
}

.security-note {
  margin: 21px auto 0;

  max-width: 370px;

  color: #70767a;

  text-align: center;

  font-size: 9px;

  line-height: 1.45;
}


/* ==========================================================
   BANDEAU DE CONFIANCE
   ========================================================== */

.trust-banner {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 20;

  height: var(--trust-height);

  padding: 0 52px;

  display: grid;

  grid-template-columns:
    minmax(70px, 1fr)
    minmax(700px, auto)
    minmax(70px, 1fr);

  align-items: center;

  gap: 24px;

  overflow: hidden;

  border-top:
    1px solid
    rgba(217, 164, 65, 0.16);

  background:
    linear-gradient(
      90deg,
      #061522,
      #071b2b 48%,
      #061522
    );

  box-shadow:
    0 -12px 40px
    rgba(0, 0, 0, 0.20);
}

.trust-line {
  display: block;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(217, 164, 65, 0.85)
    );
}

.trust-line-right {
  transform: scaleX(-1);
}

.trust-message {
  position: relative;

  width: min(1000px, 72vw);
  height: 34px;

  overflow: hidden;

  text-align: center;
}

.trust-text {
  position: absolute;

  inset: 0;

  margin: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #f2eee7;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      15px,
      1.25vw,
      21px
    );

  line-height: 1.25;

  opacity: 0;

  transform:
    translateY(9px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.trust-text.active {
  opacity: 1;

  transform:
    translateY(0);
}

.trust-text.leaving {
  opacity: 0;

  transform:
    translateY(-9px);
}

.trust-text strong {
  margin:
    0 3px;

  color: var(--gold-light);

  font-weight: 700;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {

  .registration-page {
    display: block;

    padding-bottom: 0;
  }

  .registration-visual {
    min-height: 560px;

    padding:
      60px
      45px
      55px;
  }

  .registration-area {
    min-height: auto;

    padding:
      125px
      30px
      70px;
  }

  .brand {
    top: 35px;
    right: 30px;
  }

  .trust-banner {
    position: relative;

    min-height: 92px;
    height: auto;

    padding:
      22px
      30px;

    grid-template-columns:
      60px
      1fr
      60px;
  }

  .trust-message {
    width: 100%;
    height: 48px;
  }

}


@media (max-width: 600px) {

  .registration-visual {
    min-height: 500px;

    padding:
      45px
      22px
      40px;

    background-position:
      55% center;
  }

  .visual-message {
    max-width: 100%;
  }

  .visual-message h1 {
    max-width: 100%;

    font-size: 39px;
  }

  .registration-area {
    padding:
      115px
      18px
      45px;
  }

  .brand {
    top: 30px;
    right: 20px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;

    font-size: 24px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .registration-card {
    max-width: 100%;

    padding:
      23px
      19px
      22px;

    border-radius: 15px;
  }

  .registration-heading h2 {
    font-size: 32px;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }

  .login-link {
    flex-direction: column;

    align-items: center;
  }

  .trust-banner {
    padding:
      18px
      20px;

    grid-template-columns: 1fr;
  }

  .trust-line {
    display: none;
  }

  .trust-message {
    height: 72px;
  }

  .trust-text {
    font-size: 14px;
  }

}


/* ==========================================================
   ACCESSIBILITE : REDUCTION DES ANIMATIONS
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .trust-text {
    transition: none;

    transform: none;
  }

  .form-message.success {
    animation: none;
  }

}