/*
 * Kœurflor — Charte : saisies de la connexion (indicatif et numéro, code en cases, bouton, aide, liens)
 * Auteur : Jacks Ngalangala
 */
/* --- Indicatif + numéro --- */
.cx-tel {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  height: 52px;
  overflow: hidden;
}
.cx-tel:focus-within {
  border-color: var(--brand);
  box-shadow: var(--cx-halo);
}
.cx-tel-erreur {
  border-color: var(--danger);
}
.cx-ind {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  border-right: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
  background: var(--cx-fond-indicatif);
  white-space: nowrap;
  flex: none;
}
.cx-ind .icone {
  color: var(--ink-muted);
}
.cx-ind select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  font-size: 16px;
}
.cx-ind:focus-within {
  outline: 3px solid var(--leaf);
  outline-offset: -3px;
}
.cx-drapeau {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex: none;
}
.cx-tel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: 500 17px var(--sans);
  padding: 0 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
}
.cx-tel input::placeholder {
  color: var(--cx-exemple);
}

/* --- Code en cases (une seule zone de saisie posée sur les cases) --- */
.cx-cases {
  position: relative;
  display: flex;
  gap: 10px;
}
.cx-cases span {
  flex: 1;
  height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 24px var(--display);
  color: var(--ink);
  background: var(--surface);
}
.cx-cases span.plein {
  border-color: var(--brand);
}
.cx-cases span.courante {
  border-color: var(--brand);
  box-shadow: var(--cx-halo);
}
.cx-cases-erreur span {
  border-color: var(--danger);
}
.cx-cases input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  font-size: 16px;
  caret-color: transparent;
}
.cx-minuteur {
  font-size: 13px;
  color: var(--ink-faible);
  margin-top: 12px;
}
.cx-minuteur-fini {
  color: var(--danger);
  font-weight: 600;
}

/* --- Bouton principal, aide, liens --- */
.btn.cx-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
}
.cx-aide {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-faible);
  line-height: 1.5;
}
.cx-aide .icone {
  margin-top: 1px;
}
.cx-liens {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cx-lien {
  border: 0;
  background: none;
  padding: 0;
  min-height: 32px;
  font: 600 14px var(--sans);
  color: var(--brand);
  cursor: pointer;
}
.cx-lien:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .cx-cases {
    gap: 6px;
  }
}
