/* votez.app · style.css · v3.0 · graphite */
:root {
  --accent: #1B7DAE;         /* remplacé par la couleur du client */
  --accent-texte: #FFFFFF;
  --encre: #23262E;
  --encre-2: #1B1D24;
  --papier: #FFFFFF;
  --papier-2: #F4F5F7;
  --texte: #1F2229;
  --gris: #6B7280;
  --gris-2: #9AA0AB;
  --ligne: #E3E6EB;
  --ligne-2: #C9CED6;
  --juste: #1F9D6A;
  --tete: #F08A24;           /* réponse en tête, scène et vMix uniquement */
  --rayon: 10px;
  --display: "Gabarito", "Segoe UI", system-ui, sans-serif;
  --corps: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
html.votez, .votez *, .votez-surcouche, .votez-surcouche * { box-sizing: border-box; }
html.votez, body.votez { margin: 0; }
body.votez { font-family: var(--corps); color: var(--texte); background: var(--papier-2); line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.votez h1, body.votez h2, body.votez h3, .votez-surcouche h1, .votez-surcouche h2 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
body.votez p, .votez-surcouche p { margin: 0; }
body.votez button, .votez-surcouche button { font: inherit; cursor: pointer; }
body.votez :focus-visible, .votez-surcouche :focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
body.votez [hidden] { display: none !important; }
body.votez a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .votez *, .votez *::before, .votez *::after, .votez-surcouche * { transition: none !important; animation: none !important; } }

/* Marque */
.marque { display: inline-flex; align-items: center; }
.marque img { height: 26px; width: auto; display: block; }
.marque.grande img { height: 40px; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: var(--rayon); border: 1.5px solid transparent; font-weight: 600; background: var(--encre); color: #fff; transition: transform .12s ease, opacity .15s ease; white-space: nowrap; }
.bouton:active { transform: scale(.98); }
.bouton.accent { background: var(--accent); color: var(--accent-texte); }
.bouton.second { background: var(--papier); color: var(--texte); border-color: var(--ligne-2); }
.bouton.second.actif { border-color: var(--encre); background: var(--papier-2); }
.bouton.danger { background: var(--papier); color: #B42318; border-color: #F2C4BF; }
.bouton.petit { padding: .42rem .75rem; font-size: .88rem; border-radius: 8px; }
.bouton.icone { padding: .42rem .55rem; }
.bouton:disabled { opacity: .4; cursor: not-allowed; }
.bouton.large { width: 100%; padding: .85rem 1rem; font-size: 1.02rem; }

/* Champs */
.champ { display: grid; gap: .3rem; font-size: .85rem; color: var(--gris); align-content: start; }
.champ > input, .champ > select, .champ > textarea, .champ > div { align-self: start; }
.champ > span { font-weight: 500; }
.champ input, .champ select, .champ textarea { font: inherit; color: var(--texte); padding: .6rem .8rem; border-radius: 8px; border: 1.5px solid var(--ligne-2); width: 100%; background: var(--papier); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--encre); outline: none; }
.champ.ligne { grid-template-columns: auto 1fr; align-items: center; gap: .6rem; }
.champ small { color: var(--gris-2); }
.bascule { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border-radius: 8px; border: 1.5px solid var(--ligne); font-size: .92rem; }
.bascule input { width: 40px; height: 22px; appearance: none; background: var(--ligne-2); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.bascule input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.bascule input:checked { background: var(--encre); }
.bascule input:checked::after { left: 21px; }
.bascule.actif { border-color: var(--encre); }

/* Pastille lettre, étiquettes */
.pastille { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 6px; border: 1.5px solid var(--ligne-2); color: var(--gris); font-family: var(--display); font-weight: 600; font-size: .9rem; flex: none; }
.pastille.plein { background: var(--encre); border-color: var(--encre); color: #fff; }
.etiquette { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); }
.etiquette.type { padding: .15rem .5rem; border-radius: 999px; background: var(--papier-2); border: 1px solid var(--ligne); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Chrono */
.chrono { display: inline-flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; color: var(--gris); font-weight: 500; }
.chrono.urgent { color: #B42318; }
.chrono svg { width: 1.3em; height: 1.3em; }
.chrono circle { fill: none; stroke-width: 3; }
.chrono .fond { stroke: var(--ligne); }
.chrono .reste { stroke: currentColor; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .5s linear; }

/* Barres de résultat */
.resultats { display: grid; gap: .55rem; }
.ligne-resultat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; }
.ligne-resultat .libelle { font-weight: 500; }
.ligne-resultat .libelle small { color: var(--gris); font-weight: 400; }
.ligne-resultat .pct { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; }
.ligne-resultat .barre { grid-column: 2 / 4; height: 10px; border-radius: 3px; background: var(--papier-2); overflow: hidden; }
.ligne-resultat .barre i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--encre); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ligne-resultat.juste .barre i { background: var(--juste); }
.ligne-resultat.juste .pct { color: var(--juste); }
.ligne-resultat.juste .pastille { background: var(--juste); border-color: var(--juste); color: #fff; }
.ligne-resultat.perdu { opacity: .5; }
.total { font-size: .85rem; color: var(--gris); }

/* Nuage de mots */
.nuage { display: flex; flex-wrap: wrap; gap: .3em .7em; align-items: baseline; justify-content: center; line-height: 1.1; }
.nuage span { font-family: var(--display); font-weight: 600; color: var(--encre); }
.nuage span.n1 { font-size: 1em; opacity: .7; } .nuage span.n2 { font-size: 1.3em; opacity: .8; } .nuage span.n3 { font-size: 1.7em; } .nuage span.n4 { font-size: 2.2em; } .nuage span.n5 { font-size: 2.8em; }

/* Notation */
.notation { display: grid; gap: .5rem; }
.notation .moyenne { font-family: var(--display); font-size: 3em; font-weight: 600; line-height: 1; }
.notation .moyenne small { font-size: .35em; color: var(--gris); font-weight: 500; }
.notation .distribution { display: flex; gap: .3rem; align-items: flex-end; height: 3.5em; }
.notation .distribution div { flex: 1; background: var(--encre); border-radius: 3px 3px 0 0; min-height: 3px; transition: height .5s; }
.notation .graduations { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gris); }

/* Textes libres */
.textes { display: grid; gap: .5rem; }
.textes .texte { padding: .7rem .9rem; border-radius: 8px; background: var(--papier); border: 1px solid var(--ligne); }
.textes .texte .auteur { font-size: .78rem; color: var(--gris); margin-top: .2rem; }

/* Podium */
.podium { display: grid; gap: .5rem; }
.podium .rang { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .7rem; padding: .55rem .8rem; border-radius: 8px; background: var(--papier); border: 1px solid var(--ligne); }
.podium .rang:nth-child(1) { border-color: var(--encre); }
.podium .rang .num { font-family: var(--display); font-weight: 600; color: var(--gris); }
.podium .rang .score { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Portillon ---------- */
.portillon { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; }
.portillon form { background: var(--papier); padding: 2rem; border-radius: 16px; width: min(400px, 100%); display: grid; gap: 1rem; border: 1px solid var(--ligne); }
.portillon .erreur { color: #B42318; font-size: .9rem; }
.portillon h1 { font-size: 1.25rem; }

/* ---------- Backoffice (admin et espace) ---------- */
.back { min-height: 100dvh; display: flex; flex-direction: column; }
.back > header { background: var(--papier); border-bottom: 1px solid var(--ligne); padding: .7rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.back > header .titre { display: flex; align-items: center; gap: .9rem; }
.back > header .titre .sep { color: var(--ligne-2); }
.back > header nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.back main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.2rem; display: grid; gap: 1.2rem; align-content: start; }
.back main.deux { grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.5fr); }
@media (max-width: 860px) { .back main.deux { grid-template-columns: 1fr; } }
.panneau { background: var(--papier); border-radius: 14px; border: 1px solid var(--ligne); padding: 1.1rem 1.2rem; display: grid; gap: .9rem; align-content: start; }
.panneau h2 { font-size: 1.05rem; }
.panneau .entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panneau .sous { font-size: .85rem; color: var(--gris); }
.liste { display: grid; gap: .5rem; }
.liste .item { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--ligne); background: var(--papier); }
.liste .item.courant { border-color: var(--encre); }
.liste .item.glisse { opacity: .4; }
.liste .item .meta { font-size: .78rem; color: var(--gris); }
.liste .item .nom { font-weight: 500; }
.liste .item .actions { display: flex; gap: .3rem; align-items: center; }
.liste .item .poignee { cursor: grab; color: var(--gris-2); padding: 0 .3rem; font-size: 1.1rem; user-select: none; }
.grille-boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.grille-champs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choix-edition { display: grid; gap: .4rem; }
.choix-edition > div { display: flex; gap: .5rem; align-items: center; }
.choix-edition input[type=text] { flex: 1; font: inherit; padding: .5rem .7rem; border-radius: 8px; border: 1.5px solid var(--ligne-2); }
.choix-edition input[type=radio] { width: 18px; height: 18px; margin: 0; }
.qr { display: grid; gap: .6rem; justify-items: center; }
.qr svg { width: 170px; height: 170px; }
.qr .adresse { font-size: .8rem; color: var(--gris); word-break: break-all; text-align: center; }
.apercu-fond { height: 90px; border-radius: 8px; background: var(--papier-2) center/cover; border: 1px solid var(--ligne); display: grid; place-items: center; color: var(--gris-2); font-size: .85rem; }
.pastille-couleur { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ligne-2); }
.statut { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.statut::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gris-2); }
.statut.ouvert::before { background: var(--juste); box-shadow: 0 0 0 4px rgba(31,157,106,.2); }
.statut.ferme::before { background: #B42318; }
.stat { display: grid; gap: .1rem; }
.stat b { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.stat span { font-size: .78rem; color: var(--gris); }
.pied { font-size: .8rem; color: var(--gris); text-align: center; padding: 1.2rem; }
.vide { color: var(--gris); font-size: .9rem; padding: .6rem 0; }
.message { padding: .7rem .9rem; border-radius: 8px; background: var(--papier-2); font-size: .9rem; border: 1px solid var(--ligne); }
.message.ok { border-color: var(--juste); }

/* ---------- Participant ---------- */
body.participant { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: 1rem 1.1rem 0; background: var(--papier); }
body.participant.avec-fond { background: var(--papier-2) center/cover fixed; }
.participant header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0 1rem; }
.participant header .evenement { font-size: .82rem; color: var(--gris); text-align: right; line-height: 1.3; }
.participant header .logo-client { height: 30px; width: auto; }
.participant main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding-bottom: 2rem; }
.participant .carte { background: var(--papier); border-radius: 14px; padding: 1.1rem; border: 1px solid var(--ligne); display: grid; gap: 1rem; }
.participant .attente { text-align: center; padding: 2rem 0; }
.participant .anneau { width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; border: 4px solid var(--ligne); border-top-color: var(--encre); animation: tourner 1.1s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
.participant .question { font-size: clamp(1.3rem, 5.2vw, 1.7rem); }
.participant .entete-page { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--gris); }
.choix { display: grid; gap: .6rem; }
.choix button { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .9rem 1rem; border-radius: var(--rayon); border: 1.5px solid var(--ligne-2); background: var(--papier); font-size: 1.02rem; font-weight: 500; color: var(--texte); transition: border-color .15s, background .15s, transform .1s; }
.choix button:active { transform: scale(.985); }
.choix button.choisi { border-color: var(--accent); background: var(--papier-2); }
.choix button.choisi .pastille { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.confirmation { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: var(--rayon); background: var(--papier); border: 1.5px solid var(--ligne-2); font-weight: 500; }
.confirmation .coche { width: 28px; height: 28px; border-radius: 50%; background: var(--juste); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.confirmation.faux .coche { background: #B42318; }
.confirmation.neutre .coche { background: var(--gris-2); }
.notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.notes.dix { grid-template-columns: repeat(5, 1fr); }
.notes button { padding: .9rem 0; border-radius: var(--rayon); border: 1.5px solid var(--ligne-2); background: var(--papier); font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--texte); }
.notes button.choisi { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.saisie { display: grid; gap: .6rem; }
.saisie input, .saisie textarea { font: inherit; padding: .8rem .9rem; border-radius: var(--rayon); border: 1.5px solid var(--ligne-2); width: 100%; }
.mots-saisis { display: flex; flex-wrap: wrap; gap: .4rem; }
.mots-saisis span { padding: .3rem .7rem; border-radius: 999px; background: var(--papier-2); border: 1px solid var(--ligne); font-size: .92rem; display: inline-flex; gap: .4rem; align-items: center; }
.mots-saisis span b { cursor: pointer; color: var(--gris); font-weight: 400; }
.participant .score-perso { text-align: center; display: grid; gap: .3rem; }
.participant .score-perso b { font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.participant .pied { padding: 1rem; }
.participant .pied img { height: 16px; vertical-align: middle; opacity: .7; }

/* ---------- Console de lancement ---------- */
.console { min-height: 100dvh; display: flex; flex-direction: column; background: var(--papier-2); }
.console > header { background: var(--encre); color: #fff; padding: .6rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.console > header .evt { font-size: .9rem; opacity: .85; }
.console > header nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.console > header nav a, .console > header nav button { color: #fff; background: transparent; text-decoration: none; font-size: .85rem; padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; }
.console main { flex: 1; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.4fr); gap: 1rem; padding: 1rem; max-width: 1280px; width: 100%; margin: 0 auto; align-content: start; }
@media (max-width: 860px) { .console main { grid-template-columns: 1fr; } }
.console .pilotage { display: grid; gap: .8rem; }
.console .pilotage .etat-ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.console .question-courante { font-size: 1.15rem; font-family: var(--display); font-weight: 600; }
.console .gros-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.console .gros-boutons .bouton { padding: .9rem; font-size: 1rem; }
.console .stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.console .raccourcis { font-size: .78rem; color: var(--gris); }
.console .raccourcis kbd { font: inherit; padding: .05rem .35rem; border: 1px solid var(--ligne-2); border-radius: 4px; background: var(--papier); }
.console .moderation .texte { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.console .moderation .texte.valide { border-color: var(--juste); }
.console .apercu { border-radius: 10px; background: var(--encre-2); color: #fff; padding: 1rem; display: grid; gap: .7rem; min-height: 120px; }
.console .apercu .resultats .barre { background: rgba(255,255,255,.12); }
.console .apercu .resultats .barre i { background: #fff; }
.console .apercu .ligne-resultat.tete .barre i { background: var(--tete); }
.console .apercu .pastille { border-color: rgba(255,255,255,.35); color: #fff; }
.console .apercu .nuage span, .console .apercu .notation .distribution div { color: #fff; background: #fff; }
.console .apercu .nuage span { background: none; }
.console .apercu .textes .texte, .console .apercu .podium .rang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }

/* ---------- Scène ---------- */
body.scene { background: var(--encre-2); color: #fff; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1.2rem, 5vw, 5rem); position: relative; }
body.scene.avec-fond::before { content: ""; position: absolute; inset: 0; background: var(--fond) center/cover; opacity: .35; z-index: 0; }
.scene > * { position: relative; z-index: 1; }
.scene header { display: flex; justify-content: space-between; align-items: center; font-size: clamp(.9rem, 1.6vw, 1.2rem); opacity: .85; }
.scene header .logo-client { height: clamp(28px, 4vw, 56px); width: auto; }
.scene main { display: grid; align-content: center; gap: clamp(1.2rem, 3vw, 2.5rem); }
.scene .question { font-size: clamp(1.6rem, 4.2vw, 3.6rem); max-width: 24ch; }
.scene .annonce { font-size: clamp(1.8rem, 5vw, 4.4rem); max-width: 22ch; }
.scene .resultats { gap: clamp(.8rem, 1.6vw, 1.4rem); font-size: clamp(1rem, 2.2vw, 1.8rem); }
.scene .pastille { width: 1.7em; height: 1.7em; font-size: 1em; border-color: rgba(255,255,255,.35); color: #fff; }
.scene .ligne-resultat .barre { height: .5em; background: rgba(255,255,255,.12); }
.scene .ligne-resultat .barre i { background: #DCE1EA; }
.scene .ligne-resultat.tete .barre i { background: var(--tete); }
.scene .ligne-resultat.tete .pct { color: var(--tete); }
.scene .ligne-resultat.juste .barre i, .scene .ligne-resultat.juste .pastille { background: var(--juste); }
.scene .ligne-resultat.juste .pct { color: var(--juste); }
.scene .nuage { font-size: clamp(1rem, 2.4vw, 2rem); }
.scene .nuage span { color: #fff; }
.scene .notation { font-size: clamp(1rem, 2.2vw, 1.8rem); }
.scene .notation .distribution div { background: #DCE1EA; }
.scene .textes { font-size: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.scene .textes .texte, .scene .podium .rang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.scene .podium { font-size: clamp(1rem, 2.2vw, 1.8rem); }
.scene .podium .rang:nth-child(1) { border-color: var(--tete); }
.scene .accueil { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.scene .accueil h1 { font-size: clamp(1.8rem, 4.5vw, 4rem); max-width: 18ch; }
.scene .accueil p { font-size: clamp(1rem, 2vw, 1.5rem); opacity: .8; margin-top: .8rem; }
.scene .qr-scene { background: #fff; padding: clamp(.8rem, 1.5vw, 1.4rem); border-radius: 14px; }
.scene .qr-scene svg { width: clamp(160px, 22vw, 340px); height: auto; display: block; }
.scene .qr-scene .adresse { color: var(--texte); font-family: var(--display); font-weight: 600; text-align: center; margin-top: .6rem; font-size: clamp(.9rem, 1.4vw, 1.3rem); }
@media (max-width: 700px) { .scene .accueil { grid-template-columns: 1fr; } }
.scene footer { display: flex; justify-content: space-between; align-items: center; font-size: clamp(.9rem, 1.6vw, 1.3rem); opacity: .85; }
.scene footer img { height: clamp(18px, 2vw, 30px); opacity: .6; }
.scene .total b { font-family: var(--display); font-size: 1.3em; }
.scene .chrono { color: #fff; font-size: 1.2em; }
.scene .chrono.urgent { color: var(--tete); }
.scene .chrono .fond { stroke: rgba(255,255,255,.2); }

/* ---------- vMix (1920 × 1080, bandeau à gauche) ---------- */
body.vmix { width: 1920px; height: 1080px; overflow: hidden; position: relative; background: transparent; color: #fff; }
.vmix .bandeau { position: absolute; left: 80px; bottom: 80px; width: 1120px; background: rgba(27,29,36,.94); border-radius: 22px; padding: 40px 48px; display: grid; gap: 26px; transform: translateY(140%); opacity: 0; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.vmix .bandeau.visible { transform: translateY(0); opacity: 1; }
.vmix .entete { display: flex; justify-content: space-between; align-items: center; font-size: 24px; color: #B7BCC7; }
.vmix .question { font-size: 46px; max-width: 24ch; }
.vmix .annonce { font-size: 54px; }
.vmix .resultats { gap: 16px; font-size: 28px; }
.vmix .pastille { width: 48px; height: 48px; font-size: 24px; border-color: rgba(255,255,255,.35); color: #fff; }
.vmix .ligne-resultat .barre { height: 16px; background: rgba(255,255,255,.12); }
.vmix .ligne-resultat .barre i { background: #DCE1EA; }
.vmix .ligne-resultat.tete .barre i { background: var(--tete); }
.vmix .ligne-resultat.tete .pct { color: var(--tete); }
.vmix .ligne-resultat.juste .barre i, .vmix .ligne-resultat.juste .pastille { background: var(--juste); }
.vmix .ligne-resultat.juste .pct { color: var(--juste); }
.vmix .nuage { font-size: 30px; justify-content: flex-start; }
.vmix .nuage span { color: #fff; }
.vmix .notation { font-size: 28px; }
.vmix .notation .distribution div { background: #DCE1EA; }
.vmix .textes { font-size: 26px; grid-template-columns: 1fr 1fr; }
.vmix .textes .texte, .vmix .podium .rang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.vmix .podium { font-size: 28px; }
.vmix .podium .rang:nth-child(1) { border-color: var(--tete); }
.vmix .chrono { color: #fff; font-size: 30px; }
.vmix .chrono .fond { stroke: rgba(255,255,255,.2); }
.vmix .qr-vmix { display: flex; align-items: center; gap: 30px; }
.vmix .qr-vmix svg { width: 220px; height: 220px; background: #fff; padding: 12px; border-radius: 12px; }
.vmix .qr-vmix .adresse { font-family: var(--display); font-size: 40px; font-weight: 600; }
.vmix .damier { position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><rect width='40' height='40' fill='%23444'/><rect x='40' y='40' width='40' height='40' fill='%23444'/><rect x='40' width='40' height='40' fill='%23555'/><rect y='40' width='40' height='40' fill='%23555'/></svg>"); }

/* ---------- Surcouche lecteur (vote seulement, à droite) ---------- */
.votez-surcouche { position: absolute; right: 16px; bottom: 16px; width: min(340px, calc(100% - 32px)); background: #fff; color: #1F2229; border-radius: 14px; padding: .95rem 1rem; box-shadow: 0 16px 40px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; font-family: var(--corps); line-height: 1.4; -webkit-font-smoothing: antialiased; z-index: 20; }
.votez-surcouche.visible { transform: none; opacity: 1; pointer-events: auto; }
.votez-surcouche.reduite { width: auto; padding: .5rem .8rem; font-size: .85rem; }
.votez-surcouche .question { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: .6rem; line-height: 1.25; }
.votez-surcouche .entete-page { display: flex; justify-content: space-between; font-size: .75rem; color: #6B7280; margin-bottom: .4rem; }
.votez-surcouche .choix { gap: .4rem; }
.votez-surcouche .choix button { padding: .55rem .65rem; font-size: .9rem; gap: .55rem; }
.votez-surcouche .pastille { width: 1.5rem; height: 1.5rem; font-size: .8rem; }
.votez-surcouche .notes button { padding: .5rem 0; font-size: 1rem; }
.votez-surcouche .saisie input, .votez-surcouche .saisie textarea { padding: .55rem .7rem; font-size: .9rem; }
.votez-surcouche .confirmation { padding: .5rem .7rem; font-size: .9rem; }
.votez-surcouche .bouton { margin-top: .6rem; }
@media (max-width: 640px) { .votez-surcouche { position: static; width: 100%; margin-top: 10px; box-shadow: none; border: 1px solid #E3E6EB; transform: none; } .votez-surcouche:not(.visible) { display: none; } }

/* ---------- Console v3 (client) ---------- */
.console3 { min-height: 100dvh; display: flex; flex-direction: column; background: var(--papier-2); }
.console3 > header { background: var(--papier); border-bottom: 1px solid var(--ligne); padding: .75rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.console3 > header .titre { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.console3 > header .titre .noms { line-height: 1.2; }
.console3 > header .titre .noms b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.console3 > header .titre .noms span { display: block; font-size: .82rem; color: var(--gris); }
.console3 > header nav { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.console3 > header nav a { text-decoration: none; }
.menu { display: flex; gap: .25rem; padding: .7rem 1.4rem 0; max-width: 1180px; width: 100%; margin: 0 auto; }
.menu button { background: transparent; border: none; padding: .55rem .9rem; border-radius: 8px 8px 0 0; color: var(--gris); font-weight: 500; border-bottom: 2px solid transparent; }
.menu button.actif { color: var(--texte); border-bottom-color: var(--encre); }
.console3 main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1rem 1.4rem 2rem; display: grid; gap: 1rem; align-content: start; }
.console3 .panneau { padding: 1.3rem 1.5rem; border-radius: 16px; }
.pilotage { display: grid; gap: 1rem; }
.pilotage .ligne-haut { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pilotage .en-cours { display: grid; gap: .15rem; min-width: 0; }
.pilotage .en-cours .etiquette { letter-spacing: .06em; }
.pilotage .en-cours .texte { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.pilotage .compteurs { display: flex; gap: 1.6rem; }
.pilotage .trois { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.pilotage .trois .bouton { padding: .95rem 1rem; font-size: 1.02rem; border-radius: 12px; }
.pilotage .nav-pages { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; }
.pilotage .nav-pages .groupe { display: flex; gap: .5rem; flex-wrap: wrap; }
.bandeau-ouvert { display: none; align-items: center; gap: .6rem; padding: .55rem .9rem; border-radius: 10px; background: #E7F7F0; color: #0F6E4C; font-weight: 600; }
.bandeau-ouvert.visible { display: inline-flex; }
.bandeau-ouvert::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--juste); box-shadow: 0 0 0 4px rgba(31,157,106,.2); }
.verrou { opacity: .45; pointer-events: none; }
.liste-pages .item { grid-template-columns: auto 1fr auto; }
.liste-pages .item .num { font-family: var(--display); font-weight: 600; color: var(--gris-2); width: 1.6rem; text-align: right; }
.liste-pages .item.courant { border-color: var(--encre); background: var(--papier-2); }
.liste-pages .item.jouee .num { color: var(--juste); }
.apercu3 { border-radius: 12px; background: var(--encre-2); color: #fff; padding: 1rem 1.1rem; display: grid; gap: .7rem; min-height: 90px; }
.apercu3 .resultats .barre { background: rgba(255,255,255,.12); }
.apercu3 .resultats .barre i { background: #DCE1EA; }
.apercu3 .ligne-resultat.tete .barre i { background: var(--tete); }
.apercu3 .pastille { border-color: rgba(255,255,255,.35); color: #fff; }
.apercu3 .nuage span { color: #fff; }
.apercu3 .notation .distribution div { background: #DCE1EA; }
.apercu3 .textes .texte, .apercu3 .podium .rang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.apercu3 .attente-diffusion { color: #B7BCC7; font-style: italic; }
.acces .adresse-grande { font-family: var(--display); font-weight: 600; font-size: 1.15rem; word-break: break-all; }
.acces .qr { justify-items: start; }
.essai .cadre { position: relative; aspect-ratio: 16 / 9; background: #0d0f14; border-radius: 12px; overflow: hidden; }
.essai .cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.essai .cadre .vide-video { position: absolute; inset: 0; display: grid; place-items: center; color: #7d829a; }
.deux-colonnes { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.3fr); gap: 1rem; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; } .pilotage .trois { grid-template-columns: 1fr; } }
.deux-colonnes.seule { grid-template-columns: 1fr; }
.marque-texte { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; opacity: .55; }
.pied a { color: inherit; }
.grille-trois { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(160px, 1fr)); }
@media (max-width: 760px) { .grille-trois { grid-template-columns: 1fr; } }
.liste .item .nom.grand { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.portillon .contexte { text-align: center; display: grid; gap: .1rem; }
.portillon .contexte b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.portillon .contexte span { color: var(--gris); font-size: .9rem; }
/* écran diffusion 1920x1080 */
body.diffusion { width: 1920px; height: 1080px; overflow: hidden; position: relative; background: #1B1D24; color: #fff; margin: 0; }
body.diffusion.transparent { background: transparent; }
body.diffusion .fond { position: absolute; inset: 0; background: center/cover; }
body.diffusion main { position: absolute; inset: 0; padding: 120px 160px; display: grid; align-content: center; gap: 48px; }
body.diffusion .question { font-size: 72px; max-width: 24ch; line-height: 1.1; }
body.diffusion .annonce { font-size: 96px; max-width: 22ch; }
body.diffusion .resultats { gap: 26px; font-size: 40px; }
body.diffusion .pastille { width: 72px; height: 72px; font-size: 36px; border-color: rgba(255,255,255,.35); color: #fff; }
body.diffusion .ligne-resultat .barre { height: 22px; background: rgba(255,255,255,.14); }
body.diffusion .ligne-resultat .barre i { background: #DCE1EA; }
body.diffusion .ligne-resultat.tete .barre i { background: var(--tete); }
body.diffusion .ligne-resultat.tete .pct { color: var(--tete); }
body.diffusion .ligne-resultat.juste .barre i, body.diffusion .ligne-resultat.juste .pastille { background: var(--juste); }
body.diffusion .ligne-resultat.juste .pct { color: var(--juste); }
body.diffusion .nuage { font-size: 44px; }
body.diffusion .nuage span { color: #fff; }
body.diffusion .notation { font-size: 40px; }
body.diffusion .notation .distribution div { background: #DCE1EA; }
body.diffusion .textes { font-size: 36px; grid-template-columns: 1fr 1fr; }
body.diffusion .textes .texte, body.diffusion .podium .rang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
body.diffusion .podium { font-size: 40px; }
body.diffusion .podium .rang:nth-child(1) { border-color: var(--tete); }
body.diffusion .accueil { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 120px; }
body.diffusion .accueil h1 { font-size: 88px; max-width: 16ch; line-height: 1.05; }
body.diffusion .accueil p { font-size: 36px; opacity: .8; margin-top: 24px; }
body.diffusion .qr-diff { background: #fff; padding: 28px; border-radius: 24px; }
body.diffusion .qr-diff svg { width: 420px; height: 420px; display: block; }
body.diffusion .qr-diff .adresse { color: var(--texte); font-family: var(--display); font-weight: 600; text-align: center; margin-top: 16px; font-size: 30px; }
body.diffusion .compteur { position: absolute; right: 160px; bottom: 80px; font-size: 32px; opacity: .8; }
body.diffusion .compteur b { font-family: var(--display); font-size: 1.4em; color: var(--tete); }
body.diffusion #chronoD .chrono { position: absolute; right: 160px; top: 80px; font-size: 44px; color: #fff; }
body.diffusion .chrono .fond { stroke: rgba(255,255,255,.2); }
/* v3.2 */
.liste-pages .item.en-vote { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.liste-pages .item.en-vote .meta, .liste-pages .item.en-vote .num { color: var(--accent-texte); opacity: .85; }
.liste-pages .item.en-vote .bouton.second { background: transparent; color: var(--accent-texte); border-color: rgba(255,255,255,.4); }
.liste-pages .item.en-vote .poignee { color: var(--accent-texte); }
.liste-pages .item.jouee .num { color: var(--juste); }
.liste-pages .item .jouee-marque { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--juste); font-weight: 600; margin-left: .4rem; }
.liste-pages .item .jouee-marque::before { content: "✓"; }
.bouton.accent.en-cours:disabled { opacity: 1; }
.acces .bloc-mdp { display: grid; gap: .5rem; padding-bottom: 1.1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--ligne); }
.grille-deux { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sous-section { border-top: 1px solid var(--ligne); padding-top: 1rem; margin-top: .4rem; display: grid; gap: .8rem; }
.lien-adresse { font-weight: 600; color: var(--texte); }
body.votez a.bouton { color: #fff; text-decoration: none; }
body.votez a.bouton.second { color: var(--texte); }
body.votez a.bouton.accent { color: var(--accent-texte); }
body.votez a.bouton.app { color: #fff; }
/* v3.3 */
.votez-surcouche .question { font-size: 1.2rem; }
.votez-surcouche .bouton.large { padding: .55rem 1rem; margin-top: .5rem; }
.votez-surcouche.resultats-vote .entete-page .mot-resultats { color: #D6330D; font-weight: 700; }
.back .panneau.detail { background: #FFF1DA; border-color: #F3DDB4; }
.back .panneau.detail .champ input, .back .panneau.detail .champ textarea, .back .panneau.detail .bascule, .back .panneau.detail .liste .item, .back .panneau.detail .apercu-fond, .back .panneau.detail .message { background: #fff; }
.pilotage .trois #fermer { background: #FEB362; color: #1F2229; }
.pilotage .trois #fermer:disabled { background: #FEB362; opacity: .35; }
.question.longue { line-height: 1.15; }
body.participant .question.longue { font-size: clamp(1.15rem, 4.4vw, 1.35rem); }
body.scene .question { max-width: 30ch; }
body.scene .question.longue { font-size: clamp(1.4rem, 3vw, 2.6rem); max-width: 40ch; }
body.diffusion .question { max-width: 28ch; }
body.diffusion .question.longue { font-size: 56px; max-width: 40ch; }
/* v3.4 */
.apercu3 { background: #3F434D; }
.console3 > header .marque { cursor: pointer; }
.pilotage .trois #reveler { border-color: #EF6666; color: #EF6666; background: var(--papier); }
.pilotage .trois #reveler.actif { background: #EF6666; border-color: #EF6666; color: #fff; }
.pilotage .trois #reveler:disabled { border-color: var(--ligne-2); color: var(--gris-2); }
.back .panneau.detail { background: #F2F2FF; border-color: #DCDCF5; }
.back .panneau.liste-espaces { background: #FFF9F2; border-color: #F3E3CC; }
.back .panneau.liste-espaces .liste .item { background: #fff; }
.discret { font-size: .8rem; color: var(--gris); }
.discret a { color: var(--gris); }
/* question à la taille des réponses */
body.participant .question, body.participant .question.longue { font-size: 1.05rem; }
body.scene .question, body.scene .question.longue { font-size: clamp(1rem, 2.2vw, 1.8rem); max-width: none; }
body.diffusion .question, body.diffusion .question.longue { font-size: 40px; max-width: none; }
.votez-surcouche .question { font-size: 1rem; }
.votez-surcouche .choix button { font-size: 1rem; }
/* cadre personnalisable */
body.scene.cadre-perso main, body.diffusion.cadre-perso main { background: var(--cadre-fond, transparent); border: var(--cadre-contour, none); border-radius: 24px; padding: clamp(1.2rem, 3vw, 3rem); }
body.diffusion.cadre-perso main { inset: 120px 160px; }
body.participant.cadre-perso .carte { background: var(--cadre-fond, var(--papier)); border: var(--cadre-contour, 1px solid var(--ligne)); }
.reglage-cadre { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.reglage-cadre input[type=range] { width: 100%; }
/* cadre clair sur scène et diffusion : texte sombre */
body.scene.cadre-clair main, body.diffusion.cadre-clair main { color: #1F2229; }
body.scene.cadre-clair .pastille, body.diffusion.cadre-clair .pastille { border-color: rgba(0,0,0,.3); color: #1F2229; }
body.scene.cadre-clair .ligne-resultat .barre, body.diffusion.cadre-clair .ligne-resultat .barre { background: rgba(0,0,0,.1); }
body.scene.cadre-clair .ligne-resultat .barre i, body.diffusion.cadre-clair .ligne-resultat .barre i { background: #4A4F5C; }
body.scene.cadre-clair .nuage span, body.diffusion.cadre-clair .nuage span { color: #1F2229; }
body.scene.cadre-clair .notation .distribution div, body.diffusion.cadre-clair .notation .distribution div { background: #4A4F5C; }
body.scene.cadre-clair .textes .texte, body.scene.cadre-clair .podium .rang, body.diffusion.cadre-clair .textes .texte, body.diffusion.cadre-clair .podium .rang { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); }
body.scene.cadre-clair .attente-diffusion { color: #4A4F5C; }
/* cadre sombre sur téléphone : texte clair */
body.participant.cadre-sombre .carte { color: #fff; }
body.participant.cadre-sombre .carte .choix button, body.participant.cadre-sombre .carte .notes button, body.participant.cadre-sombre .carte .confirmation, body.participant.cadre-sombre .carte .saisie input, body.participant.cadre-sombre .carte .saisie textarea { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
body.participant.cadre-sombre .carte .pastille { border-color: rgba(255,255,255,.4); color: #fff; }
body.participant.cadre-sombre .carte .ligne-resultat .barre { background: rgba(255,255,255,.15); }
body.participant.cadre-sombre .carte .ligne-resultat .barre i { background: #fff; }
body.participant.cadre-sombre .carte .total, body.participant.cadre-sombre .carte .entete-page { color: rgba(255,255,255,.7); }
body.scene.cadre-perso main { align-self: center; }
body.diffusion.cadre-perso main { inset: auto 160px; top: 50%; transform: translateY(-50%); padding: 80px 120px; }
/* v3.5 */
body.cadre-texte.scene main, body.cadre-texte.diffusion main, body.cadre-texte.participant .carte, body.cadre-texte.scene .nuage span, body.cadre-texte.diffusion .nuage span, body.cadre-texte.scene .attente-diffusion { color: var(--cadre-texte); }
body.cadre-texte.scene .pastille, body.cadre-texte.diffusion .pastille, body.cadre-texte.participant .carte .pastille { color: var(--cadre-texte); border-color: var(--cadre-texte); }
body.cadre-texte.scene .ligne-resultat .pct, body.cadre-texte.diffusion .ligne-resultat .pct, body.cadre-texte.participant .carte .pct { color: var(--cadre-texte); }
.ligne-resultat .barre i { max-width: 100%; }
.votez-surcouche .question { font-size: 1.15rem; }
.reglage-cadre { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.reglage-cadre select { font: inherit; padding: .5rem .6rem; border-radius: 8px; border: 1.5px solid var(--ligne-2); width: 100%; }
/* v3.6 : réglage du cadre */
.cadre-lignes { display: grid; gap: .5rem; }
.cadre-ligne { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .5rem .7rem; border: 1.5px solid var(--ligne); border-radius: 10px; background: var(--papier); }
.cadre-ligne > label.on { display: flex; align-items: center; gap: .5rem; font-weight: 500; min-width: 120px; cursor: pointer; }
.cadre-ligne > label.on input { width: 18px; height: 18px; margin: 0; }
.cadre-ligne input[type=color] { width: 36px; height: 36px; padding: 2px; border: 1.5px solid var(--ligne-2); border-radius: 8px; background: var(--papier); cursor: pointer; }
.cadre-ligne select { font: inherit; padding: .4rem .6rem; border-radius: 8px; border: 1.5px solid var(--ligne-2); background: var(--papier); }
.cadre-ligne .epaisseurs { display: inline-flex; border: 1.5px solid var(--ligne-2); border-radius: 8px; overflow: hidden; }
.cadre-ligne .epaisseurs button { border: none; background: var(--papier); padding: .4rem .7rem; font-size: .88rem; color: var(--gris); }
.cadre-ligne .epaisseurs button.actif { background: var(--encre); color: #fff; }
.cadre-ligne.inactif > :not(label.on) { opacity: .35; pointer-events: none; }
.bouton.large:disabled, .votez-surcouche .bouton:disabled { opacity: 1; cursor: pointer; }
/* v3.7 */
:root { --q-taille: 1; }
body.participant .question, body.participant .question.longue { font-size: calc(1.05rem * var(--q-taille)); }
body.scene .question, body.scene .question.longue { font-size: calc(clamp(1rem, 2.2vw, 1.8rem) * var(--q-taille)); }
body.diffusion .question, body.diffusion .question.longue { font-size: calc(40px * var(--q-taille)); }
.votez-surcouche .question { font-size: 1.25rem; margin: .5rem 0 .8rem; }
.votez-surcouche .bouton.envoi { opacity: .5; }
.votez-surcouche .ligne-resultat.juste .barre i, .votez-surcouche .ligne-resultat.juste .pastille { background: var(--accent); border-color: var(--accent); }
.votez-surcouche .ligne-resultat.juste .pct { color: var(--accent); }
.cadre-ligne input[type=range] { appearance: none; -webkit-appearance: none; width: 150px; height: 6px; border-radius: 3px; background: var(--ligne-2); outline: none; margin: 0 .3rem; }
.cadre-ligne input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--encre); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ligne-2); cursor: pointer; }
.cadre-ligne input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--encre); border: 2px solid #fff; cursor: pointer; }
.cadre-ligne .val { font-variant-numeric: tabular-nums; min-width: 4ch; color: var(--gris); font-size: .9rem; }
.apercu-bloc { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.apercu-bloc .legende { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-2); font-weight: 600; align-self: center; }
@media (max-width: 700px) { .apercu-bloc { grid-template-columns: 1fr; } .apercu-bloc .legende { writing-mode: horizontal-tb; transform: none; } }
.liste-pages .item .diffusee-marque { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--gris); font-weight: 600; margin-left: .4rem; }
.liste-pages .item .diffusee-marque::before { content: "◉"; font-size: .7em; }
/* v3.9 : couleur des bonnes réponses (jauge, lettre, pourcentage), comme le marquage existant */
body.cadre-jauge .ligne-resultat.juste .barre i { background: var(--jauge); }
body.cadre-jauge .ligne-resultat.juste .pastille { background: var(--jauge); border-color: var(--jauge); color: #fff; }
body.cadre-jauge .ligne-resultat.juste .pct { color: var(--jauge); }
