/*
 * Chat AkroRadio (client maison) : style neon valide le 05/11/2026
 * (maquette https://claude.ai/artifact/SKt5zvqL6NdK3xkYzLWFVs).
 * Un seul theme, sombre : c'est celui de la maquette.
 */
:root {
  --accent: #ff7a1a;
  --accent-rgb: var(--accent-rgb);       /* meme couleur, pour les lueurs rgba() */
  --accent-sombre: var(--accent-sombre);       /* fond teinte de l'accent (mentions, tuiles) */
  --second-rgb: 255,61,139;       /* deuxieme lueur (rose) */
  --lien: #ff8f3d;
  --lien-survol: #ffb680;
  --fond: #0d0b1f;
  --rail: #090717;
  --colonne: #141130;
  --carte: #1b1740;
  --carte-2: #1f1a46;
  --bord: #2e2862;
  --bord-2: #352e70;
  --tuile: var(--ligne);
  --actif: #2c2563;
  --survol: #221c4c;
  --texte: #f4f2ff;
  --texte-2: #d8d5f2;
  --texte-3: #c5c1e8;
  --discret: #aaa5d6;
  --discret-2: #9b95cc;
  --rose: #ff70b8;
  --bleu: #6fb4ff;
  --vert: #2fe07a;
  --jaune: #ffd23f;
  --rouge: #e0263f;
  --bord-3: #3a3378;        /* bords des champs */
  --ligne: #241f50;         /* filets, separateurs */
  --bord-carte: #332c6b;
  --survol-msg: #17133a;
  --carte-connexion: #18143a;
  --texte-fort: #fff;       /* texte sur element actif */
  --pseudo-h: #6fb4ff; --pseudo-f: #ff70b8; --pseudo-g: #c5c1e8; --pseudo-robot: #6fb4ff;
  --pseudo-h-fond: #1d3a7a; --pseudo-f-fond: #5a1f4a; --pseudo-g-fond: #352e70; --pseudo-robot-fond: #173a6e;
  --ombre: rgba(0,0,0,.45);
  --sur-accent: #0d0b1f;    /* texte pose sur la couleur d'accent */
  --texte-alerte: #ffb3c0; --texte-avertir: #ffd9a8; --texte-avis: #ffe2c8; --texte-rouge: #ff8a96;
  --titre: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --corps: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lien); }
