/*
 * Particularités de la page de contact (contact.html). L'habillage commun — cartes, bulles, saisie,
 * historique — vient de public-page.css, chargée juste avant : on ne redéfinit ici que ce qui diffère
 * de la page de débannissement.
 */

/* Deux colonnes et non trois : cette page n'affiche aucune information de compte Discord, la
   conversation récupère donc toute la largeur laissée par l'historique. */
.layout {
  grid-template-columns: minmax(0, 1fr) 290px;
}

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .layout > :last-child { grid-column: auto; }
}

/* ---------- Bandeau d'identité (qui écrit, et par quel moyen) ---------- */

.who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: var(--r-interne);
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  font-size: 14px;
  color: var(--encre-2);
}

.who strong { color: var(--encre); font-weight: 600; }

.who-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Action secondaire : un bouton de verre, plus discret que le rouge plein. */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--encre);
  font-size: 14px;
  font-weight: 500;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: background-color 0.25s, scale 0.45s var(--ressort);
}

.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }
.btn-ghost:active { scale: 0.97; }

/* ---------- Écran d'accueil : choisir son mode d'entrée ---------- */

/* Deux entrées côte à côte, de poids visuel égal : ni la connexion Discord ni l'adresse e-mail n'est la
   « bonne » façon de faire — c'est au visiteur de choisir, et beaucoup n'ont pas de compte Discord. */
.entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}

.entry .card { display: flex; flex-direction: column; gap: 14px; padding: 28px; }

.entry h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.entry h2 .rl-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 13px;
  color: var(--rouge-vif);
  background: rgb(255 59 78 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 59 78 / 0.22);
}

.entry .btn { width: 100%; }

.form-row { display: flex; flex-direction: column; gap: 7px; }

.form-row label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--encre-2);
}

.field {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--r-champ);
  padding: 12px 15px;
  background: rgb(0 0 0 / 0.28);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.09),
    inset 0 2px 6px rgb(0 0 0 / 0.25);
  color: var(--encre);
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.25s var(--sortie);
}

.field:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), inset 0 2px 6px rgb(0 0 0 / 0.25); }
.field:focus { box-shadow: inset 0 0 0 1px rgb(255 107 92 / 0.8), 0 0 0 4px rgb(255 59 78 / 0.16); }
.field::placeholder { color: var(--encre-3); }
textarea.field { resize: vertical; min-height: 120px; line-height: 1.5; }

/* Champ piège : rempli par les robots de formulaire, jamais par un humain qui ne le voit pas. Masqué
   sans `display:none`, que certains robots détectent — et retiré du parcours clavier et des lecteurs
   d'écran, pour ne jamais gêner quelqu'un qui navigue sans souris. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error { color: #ff9a90; font-size: 13.5px; margin: 0; }
.form-ok { color: var(--vert); font-size: 13.5px; margin: 0; }

.tiny { font-size: 12.5px; color: var(--encre-3); line-height: 1.55; margin: 0; }

.sep {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--encre-3);
  font-size: 12.5px;
}

.sep::before,
.sep::after { content: ""; flex: 1; height: 1px; background: var(--trait); }

/* ---------- Nouvelle demande depuis la conversation ---------- */

.new-thread { display: flex; flex-direction: column; gap: 14px; }

/* La hauteur pleine de `.talk` sert à coller la zone de saisie en bas d'une conversation qui défile.
   Un formulaire, lui, n'a rien à faire défiler : sans ce rattrapage, la carte gardait toute la hauteur
   de l'écran et laissait un grand vide sous le bouton d'envoi. */
.talk--form { height: auto; min-height: 0; }

/* ---------- Pastilles de l'historique ---------- */

.histo-pastille.is-open { background: var(--vert-fond); color: var(--vert); }
.histo-pastille.is-closed { background: rgb(255 255 255 / 0.06); color: var(--encre-3); }
