/* ===== Connexion, inscription, mot de passe : mise en page premium =====
   Ordinateur : formulaire à gauche, grande photo à droite (fixe, toujours à la hauteur de l'écran).
   Téléphone : formulaire seul, plein écran. */
.ap {
  min-height: 100dvh;
  display: grid;
  background: var(--beige);
}

.ap-pane {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 18px 16px 20px;
}

.ap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ap-top .logo {
  font-size: 1.45rem;
}

.ap-switch {
  font-size: 0.92rem;
  color: var(--gris);
}

.ap-switch a {
  color: var(--anthracite);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rouge);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ap-main {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 36px 0;
}

.ap-box {
  width: 100%;
  max-width: 440px;
  display: grid;
  gap: 22px;
}

.ap-box--wide {
  max-width: 600px;
}

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rouge);
}

.ap-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--rouge);
}

.ap-title {
  font-size: clamp(2.1rem, 7vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: -8px;
}

.ap-lead {
  color: var(--gris);
  font-size: 1.05rem;
  margin-top: -10px;
}

/* Champs */
.ap .field {
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
}

.ap .field input[type='text'],
.ap .field input[type='email'],
.ap .field input[type='password'] {
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: var(--blanc);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ap .field input:hover {
  border-color: #D9CDB8;
}

.ap .field input:focus {
  border-color: var(--anthracite);
  box-shadow: 0 0 0 4px rgba(200, 25, 36, 0.1);
  background: var(--blanc);
}

.ap .field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ap .field__row a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gris);
}

.ap .field__row a:hover {
  color: var(--anthracite);
}

.ap .btn--lg {
  height: 54px;
  padding: 0 24px;
}

.ap .btn--primary {
  box-shadow: none;
}

.ap-or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gris);
  font-size: 0.88rem;
}

.ap-or::before,
.ap-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ligne);
}

.ap-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--blanc);
  color: var(--anthracite);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.ap-secondary:hover {
  border-color: var(--anthracite);
}

.ap-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.84rem;
  color: var(--gris);
}

.ap-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ap-foot .hi {
  width: 16px;
  height: 16px;
}

.ap-foot nav {
  display: flex;
  gap: 14px;
}

.ap-foot a {
  color: var(--gris);
}

/* L'assistant d'inscription garde ses cartes, sans ombre */
.ap .step-card {
  box-shadow: none;
  border: 1px solid var(--ligne);
}

.ap .wizard {
  max-width: 600px;
}

/* Grande photo */
.ap-visual {
  display: none;
}

@media (min-width: 1000px) {
  .ap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }

  .ap-pane {
    padding: 28px 48px 24px;
  }

  .ap-visual {
    display: block;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 16px 16px 16px 0;
  }

  .ap-visual__frame {
    position: relative;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--anthracite);
  }

  .ap-visual__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ap-visual__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 100%);
  }

  .ap-visual__chip {
    position: absolute;
    z-index: 1;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--blanc);
    font-size: 0.9rem;
  }

  .ap-visual__chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--or);
  }

  .ap-visual__content {
    position: absolute;
    z-index: 1;
    left: 36px;
    right: 36px;
    bottom: 36px;
    display: grid;
    gap: 18px;
    color: var(--blanc);
  }

  .ap-visual__quote {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 16em;
  }

  .ap-visual__quote em {
    font-style: normal;
    color: var(--or);
  }

  .ap-visual__points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ap-visual__points li {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.88rem;
  }
}

/* Petit écran : seul le lien reste, sur une ligne */
@media (max-width: 480px) {
  .ap-switch span {
    display: none;
  }

  .ap-switch a {
    white-space: nowrap;
  }
}
