/* Interface participants et admin — même identité que l'écran de projection (ecran.css). */
@font-face {
  font-family: 'Creepster';
  src: url('/assets/ecran/creepster.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-2: rgba(8, 30, 35, .85);
  --card: rgba(0, 0, 0, .74);
  --card-2: #0f2a30;
  --line: rgba(110, 200, 210, .24);
  --text: #fff;
  --muted: #a9c6ca;
  --orange: #f37101;
  --orange-2: #ff8f33;
  --teal: #40c4ce;
  --teal-dark: #1d7a82; /* sarcelle du logo, assez foncé pour du texte blanc lisible */
  --glow: rgba(64, 196, 206, .45);
  --green: #4ade80;
  --red: #f87171;
  --gold: #fbbf24;
  --silver: #d1d5db;
  --bronze: #d97745;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 Montserrat, system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  /* Fond de l'écran (logo en haut à gauche), fondu vers le noir en bas et à droite */
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .05) 130px, rgba(0, 0, 0, .7) 210px, rgba(0, 0, 0, .88) 360px, #000 560px),
    linear-gradient(to right, rgba(0, 0, 0, 0) 640px, #000 996px),
    url('/assets/ecran/fond.jpg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: auto 560px, auto 560px, auto 560px;
}
a { color: var(--orange-2); }
img { max-width: 100%; }
h1, h2 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.8rem; text-shadow: 0px 0px 10px black; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 .75em; }
[hidden] { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 48px; }
.wrap.wide { max-width: 1000px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.spooky, .spooky-sm {
  font-family: Creepster, Montserrat, cursive; font-weight: 400; letter-spacing: 1px;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.spooky { font-size: clamp(3rem, 16vw, 4.6rem); }
.spooky-sm { font-size: 2.6rem; margin: .3em 0 .2em; }
.kicker { font-style: italic; font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }

/* Barre du haut : le logo fait partie du fond; la zone cliquable le recouvre. */
.topbar {
  position: relative; height: 150px;
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 0 16px;
}
.brand { position: absolute; left: 10px; top: 20px; width: 150px; height: 120px; }
.topbar nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a {
  color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700;
  padding: 7px 13px; border-radius: 0 0 20px 20px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line);
}
.topbar nav a.me { background: var(--teal-dark); border-color: var(--teal-dark); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 700px) { .topbar { height: 170px; } }

/* Cartes, formulaires */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px; box-shadow: 0 0 26px rgba(64, 196, 206, .12);
}
.stack > * + * { margin-top: 14px; }
.narrow { max-width: 380px; margin: 0 auto 40px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 200px; }
.field-row.align-end { align-items: flex-end; }
label, .label { font-weight: 700; font-size: 1.2rem; margin: 0; color: var(--orange); }
/* Les labels qui servent de boîtes cliquables gardent le texte normal. */
.radio-card, .check { color: var(--text); font-size: 1rem; }
.hint { color: var(--muted); font-size: 1rem; font-style: italic; font-weight: 400; font-family: 'Montserrat'; }
fieldset { border: 0; padding: 0; margin: 0; }
input, select, button, textarea { font: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 18px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.input-xs { max-width: 72px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; color: var(--text); background: var(--card-2);
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { text-transform: uppercase; background: var(--orange); color: #fff; box-shadow: 0 4px 18px rgba(243, 113, 1, .35); }
.btn-primary:hover:not(:disabled) { background: var(--orange-2); }
.btn-ghost { gap: 20px; background: rgba(0, 0, 0, .5); border-color: var(--line); color: var(--text); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.linklike { background: none; border: 0; padding: 0; color: var(--orange-2); text-decoration: underline; cursor: pointer; }

.error { color: var(--red); margin: 0; }
.error-box { background: rgba(248, 113, 113, .14); border: 1px solid var(--red); color: #fecaca; border-radius: 12px; padding: 10px 14px; }
.error-box p:last-child { margin: 0; }
.flash { border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; background: rgba(0, 0, 0, .7); }
.flash-ok { border: 1px solid var(--green); color: #bbf7d0; }
.flash-warn { border: 1px solid var(--gold); color: #fde68a; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); margin: 2px 4px 2px 0; }
.badge-orange { background: var(--orange); color: #fff; }
.badge-warn { background: rgba(251, 191, 36, .18); color: var(--gold); }

/* Accueil */
.hero { text-align: center; padding: 4px 0 16px; }
.lead { font-size: 1.05rem; color: var(--muted); margin-top: 10px; }
.code-form input#code { text-align: center; font: 700 1.6rem/1 ui-monospace, Menlo, monospace; letter-spacing: 4px; text-transform: uppercase; }
.code-form { display: flex; flex-direction: column; gap: 12px; }

.me-card { display: flex; gap: 16px; align-items: center; }
.me-card h1 {
  margin: 0; font-family: Creepster, cursive; font-weight: 400; text-transform: uppercase;
  color: var(--orange); font-size: 2rem; line-height: 1.05; word-break: break-word;
}
.me-card p { margin: 0; }
.me-photo { width: 96px; height: 132px; object-fit: cover; object-position: center top; border-radius: 12px; flex-shrink: 0; background: var(--card-2); border: 4px solid #000; box-shadow: 0 0 18px var(--glow); }
.me-photo-empty { display: grid; place-items: center; font-size: 44px; }
.me-info { min-width: 0; }
.notice h2 { color: var(--orange); }
.notice p:last-child { margin: 0; }
.section-title { margin-top: 8px; font-family: Creepster, cursive; font-weight: 400; text-transform: uppercase; font-size: 1.9rem; letter-spacing: 1px; margin-bottom: 4px; }
.cat-list { list-style: none; padding: 0; margin: 12px 0 20px; }
.cat-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-bottom: 10px; padding: 14px 16px; }
.cat-link > span:first-child { display: flex; flex-direction: column; }
.cat-link strong { font-family: Creepster, cursive; font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 1px; line-height: 1.1; }
.cat-status { flex-shrink: 0; font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; background: var(--orange); color: #fff; }
.cat-status.partial { background: rgba(251, 191, 36, .2); color: var(--gold); }
.cat-status.done { background: rgba(74, 222, 128, .16); color: var(--green); }

/* Profil */
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; margin-top: 8px; background: rgba(0, 0, 0, .4); }
.radio-card:has(input:checked) { border-color: var(--orange); background: rgba(243, 113, 1, .12); }
.radio-card input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; }
.photo-drop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; font-size: 1rem; color: var(--text); }
.photo-preview { max-height: 380px; border-radius: 10px; object-fit: contain; border: 6px solid #000; box-shadow: 0 0 22px var(--glow); }

/* Vote */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 8px; }
.cat-tabs a { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .55); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 500; }
.cat-tabs a.active { background: var(--orange); border-color: var(--orange); font-weight: 700; }
.sponsor-line { color: #fff; }
.sponsor-line strong { font-weight: 700; }

.podium-bar {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; align-items: stretch;
  background: rgba(0, 0, 0, .9); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin: 8px 0;
  box-shadow: 0 0 22px rgba(64, 196, 206, .2);
}
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1px dashed var(--line); background: var(--bg-2); color: var(--text); min-width: 0; }
.slot-img { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2) center top / cover no-repeat; border: 2px solid var(--line); }
.slot-1 .slot-img { border-color: var(--gold); }
.slot-2 .slot-img { border-color: var(--silver); }
.slot-3 .slot-img { border-color: var(--bronze); }
.slot.filled { border-style: solid; }
.slot-label { font-size: .7rem; color: var(--muted); font-weight: 700; }
.slot-name { font-size: .75rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-btn { padding: 8px 14px; border-radius: 12px; }
/* Rien à enregistrer : bouton gris. Changements en attente : bouton et contour orange. */
.podium-bar:not(.dirty) .save-btn { background: var(--card-2); color: var(--muted); border-color: var(--line); box-shadow: none; opacity: 1; }
.podium-bar { transition: border-color .2s, box-shadow .2s; }
.podium-bar.dirty { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 0 22px rgba(243, 113, 1, .45); }
@media (max-width: 420px) {
  .podium-bar { grid-template-columns: repeat(3, 1fr); }
  .save-btn { grid-column: 1 / -1; }
}
.hint-line { min-height: 1.5em; transition: color .2s; }
.hint-line.pulse { color: var(--gold); }
.search { margin-bottom: 12px; }

/* Cartes de costumes : cadre noir et lueur sarcelle, comme à l'écran */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.grid li { position: relative; }
.candidate {
  display: block; width: 100%; padding: 6px 6px 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #000; color: var(--text); cursor: pointer; position: relative; text-align: center;
  box-shadow: 0 0 18px rgba(64, 196, 206, .35); transition: transform .15s ease;
}
.candidate:active { transform: scale(.97); }
.candidate img { display: block; width: 100%; aspect-ratio: 9 / 15; object-fit: cover; object-position: center top; background: var(--card-2); border-radius: 4px; }
.candidate-name {
  display: flex; align-items: center; justify-content: center; min-height: 2.6em; padding: 4px 6px;
  font-family: Creepster, cursive; text-transform: uppercase; color: var(--orange); font-size: 1rem; line-height: 1.05;
  overflow-wrap: anywhere;
}
.candidate.picked-1 { box-shadow: 0 0 0 3px var(--gold), 0 0 20px var(--gold); }
.candidate.picked-2 { box-shadow: 0 0 0 3px var(--silver), 0 0 20px var(--silver); }
.candidate.picked-3 { box-shadow: 0 0 0 3px var(--bronze), 0 0 20px var(--bronze); }
.rank-badge { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; display: none; place-items: center; font-weight: 800; color: #000; font-size: 1.1rem; }
.picked .rank-badge { display: grid; }
.picked-1 .rank-badge { background: var(--gold); }
.picked-2 .rank-badge { background: var(--silver); }
.picked-3 .rank-badge { background: var(--bronze); }
.zoom { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; text-decoration: none; font-size: 1.1rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 96vw; max-height: 82vh; border-radius: 12px; display: block; margin: 0 auto; border: 6px solid #000; box-shadow: 0 0 30px var(--glow); }
.lightbox-name { text-align: center; margin: 10px 0 0; font-family: Creepster, cursive; text-transform: uppercase; color: var(--orange); font-size: 1.8rem; }
.lightbox-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* Classement */
.live { color: var(--green); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.board { list-style: none; padding: 0; margin: 12px 0; }
.board-row {
  display: grid; grid-template-columns: 30px 56px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 12px 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, .78); border: 1px solid var(--line); margin-bottom: 8px;
}
.board-row img { width: 56px; height: 72px; border-radius: 8px; object-fit: cover; object-position: center top; border: 3px solid #000; }
.board-rank { font-weight: 800; font-size: 1.2rem; text-align: center; color: var(--muted); }
.board-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-family: Creepster, cursive; text-transform: uppercase; color: var(--orange); font-size: 1.25rem; line-height: 1.1; }
.board-name .small { font-family: Montserrat, sans-serif; text-transform: none; font-size: .75rem; margin-top: 3px; }
.board-points { font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--orange); padding: 4px 10px; border-radius: 0 10px 0 10px; white-space: nowrap; }
.board-points small { font-size: .7rem; color: rgba(255, 255, 255, .85); }
.top-1, .top-2, .top-3 { box-shadow: 0 0 20px rgba(64, 196, 206, .3); }
.top-1 { border-color: var(--gold); }
.top-1 .board-rank { color: var(--gold); }
.top-2 { border-color: var(--silver); }
.top-2 .board-rank { color: var(--silver); }
.top-3 { border-color: var(--bronze); }
.top-3 .board-rank { color: var(--bronze); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* Admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .55); color: #fff; text-decoration: none; font-size: .9rem; }
.admin-nav a.active { background: var(--orange); border-color: var(--orange); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stat-n { font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat-l { color: var(--muted); font-size: .85rem; }
.state { padding: 2px 10px; border-radius: 999px; font-size: .95rem; }
.state-open { background: rgba(74, 222, 128, .15); color: var(--green); }
.state-before { background: rgba(251, 191, 36, .15); color: var(--gold); }
.state-closed { background: rgba(248, 113, 113, .15); color: var(--red); }
.links { padding-left: 18px; margin: 0; }
.links li { margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: .85rem; font-weight: 700; }
.card:has(> .table), .card > .table { overflow-x: auto; }
.search-row { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-players { list-style: none; padding: 0; margin: 0; }
.admin-player { display: flex; gap: 14px; align-items: flex-start; padding: 12px; }
.admin-player img, .ap-noimg { width: 72px; height: 96px; object-fit: cover; object-position: center top; border-radius: 8px; flex-shrink: 0; background: var(--card-2); display: grid; place-items: center; font-size: 30px; }
.admin-player.is-hidden { opacity: .6; }
.ap-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ap-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form input { max-width: 220px; padding: 6px 10px !important; }
.warn { color: var(--gold); }
details summary { cursor: pointer; color: var(--muted); }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prize h2 { color: var(--orange); }
.prize-winner { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.prize-winner img { width: 64px; height: 84px; object-fit: cover; object-position: center top; border-radius: 8px; }
.prize-winner > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.conflict { border-color: var(--gold); }
.mini-board { padding-left: 20px; margin: 8px 0 0; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--orange); }
.field-xs { flex: 0 0 90px !important; }
.field-color { flex: 0 0 140px !important; }
input[type=color] { width: 100%; height: 48px; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-thumb { height: 64px; max-width: 160px; object-fit: contain; background: #0b2e35; border-radius: 8px; padding: 6px; }
.logo-thumb-light { background: #fff; }
.notice.won { border-color: var(--orange); background: linear-gradient(135deg, rgba(243, 113, 1, .25), rgba(0, 0, 0, .8)); }
.nickname-fixed { margin: 0; font-family: Creepster, cursive; text-transform: uppercase; color: var(--orange); font-size: 1.8rem; line-height: 1.1; }
.prize-box { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.prize-box .sponsor-line { flex: 1; margin: 0; }
.prize-box-logo { flex-shrink: 0; width: 96px; max-height: 72px; object-fit: contain; }
.sponsor-line br { display: none; } /* retours de ligne pensés pour l'écran géant */

/* Accueil : remerciements aux commanditaires et partenaires */
.thanks { margin: 34px 0 10px; text-align: center; }
.thanks .kicker { color: var(--teal); }
.thanks .spooky-sm { margin-top: 0; font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
.thanks-grid { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.thanks-grid > li { flex: 0 0 calc((100% - 12px) / 2); min-width: 0; }
.thanks-card { background: #fff; color: #111; border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 0 22px rgba(64, 196, 206, .18); }
.thanks-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 70px; }
.pumpkins .thanks-logo { height: 62px; }
.thanks-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thanks-logo strong { font-size: 1rem; line-height: 1.2; }
.thanks-cat { display: flex; flex-direction: column; line-height: 1.1; }
.thanks-cat em { font-weight: 700; font-size: .78rem; }
.thanks-cat b { font-family: Creepster, Montserrat, cursive; font-weight: 400; text-transform: uppercase; font-size: 1.45rem; letter-spacing: 1px; }
.thanks-cta { margin: 26px 0 10px; text-align: center; }
.thanks-note { margin: 16px 0 0; font-family: Creepster, Montserrat, cursive; text-transform: uppercase; color: var(--orange); font-size: 1.5rem; letter-spacing: 1px; }
@media (min-width: 700px) {
  .thanks-grid.vampires > li { flex-basis: calc((100% - 24px) / 3); }
  .thanks-grid.pumpkins > li { flex-basis: calc((100% - 24px) / 3); } /* 3 × 3 sur ordinateur */
  .pumpkins .thanks-logo { height: 84px; }
}

/* Bandeau de consentement (Google Analytics) */
.site-foot { text-align: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); font-size: .8rem; }
.site-foot a { color: var(--muted); }
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; margin: 0; font-size: .88rem; line-height: 1.4; }
.consent-btns { display: flex; gap: 8px; margin-left: auto; }

/* Page de vote : podium à sa place en haut; fixé au bas de l'écran quand on l'a dépassé en défilant */
.dock-slot { margin: 8px 0; }
.vote-dock .podium-bar { margin: 0; }
.vote-dock.docked { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 18px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .85) 22px); pointer-events: none; animation: dock-in .18s ease-out; }
.vote-dock.docked > * { max-width: 616px; margin-left: auto; margin-right: auto; pointer-events: auto; }
@keyframes dock-in { from { transform: translateY(30px); opacity: 0; } }
.dock-msg { margin-bottom: 8px; padding: 9px 14px; border-radius: 12px; font-size: .9rem; font-weight: 600; background: rgba(0, 0, 0, .94); border: 1px solid var(--line); }
.dock-msg[hidden] { display: none; }
.dock-ok { border-color: var(--green); color: #bbf7d0; }
.dock-warn { border-color: var(--gold); color: #fde68a; }
.dock-error { border-color: var(--red); color: #fecaca; }
body.voting.dock-on { padding-bottom: 190px; } /* place pour la barre du bas */
body.voting .consent { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
.vote-help { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; padding: 10px 14px; border-radius: 12px; background: rgba(64, 196, 206, .14); border: 1px solid rgba(64, 196, 206, .55); border-left: 4px solid var(--teal); color: #fff; font-size: 1rem; line-height: 1.4; }
.vote-help > span:first-child { font-size: 1.5rem; flex: none; }
.vote-help strong { color: var(--teal); }
