* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #22396b 0%, #0a0a0a 75%);
  background-attachment: fixed;
  color: #f5f5f5;
  text-align: center;
}

.attente {
  max-width: 640px;
  margin: 0 auto;
  padding: 6vh 1.5rem 2rem;
}

.logo { border-radius: 20px; margin-bottom: 1rem; }

h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin: 0;
  letter-spacing: .02em;
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sous-titre { margin: .25rem 0 1.5rem; font-size: 1.15rem; opacity: .85; }

.statut {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-size: .95rem;
  margin-bottom: 1.75rem;
}
.statut::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .6rem;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.messages p {
  margin: .6rem 0;
  padding: .45rem 1rem;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(0,0,0,.45);
}
.messages strong { color: #7dd3fc; }

/* bouton contact */
.contact { margin: 1.75rem 0 0; }
.contact a {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: #7dd3fc;
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.contact a:hover { background: #bae6fd; }

footer { margin-top: 2rem; font-size: .85rem; opacity: .6; }

/*conversation*/
.chat {
  max-width: 400px;
  margin: 1.75rem auto 0;
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

/* en-tête */
.chat .chat-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .8rem 1rem;
  background: #2563eb;
  color: #fff;
}
.chat .chat-entete img { border-radius: 8px; background: #fff; flex-shrink: 0; }
.chat .chat-entete .entete-texte { flex: 1 1 auto; min-width: 0; }
.chat .chat-entete strong { display: block; font-size: 1rem; }
.chat .chat-entete .entete-texte span { font-size: .8rem; opacity: .9; }
.chat .chat-entete .entete-icones {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.chat .chat-entete .icone-croix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 10px;
  opacity: 1;
}
.chat .chat-entete svg { display: block; }
.point {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* messages */
.chat-corps { padding: 1rem; }
.ligne { display: flex; align-items: flex-start; gap: .5rem; margin: .6rem 0; }
.ligne.user { justify-content: flex-end; }
.ligne img { border-radius: 50%; flex-shrink: 0; }
.ligne .bulle {
  max-width: 78%;
  padding: .55rem .85rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.4;
}
.ligne.bot .bulle { background: #f1f3f5; border: 1px solid #e0e3e7; }
.ligne.user .bulle { background: #2563eb; color: #fff; }

/* saisie avec micro et envoi */
.chat-saisie {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 .8rem;
}
.saisie-texte {
  flex: 1;
  padding: .7rem 1rem;
  border: 1px solid #d5d9de;
  border-radius: 12px;
  font-size: .85rem;
  color: #8a9099;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-micro, .btn-envoi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}
.btn-micro { background: #fff; border: 1px solid #d5d9de; }
.btn-envoi { background: #93b4f8; }

/* pied */
.chat-pied { padding: .6rem 1rem .9rem; font-size: .75rem; text-align: center; color: #6b7280; }