/* Voxilla — charte Infocilla : fond sombre, accent bleu, traits fins. */
:root {
  --bleu: #2ea3f2;
  --bleu-clair: #7ac4f7;
  --fond: #0a0e14;
  --fond-carte: #131a24;
  --bord: #1f2a38;
  --texte: #e8edf2;
  --texte-doux: #8a97a6;
  --ok: #3fbf7f;
  --erreur: #e5636b;
  --rayon: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.6;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--bord);
}
header img { height: 42px; }
header .titre { font-size: 1.15rem; letter-spacing: .04em; }
header .titre b { color: var(--bleu); font-weight: 600; }
header .lien-deco { margin-left: auto; color: var(--texte-doux); font-size: .85rem; text-decoration: none; }
header .lien-deco:hover { color: var(--bleu); }

main { max-width: 860px; margin: 0 auto; padding: 40px 24px; }
/* Les pages à tableau ont besoin de place : titre, source, état, date et deux
   boutons ne tiennent pas dans la largeur d'une colonne de lecture. */
main.large { max-width: 1280px; }

h1 { font-weight: 500; font-size: 1.6rem; margin: 0 0 6px; }
.sous-titre { color: var(--texte-doux); margin: 0 0 32px; }

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 28px;
}

label { display: block; margin: 16px 0 6px; font-size: .9rem; color: var(--texte-doux); }
/* Tous les champs de saisie, quel que soit leur type. Une liste explicite
   (text, password) laissait input[type=email] au style nu du navigateur —
   visiblement différent de ses voisins sur la page de connexion. La négation
   couvre aussi les types qu'on ajoutera plus tard. */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: 8px;
  color: var(--texte);
  font-size: .95rem;
  font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--bleu); }
textarea { resize: vertical; min-height: 70px; }

