/*
 * Kœurflor — Charte : écran de connexion des espaces web (volet vert, carte, indicatif, code en cases)
 * Auteur : Jacks Ngalangala
 */
/* Maquette validée du 17/11 : /home/claude/mq/connexion (bureau-1, bureau-2, mobile-1). */
.cx {
  display: grid;
  grid-template-columns: minmax(420px, 44%) 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Volet de gauche --- */
.cx-volet {
  background: var(--volet-fond);
  color: var(--volet-titre);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cx-volet::after {
  content: '';
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--volet-lueur), transparent 70%);
  pointer-events: none;
}
.cx-marque {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 22px var(--display);
  color: var(--volet-titre);
}
.cx-marque img {
  width: 40px;
  height: 40px;
}
.cx-volet-corps {
  margin: auto 0;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.cx-sur {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--volet-sur);
}
.cx-volet h2 {
  font: 800 38px/1.15 var(--display);
  margin: 14px 0 18px;
  color: var(--volet-titre);
}
.cx-volet-corps > p:not(.cx-sur) {
  color: var(--volet-texte);
  font-size: 16px;
  line-height: 1.6;
}
.cx-garanties {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.cx-garanties li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--volet-garantie);
  font-size: 15px;
}
.cx-garanties .icone {
  color: var(--volet-sur);
}
.cx-volet-pied {
  font-size: 13px;
  color: var(--volet-pied);
  position: relative;
  z-index: 1;
}

/* --- Côté droit : langue, carte, pied --- */
.cx-cote {
  display: flex;
  flex-direction: column;
  padding: 28px 48px;
  background: var(--creme);
  min-width: 0;
}
.cx-haut {
  display: flex;
  justify-content: flex-end;
}
.cx-langues {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.cx-langues button {
  border: 0;
  background: none;
  font: 600 13px var(--sans);
  padding: 9px 14px;
  color: var(--ink-muted);
  min-height: 40px;
  min-width: 44px;
  cursor: pointer;
}
.cx-langues button.actif {
  background: var(--brand-soft);
  color: var(--brand);
}
.cx-carte {
  margin: auto;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--cx-ombre);
  display: flex;
  flex-direction: column;
}
.cx-carte h1 {
  font: 800 28px/1.25 var(--display);
}
.cx-sous {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 28px;
}
.cx-num {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.cx-carte label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.cx-carte .champ-erreur {
  margin-top: 8px;
}
.cx-carte .assistant-etape {
  margin-bottom: 6px;
}
.cx-carte .qr-totp {
  align-self: center;
  margin-bottom: 12px;
}
.cx-bas {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 13px;
}
.cx-bas a {
  color: var(--ink-faible);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.cx-bas a:hover {
  text-decoration: underline;
}

/* --- Barre d'étapes (numéro → code → second facteur) --- */
.cx-etapes {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.cx-etapes i {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--line);
}
.cx-etapes i.fait {
  background: var(--brand);
}

/* --- Téléphone et petite tablette : volet réduit à un bandeau, langue dans le bandeau --- */
@media (max-width: 820px) {
  .cx {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    position: relative;
  }
  .cx-volet {
    padding: 20px 22px;
    flex-direction: row;
    align-items: center;
  }
  .cx-volet-corps,
  .cx-volet-pied,
  .cx-volet::after {
    display: none;
  }
  .cx-marque {
    font-size: 19px;
  }
  .cx-marque img {
    width: 34px;
    height: 34px;
  }
  .cx-cote {
    padding: 16px 16px 28px;
  }
  .cx-haut {
    position: absolute;
    top: 14px;
    right: 16px;
  }
  .cx-langues {
    background: transparent;
    border-color: var(--volet-trait);
  }
  .cx-langues button {
    color: var(--volet-texte);
    padding: 8px 10px;
  }
  .cx-langues button.actif {
    background: var(--volet-actif);
    color: var(--volet-titre);
  }
  .cx-carte {
    padding: 28px 22px;
    margin: 20px auto auto;
  }
  .cx-bas {
    margin-top: 24px;
  }
}