a:hover { color: var(--lien-survol); }
button { font: inherit; color: inherit; }
input::placeholder { color: var(--discret-2); }
[hidden] { display: none !important; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.petit { font-size: 12px; color: var(--discret); }
.accent { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- effets neon ------------------------------------------------- */
@keyframes ak-eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes ak-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ak-eq span { transform-origin: bottom; animation: ak-eq 1.1s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(var(--accent-rgb),.55)); }
.ak-type { display: inline-flex; gap: 3px; }
.ak-type span { width: 6px; height: 6px; border-radius: 50%; background: var(--discret); animation: ak-dot 1.2s infinite; }
.ak-type span:nth-child(2) { animation-delay: .2s; }
.ak-type span:nth-child(3) { animation-delay: .4s; }
.ak-neon { box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 18px rgba(var(--accent-rgb),.6), 0 0 46px rgba(var(--accent-rgb),.28); }
.ak-neon-txt { text-shadow: 0 0 10px rgba(var(--accent-rgb),.85), 0 0 26px rgba(var(--accent-rgb),.45); }
.ak-hero { box-shadow: 0 0 0 1px rgba(var(--accent-rgb),.35), 0 0 40px rgba(var(--accent-rgb),.16), 0 0 90px rgba(var(--second-rgb),.12); }
.ak-actif { box-shadow: inset 0 0 0 1px rgba(111,180,255,.45), 0 0 20px rgba(111,180,255,.18); }
@media (prefers-reduced-motion: reduce) {
  .ak-eq span, .ak-type span { animation: none; }
}

/* --- pieces communes ---------------------------------------------- */
.logo {
  width: 48px; height: 48px; border-radius: 15px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar {
  position: relative; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; overflow: visible; user-select: none;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-34 { width: 34px; height: 34px; font-size: 13px; }
.avatar-36 { width: 36px; height: 36px; font-size: 14px; }
.avatar-40 { width: 40px; height: 40px; font-size: 15px; }
.avatar-52 { width: 52px; height: 52px; font-size: 22px; font-family: var(--titre); font-weight: 800; }
.avatar-76 { width: 76px; height: 76px; font-size: 30px; font-family: var(--titre); font-weight: 800; }
.point-statut {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--colonne);
}
.point-statut.present { background: var(--vert); }
.point-statut.absent { background: var(--jaune); }
.point-statut.hors { background: #5a5490; }
.etiquette {
  font-size: 10px; font-weight: 800; letter-spacing: .8px; padding: 1px 6px; border-radius: 6px;
  border: 1px solid currentColor; line-height: 1.4; flex-shrink: 0;
}
.etiquette-robot { color: var(--bleu); }
.etiquette-notice { color: var(--discret); }
.etiquette-pleine { color: var(--fond); background: var(--bleu); border-color: var(--bleu); }
.bouton-secondaire {
  height: 40px; padding: 0 14px; border-radius: 10px; border: none; background: var(--bord-2);
  color: var(--texte); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.bouton-secondaire:hover { background: #40388a; color: var(--texte); }
.case { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }

/* --- ecran d'accueil ---------------------------------------------- */
.accueil { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.accueil-onde {
  height: 120px; display: flex; align-items: flex-end; gap: 6px; padding: 0 24px; overflow: hidden; opacity: .9; flex-shrink: 0;
}
.accueil-onde span { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; }
.accueil-corps { flex-grow: 1; display: flex; justify-content: center; padding: 40px 16px 56px; border-top: 1px solid var(--ligne); }
.accueil-grille { width: 100%; max-width: 1080px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.accueil-texte { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.logo-ligne { display: flex; align-items: center; gap: 12px; }
.logo-nom { font-family: var(--titre); font-weight: 800; font-size: 24px; }
.accueil-titre { margin: 0; font-family: var(--titre); font-size: clamp(40px, 7vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -1.5px; }
.accueil-intro { margin: 0; font-size: 18px; line-height: 1.55; color: var(--texte-2); max-width: 480px; }
.accueil-liens { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--texte-3); }
.accueil-liens small { color: var(--discret); }

.carte-connexion {
  flex: 1 1 380px; min-width: 0; max-width: 460px; background: var(--carte-connexion); border: 1px solid var(--bord);
  border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.apercu { display: flex; align-items: center; gap: 14px; background: var(--fond); border-radius: 18px; padding: 14px; }
.apercu-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apercu-pseudo { font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bascule { display: flex; background: var(--fond); border-radius: 14px; padding: 4px; gap: 4px; }
.bascule button {
  flex: 1; height: 44px; border-radius: 11px; border: none; background: transparent; color: var(--texte-3);
  font-weight: 700; cursor: pointer;
}
.bascule button[aria-pressed="true"] { background: var(--bord-3); color: var(--texte-fort); }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ > label { font-size: 13px; font-weight: 700; color: var(--texte-2); }
.champ input[type="text"], .champ input[type="password"] {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--bord-3); background: var(--fond);
  color: var(--texte); font: inherit; font-size: 16px;
}
.champ input.invalide { border-color: #ff5470; }
.aide { font-size: 12px; color: var(--texte-alerte); line-height: 1.5; }
.aide code { background: var(--ligne); padding: 0 4px; border-radius: 4px; }
.ligne-mdp { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ligne-mdp .case { align-items: center; color: var(--texte-3); }
.ligne-mdp .case input { width: 18px; height: 18px; }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--texte-3); background: var(--tuile); border-radius: 12px; padding: 12px 14px; }
.case-charte { font-size: 14px; line-height: 1.45; color: var(--texte-2); }
.erreur { margin: 0; font-size: 14px; line-height: 1.5; color: #ffd6dc; background: #4a1426; border: 1px solid #8a2a48; border-radius: 12px; padding: 12px 14px; }
.bouton-principal {
  height: 56px; border-radius: 16px; border: none; background: var(--accent); color: var(--sur-accent);
  font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
}
.bouton-principal:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* --- le chat : grille --------------------------------------------- */
.chat {
  height: 100vh; height: 100dvh; display: grid;
  grid-template-columns: 76px 280px minmax(0, 1fr) 280px;
  grid-template-areas: "rail salons centre membres";
  overflow: hidden;
}
.rail { grid-area: rail; }
.colonne-salons { grid-area: salons; }
.centre { grid-area: centre; }
.colonne-membres { grid-area: membres; }

.rail {
  background: var(--rail); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rail-sep { width: 32px; height: 2px; border-radius: 2px; background: var(--bord); }
.rail-bouton {
  width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--discret); background: transparent; border: none; cursor: pointer;
}
.rail-bouton:hover { background: var(--tuile); color: var(--texte); }
.rail-bas { margin-top: auto; }

.colonne-salons, .colonne-membres {
  background: var(--colonne); overflow-y: auto; overscroll-behavior: contain;
}
.colonne-salons { padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 24px; }
.marque { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.marque-nom { font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: -.3px; }
.groupe-liste { display: flex; flex-direction: column; gap: 4px; }
.titre-groupe {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--discret-2);
  padding: 0 10px 6px; margin: 0; display: flex; align-items: center; justify-content: space-between;
}
.mini-bouton {
  width: 28px; height: 28px; border-radius: 8px; border: none; background: var(--tuile); color: var(--texte-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mini-bouton:hover { background: var(--bord-2); color: var(--texte-fort); }
.vide { margin: 0; padding: 0 10px; font-size: 12px; color: var(--discret-2); }

.ligne-buffer { position: relative; border-radius: 12px; display: flex; align-items: center; }
.ligne-buffer:hover { background: var(--survol); }
.ligne-buffer.actif { background: var(--actif); }
.ligne-buffer.absent { opacity: .6; }
.ligne-buffer-principal {
  flex-grow: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 9px 10px; border: none;
  background: transparent; color: var(--texte-2); text-align: left; cursor: pointer; border-radius: 12px;
}
.ligne-buffer.actif .ligne-buffer-principal { color: var(--texte-fort); }
.tuile-salon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--tuile); color: var(--discret);
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ligne-buffer.actif .tuile-salon { background: var(--accent-sombre); color: var(--accent); }
.ligne-buffer-texte { flex-grow: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ligne-buffer-nom { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-buffer-sous { font-size: 12px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-buffer.actif .ligne-buffer-sous { color: var(--texte-3); }
.compteur {
  font-size: 11px; font-weight: 700; color: var(--fond); background: var(--texte); padding: 2px 8px; border-radius: 99px; flex-shrink: 0;
}
.compteur-mention { background: var(--accent); }
.ligne-buffer-fermer {
  width: 28px; height: 28px; margin-right: 6px; border-radius: 8px; border: none; background: transparent;
  color: var(--discret); font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; opacity: 0;
}
.ligne-buffer:hover .ligne-buffer-fermer, .ligne-buffer-fermer:focus-visible { opacity: 1; }
.ligne-buffer-fermer:hover { background: var(--bord-2); color: var(--texte-fort); }
@media (hover: none) { .ligne-buffer-fermer { opacity: .7; } }

.carte-moi {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px; background: var(--tuile); border-radius: 16px; padding: 14px;
}
.carte-moi:empty { display: none; }
.carte-moi-haut { display: flex; align-items: center; gap: 10px; }
.carte-moi-texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.carte-moi-texte b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- centre -------------------------------------------------------- */
.centre { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.entete {
  padding: 14px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ligne); flex-shrink: 0;
}
.entete-titres { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entete-nom { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete-sujet { margin: 0; font-size: 13px; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bouton-carre {
  position: relative; width: 44px; height: 44px; border-radius: 14px; border: none; background: var(--carte);
  color: var(--texte); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.bouton-carre:hover { background: var(--tuile); }
.compteur-membres {
  position: absolute; bottom: -4px; right: -4px; font-size: 10px; font-weight: 800; background: var(--bord-2);
  color: var(--texte); padding: 0 5px; border-radius: 99px; line-height: 16px;
}
.compteur-membres:empty { display: none; }
.pastille-alerte {
  position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb),.8);
}
#bouton-membres { display: none; }

.bandeau-etat {
  margin: 10px 24px 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-sombre); border: 1px solid #7a4a1a;
  color: var(--texte-avis); font-size: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.bandeau-etat button {
  margin-left: auto; height: 34px; padding: 0 12px; border-radius: 10px; border: none; background: var(--accent);
  color: var(--sur-accent); font-weight: 700; cursor: pointer;
}

.fil {
  flex-grow: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 6px;
  display: flex; flex-direction: column; gap: 2px; min-height: 0;
}
.fil > :first-child { margin-top: auto; }
.plus-ancien {
  align-self: center; margin: 4px 0 10px; height: 34px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--bord-2); background: var(--carte); color: var(--texte-3); font-size: 13px; cursor: pointer;
}
.jour { display: flex; align-items: center; gap: 12px; color: var(--discret-2); font-size: 12px; font-weight: 600; padding: 10px 12px 6px; }
.jour span { flex-grow: 1; height: 1px; background: var(--ligne); }
.jour b { font-weight: 600; }

.msg { display: flex; gap: 14px; padding: 6px 12px; border-radius: 14px; position: relative; }
.msg:hover { background: var(--survol-msg); }
.msg.suite { padding-top: 1px; padding-bottom: 1px; }
.msg.mention { background: var(--accent-sombre); }
.msg.mention:hover { background: #432a12; }
.heure-suite {
  width: 40px; flex-shrink: 0; font-size: 11px; color: var(--discret-2); text-align: right; padding-top: 3px; opacity: 0;
}
.msg.suite:hover .heure-suite { opacity: 1; }
.msg-corps { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-tete time { font-size: 12px; color: var(--discret-2); }
.pseudo {
  border: none; background: none; padding: 0; font-weight: 700; cursor: pointer; font-size: inherit;
}
.pseudo:hover { text-decoration: underline; }
.msg .avatar { cursor: pointer; }
.msg-texte { line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.action .msg-texte { font-style: italic; color: var(--texte-2); }
.msg.notice .msg-texte { color: var(--texte-3); }
.msg.notice { border: 1px dashed var(--bord-3); margin: 2px 0; }
.mention-moi { color: var(--sur-accent); background: var(--accent); padding: 0 5px; border-radius: 5px; font-weight: 700; }
.msg-texte a { word-break: break-all; }

.evt { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 26px; font-size: 13px; color: var(--discret); }
.evt svg { flex-shrink: 0; }
.evt time { color: var(--discret-2); }
.evt-erreur { color: var(--texte-avertir); }
.pseudo-evt { font-weight: 600; }

.nouveaux {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; height: 36px; padding: 0 16px;
  border-radius: 99px; border: none; background: var(--accent); color: var(--sur-accent); font-weight: 700; cursor: pointer;
  box-shadow: 0 0 18px rgba(var(--accent-rgb),.55); z-index: 2;
}
.ecrit { min-height: 22px; padding: 0 28px 0 82px; font-size: 13px; color: var(--discret); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.saisie { padding: 6px 24px 20px; flex-shrink: 0; }
.saisie-boite {
  display: flex; align-items: center; gap: 4px; background: var(--carte); border: 1px solid var(--bord-2);
  border-radius: 18px; padding: 6px 6px 6px 16px;
}
.saisie-boite:focus-within { border-color: #5a4fb0; }
#champ-message {
  flex-grow: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--texte);
  font: inherit; font-size: 16px; height: 44px;
}
.bouton-envoyer {
  height: 44px; padding: 0 18px; border-radius: 12px; border: none; background: var(--accent); color: var(--sur-accent);
  font-weight: 800; display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0;
}

/* --- membres ------------------------------------------------------- */
.colonne-membres { padding: 22px 14px; }
#liste-membres { display: flex; flex-direction: column; gap: 22px; }
.groupe-membres { display: flex; flex-direction: column; gap: 2px; }
.ligne-membre {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; border: none;
  background: transparent; text-align: left; cursor: pointer; width: 100%;
}
.ligne-membre:hover { background: var(--survol); }
.ligne-membre-nom { flex-grow: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-laterale {
  border-radius: 20px; background: var(--carte-2); border: 1px solid var(--bord-carte); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.fiche-laterale b { font-size: 17px; }

/* --- fenetres ------------------------------------------------------ */
dialog.fiche {
  width: min(380px, calc(100vw - 32px)); border: 1px solid var(--bord-carte); border-radius: 22px; background: var(--carte-2);
  color: var(--texte); padding: 26px 22px 22px; text-align: center;
}
dialog.fiche::backdrop { background: rgba(5, 4, 15, .7); }
dialog.fiche h2 { margin: 12px 0 10px; font-family: var(--titre); font-size: 22px; overflow-wrap: anywhere; }
dialog.fiche .avatar { margin: 0 auto; }
.fermer {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: none;
  background: transparent; color: var(--discret); font-size: 22px; cursor: pointer;
}
.fermer:hover { background: var(--tuile); color: var(--texte-fort); }
#fiche-infos { margin: 0 0 16px; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
#fiche-infos dt { color: var(--discret); }
#fiche-infos dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
#fiche-infos p { grid-column: 1 / -1; margin: 0; text-align: center; }
.fiche-salons { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-salon {
  border: 1px solid var(--bord-2); background: var(--tuile); color: var(--texte-2); border-radius: 99px;
  padding: 2px 10px; font-size: 13px; cursor: pointer;
}
.puce-salon:hover { border-color: var(--accent); color: var(--texte-fort); }
.fiche-boutons { display: flex; gap: 8px; justify-content: center; }
.fiche-boutons .bouton-secondaire { flex: 1; }
#dialogue-salon { text-align: left; }
.liste-publique { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; margin-bottom: 14px; }
.ligne-publique {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--bord); background: var(--carte); cursor: pointer;
}
.ligne-publique:hover { border-color: var(--accent); }
.ligne-publique-sujet { grid-column: 1 / -1; font-size: 12px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-salon { display: flex; gap: 8px; }
.form-salon input {
  flex-grow: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bord-3);
  background: var(--fond); color: var(--texte); font: inherit; font-size: 16px;
}
.form-salon .bouton-secondaire { height: 44px; }

.voile { display: none; }
.onglets { display: none; }
.seulement-mobile { display: none; }

/* --- ecran moyen : les membres passent dans un tiroir ---------------- */
@media (max-width: 1199px) {
  .chat { grid-template-columns: 76px 260px minmax(0, 1fr); grid-template-areas: "rail salons centre"; }
  #bouton-membres { display: flex; }
  .colonne-membres {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 20;
    transform: translateX(105%); transition: transform .22s ease; box-shadow: -10px 0 40px rgba(0,0,0,.45);
  }
  body.panneau-membres .colonne-membres { transform: none; }
  .voile { display: block; position: fixed; inset: 0; background: rgba(5,4,15,.6); z-index: 15; }
}

/* --- telephone ------------------------------------------------------ */
@media (max-width: 899px) {
  .chat { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "centre" "onglets"; }
  .rail { display: none; }
  .seulement-mobile { display: flex; }
  .seulement-large { display: none; }
  .colonne-salons {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 20;
    transform: translateX(-105%); transition: transform .22s ease; box-shadow: 10px 0 40px rgba(0,0,0,.45);
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  body.panneau-salons .colonne-salons { transform: none; }
  .entete { padding: 10px 12px; gap: 8px; }
  .entete-nom { font-size: 20px; }
  .entete-sujet { font-size: 12px; }
  .bandeau-etat { margin: 8px 12px 0; }
  .fil { padding: 10px 6px 4px; }
  .msg { gap: 10px; padding: 6px 8px; }
  .msg .avatar-40 { width: 34px; height: 34px; font-size: 13px; }
  .heure-suite { width: 34px; }
  .evt { padding-left: 14px; }
  .ecrit { padding: 0 12px 0 56px; }
  .saisie { padding: 4px 10px 8px; }
  .saisie-boite { padding: 4px 4px 4px 14px; }
  .bouton-envoyer { width: 44px; padding: 0; justify-content: center; border-radius: 14px; }
  .nouveaux { bottom: 82px; }
  .onglets {
    grid-area: onglets; display: flex; justify-content: space-around; padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ligne); background: var(--rail);
  }
  .onglets > * {
    position: relative; width: 76px; height: 52px; border-radius: 14px; border: none; background: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--discret); font-size: 11px; font-weight: 600; cursor: pointer;
  }
  .onglets > .actif { color: var(--accent); font-weight: 700; }
  .onglets .pastille-alerte { top: 4px; right: 18px; width: 9px; height: 9px; }
  .accueil-onde { height: 70px; gap: 4px; padding: 0 12px; }
  .accueil-corps { padding: 24px 16px 40px; }
  .accueil-grille { gap: 28px; }
  .accueil-texte { gap: 16px; }
  .accueil-intro { font-size: 16px; }
  .carte-connexion { padding: 22px 18px; border-radius: 22px; gap: 16px; }
}

/* ===== Etape 2 : direct, player, pastilles, emojis (13/11/2026) ===== */
@keyframes ak-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes ak-ring { 0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.9), 0 0 0 7px rgba(var(--accent-rgb),.25), 0 0 30px rgba(var(--accent-rgb),.55); } 50% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.9), 0 0 0 12px rgba(var(--accent-rgb),0), 0 0 44px rgba(255,61,139,.45); } }
@keyframes ak-tourne { to { transform: rotate(360deg); } }
@keyframes ak-micro { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ak-live { animation: ak-pulse 1.6s infinite; }
.ak-ring { animation: ak-ring 2s ease-in-out infinite; }
.ak-neon-red { box-shadow: 0 0 12px rgba(255,46,85,.85), 0 0 28px rgba(255,46,85,.35); }
.ak-eq.pause span { animation-play-state: paused; }
.micro-direct { flex-shrink: 0; animation: ak-micro 1.7s ease-in-out infinite; }
.rosace { flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
@media (prefers-reduced-motion: reduce) { .ak-live, .ak-ring, .micro-direct { animation: none; } }

/* bouton du direct dans le rail */
.rail-bouton { position: relative; }
.point-direct { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; border: 2px solid var(--rail); }

/* bandeau a l'antenne */
.antenne {
  position: relative; margin: 16px 24px 0; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord);
  padding: 16px 48px 16px 18px; display: flex; gap: 18px; align-items: center; flex-shrink: 0;
}
.antenne-pochette {
  position: relative; width: 96px; height: 96px; border-radius: 16px; background: var(--accent-sombre); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.antenne-pochette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.antenne-infos { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.antenne-haut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--texte-3); }
.antenne-label { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--discret); }
.antenne.en-direct .antenne-label { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--texte-3); }
.antenne-label .pseudo { font-weight: 700; }
.pastille-direct {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  color: var(--texte-fort); background: var(--rouge); padding: 4px 10px; border-radius: 99px;
}
.pastille-direct .ak-live { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.antenne-ligne { display: flex; align-items: flex-end; gap: 18px; }
.antenne-textes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.antenne-titre { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.antenne-artiste { font-size: 15px; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.antenne-eq { margin-left: auto; display: flex; align-items: flex-end; gap: 4px; height: 44px; flex-shrink: 0; }
.antenne-eq span { width: 5px; border-radius: 3px; background: var(--accent); }
.antenne-erreur { margin: 0; font-size: 13px; color: var(--texte-alerte); }
.antenne-commandes { display: flex; flex-direction: column; gap: 10px; align-items: stretch; flex-shrink: 0; }
.bouton-lecture {
  height: 52px; padding: 0 22px; border-radius: 99px; border: none; background: var(--accent); color: var(--sur-accent);
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
}
.bouton-lecture .ic-pause, .bouton-lecture .ic-chargement { display: none; }
.bouton-lecture.lecture .ic-lecture, .bouton-lecture.chargement .ic-lecture { display: none; }
.bouton-lecture.lecture .ic-pause { display: block; }
.bouton-lecture.chargement .ic-chargement { display: block; animation: ak-tourne .9s linear infinite; }
.volume { display: flex; align-items: center; gap: 8px; color: var(--discret); }
.volume input { width: 110px; accent-color: var(--accent); }
.antenne-replier {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: var(--discret); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.antenne-replier:hover { background: var(--tuile); color: var(--texte-fort); }
/* bandeau replie : une seule ligne */
.antenne.replie { padding: 8px 44px 8px 10px; gap: 12px; border-radius: 16px; }
.antenne.replie .antenne-pochette { width: 44px; height: 44px; border-radius: 10px; }
.antenne.replie .antenne-pochette svg { width: 20px; height: 20px; }
.antenne.replie .antenne-infos { gap: 2px; }
.antenne.replie .antenne-haut { font-size: 12px; }
.antenne.replie .pastille-direct { padding: 2px 8px; font-size: 10px; }
.antenne.replie .antenne-ligne { display: block; }
.antenne.replie .antenne-titre { font-size: 15px; }
.antenne.replie .antenne-artiste, .antenne.replie .antenne-eq, .antenne.replie .volume { display: none; }
.antenne.replie .antenne-textes { flex-direction: row; gap: 6px; }
.antenne.replie .bouton-lecture { height: 40px; padding: 0 14px; }
.antenne.replie .antenne-replier svg { transform: rotate(180deg); }

/* fiche de l'animateur, colonne des membres */
.fiche-animateur {
  border-radius: 20px; background: var(--carte-2); border: 1px solid var(--bord-carte); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.fiche-animateur b { font-size: 17px; }
.fiche-animateur .bouton-secondaire { width: 100%; }
.ligne-membre .rosace, .ligne-membre .micro-direct { margin-left: -4px; }
.msg-tete .rosace, .msg-tete .micro-direct { margin-left: -4px; }

/* emojis */
img.emoji { width: 1.35em; height: 1.35em; vertical-align: -.3em; margin: 0 .05em; }
.gros-emojis img.emoji { width: 2.6em; height: 2.6em; vertical-align: middle; }
.bouton-outil {
  width: 44px; height: 44px; border-radius: 12px; border: none; background: transparent; color: var(--texte-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.bouton-outil:hover, .bouton-outil[aria-expanded="true"] { background: var(--tuile); color: var(--texte-fort); }
.selecteur-emojis {
  margin: 0 24px 6px auto; width: min(420px, calc(100% - 48px)); background: var(--carte-2); border: 1px solid var(--bord-3);
  border-radius: 18px; padding: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.45); flex-shrink: 0;
}
.selecteur-onglets { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.selecteur-onglets button {
  height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid transparent; background: transparent;
  color: var(--texte-3); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.selecteur-onglets button[aria-selected="true"] { background: var(--actif); border-color: rgba(111,180,255,.45); color: var(--texte-fort); }
.selecteur-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 230px; overflow-y: auto; overscroll-behavior: contain; }
.emoji-choix { height: 40px; border: none; border-radius: 10px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.emoji-choix:hover { background: var(--tuile); }
.emoji-choix img.emoji { width: 26px; height: 26px; margin: 0; vertical-align: middle; }

@media (max-width: 899px) {
  .antenne { margin: 8px 10px 0; padding: 12px 40px 12px 12px; gap: 12px; border-radius: 18px; }
  .antenne-pochette { width: 58px; height: 58px; border-radius: 12px; }
  .antenne-pochette svg { width: 24px; height: 24px; }
  .antenne-infos { gap: 4px; }
  .antenne-titre { font-size: 17px; }
  .antenne-artiste { font-size: 13px; }
  .antenne-eq, .volume, .bouton-lecture-texte { display: none; }
  .bouton-lecture { width: 52px; height: 52px; padding: 0; }
  .antenne-replier { top: 4px; right: 4px; }
  .antenne.replie { padding: 6px 40px 6px 6px; }
  .antenne.replie .bouton-lecture { width: 40px; height: 40px; }
  .selecteur-emojis { margin: 0 10px 6px; width: auto; }
  .selecteur-grille { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); max-height: 200px; }
}

/* pastilles collees au pseudo (demande du 13/11/2026) : le pseudo ne prend
   plus toute la largeur, la rosace et le micro le suivent directement */
.ligne-membre-nom { flex: 0 1 auto; }
.ligne-membre .rosace, .ligne-membre .micro-direct { margin-left: -6px; }
.ligne-membre .rosace + .micro-direct { margin-left: -8px; }
.ligne-membre .etiquette { margin-left: auto; }
.msg-tete .rosace, .msg-tete .micro-direct { margin-left: -5px; }
.msg-tete .rosace + .micro-direct { margin-left: -7px; }

/* ===== Etape 3 : moderation (13/11/2026) ===== */
.fiche-moderation { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bord-carte); text-align: left; }
.fiche-moderation h3 { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--discret-2); }
.fiche-ircop h3 { color: var(--texte-rouge); }
.ligne-boutons { display: flex; flex-wrap: wrap; gap: 6px; }
.bouton-modo {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--bord-2); background: var(--tuile);
  color: var(--texte); font-size: 13px; font-weight: 600; cursor: pointer;
}
.bouton-modo:hover { border-color: var(--accent); }
.bouton-modo.danger { border-color: #7a2a3a; background: #3a1424; color: #ffd0d6; }
.bouton-modo.danger:hover { border-color: #ff4d5e; }
.reglages-modo { display: flex; gap: 6px; margin-bottom: 8px; }
.reglages-modo select, .reglages-modo input {
  height: 36px; border-radius: 10px; border: 1px solid var(--bord-3); background: var(--fond); color: var(--texte);
  font: inherit; font-size: 14px; padding: 0 10px;
}
.reglages-modo input { flex: 1; min-width: 0; }
.modo-message { margin: 8px 0 0; font-size: 13px; color: var(--texte-3); min-height: 1em; }
dialog.fiche { max-height: calc(100vh - 32px); overflow-y: auto; }

/* cadenas anti-raid */
.bouton-antiraid .ic-ferme { display: none; }
.bouton-antiraid.actif-raid { color: #ff4d5e; box-shadow: 0 0 14px rgba(255,46,85,.45); }
.bouton-antiraid.actif-raid .ic-ferme { display: block; }
.bouton-antiraid.actif-raid .ic-ouvert { display: none; }

/* avis (collage raccourci) */
.avis {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 30; max-width: min(90vw, 520px);
  padding: 12px 16px; border-radius: 14px; background: var(--carte-2); border: 1px solid #7a4a1a; color: var(--texte-avis);
  font-size: 14px; line-height: 1.45; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

/* ===== Vocal (13/11/2026) ===== */
.bouton-vocal .ic-stop { display: none; }
.bouton-vocal.grise { color: #6c6699; }
.bouton-vocal.en-cours { color: #ff4d5e; background: #3a1424; box-shadow: 0 0 14px rgba(255,46,85,.5); }
.bouton-vocal.en-cours .ic-micro { display: none; }
.bouton-vocal.en-cours .ic-stop { display: block; }
.panneau-vocal {
  margin: 0 24px 6px auto; width: min(420px, calc(100% - 48px)); background: var(--carte-2); border: 1px solid var(--bord-3);
  border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 40px rgba(0,0,0,.45); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.vocal-enregistre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.vocal-point { width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; flex-shrink: 0; }
.vocal-enregistre b { color: var(--texte-rouge); font-variant-numeric: tabular-nums; }
.vocal-enregistre .bouton-modo:first-of-type { margin-left: auto; }
.vocal-relecture { display: flex; flex-direction: column; gap: 10px; }
.vocal-relecture audio { width: 100%; height: 36px; }
.vocal-envoyer { height: 40px; padding: 0 16px; font-size: 14px; }
.vocal-envoyer:disabled, .vocal-relecture .bouton-modo:disabled { opacity: .5; cursor: wait; }
.vocal-message { margin: 0; font-size: 13px; color: var(--texte-3); }
.vocal-message:empty { display: none; }
.vocal-message.erreur-vocal { color: var(--texte-alerte); }

.carte-vocal {
  display: inline-flex; align-items: center; gap: 12px; background: var(--carte); border: 1px solid var(--bord);
  border-radius: 99px; padding: 5px 16px 5px 5px; width: 320px; max-width: 100%; white-space: normal;
}
.vocal-jouer {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--texte); color: var(--fond);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.vocal-jouer .ic-pause, .vocal-jouer.lecture .ic-lecture { display: none; }
.vocal-jouer.lecture .ic-pause { display: block; }
.vocal-jouer:disabled { opacity: .4; cursor: not-allowed; }
.vocal-onde { flex-grow: 1; height: 26px; display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.vocal-onde span { width: 3px; flex-shrink: 0; border-radius: 2px; background: #5a5490; }
.vocal-onde span.joue { background: var(--accent); }
.vocal-temps { font-size: 12px; color: var(--discret); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .panneau-vocal { margin: 0 10px 6px; width: auto; }
  .carte-vocal { width: 100%; }
}

/* selecteur d'emojis en overlay (13/11/2026) : il flotte au-dessus des
   messages au lieu de rapetisser le fil */
.saisie { position: relative; }
.selecteur-emojis {
  position: absolute; right: 24px; bottom: calc(100% + 2px); margin: 0; z-index: 6;
  width: min(420px, calc(100% - 48px));
}
@media (max-width: 899px) {
  .selecteur-emojis { left: 10px; right: 10px; width: auto; margin: 0; }
}
/* panneau du vocal en overlay, comme le selecteur d'emojis (13/11/2026) */
.panneau-vocal {
  position: absolute; right: 24px; bottom: calc(100% + 2px); margin: 0; z-index: 7;
  width: min(420px, calc(100% - 48px));
}
@media (max-width: 899px) {
  .panneau-vocal { left: 10px; right: 10px; width: auto; margin: 0; }
}

/* choix des salons sur l'accueil (13/11/2026) */
.choix-salons { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choix-salons legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--texte-2); }
#liste-choix-salons { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-salon {
  flex: 1 1 160px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--bord-3); background: var(--fond); cursor: pointer;
}
.choix-salon:has(input:checked) { border-color: var(--accent); background: var(--accent-sombre); box-shadow: 0 0 14px rgba(var(--accent-rgb),.25); }
.choix-salon input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.choix-salon-texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.choix-salon-texte b { font-size: 15px; }
.choix-salon-texte small { font-size: 12px; color: var(--discret); }

/* ===== Animations (!bisous, 13/11/2026) ===== */
.animations { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.scene { position: absolute; inset: 0; }
.scene-halo {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,61,139,.32), rgba(255,61,139,.08) 45%, transparent 70%);
  animation: ak-halo 3.2s ease-out forwards;
}
.particule {
  position: absolute; bottom: -70px; opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255,61,139,.75));
  animation-name: ak-monte; animation-timing-function: cubic-bezier(.25,.6,.4,1); animation-fill-mode: forwards;
}
.grand-emoji {
  position: absolute; left: 50%; top: 45%; width: 150px; height: 150px; margin: -75px 0 0 -75px; opacity: 0;
  filter: drop-shadow(0 0 22px rgba(255,61,139,.95)) drop-shadow(0 0 50px rgba(255,61,139,.5));
  animation: ak-pop 2.4s cubic-bezier(.2,1.4,.4,1) .15s forwards;
}
@keyframes ak-monte {
  0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: .9; }
  100% { transform: translate(var(--dx), -105vh) rotate(var(--rot)) scale(1.1); opacity: 0; }
}
@keyframes ak-pop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  25% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  40% { transform: scale(.95) rotate(-4deg); }
  55% { transform: scale(1.05) rotate(0); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes ak-halo { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 899px) { .grand-emoji { width: 110px; height: 110px; margin: -55px 0 0 -55px; } }
@media (prefers-reduced-motion: reduce) { .scene { display: none; } }

/* suggestions de pseudos (13/11/2026), en overlay comme les emojis */
.suggestions {
  position: absolute; left: 24px; right: 24px; bottom: calc(100% + 2px); z-index: 8;
  display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 16px;
  background: var(--carte-2); border: 1px solid var(--bord-3); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  scrollbar-width: none;
}
.suggestions::-webkit-scrollbar { display: none; }
.suggestion {
  flex-shrink: 0; height: 40px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid var(--bord-2);
  background: var(--tuile); display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.suggestion:hover, .suggestion:focus-visible { border-color: var(--accent); }
.avatar-26 { width: 26px; height: 26px; font-size: 11px; }
@media (max-width: 899px) { .suggestions { left: 10px; right: 10px; } }

/* !calin (13/11/2026) : eclat depuis le centre, grand 🫂 qui serre, halo orange */
.scene-calin .scene-halo { background: radial-gradient(ellipse at 50% 50%, rgba(var(--accent-rgb),.32), rgba(255,170,60,.1) 45%, transparent 70%); }
.scene-calin .grand-emoji {
  filter: drop-shadow(0 0 22px rgba(255,140,40,.95)) drop-shadow(0 0 50px rgba(255,90,60,.5));
  animation: ak-serre 2.6s ease-in-out .1s forwards;
}
.particule.eclat {
  bottom: auto; top: 48%; left: 50% !important; margin: -20px 0 0 -20px;
  filter: drop-shadow(0 0 10px rgba(255,140,40,.75));
  animation-name: ak-eclat; animation-timing-function: cubic-bezier(.15,.7,.3,1);
}
@keyframes ak-eclat {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: .9; }
  100% { transform: translate(var(--dx2), var(--dy)) scale(1.15) rotate(var(--rot)); opacity: 0; }
}
@keyframes ak-serre {
  0% { transform: scale(0); opacity: 0; }
  20% { transform: scale(1.15, .95); opacity: 1; }
  32% { transform: scale(.88, 1.08); }
  44% { transform: scale(1.1, .94); }
  56% { transform: scale(.96, 1.04); }
  68% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* !danse et !chante (13/11/2026) */
.particule.zigzag { animation-name: ak-zigzag; animation-timing-function: ease-in-out; }
@keyframes ak-zigzag {
  0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translate(var(--dx), -26vh) rotate(var(--rot)) scale(.9); }
  50% { transform: translate(calc(var(--dx) * -1), -52vh) rotate(calc(var(--rot) * -1)) scale(1); }
  75% { transform: translate(var(--dx), -78vh) rotate(var(--rot)) scale(1.05); opacity: .9; }
  100% { transform: translate(0, -105vh) rotate(0) scale(1.1); opacity: 0; }
}
@keyframes ak-teinte { to { filter: hue-rotate(360deg); } }

.scene-danse .scene-halo {
  background: radial-gradient(ellipse at 50% 45%, rgba(170,90,255,.35), rgba(255,61,139,.14) 40%, rgba(80,180,255,.08) 60%, transparent 75%);
  animation: ak-halo 3.2s ease-out forwards, ak-teinte 1s linear infinite;
}
.scene-danse .particule { filter: drop-shadow(0 0 10px rgba(190,120,255,.8)); }
.scene-danse .grand-emoji {
  top: 38%; filter: drop-shadow(0 0 24px rgba(220,200,255,.95)) drop-shadow(0 0 60px rgba(170,90,255,.6));
  animation: ak-boule 2.8s ease-in-out .1s forwards;
}
@keyframes ak-boule {
  0% { transform: translateY(-120px) scale(.4) rotate(0); opacity: 0; }
  18% { transform: translateY(0) scale(1.05) rotate(-14deg); opacity: 1; }
  34% { transform: rotate(14deg) scale(1); }
  50% { transform: rotate(-14deg) scale(1.05); }
  66% { transform: rotate(12deg) scale(1); opacity: 1; }
  100% { transform: rotate(0) scale(1.3); opacity: 0; }
}

.scene-chante .scene-halo { background: radial-gradient(ellipse at 50% 50%, rgba(111,180,255,.32), rgba(111,180,255,.08) 45%, transparent 70%); }
.scene-chante .particule { filter: drop-shadow(0 0 10px rgba(111,180,255,.85)); }
.scene-chante .grand-emoji {
  filter: drop-shadow(0 0 22px rgba(140,200,255,.95)) drop-shadow(0 0 50px rgba(111,180,255,.55));
  animation: ak-chant 2.8s ease-in-out .1s forwards;
}
@keyframes ak-chant {
  0% { transform: scale(0) rotate(-25deg); opacity: 0; }
  15% { transform: scale(1.1) rotate(-12deg); opacity: 1; }
  25% { transform: scale(.95) rotate(-12deg); }
  35% { transform: scale(1.1) rotate(-12deg); }
  45% { transform: scale(.95) rotate(-12deg); }
  55% { transform: scale(1.1) rotate(-12deg); }
  70% { transform: scale(1) rotate(-12deg); opacity: 1; }
  100% { transform: scale(1.3) rotate(0); opacity: 0; }
}
.onde-son {
  position: absolute; left: 50%; top: 45%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  border: 3px solid rgba(111,180,255,.8); box-shadow: 0 0 18px rgba(111,180,255,.6), inset 0 0 18px rgba(111,180,255,.35);
  opacity: 0; animation: ak-onde 1.4s ease-out forwards;
}
@keyframes ak-onde { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 899px) { .onde-son { width: 110px; height: 110px; margin: -55px 0 0 -55px; } }
.scene .particule.note-claire { filter: invert(1) brightness(1.15) drop-shadow(0 0 10px rgba(140,200,255,.95)); }

/* bandeau replie : l'artiste s'affiche apres le titre (demande du 13/11/2026) */
.antenne.replie .antenne-textes { flex-direction: row; align-items: baseline; gap: 0; min-width: 0; overflow: hidden; white-space: nowrap; }
.antenne.replie .antenne-titre { flex: 0 1 auto; min-width: 0; }
.antenne.replie .antenne-artiste { display: block; flex: 0 1 auto; min-width: 0; font-size: 14px; color: var(--texte-3); }
.antenne.replie .antenne-artiste:not(:empty)::before { content: '·'; margin: 0 7px; color: var(--discret); }
/* telephone, bandeau replie : l'artiste passe sur sa propre ligne (13/11/2026) */
@media (max-width: 899px) {
  .antenne.replie .antenne-textes { flex-direction: column; align-items: stretch; gap: 0; }
  .antenne.replie .antenne-titre { font-size: 14px; line-height: 1.25; }
  .antenne.replie .antenne-artiste { font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .antenne.replie .antenne-artiste:not(:empty)::before { content: none; }
  .antenne.replie .antenne-haut { line-height: 1.2; }
}

/* ===== Themes de saison (13/11/2026) : automatiques selon la date ===== */
html[data-saison="noel"] { --accent: #ff3b4e; --accent-rgb: 255,59,78; --accent-sombre: #3a1018; --second-rgb: 47,224,122; --lien: #ff6b7a; --lien-survol: #ff9aa5; }
html[data-saison="halloween"] { --accent: #ff8a00; --accent-rgb: 255,138,0; --accent-sombre: #3a2208; --second-rgb: 168,85,247; --lien: #ffa53d; --lien-survol: #ffc580; --fond: #100a1f; }
html[data-saison="hiver"] { --accent: #6fd3ff; --accent-rgb: 111,211,255; --accent-sombre: #10283a; --second-rgb: 180,160,255; --lien: #8fdcff; --lien-survol: #c4ecff; }
html[data-saison="printemps"] { --accent: #ff70b8; --accent-rgb: 255,112,184; --accent-sombre: #3a1630; --second-rgb: 94,224,138; --lien: #ff8fc8; --lien-survol: #ffbfe0; }
html[data-saison="ete"] { --accent: #ffc21a; --accent-rgb: 255,194,26; --accent-sombre: #3a2e0c; --second-rgb: 255,122,26; --lien: #ffd34d; --lien-survol: #ffe596; }

.decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.decor-p { position: absolute; left: var(--x); top: 0; will-change: transform; animation-timing-function: linear; animation-iteration-count: infinite; }
.decor-chute { animation-name: decor-chute; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
@keyframes decor-chute {
  0% { transform: translate(0, -8vh) rotate(0); }
  50% { transform: translate(var(--dx), 50vh) rotate(180deg); }
  100% { transform: translate(0, 108vh) rotate(360deg); }
}
.decor-vol { left: 0; top: var(--y); animation-name: decor-vol; animation-timing-function: ease-in-out; filter: drop-shadow(0 0 8px rgba(168,85,247,.6)); }
.decor-vol.retour { animation-name: decor-vol-retour; }
@keyframes decor-vol {
  0% { transform: translate(-8vw, 0); } 25% { transform: translate(25vw, -40px); } 50% { transform: translate(50vw, 20px); }
  75% { transform: translate(75vw, -30px); } 100% { transform: translate(108vw, 0); }
}
@keyframes decor-vol-retour {
  0% { transform: translate(108vw, 0) scaleX(-1); } 25% { transform: translate(75vw, 30px) scaleX(-1); } 50% { transform: translate(50vw, -20px) scaleX(-1); }
  75% { transform: translate(25vw, 40px) scaleX(-1); } 100% { transform: translate(-8vw, 0) scaleX(-1); }
}
.decor-flotte { top: auto; bottom: -5vh; animation-name: decor-flotte; animation-timing-function: ease-in-out; filter: drop-shadow(0 0 8px rgba(255,210,63,.8)); }
@keyframes decor-flotte {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; } 20% { opacity: .8; }
  50% { transform: translate(var(--dx), -50vh) scale(1); } 80% { opacity: .5; }
  100% { transform: translate(0, -105vh) scale(.7); opacity: 0; }
}
.guirlande { position: absolute; top: 0; left: 0; right: 0; height: 14px; display: flex; justify-content: space-around; align-items: flex-start; }
.guirlande::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: rgba(60,90,60,.8); }
.guirlande span {
  position: relative; width: 7px; height: 10px; margin-top: 3px; border-radius: 50% 50% 45% 45%; background: var(--c);
  box-shadow: 0 0 8px var(--c), 0 0 14px var(--c); animation: guirlande 1.6s ease-in-out infinite;
}
@keyframes guirlande { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.soleil {
  position: absolute; top: -18vh; right: -12vw; width: 55vh; height: 55vh; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,63,.32), rgba(255,170,40,.12) 40%, transparent 70%);
  animation: soleil 8s ease-in-out infinite;
}
@keyframes soleil { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .decor { display: none; } }

.bouton-decor {
  height: 34px; border-radius: 10px; border: 1px solid var(--bord-2); background: transparent; color: var(--texte-3);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.bouton-decor:hover { border-color: var(--accent); color: var(--texte-fort); }
.bouton-decor[aria-pressed="false"] { opacity: .75; }
html[data-saison="automne"] { --accent: #ff6a2b; --accent-rgb: 255,106,43; --accent-sombre: #3a1a0c; --second-rgb: 255,190,60; --lien: #ff8a55; --lien-survol: #ffb08e; }
.decor-automne .decor-chute { animation-timing-function: ease-in-out; filter: drop-shadow(0 0 6px rgba(255,140,60,.45)); }
/* telephone : decoration fixe, aucune animation (batterie) */
.decor-statique .decor-fixe { animation: none; transform: rotate(var(--rot)); }
.decor-statique .guirlande span { animation: none; }
.decor-statique .soleil { animation: none; }
/* raccourci decorations dans la barre de gauche (13/11/2026) */
.rail-decor { position: relative; color: var(--accent); }
.rail-decor[aria-pressed="false"] { color: var(--discret); }
.rail-barre { display: none; position: absolute; width: 28px; height: 2px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; }
.rail-decor[aria-pressed="false"] .rail-barre { display: block; }

/* anti-zoom iOS (13/11/2026) : Safari zoome sur tout champ en dessous de 16px,
   et le double-tap zoome la page ; on l'evite partout */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: manipulation; }
@media (max-width: 899px) {
  input, select, textarea { font-size: 16px !important; }
}

/* PC, bandeau reduit : l'artiste d'abord, puis le titre (13/11/2026) */
@media (min-width: 900px) {
  .antenne.replie .antenne-artiste { order: -1; font-size: 15px; font-weight: 700; color: var(--texte); }
  .antenne.replie .antenne-artiste:not(:empty)::before { content: none; }
  .antenne.replie .antenne-artiste:not(:empty)::after { content: '·'; margin: 0 7px; color: var(--discret); font-weight: 400; }
  .antenne.replie .antenne-titre { font-family: var(--corps); font-weight: 500; font-size: 14px; color: var(--texte-2); }
}

/* saisie sur plusieurs lignes (13/11/2026) */
.saisie-boite { align-items: flex-end; }
textarea#champ-message {
  display: block; resize: none; height: 44px; min-height: 44px; max-height: 132px; padding: 11px 0;
  line-height: 22px; overflow-y: hidden; white-space: pre-wrap; overflow-wrap: anywhere;
}
/* lignes envoyees a la suite : meme espacement que dans un paragraphe */
.msg:has(+ .msg.suite) { padding-bottom: 1px; }


/* ===== Themes au choix de chacun (13/11/2026) ===== *
 * html[data-theme] change le fond, les surfaces et le texte. L'accent propre
 * au theme ne s'applique QUE hors saison (:not([data-saison])) : en decembre,
 * Noel garde la main sur la couleur d'accent quel que soit le theme. */
html[data-theme="minuit"] {
  --fond: #000; --rail: #000; --colonne: #08080c; --carte: #101016; --carte-2: #14141c; --bord: #23232e; --bord-2: #2c2c3a;
  --tuile: #1a1a24; --actif: #20202e; --survol: #15151e; --texte: #f5f5fa; --texte-2: #d9d9e3; --texte-3: #c4c4d0;
  --discret: #a3a3b5; --discret-2: #8f8fa3; --bord-3: #2e2e3c; --ligne: #1c1c26; --bord-carte: #262634;
  --survol-msg: #0e0e14; --carte-connexion: #0b0b10;
  --pseudo-h-fond: #0f2347; --pseudo-f-fond: #3d0f30; --pseudo-g-fond: #22222e; --pseudo-robot-fond: #0f2347;
}
html[data-theme="ocean"] {
  --fond: #031521; --rail: #020f18; --colonne: #06202f; --carte: #0a2a3d; --carte-2: #0c3047; --bord: #164660; --bord-2: #1b5373;
  --tuile: #0f3a52; --actif: #124a68; --survol: #0d3349; --texte: #eefaff; --texte-2: #cdeaf5; --texte-3: #a9d3e3;
  --discret: #86b6c9; --discret-2: #6d9db1; --bord-3: #1d5a7a; --ligne: #0f3a52; --bord-carte: #164660;
  --survol-msg: #072536; --carte-connexion: #082a3c;
  --pseudo-h-fond: #0f3a63; --pseudo-f-fond: #4a1a44; --pseudo-g-fond: #18465e; --pseudo-robot-fond: #0f3a63;
}
html[data-theme="ocean"]:not([data-saison]) { --accent: #22d3ee; --accent-rgb: 34,211,238; --accent-sombre: #0b3a48; --second-rgb: 56,120,255; --lien: #5fe0f4; --lien-survol: #a5f0fb; }
html[data-theme="aurore"] {
  --fond: #14081f; --rail: #0e0516; --colonne: #1c0b2b; --carte: #261038; --carte-2: #2c1340; --bord: #3f1c57; --bord-2: #4c2268;
  --tuile: #34174b; --actif: #45205f; --survol: #2f1544; --texte: #fbf2ff; --texte-2: #e8d6f2; --texte-3: #d3bce2;
  --discret: #b597c9; --discret-2: #9f80b5; --bord-3: #522570; --ligne: #34174b; --bord-carte: #3f1c57;
  --survol-msg: #1d0b2c; --carte-connexion: #220d33;
  --pseudo-h-fond: #26306b; --pseudo-f-fond: #5c1a4c; --pseudo-g-fond: #3a2450; --pseudo-robot-fond: #26306b;
}
html[data-theme="aurore"]:not([data-saison]) { --accent: #ff4fa3; --accent-rgb: 255,79,163; --accent-sombre: #45122f; --second-rgb: 160,90,255; --lien: #ff7cbb; --lien-survol: #ffb3d8; }
html[data-theme="clair"] {
  color-scheme: light;
  --fond: #f6f4ff; --rail: #e9e4fd; --colonne: #efebff; --carte: #ffffff; --carte-2: #ffffff; --bord: #ddd6fb; --bord-2: #cfc7f5;
  --tuile: #e9e4ff; --actif: #ddd5fd; --survol: #ebe6ff; --texte: #1d1838; --texte-2: #2f2a4d; --texte-3: #4b4569;
  --discret: #625c86; --discret-2: #736d98; --bord-3: #cfc7f5; --ligne: #e3ddfb; --bord-carte: #ddd6fb;
  --survol-msg: #f0ecff; --carte-connexion: #ffffff; --texte-fort: #1d1838; --sur-accent: #1d1838;
  --pseudo-h: #1f6fd1; --pseudo-f: #cc2f7b; --pseudo-g: #5d577f; --pseudo-robot: #1f6fd1;
  --pseudo-h-fond: #dbe8ff; --pseudo-f-fond: #ffe0ef; --pseudo-g-fond: #e7e3f7; --pseudo-robot-fond: #dbe8ff;
  --texte-alerte: #c2183f; --texte-avertir: #9a5a00; --texte-avis: #6b3a10; --texte-rouge: #c2183f;
  --ombre: rgba(40,20,90,.18);
}
html[data-theme="clair"]:not([data-saison]) { --accent: #ff6a00; --accent-rgb: 255,106,0; --accent-sombre: #ffe7d4; }
/* sur fond clair, liens et accents en texte : version foncee de l'accent */
html[data-theme="clair"] { --lien: color-mix(in srgb, var(--accent) 62%, #000); --lien-survol: color-mix(in srgb, var(--accent) 80%, #000); --accent-sombre: color-mix(in srgb, var(--accent) 16%, #fff); }
html[data-theme="clair"] .accent, html[data-theme="clair"] .entete-nom .accent { color: color-mix(in srgb, var(--accent) 75%, #000); }
html[data-theme="clair"] .ak-neon-txt { text-shadow: 0 0 12px rgba(var(--accent-rgb),.35); }
html[data-theme="clair"] .msg.mention { background: color-mix(in srgb, var(--accent) 14%, #fff); }
html[data-theme="clair"] .bandeau-etat, html[data-theme="clair"] .avis { border-color: color-mix(in srgb, var(--accent) 45%, #fff); }
html[data-theme="clair"] .colonne-membres, html[data-theme="clair"] .colonne-salons { box-shadow: none; }
html[data-theme="clair"] .decor-chute { filter: drop-shadow(0 0 2px rgba(0,0,0,.25)); }
html[data-theme="clair"] .accueil-onde span[style*="2e2862"], html[data-theme="clair"] .accueil-onde span[style*="3a3378"] { background: #d9d1fb !important; }

/* selecteur de theme (carte du bas) */
.choix-theme { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choix-theme > span { font-size: 12px; color: var(--discret); margin-right: 2px; }
.pastille-theme {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bord-2); cursor: pointer; padding: 0;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
}
.pastille-theme[aria-pressed="true"] { border-color: var(--texte); box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px var(--accent); }