.depose {
  border: 1.5px dashed var(--bord);
  border-radius: var(--rayon);
  padding: 40px 20px;
  text-align: center;
  color: var(--texte-doux);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.depose:hover, .depose.survol { border-color: var(--bleu); background: #0f1620; color: var(--texte); }
.depose .nom { color: var(--bleu-clair); margin-top: 8px; word-break: break-all; }

button, .bouton {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 26px;
  background: var(--bleu);
  color: #041018;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
button:hover, .bouton:hover { background: var(--bleu-clair); }
.bouton.secondaire { background: transparent; color: var(--bleu); border: 1px solid var(--bord); }
.bouton.secondaire:hover { border-color: var(--bleu); background: #0f1620; }

.message { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.message.erreur { background: #2a1418; color: var(--erreur); border: 1px solid #3d1c22; }
/* Une action attendue de l'utilisateur — pas une erreur, mais ça doit accrocher
   l'œil : tant qu'il n'admet pas le bot, rien n'avance. */
.message.action { background: #1a2230; color: var(--bleu-clair);
                  border: 1px solid var(--bleu); margin: 18px 0 0; }

/* Deux façons de démarrer : une visio, ou un fichier. */
.onglets { display: flex; gap: 4px; margin-bottom: -1px; }
.onglet {
  margin: 0;
  padding: 10px 20px;
  background: transparent;
  color: var(--texte-doux);
  border: 1px solid var(--bord);
  border-bottom: none;
  border-radius: var(--rayon) var(--rayon) 0 0;
  font-weight: 500;
}
.onglet:hover { background: #0f1620; color: var(--texte); }
.onglet.actif { background: var(--fond-carte); color: var(--bleu); }
.volet { border-top-left-radius: 0; }

.note { color: var(--texte-doux); font-size: .85rem; margin: 8px 0 0; }
.note b { color: var(--bleu-clair); }

/* Résultat */
.etat { display: flex; align-items: center; gap: 14px; color: var(--texte-doux); }

/* Attente : une onde audio plutôt qu'un sablier. L'animation dit ce qui se
   passe — du son est en train d'être lu — et pas seulement « patientez ».
   Hauteurs irrégulières et retards décalés : l'onde se déplace, comme un
   vumètre, au lieu de clignoter en bloc. */
.onde {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  flex: none;
}
.onde span {
  width: 3px;
  background: var(--bleu);
  border-radius: 2px;
  animation: onde 1.15s ease-in-out infinite;
}
.onde span:nth-child(1) { height: 45%; animation-delay: 0s;    }
.onde span:nth-child(2) { height: 70%; animation-delay: .09s;  }
.onde span:nth-child(3) { height: 100%; animation-delay: .18s; }
.onde span:nth-child(4) { height: 60%; animation-delay: .27s;  }
.onde span:nth-child(5) { height: 85%; animation-delay: .36s;  }
.onde span:nth-child(6) { height: 40%; animation-delay: .45s;  }
.onde span:nth-child(7) { height: 75%; animation-delay: .54s;  }
.onde span:nth-child(8) { height: 55%; animation-delay: .63s;  }
.onde span:nth-child(9) { height: 35%; animation-delay: .72s;  }

@keyframes onde {
  0%, 100% { transform: scaleY(.22); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1;  }
}

/* Un traitement dure plusieurs minutes et la page reste souvent ouverte en
   arrière-plan : l'animation ne doit gêner ni le voisinage, ni qui y est
   sensible. On garde un signe de vie, sans mouvement. */
@media (prefers-reduced-motion: reduce) {
  .onde span { animation: onde-repos 2.4s ease-in-out infinite; }
  @keyframes onde-repos {
    0%, 100% { opacity: .3; }
    50%      { opacity: .9; }
  }
}

.rendu { margin-top: 10px; }
.rendu h1 { font-size: 1.5rem; border-bottom: 1px solid var(--bord); padding-bottom: 10px; }
.rendu h2 { color: var(--bleu-clair); font-weight: 500; font-size: 1.15rem; margin-top: 28px; }
.rendu hr { border: none; border-top: 1px solid var(--bord); margin: 30px 0; }
.rendu strong { color: var(--texte); }
.rendu code { background: var(--fond); padding: 1px 5px; border-radius: 4px; }
.rendu ul { padding-left: 22px; }
.barre-actions { display: flex; gap: 12px; margin: 4px 0 24px; }


/* En-tête : navigation entre les deux écrans. */
header .menu { margin-left: auto; display: flex; gap: 20px; }
header .menu a { color: var(--texte-doux); font-size: .9rem; text-decoration: none; }
header .menu a:hover { color: var(--bleu); }
header .lien-deco { margin-left: 24px; }

/* Liste des réunions. Le tableau peut déborder en largeur sur mobile : son
   conteneur défile, jamais la page. */
.liste { width: 100%; border-collapse: collapse; font-size: .9rem; }
.liste th {
  text-align: left; font-weight: 500; color: var(--texte-doux);
  padding: 14px 18px; border-bottom: 1px solid var(--bord); white-space: nowrap;
}
.liste td { padding: 14px 18px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.liste tr:last-child td { border-bottom: none; }
.liste .discret { color: var(--texte-doux); white-space: nowrap; }
.liste .ident { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.liste .raison { color: var(--erreur); font-size: .8rem; margin-top: 4px; }
.liste .actions { text-align: right; }
.liste form { display: inline; }

.etiquette {
  display: inline-block; margin-right: 8px; padding: 2px 8px;
  background: var(--fond); border: 1px solid var(--bord); border-radius: 5px;
  font-size: .75rem; color: var(--texte-doux);
}

/* L'état saute aux yeux : c'est la colonne qu'on vient lire. */
.pastille { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .8rem; }
.pastille.active, .pastille.joining, .pastille.requested,
.pastille.stopping           { background: #10263a; color: var(--bleu-clair); }
.pastille.awaiting_admission { background: #33280f; color: #e8b84b; }
.pastille.completed          { background: #102a1e; color: var(--ok); }
.pastille.failed             { background: #2a1418; color: var(--erreur); }

.bouton.mini { margin-top: 0; padding: 7px 14px; font-size: .82rem; }

/* --- Comptes ------------------------------------------------------------- */
/* L'identité et la déconnexion vivent au bout de la barre. La déconnexion est
   un POST — sinon un simple <img src="/deconnexion"> déconnecte le visiteur. */
header .identite { margin-left: 24px; display: flex; align-items: center; gap: 14px; }
header .identite > a { color: var(--texte-doux); font-size: .85rem; text-decoration: none; }
header .identite > a:hover { color: var(--bleu); }
header .identite form { display: inline; }
button.lien-deco {
  margin: 0; padding: 0; background: none; border: none; width: auto;
  color: var(--texte-doux); font-size: .85rem; cursor: pointer;
}
button.lien-deco:hover { color: var(--bleu); background: none; }

.en-ligne { display: inline-block; margin: 0 4px 0 0; }
.mini-champ { display: inline-block; width: auto; margin: 0 4px 0 0; padding: 6px 10px; font-size: .82rem; }
.case { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; }
.case input { width: auto; margin: 0; }
.pastille { background: var(--fond); color: var(--texte-doux); }


/* La page de connexion n'a que deux champs : on la centre plutôt que de la
   laisser flotter en haut à gauche d'un écran vide. */
.carte.connexion { max-width: 380px; margin: 8vh auto 0; }

/* Une suppression ne se distingue pas d'un bouton ordinaire tant qu'on ne la
   survole pas : discrète au repos, franche au moment d'agir. */
.bouton.danger { background: transparent; color: var(--texte-doux); border: 1px solid var(--bord); }
.bouton.danger:hover { background: #2a1418; color: var(--erreur); border-color: var(--erreur); }
/* La barre d'actions est un flex : le formulaire de suppression doit s'y aligner
   comme un bouton, pas s'empiler en dessous. */
.barre-actions form { display: flex; margin: 0; }
.barre-actions form button { margin-top: 0; }
