/* Veradya — canal de conversation. Sobre, premium, nuit + ivoire + laiton. */
:root {
  --nuit: #0c1422;
  --nuit-2: #101a2e;
  --carte: #182540;
  --ivoire: #f4efe6;
  --ivoire-doux: #d9d2c5;
  --laiton: #c9a96a;
  --brume: #8a93a6;
  --ok: #7fb069;
  --alerte: #d9832e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--nuit);
  color: var(--ivoire);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cache { display: none !important; }

/* --- Login --- */
#ecran-login {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 800px at 20% -10%, #16233c 0%, var(--nuit) 60%);
}
.login-carte { width: 100%; max-width: 360px; text-align: center; }
.marque .logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.marque h1 { margin-top: 18px; font-size: 30px; letter-spacing: .14em; font-weight: 600; }
.sous-titre { color: var(--brume); margin-top: 4px; margin-bottom: 34px; }
#form-login { display: flex; flex-direction: column; gap: 10px; text-align: left; }
#form-login label { font-size: 13px; color: var(--brume); }
#form-login input {
  background: #0f1930; border: 1px solid #26324a; color: var(--ivoire);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; outline: none;
}
#form-login input:focus { border-color: var(--laiton); }
#form-login button {
  margin-top: 8px; background: var(--laiton); color: #14100a; font-weight: 600;
  border: 0; border-radius: 12px; padding: 14px; font-size: 16px; cursor: pointer;
}
#form-login button:disabled { opacity: .55; }
.login-info { margin-top: 16px; min-height: 22px; color: var(--ivoire-doux); font-size: 14px; }

/* --- Chat --- */
#ecran-chat { display: flex; flex-direction: column; height: 100dvh; }
.entete {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
  background: var(--nuit-2); border-bottom: 1px solid #1d2940;
}
.logo-mini { width: 36px; height: 36px; border-radius: 10px; }
.entete-titres { display: flex; flex-direction: column; flex: 1; }
.entete-titres strong { letter-spacing: .1em; }
.etat { font-size: 12px; color: var(--brume); }
.btn-discret {
  background: transparent; border: 1px solid #2a3652; color: var(--ivoire-doux);
  border-radius: 10px; padding: 7px 10px; font-size: 13px; cursor: pointer;
}

#fil { flex: 1; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg.carole { align-self: flex-end; background: #21406e; border-bottom-right-radius: 6px; }
.msg.agent { align-self: flex-start; background: #17223a; border: 1px solid #202e4c; border-bottom-left-radius: 6px; }
.msg.notif {
  align-self: stretch; max-width: 100%; background: #131e33; border: 1px solid #24304d;
  border-left: 3px solid var(--laiton); border-radius: 10px; font-size: 15px;
}
.msg .heure { display: block; margin-top: 6px; font-size: 11px; color: var(--brume); }
.msg a { color: var(--laiton); }

/* Bloc gate : Confirmer / Annuler */
.gate {
  align-self: flex-start; max-width: 86%; border: 1px solid var(--laiton); border-radius: 14px;
  padding: 12px 14px; background: rgba(201, 169, 106, .07);
}
.gate .gate-titre { font-size: 13px; color: var(--laiton); letter-spacing: .06em; margin-bottom: 6px; }
.gate .gate-resume { margin-bottom: 12px; }
.gate .gate-boutons { display: flex; gap: 10px; }
.gate button { border: 0; border-radius: 10px; padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.gate .btn-confirmer { background: var(--ok); color: #0d1508; }
.gate .btn-annuler { background: #2a3652; color: var(--ivoire); }
.gate.decide { opacity: .55; }
.gate.decide button { display: none; }
.gate .gate-choix { font-size: 13px; color: var(--brume); }

.attente { align-self: flex-start; color: var(--brume); font-size: 14px; padding: 4px 6px; }
.attente .points::after { content: '…'; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { opacity: .2 } 50% { opacity: 1 } 100% { opacity: .2 } }

.saisie {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: var(--nuit-2); border-top: 1px solid #1d2940;
}
.saisie textarea {
  flex: 1; resize: none; max-height: 130px;
  background: #0f1930; color: var(--ivoire); border: 1px solid #26324a;
  border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none; font-family: inherit;
}
.saisie textarea:focus { border-color: var(--laiton); }
.saisie button {
  background: var(--laiton); color: #14100a; border: 0; border-radius: 12px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.saisie button:disabled { opacity: .5; }
