:root {
  --bg: #12121C; --bg-deep: #060610; --surface: #1A1A2E; --card: #212134; --card-h: #2A2A44;
  --violet: #8679E6; --violet-vif: #A265E9; --orange: #F4A05F;
  --violet-glow: rgba(134,121,230,.15); --orange-glow: rgba(244,160,95,.12);
  --grad: linear-gradient(135deg, #8679E6 0%, #A265E9 40%, #F4A05F 100%);
  --grad-h: linear-gradient(90deg, #8679E6 0%, #A265E9 50%, #F4A05F 100%);
  --white: #fff; --gray-l: #CCCCCC; --gray-m: #9FA0A4; --gray-d: #666680;
  --font: 'Inter', system-ui, sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--gray-l); line-height: 1.6;
  background:
    radial-gradient(circle at 15% 10%, rgba(134,121,230,.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(244,160,95,.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 0%, #1A1A2E 0%, #12121C 55%, #060610 100%);
  background-attachment: fixed;
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .55; }
header, main, footer { position: relative; z-index: 1; }

/* ── Barre ── */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 4vw, 48px); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(18,18,28,.6); border-bottom: 1px solid rgba(134,121,230,.08); }
.bar__logo img { height: 28px; width: auto; }
.bar__nav { display: flex; gap: 24px; align-items: center; font-size: .9rem; font-weight: 600; }
.bar__nav a { text-decoration: none; color: var(--gray-m); transition: color .2s; }
.bar__nav a:hover { color: var(--white); }
.langs { display: flex; border: 1px solid rgba(162,101,233,.5); border-radius: var(--r-sm); overflow: hidden; }
.lang { font: 600 .75rem var(--font); letter-spacing: .05em; color: var(--gray-m); background: transparent; border: 0; padding: 6px 9px; cursor: pointer; transition: color .2s, background .2s; }
.lang + .lang { border-left: 1px solid rgba(162,101,233,.25); }
.lang:hover { color: var(--white); }
.lang[aria-pressed="true"] { color: var(--white); background: var(--card); cursor: default; }
.lang:focus-visible { outline: 2px solid var(--violet-vif); outline-offset: -2px; }

/* ── Typo ── */
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; color: var(--white); letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; line-height: 1.3; }
.grad { background: var(--grad-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.lead { font-size: 1.15rem; color: var(--gray-l); max-width: 52ch; margin: 24px 0 36px; }
.section__lead { color: var(--gray-m); max-width: 60ch; margin-top: 14px; }
.hint { font-size: .8rem; color: var(--gray-m); margin-top: 8px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(33,33,52,.8); border: 1px solid rgba(162,101,233,.45); border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--white); margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(244,160,95,.6); animation: ping 2s infinite; display: inline-block; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(244,160,95,.55); } 70% { box-shadow: 0 0 0 10px rgba(244,160,95,0); } 100% { box-shadow: 0 0 0 0 rgba(244,160,95,0); } }

/* ── Boutons ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; background: var(--violet); color: var(--white); border: 0; border-radius: var(--r-sm); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s var(--ease); z-index: -1; }
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 40px var(--violet-glow); }
.btn--ghost { background: transparent; border: 1px solid rgba(162,101,233,.55); }
.btn--ghost::before { opacity: 0; }
.btn--ghost:hover { border-color: transparent; }
.btn--full { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { display: inline-block; margin-top: 10px; color: var(--violet); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(134,121,230,.4); }
.link:hover { border-color: var(--orange); color: var(--white); }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(48px, 9vh, 110px) clamp(16px, 4vw, 48px) clamp(64px, 10vh, 120px); min-height: calc(100svh - 70px); }
.hero__text > * { animation: rise 1.1s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: .1s; } .hero__text > *:nth-child(3) { animation-delay: .2s; } .hero__text > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Téléphone : aperçu de l'avatar en tête */
.phone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 9/18.5; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2a2a44, #0d0d18); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(134,121,230,.18); position: relative; }
.phone::after { content: ''; position: absolute; inset: -30px; background: radial-gradient(ellipse, rgba(134,121,230,.18), rgba(244,160,95,.08), transparent 70%); filter: blur(30px); z-index: -1; animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .5; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }
.phone__screen { height: 100%; border-radius: 36px; background: radial-gradient(ellipse at 50% 30%, #23233a 0%, #12121C 60%, #080812 100%); display: flex; flex-direction: column; align-items: center; padding: 22px 20px 26px; text-align: center; overflow: hidden; }
.phone__top { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-m); }
.phone__avatar { width: 62%; aspect-ratio: 1; margin: 26px 0 16px; border-radius: 50%; position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone__name { font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; transition: opacity .4s; }
.phone__role { font-size: .8rem; color: var(--gray-m); }
.wave { display: flex; gap: 4px; align-items: center; height: 34px; margin: 16px 0 10px; }
.wave i { width: 4px; border-radius: 2px; background: var(--grad-v, linear-gradient(180deg, #8679E6, #F4A05F)); animation: wave 1.2s ease-in-out infinite; height: 20%; }
.wave i:nth-child(2n) { animation-delay: .15s; } .wave i:nth-child(3n) { animation-delay: .3s; } .wave i:nth-child(4n) { animation-delay: .45s; } .wave i:nth-child(5n) { animation-delay: .6s; }
@keyframes wave { 0%,100% { height: 18%; } 50% { height: 100%; } }
.phone__line { font-size: .9rem; color: var(--gray-l); min-height: 4.8em; line-height: 1.5; }
.phone__line::after { content: '▍'; color: var(--violet); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.phone__call { margin-top: auto; }
.call { display: block; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 30px rgba(244,160,95,.3); position: relative; }
.call::after { content: ''; position: absolute; inset: 17px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Portrait : photo si présente, sinon monogramme */
.portrait { position: relative; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, hsl(var(--h) 45% 32%), hsl(var(--h) 35% 12%) 70%); display: grid; place-items: center; }
.portrait::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(2.1); transform-origin: 50% 24%; }
.portrait::before { border-radius: inherit; }
.card .portrait { aspect-ratio: 4/5; border-radius: 10px; }
.card .portrait img { transform: none; object-position: 50% 30%; transition: transform .6s var(--ease); }
.card:hover .portrait img { transform: scale(1.04); }
.card[aria-checked="true"] .portrait img { transform: scale(1.04); }
.portrait span { font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: -.04em; font-size: var(--mono, 2rem); }
.phone__avatar.portrait { --mono: 3.6rem; }

/* ── Sections ── */
.section { padding: clamp(72px, 12vh, 128px) clamp(16px, 4vw, 48px); }
.section--grid { background: linear-gradient(rgba(134,121,230,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(134,121,230,.035) 1px, transparent 1px); background-size: 60px 60px; border-top: 1px solid rgba(134,121,230,.08); border-bottom: 1px solid rgba(134,121,230,.08); }
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap--narrow { max-width: 760px; }

/* Frise */
.timeline { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(134,121,230,.15), rgba(162,101,233,.5) 70%, var(--orange)); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--violet); }
.timeline li.is-now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 20px rgba(244,160,95,.6); }
.year { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--violet); line-height: 1; margin-bottom: 12px; }
.is-now .year { background: var(--grad-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.timeline p { font-size: .9rem; color: var(--gray-m); margin-top: 6px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.step { background: rgba(33,33,52,.75); border: 1px solid rgba(134,121,230,.12); border-radius: var(--r-md); padding: 24px; }
.step__n { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: var(--orange); margin-bottom: 18px; }
.step p { font-size: .9rem; color: var(--gray-m); margin-top: 8px; }

/* Cartes de vote */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 48px; }
.card { text-align: left; font: inherit; color: inherit; background: rgba(33,33,52,.8); border: 1px solid rgba(134,121,230,.14); border-radius: var(--r-md); padding: 18px 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-4px); background: var(--card-h); box-shadow: 0 0 40px var(--violet-glow); }
.card:focus-visible { outline: 2px solid var(--violet-vif); outline-offset: 3px; }
.card .portrait { width: 100%; margin-bottom: 14px; --mono: 2.6rem; }
.card__name { font-weight: 800; color: var(--white); line-height: 1.25; }
.card__meta { font-size: .78rem; color: var(--gray-m); }
.card__line { font-size: .82rem; color: var(--gray-l); margin-top: 8px; font-style: italic; flex: 1; }
.card__pick { margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--violet); }
.card[aria-checked="true"] { border-color: transparent; background: var(--card-h); box-shadow: 0 0 0 2px var(--violet-vif), 0 0 50px rgba(162,101,233,.25); }
.card[aria-checked="true"] .card__pick { color: var(--orange); }

.other { margin-top: 18px; background: rgba(33,33,52,.6); border: 1px dashed rgba(134,121,230,.3); border-radius: var(--r-md); padding: 18px 20px; }
.other.is-active { border-style: solid; border-color: var(--violet-vif); box-shadow: 0 0 40px rgba(162,101,233,.18); }
.other__label { font-weight: 800; color: var(--white); display: block; margin-bottom: 10px; }
input:not([type=checkbox]) { width: 100%; font: 400 1rem var(--font); color: var(--white); background: var(--bg-deep); border: 1px solid rgba(134,121,230,.25); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
input:not([type=checkbox]):focus { outline: 0; border-color: var(--violet-vif); box-shadow: 0 0 0 3px rgba(162,101,233,.2); }
input::placeholder { color: var(--gray-d); }

/* Formulaire */
.form, .thanks { margin: 28px auto 0; max-width: 620px; background: linear-gradient(180deg, rgba(42,42,68,.9), rgba(26,26,46,.9)); border: 1px solid rgba(162,101,233,.35); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); animation: rise .7s var(--ease) both; }
.form__choice { color: var(--gray-m); margin-bottom: 20px; }
.form__choice strong { color: var(--white); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form__grid label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--gray-m); }
.form__grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--gray-m); margin: 10px 0; cursor: pointer; }
.check input { accent-color: var(--violet-vif); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.check a { color: var(--violet); }
.error { color: var(--orange); font-size: .85rem; min-height: 1.3em; }
.thanks { text-align: center; }
.thanks__icon { font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.thanks p { color: var(--gray-m); margin: 12px auto 24px; max-width: 46ch; }
.thanks .hero__cta { justify-content: center; }

/* Classement */
.board { list-style: none; padding: 0; margin-top: 40px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.row { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 14px; align-items: center; background: rgba(33,33,52,.8); border: 1px solid rgba(134,121,230,.12); border-radius: var(--r-md); padding: 12px 18px 12px 14px; position: relative; overflow: hidden; }
.row__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(134,121,230,.22), rgba(162,101,233,.14) 60%, rgba(244,160,95,.12)); transition: width 1.2s var(--ease); z-index: 0; }
.row > *:not(.row__bar) { position: relative; z-index: 1; }
.row__rank { font-weight: 800; font-size: 1.1rem; color: var(--gray-d); text-align: center; }
.row .portrait { width: 48px; height: 48px; --mono: 1rem; }
.row__name { font-weight: 800; color: var(--white); line-height: 1.2; }
.row__name small { display: block; font-weight: 400; font-size: .78rem; color: var(--gray-m); }
.row__pct { text-align: right; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.row__pct small { display: block; font-weight: 400; font-size: .75rem; color: var(--gray-m); }
.row.is-first { border-color: rgba(244,160,95,.45); box-shadow: 0 0 40px rgba(244,160,95,.12); }
.row.is-first .row__rank { color: var(--orange); }
.row.is-first .row__bar { background: linear-gradient(90deg, rgba(134,121,230,.3), rgba(162,101,233,.22) 55%, rgba(244,160,95,.28)); }
.you { font-style: normal; margin-left: 8px; font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(244,160,95,.5); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.row.bump { animation: bump .8s var(--ease); }
@keyframes bump { 0% { box-shadow: 0 0 0 0 rgba(244,160,95,.5); } 100% { box-shadow: 0 0 0 14px rgba(244,160,95,0); } }
.row--others .row__rank { font-size: .9rem; }
.board__meta { margin-top: 16px; font-size: .8rem; color: var(--gray-m); text-align: right; }

.outro { text-align: center; }
.outro .section__lead { margin: 16px auto 32px; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid rgba(134,121,230,.1); font-size: .8rem; color: var(--gray-d); }
.foot img { height: 20px; width: auto; opacity: .7; }

/* Apparition au scroll */
.am-reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.am-reveal--scale { transform: scale(.94); }
.am-reveal.am-visible { opacity: 1; transform: none; }
.am-stagger > .am-reveal:nth-child(2) { transition-delay: .08s; } .am-stagger > .am-reveal:nth-child(3) { transition-delay: .16s; }
.am-stagger > .am-reveal:nth-child(4) { transition-delay: .24s; } .am-stagger > .am-reveal:nth-child(5) { transition-delay: .32s; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(134,121,230,.15), rgba(162,101,233,.5) 70%, var(--orange)); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -36px; top: 6px; }
  .year { font-size: 1.5rem; margin-bottom: 6px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .phone { width: min(280px, 78vw); }
  .bar__nav a { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 26px auto 1fr auto; gap: 10px; padding: 10px 12px; }
  .row .portrait { width: 40px; height: 40px; }
}
@media (max-width: 420px) { .cards { grid-template-columns: 1fr 1fr; gap: 10px; } .card { padding: 12px; } .card__line { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .am-reveal { opacity: 1; transform: none; }
  #snow { display: none; }
}

/* Téléphone : le portrait occupe le haut de l'écran, comme une vraie interface d'avatar */
.phone__screen { padding-top: 0; }
.phone__top { position: absolute; top: 30px; z-index: 3; background: rgba(6,6,16,.55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; color: var(--white); }
.phone__avatar.portrait { width: calc(100% + 40px); margin: 0 -20px 6px; aspect-ratio: 4/4.4; border-radius: 0; animation: none; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.phone__avatar.portrait::before { display: none; }
.phone__avatar.portrait img { transform: none; object-position: 50% 12%; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1.02); } 50% { transform: scale(1.06); } }
.phone { position: relative; }
.phone__screen { position: relative; }

/* Badge « Powered by Netlify » ajouté par l'hébergeur provisoire : masqué (Netlify propose lui-même « Hide this badge »). */
#nl-badge-frame, #nl-hud-frame { display: none !important; }

/* ── V2 (28/09/2026) ── */
/* Animations des personnages : la vidéo se superpose au portrait dès qu'elle joue */
.portrait video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); z-index: 1; }
.portrait.is-playing video { opacity: 1; }
.card .portrait video { object-position: 50% 30%; }
.phone__avatar.portrait video { object-position: 50% 12%; }
.phone__avatar.portrait.is-playing img { animation: none; }

/* Personnage mystère : proposition des votants, pas encore débloquée */
.portrait--mystery { background: radial-gradient(circle at 50% 35%, #34344c, #16161f 70%); }
.portrait--mystery::before { background: repeating-linear-gradient(90deg, rgba(159,160,164,.55) 0 6px, transparent 6px 10px); }
.portrait--mystery span { color: rgba(204,204,204,.55); font-size: var(--mono, 1.1rem); }

.other { display: flex; gap: 18px; align-items: flex-start; }
.other .mystery { flex: none; width: 76px; aspect-ratio: 4/5; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #34344c, #16161f 75%); border: 1px dashed rgba(159,160,164,.45); position: relative; overflow: hidden; }
.other .mystery::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 58px; height: 46px; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: rgba(255,255,255,.06); }
.other .mystery span { font-size: 2rem; font-weight: 800; color: rgba(204,204,204,.5); position: relative; z-index: 1; margin-bottom: 18px; }
.other.is-active .mystery { border-style: solid; border-color: var(--violet-vif); }
.other__body { flex: 1; min-width: 0; }
.other__row { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid rgba(162,101,233,.4); border-radius: var(--r-sm); box-shadow: 0 16px 40px rgba(0,0,0,.5); max-height: 260px; overflow: auto; }
.suggest li { padding: 9px 12px; border-radius: 4px; cursor: pointer; color: var(--gray-l); }
.suggest li:hover, .suggest li.is-active { background: var(--card-h); color: var(--white); }
.linkbtn { font: inherit; color: var(--violet); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--white); }

/* Post LinkedIn pré-rempli */
.share { text-align: left; margin: 0 0 20px; }
.share__label { font-size: .8rem; font-weight: 600; color: var(--gray-m); margin-bottom: 6px; }
.share textarea { width: 100%; font: 400 .9rem/1.55 var(--font); color: var(--gray-l); background: var(--bg-deep); border: 1px solid rgba(134,121,230,.25); border-radius: var(--r-sm); padding: 12px 14px; resize: vertical; }
.share textarea:focus { outline: 0; border-color: var(--violet-vif); }

/* Ligne « personnages mystère » du classement */
.row--mystery { background: rgba(33,33,52,.45); border-style: dashed; border-color: rgba(159,160,164,.3); }
.row--mystery .row__name { color: var(--gray-l); }
.row--mystery .row__rank { color: var(--gray-d); }
.row__stack { display: flex; }
.row__stack .portrait { width: 48px; height: 48px; --mono: 1rem; }
.row__stack .portrait + .portrait { margin-left: -18px; }
.lock { font-size: 1rem; opacity: .7; }
@media (max-width: 780px) { .row__stack .portrait { width: 40px; height: 40px; } .other .mystery { width: 60px; } }
