/* Rose Live — charte reprise de Rose Vidéo (bleu nuit, or, crème) */
:root {
  --navy: #1a365d; --navy-2: #24477a; --gold: #d4a853; --cream: #faf9f6; --ink: #34322d;
  --muted: #7a7468; --line: #e8e2d6; --white: #fff;
  --a: #1a365d; --b: #c98a1b; --c: #d9604c; --d: #2b7a9b; --ok: #2f8a57;
  --rayon: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif; background: var(--cream); color: var(--ink);
  -webkit-tap-highlight-color: transparent; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; color: var(--navy); font-weight: 700; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; }
input, select, textarea { font: inherit; color: var(--ink); }
input::placeholder, textarea::placeholder { color: rgba(122, 116, 104, .5); }
.cache { display: none !important; }
.bouton { background: var(--navy); color: var(--white); padding: 11px 18px; font-weight: 600; }
.bouton:hover { background: var(--navy-2); }
.bouton.or { background: var(--gold); color: var(--navy); }
.bouton.clair { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.bouton.danger { background: var(--white); color: #b23b2a; border: 1px solid #ecc9c2; }
.bouton:disabled { opacity: .45; cursor: default; }
.champ { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.champ:focus { outline: 2px solid var(--gold); border-color: transparent; }
.carte { background: var(--white); border: 1px solid var(--line); border-radius: var(--rayon); padding: 16px; }
.discret { color: var(--muted); font-size: 14px; }
.marque { display: flex; align-items: center; gap: 8px; font-family: "Playfair Display", Georgia, serif;
  color: var(--navy); font-weight: 700; font-size: 18px; }
.marque i { width: 10px; height: 10px; border-radius: 50%; background: #d9604c; box-shadow: 0 0 0 4px rgba(217,96,76,.18); }

/* scène de réunion : fond sombre, tuiles arrondies, prénom en bas à gauche, contour or quand on parle */
.scene { position: relative; background: #0d1a2d; border-radius: var(--rayon); overflow: hidden; padding: 8px;
  display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.scene .vide { flex: 1; display: grid; place-items: center; color: #c9d3e0; text-align: center; padding: 20px; font-size: 15px; }
.mosaique { flex: 1; display: grid; gap: 8px; grid-template-columns: repeat(var(--colonnes, 1), minmax(0, 1fr)); align-content: center; }
.tuile { position: relative; background: #1c2e4a; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9;
  display: grid; place-items: center; outline: 3px solid transparent; transition: outline-color .15s; }
.tuile.parle { outline-color: var(--gold); }
.tuile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tuile video.miroir { transform: scaleX(-1); }
.avatar { width: 30%; max-width: 96px; aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: clamp(14px, 3vw, 30px); }
.etiquette { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 16px);
  background: rgba(13, 26, 45, .72); color: #fff; font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.etiquette span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etiquette .ico svg { width: 15px; height: 15px; color: #ff9a8a; display: block; }
.scene.avec-partage .partage { position: relative; flex: 1; min-height: 0; background: #000; border-radius: 12px; overflow: hidden; }
.scene.avec-partage .partage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.scene.avec-partage .mosaique { flex: none; grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); justify-content: center; }
/* barre de boutons ronds sous la scène */
.barre { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.rond { width: 48px; height: 48px; border-radius: 50%; background: #24395a; color: #fff; display: grid; place-items: center; padding: 0; }
.rond:hover { background: #2e4870; }
.rond.eteint { background: #3a3f4a; color: #ffb4a8; }
.rond.actif { background: var(--gold); color: var(--navy); }
.rond.enreg { color: #ff6b57; } .rond.enreg.actif { background: #d9604c; color: #fff; animation: pulse 1.6s infinite; }
.rond.rouge { background: #c4402f; } .rond.rouge:hover { background: #a83324; }
.rond .ico svg { display: block; }
.rond { position: relative; }
.rond .pastille { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #d9604c;
  box-shadow: 0 0 0 2px #24395a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(217, 96, 76, .25); } }

/* quiz : boutons de réponse */
/* réponses : lignes fines et claires, une couleur par lettre ; touchée = remplie de sa couleur */
.choix { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choix button { --c: var(--a); min-height: 50px; padding: 8px 12px; background: var(--white); color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); font-weight: 600; font-size: 15px; text-align: left;
  display: flex; gap: 12px; align-items: center; border-radius: 12px; transition: transform .08s, background .15s, opacity .2s; }
.choix button:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 8%, var(--white)); }
.choix button:active { transform: scale(.98); }
.choix button b { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--c); color: var(--white);
  display: grid; place-items: center; font-size: 14px; }
.choix button:nth-child(1) { --c: var(--a); } .choix button:nth-child(2) { --c: var(--b); }
.choix button:nth-child(3) { --c: var(--c-corail, #d9604c); } .choix button:nth-child(4) { --c: var(--d); }
.choix button:disabled { cursor: default; }
.choix button.terne { opacity: .4; }
.choix button.choisi { background: var(--c); color: var(--white); border-color: var(--c); }
.choix button.choisi b { background: rgba(255,255,255,.25); }
.choix button.bonne { opacity: 1; border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.choix button .compte { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.choix button.choisi .compte { color: var(--white); }
@media (min-width: 700px) { .choix { grid-template-columns: 1fr 1fr; } }
.minuteur { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.minuteur i { display: block; height: 100%; background: var(--gold); width: 100%; transition: width .25s linear; }
.question-texte { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.verdict { font-weight: 700; font-size: 17px; }
.rebours { font-size: 22px; font-weight: 800; color: var(--navy); text-align: center; padding: 6px 0; }
.classement { max-height: 46vh; overflow-y: auto; }
.fil a { color: var(--navy); text-decoration: underline; word-break: break-all; }
.verdict.ok { color: var(--ok); } .verdict.non { color: #b23b2a; }

/* classement */
.classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.classement li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--cream); }
.classement li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line);
  color: var(--navy); font-size: 13px; flex: none; }
.classement li:nth-child(1) b { background: var(--gold); }
.classement li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classement li em { font-style: normal; font-weight: 700; color: var(--navy); }
.classement li.moi { outline: 2px solid var(--gold); outline-offset: -2px; }

/* discussion */
.fil { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.fil p { margin: 0; font-size: 15px; line-height: 1.35; }
.fil p b { color: var(--navy); margin-right: 6px; }
.saisie { display: flex; gap: 8px; align-items: center; }
.saisie input { flex: 1; padding: 9px 14px; border-radius: 999px; }
/* le bouton d'envoi n'apparaît que lorsqu'un message est écrit : on ne croit pas devoir « envoyer » sa réponse au quiz */
.saisie .envoyer { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-size: 18px; font-weight: 700; display: grid; place-items: center; padding: 0; }
.saisie.vide .envoyer { display: none; }

/* menu « Arrière-plan » au-dessus de la barre */
.barre { position: relative; }
.menu-fond { position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); z-index: 6; display: grid; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.menu-fond button { background: none; color: var(--ink); padding: 8px 16px; text-align: left; border-radius: 8px; white-space: nowrap; }
.menu-fond button:hover { background: var(--cream); }
.menu-fond button.choisi { background: var(--navy); color: var(--white); }
