/* Site de Clone XVI (vitruvia.tv) : le jeu d'abord (Steam), puis le direct VitruvIA.tv, les classements, et la marque fictive VitruvIA en second plan. */

@font-face { font-family: 'Poppins'; font-weight: 300; src: url('/fonts/Poppins-Light.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 100; src: url('/fonts/Poppins-Thin.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plex Mono'; font-weight: 400; src: url('/fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plex Mono'; font-weight: 500; src: url('/fonts/IBMPlexMono-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Frontline'; src: url('/fonts/Frontline-Regular.otf') format('opentype'); font-display: swap; }

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f8;
  --ink: #1d1f2c;
  --ink-2: #4a4c5a;
  --mist: #8b8d98;
  --line: #e3e4ea;
  --violet: #7446f2;
  --violet-2: #9a78ff;
  --violet-soft: #efeafe;
  --air: #ff2e43;
  --night: #0e0f14;
  --night-2: #171821;
  --night-line: #2a2c38;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --mono: 'Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'Poppins', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; font-weight: 100; }
h1 em { font-style: normal; color: var(--violet); }
h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.06; font-weight: 100; }
h3 { font-size: 22px; line-height: 1.2; }
strong { font-weight: 500; font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.02em; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--violet-2); }
.eyebrow-light { color: #fff; }
.muted { color: var(--mist); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; font: 500 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-small { height: 40px; padding: 0 18px; font-size: 11px; }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -10px rgba(116, 70, 242, .7); }
.btn-violet:hover { background: #6236e0; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--violet); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--violet); }
.btn-line-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-line-light:hover { background: rgba(255,255,255,.12); }

.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--air); box-shadow: 0 0 0 0 rgba(255, 46, 67, .6); animation: rec 1.6s infinite; flex: none; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 46, 67, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 46, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 67, 0); } }

/* ------------------------------------------------------------ En-tête : barre flottante en verre, et la bande des records dessous */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px var(--gutter) 0; transition: padding .25s ease; }
.hdr { max-width: var(--max); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 10px 0 20px;
  background: rgba(255,255,255,.78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(29,31,44,.08); border-radius: 16px 16px 0 0; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.site-header.scrolled .hdr { box-shadow: 0 14px 40px -24px rgba(29,31,44,.45); }
.hdr-brand { display: flex; align-items: center; flex: none; }
.hdr-brand img { height: 28px; width: auto; }
.hdr-nav { display: flex; gap: 4px; margin: 0 auto; }
.hdr-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: background .15s, color .15s; }
.hdr-nav a:hover { background: rgba(116,70,242,.1); color: var(--violet); }
.hdr-nav a.on { background: var(--ink); color: #fff; }
.hdr-nav .rec { width: 7px; height: 7px; }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--paper-2); cursor: pointer; position: relative; }
.hdr-menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.hdr-menu span:first-child { top: 15px; } .hdr-menu span:last-child { top: 23px; }
.site-header.menu-open .hdr-menu span:first-child { top: 19px; transform: rotate(45deg); }
.site-header.menu-open .hdr-menu span:last-child { top: 19px; transform: rotate(-45deg); }

.hdr-records { max-width: var(--max); margin: 0 auto; height: 30px; display: flex; align-items: stretch; background: var(--night); color: #c9cad3;
  border-radius: 0 0 16px 16px; overflow: hidden; }
.hdr-records-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 20px; font: 500 10px/1 var(--mono); letter-spacing: .18em;
  text-transform: uppercase; color: #fff; background: var(--violet); }
.hdr-records-label .rec { width: 6px; height: 6px; background: #fff; box-shadow: none; animation: blink 1.2s steps(2, start) infinite; }
.hdr-records-track { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.hdr-records-move { position: absolute; left: 0; top: 50%; transform: translate(0, -50%); white-space: nowrap; font: 400 11.5px/1 var(--mono);
  letter-spacing: .04em; animation: tick 50s linear infinite; padding-left: 16px; }
.hdr-records-track:hover .hdr-records-move { animation-play-state: paused; }
.hdr-records-move a { color: inherit; text-decoration: none; padding: 4px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.hdr-records-move a:hover { background: rgba(255,255,255,.08); color: #fff; }
.hdr-records-move i { font-style: normal; color: var(--violet-2); }
.hdr-records-move b { color: #fff; font-weight: 500; }
.hdr-records-move .sep { color: #4a4c5a; padding: 0 10px; }

@media (max-width: 920px) {
  .site-header { padding: 6px 10px 0; }
  .hdr { padding: 0 8px 0 14px; height: 54px; border-radius: 14px 14px 0 0; }
  .hdr-records { border-radius: 0 0 14px 14px; height: 28px; }
  .hdr-records-label { padding: 0 10px 0 14px; }
  .hdr-brand img { height: 24px; }
  .hdr-menu { display: block; }
  .hdr-nav { position: absolute; top: calc(100% + 6px); left: 10px; right: 10px; flex-direction: column; gap: 2px; padding: 8px; margin: 0;
    background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(29,31,44,.4); border: 1px solid var(--line);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s; }
  .site-header.menu-open .hdr-nav { opacity: 1; transform: none; pointer-events: auto; }
  .hdr-nav a { padding: 14px; font-size: 13px; }
  .hdr-actions { margin-left: auto; }
}
@media (max-width: 420px) { .hdr-actions .btn-steam span { display: none; } .hdr-actions .btn-steam { padding: 0 12px; } }

/* ------------------------------------------------------------ Lecteur : habillage réduit */
.ov { position: absolute; z-index: 2; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.ov-top { top: 14px; }
.ov-bottom { bottom: 16px; justify-content: space-between; }
.ov-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(29,31,44,.82); color: #fff; padding: 7px 10px; border-radius: 6px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ov-tag .rec { display: none; }
.ov-live { background: var(--air); }
.ov-live .rec { display: block; width: 6px; height: 6px; background: #fff; box-shadow: none; animation: blink 1.2s steps(2, start) infinite; }
.ov-seg { background: rgba(255,255,255,.82); color: var(--ink); padding: 7px 10px; border-radius: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ov-seg:empty { display: none; }
.ov-who { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.9); color: var(--ink); padding: 6px 12px 6px 6px; border-radius: 8px;
  font: 300 17px/1 var(--sans); max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ov-rank { background: var(--ink); color: #fff; font: 500 12px/1 var(--mono); padding: 6px 7px; border-radius: 5px; }
.ov-rank:empty, .ov-name:empty { display: none; }
.ov-who:has(.ov-name:empty) { display: none; }
.ov-time { background: var(--ink); color: #fff; font: 500 22px/1 var(--mono); font-variant-numeric: tabular-nums; padding: 8px 11px; border-radius: 8px; }
.screen.no-gl .ov-bottom, .screen.no-gl .ov-seg, .screen.no-gl .progress { display: none; }
@media (max-width: 720px) {
  .ov { left: 8px; right: 8px; }
  .ov-top { top: 8px; } .ov-bottom { bottom: 10px; }
  .ov-seg { display: none; }
  .ov-tag { padding: 5px 7px; font-size: 9px; }
  .ov-who { font-size: 13px; padding: 4px 8px 4px 4px; }
  .ov-rank { font-size: 10px; padding: 4px 5px; }
  .ov-time { font-size: 14px; padding: 5px 7px; }
}

.guide-more { margin-top: auto; padding-top: 16px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); text-decoration: none; }
.guide-more:hover { color: #fff; }

/* ------------------------------------------------------------ Accueil : aperçu des classements */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.teaser .section-sub { margin-bottom: 30px; }
.teaser-board { background: var(--night); color: #fff; border-radius: 12px; padding: 22px 24px; }
.teaser-head { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8a8c99; margin-bottom: 12px; }
.teaser-rows { list-style: none; margin: 0; padding: 0; }
.teaser-rows li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; padding: 14px 0; border-top: 1px solid var(--night-line); }
.teaser-rows li.muted { display: block; color: #8a8c99; }
.tr-rank { font: 500 14px/1 var(--mono); color: var(--violet-2); }
.tr-name { font-size: 18px; }
.tr-time { font: 400 16px/1 var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; gap: 28px; } }

/* ------------------------------------------------------------ Page des classements */
.lb { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.lb-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.lb-hero h1 { font-size: clamp(40px, 5.4vw, 76px); }
.lb-hero .section-sub { max-width: 560px; }
.lb-stats { display: flex; gap: 36px; align-items: flex-end; flex-wrap: wrap; }
.lb-stats > div { display: flex; flex-direction: column; gap: 6px; }

.lb-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.cat { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .15s, box-shadow .15s; font-family: var(--sans); color: var(--ink); }
.cat:hover { border-color: var(--violet); transform: translateY(-2px); }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 16px 30px -18px rgba(29,31,44,.7); }
.cat-label { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.cat.on .cat-label { color: var(--violet-2); }
.cat-title { font-size: 17px; line-height: 1.2; }
.cat-wr { font: 400 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; margin-top: auto; }
.cat-wr small { display: block; font-size: 11px; color: var(--mist); margin-top: 3px; }
.cat-soon { opacity: .55; cursor: default; background: var(--paper-2); }
.cat-soon:hover { transform: none; border-color: var(--line); }

.lb-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lb-left { position: sticky; top: 112px; }
.lb-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--night); color: #fff; padding: 8px 10px; border-radius: 10px; flex-wrap: wrap; }
.ctl { width: 36px; height: 36px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font: 400 20px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.ctl:hover { background: var(--violet); }
.ctl-play span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.ctl-play.paused span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
#lb-scrub { flex: 1; min-width: 120px; accent-color: var(--violet); }
.ctl-clock { font: 400 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: #c9cad3; }
.ctl-speed { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px; }
.ctl-speed button { border: 0; background: transparent; color: #c9cad3; font: 500 11px/1 var(--mono); padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.ctl-speed button.on { background: #fff; color: var(--ink); }
.lb-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; min-height: 44px; }
.now-rank { font: 500 14px/1 var(--mono); color: var(--violet); }
.now-name { font-size: 22px; }
.now-time { font: 400 18px/1 var(--mono); font-variant-numeric: tabular-nums; }
.now-gap { font: 400 12px/1 var(--mono); color: var(--mist); }
.now-gap.wr { color: var(--violet); }
.now-note { font: 400 12px/1.4 var(--mono); color: var(--mist); }
.medal-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.medal-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }

.lb-wr { background: var(--night); color: #fff; border-radius: 12px; padding: 20px 22px 18px; margin-bottom: 14px; }
.lb-wr-head { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8a8c99; }
.lb-wr h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; margin: 10px 0 16px; }
.lb-wr-record { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.lb-wr-tag { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--violet-2); }
.lb-wr-time { font: 300 34px/1 var(--mono); font-variant-numeric: tabular-nums; }
.lb-wr-who { font-size: 16px; color: #c9cad3; }
.lb-medals { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lb-medals li { background: rgba(255,255,255,.05); border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; border-top: 3px solid var(--c); }
.m-name { font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.m-time { font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.m-count { font: 400 10px/1 var(--mono); color: #8a8c99; }
.lb-note { font-size: 13px; color: #a7a9b6; margin: 14px 0 0; }

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); padding: 12px 12px; background: var(--paper-2); }
.lb-table td { padding: 12px 12px; border-top: 1px solid var(--line); font-size: 16px; }
.lb-table td.c-rank { font: 500 13px/1 var(--mono); color: var(--mist); white-space: nowrap; width: 54px; }
.lb-table .podium-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lb-table .podium-1 .podium-dot { background: #f2c94c; } .lb-table .podium-2 .podium-dot { background: #b9bec9; } .lb-table .podium-3 .podium-dot { background: #c9824a; }
.lb-table .podium-1 td.c-rank { color: var(--ink); }
.lb-table td.c-player small { display: block; font: 400 10.5px/1.3 var(--mono); color: var(--mist); }
.lb-table th.c-time, .lb-table th.c-gap { text-align: right; }
.lb-table td.c-time, .lb-table td.c-gap { text-align: right; font: 400 14px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-table td.c-gap { color: var(--mist); font-size: 12px; }
.lb-table .c-medal { text-align: right; width: 1%; }
.lb-table .c-watch { width: 44px; text-align: right; }
.lb-table tr.watchable { cursor: pointer; }
.lb-table tr.watchable:hover td { background: #faf9ff; }
.lb-table tr.playing td { background: var(--violet-soft); }
.lb-table .watch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 11px; }
.lb-table tr.playing .watch, .lb-table .watch:hover { background: var(--violet); color: #fff; border-color: var(--violet); }

.lb-cta { margin-top: 70px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, #6236e0, var(--violet) 45%, #9a6bff);
  color: #fff; border-radius: 14px; padding: clamp(28px, 4vw, 48px); }
.lb-cta h2 { font-size: clamp(26px, 3vw, 40px); }
.lb-cta p { margin: 10px 0 0; color: rgba(255,255,255,.85); max-width: 560px; }

@media (max-width: 1000px) {
  .lb-main { grid-template-columns: 1fr; }
  .lb-left { position: static; }
}
@media (max-width: 640px) {
  .lb { padding-top: 32px; }
  .lb-medals { grid-template-columns: repeat(3, 1fr); }
  .lb-table th, .lb-table td { padding: 10px 6px; }
  .lb-table .c-medal, .lb-table th.c-medal { display: none; }
  .lb-table td { font-size: 14px; }
  .ctl-clock { order: 5; width: 100%; text-align: center; }
}

/* ------------------------------------------------------------ Le direct */
.live { background: radial-gradient(1200px 500px at 70% -10%, #23173f 0%, transparent 60%), var(--night); color: #fff; padding: 56px var(--gutter) 0; }
.live-head { max-width: var(--max); margin: 0 auto 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.live-title .eyebrow { margin-bottom: 14px; }
.live h2 { font-size: clamp(28px, 3.4vw, 46px); }
.live-sub { max-width: 420px; margin: 0; color: #a7a9b6; font-size: 15px; }

.live-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
@media (max-width: 1080px) { .live-grid { grid-template-columns: 1fr; } }

.screen { position: relative; aspect-ratio: 16 / 9; background: #e9e9ee; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); isolation: isolate; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.screen.no-gl .hud-bl, .screen.no-gl .hud-br, .screen.no-gl .progress, .screen.no-gl .screen-sound, .screen.no-gl #hud-cam { display: none; }
.hud { position: absolute; z-index: 2; pointer-events: none; display: flex; color: var(--ink); }
.hud-tl { top: 18px; left: 18px; gap: 8px; align-items: center; flex-wrap: wrap; }
.hud-tr { top: 16px; right: 18px; align-items: center; gap: 12px; }
.hud-bl { left: 18px; bottom: 26px; flex-direction: column; align-items: flex-start; gap: 6px; }
.hud-br { right: 18px; bottom: 26px; align-items: flex-end; gap: 18px; }
.tag-onair { display: inline-flex; align-items: center; gap: 8px; background: var(--air); color: #fff; padding: 7px 11px 7px 10px; border-radius: 3px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.tag-onair .rec { background: #fff; animation: blink 1.2s steps(2, start) infinite; box-shadow: none; }
@keyframes blink { to { visibility: hidden; } }
.hud-chip { background: rgba(29,31,44,.82); color: #fff; padding: 7px 10px; border-radius: 3px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hud-chip-ghost { background: rgba(255,255,255,.75); color: var(--ink); }
.bug { width: 34px; height: 34px; opacity: .9; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.clock { font: 500 12px/1 var(--mono); letter-spacing: .12em; background: rgba(255,255,255,.75); padding: 7px 9px; border-radius: 3px; }

.lt-seg { display: inline-flex; background: var(--violet); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lt-seg span { padding: 7px 10px; }
.lt-seg span + span { background: rgba(0,0,0,.18); }
.lt-main { display: inline-flex; align-items: stretch; background: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
.lt-rank { background: var(--ink); color: #fff; font: 500 22px/1 var(--mono); font-variant-numeric: tabular-nums; padding: 10px 12px 8px; display: flex; align-items: center; }
.lt-name { font: 300 26px/1 var(--sans); padding: 10px 18px 8px 14px; letter-spacing: -0.01em; }
.lt-sub { font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; background: rgba(255,255,255,.8); padding: 6px 8px; }
.readout { display: flex; flex-direction: column; align-items: flex-end; background: rgba(255,255,255,.78); padding: 7px 10px 6px; border-radius: 3px; min-width: 76px; }
.ro-label { font: 500 9px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.ro-value { font: 500 20px/1 var(--mono); font-variant-numeric: tabular-nums; }
.ro-unit { font: 500 9px/1 var(--mono); color: var(--mist); margin-top: 3px; }
.timer { font: 500 38px/1 var(--mono); font-variant-numeric: tabular-nums; color: #fff; background: var(--ink); padding: 10px 14px 9px; border-radius: 3px; letter-spacing: -0.01em; text-align: right; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(29,31,44,.15); z-index: 2; }
.progress-bar { height: 100%; width: 0; background: var(--violet); }

.slate { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--ink); text-align: center; transition: opacity .5s ease, visibility .5s; padding: 24px; }
.slate.off { opacity: 0; visibility: hidden; }
.slate-mark { width: 64px; height: 64px; margin-bottom: 8px; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.94); opacity: .75; } }
.slate-kicker { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.slate-title { font: 100 clamp(26px, 3.6vw, 48px)/1.1 var(--sans); }
.slate-meter { width: 180px; height: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.slate-meter div { height: 100%; width: 0; background: var(--violet); transition: width .2s; }
.screen-sound { position: absolute; z-index: 3; right: 18px; top: 60px; background: rgba(29,31,44,.82); color: #fff; border: 0; border-radius: 3px; padding: 7px 10px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity .2s; }
.screen:hover .screen-sound { opacity: 1; }
.screen-sound:hover { background: var(--violet); }

@media (max-width: 720px) {
  .hud-tl .hud-chip-ghost, .hud-tr .bug, .readout, .lt-sub { display: none; }
  .hud-tl { top: 10px; left: 10px; } .hud-tr { top: 10px; right: 10px; }
  .hud-bl { left: 10px; bottom: 14px; } .hud-br { right: 10px; bottom: 14px; }
  .lt-name, .lt-rank { font-size: 16px; padding-top: 7px; padding-bottom: 5px; }
  .lt-seg span { padding: 5px 7px; font-size: 9px; }
  .timer { font-size: 20px; padding: 7px 8px 6px; }
  .screen-sound { display: none; }
}

.guide { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 6px; padding: 22px 20px; display: flex; flex-direction: column; min-height: 0; }
.guide-head { display: flex; justify-content: space-between; align-items: baseline; }
.guide-head .eyebrow { margin-bottom: 16px; }
.guide-edition { font: 400 11px/1 var(--mono); color: #7f8190; letter-spacing: .1em; text-transform: uppercase; }
.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.guide-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 10px; border-radius: 4px; cursor: pointer; transition: background .15s; }
.guide-list li:hover { background: rgba(255,255,255,.05); }
.guide-list li.on { background: rgba(116, 70, 242, .18); box-shadow: inset 2px 0 0 var(--violet); }
.guide-list li.off { opacity: .4; cursor: default; }
.guide-list .g-num { font: 500 13px/1 var(--mono); color: #7f8190; }
.guide-list li.on .g-num { color: var(--violet-2); }
.guide-list .g-name { font-size: 14px; line-height: 1.25; }
.guide-list .g-who { display: block; font: 400 11px/1.4 var(--mono); color: #8a8c99; letter-spacing: .04em; }
.guide-list .g-time { font: 400 12px/1 var(--mono); color: #c9cad3; font-variant-numeric: tabular-nums; }
.guide-list .guide-empty { display: block; color: #7f8190; font: 400 12px/1.4 var(--mono); cursor: default; }
.guide-note { margin: auto 0 0; padding-top: 16px; font-size: 12px; line-height: 1.5; color: #6f7180; }

.ticker { max-width: var(--max); margin: 20px auto 0; display: flex; align-items: stretch; border-top: 1px solid var(--night-line); height: 48px; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 18px 0 0; font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--violet-2); }
.ticker-track { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { position: absolute; left: 0; white-space: nowrap; top: 50%; transform: translate(0, -50%); font: 400 13px/1 var(--mono); color: #c9cad3; letter-spacing: .04em; animation: tick 60s linear infinite; }
.ticker-move b { color: #fff; font-weight: 500; }
.ticker-move i { font-style: normal; color: var(--violet-2); }
@keyframes tick { from { transform: translate(0, -50%); } to { transform: translate(-50%, -50%); } }

/* ------------------------------------------------------------ Le jeu (en premier) */
section { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.brand-game { height: 30px; width: auto; }
.btn-steam { background: linear-gradient(180deg, #1b2838, #0e1621); color: #fff; box-shadow: 0 10px 30px -14px rgba(14, 22, 33, .9); }
.btn-steam:hover { background: var(--violet); }
.steam-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-small .steam-ico { width: 15px; height: 15px; }

.game-hero { min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: #fff; }
.game-hero-art { position: absolute; inset: 0; background: url('/media/hero.webp') 26% 50% / cover no-repeat; }
.game-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 72%); }
.game-hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter); }
.game-logo { width: min(560px, 86vw); height: auto; margin-left: -1.5%; }
.game-tag { font: 100 clamp(30px, 3.4vw, 48px)/1.1 var(--sans); margin: 26px 0 0; letter-spacing: -0.02em; }
.game-tag b { font-weight: 300; color: var(--violet); }
.game-pitch { max-width: 520px; color: var(--ink-2); font-size: 18px; margin: 22px 0 34px; }
.game-facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.game-facts li { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255,255,255,.8); padding: 9px 12px; border-radius: 999px; }
@media (max-width: 820px) {
  .game-hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .game-hero-art { position: relative; height: 46vw; min-height: 220px; background-position: 50% 40%; }
  .game-hero-art::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 40%); }
  .game-hero-text { padding-top: 10px; padding-bottom: 50px; }
}

.trailer { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.trailer-frame { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #e9e9ee; box-shadow: 0 50px 90px -50px rgba(29,31,44,.55); }
.trailer-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-sound { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink); padding: 12px 18px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); transition: background .2s, color .2s, opacity .3s; }
.trailer-sound:hover { background: var(--violet); color: #fff; }
.trailer-sound .ts-icon { font-size: 15px; }
.trailer-frame.sound-on .trailer-sound, .trailer-frame.sound-on .trailer-tag { opacity: 0; pointer-events: none; }
.segments-sub { margin: 8px 0 0; color: var(--mist); font-size: 15px; }
.trailer-tag { position: absolute; left: 16px; top: 16px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(29,31,44,.82); color: #fff; padding: 7px 10px; border-radius: 3px; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-sub { color: var(--ink-2); margin: 22px 0 0; font-size: 18px; }
.section-sub b { font-weight: 300; color: var(--violet); }
.features, .rankings { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 10vw, 140px) var(--gutter) 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--paper-2); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.feature video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #e3e4ea; }
.feature-text { padding: 20px 22px 24px; }
.feature h3 { font-size: 22px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature-wide { grid-column: span 2; grid-row: span 2; }
.feature-wide video { flex: 1; aspect-ratio: auto; min-height: 0; }
.feature-wide h3 { font-size: 28px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } .feature-wide { grid-column: span 2; grid-row: auto; } .feature-wide video { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } .feature-wide { grid-column: auto; } }

.segments { margin-top: 70px; border-top: 1px solid var(--line); padding-top: 34px; }
.segments-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.segments-head .eyebrow { margin-bottom: 12px; }
.segments-head h3 { font: 100 clamp(26px, 2.8vw, 38px)/1.15 var(--sans); }
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.modules li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modules li .mn { font: 500 14px/1 var(--mono); color: var(--violet); }
.modules li .mt { font-size: 17px; text-decoration: none; color: inherit; }
.modules li a.mt:hover { color: var(--violet); }
.modules li .mr { font: 400 13px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.modules li .mr small { display: block; color: var(--mist); font-size: 10px; margin-top: 4px; letter-spacing: .06em; }
.modules li.demo-only .mt::after { content: 'Demo'; margin-left: 8px; font: 500 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); border: 1px solid currentColor; padding: 3px 5px; border-radius: 3px; vertical-align: 3px; }
@media (max-width: 960px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }
.medals { display: flex; gap: 8px; flex-wrap: wrap; }
.medal { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.medal img { width: 22px; height: 22px; margin: -5px 0 -5px -4px; }
.m-bronze { --c: #c9824a; } .m-silver { --c: #b9bec9; } .m-gold { --c: #f2c94c; } .m-author { --c: #2fc9b0; } .m-clone { --c: var(--violet); color: var(--violet); border-color: var(--violet); }

.rank-stats { display: flex; gap: 48px; margin: -18px 0 34px; }
.rank-stats > div { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font: 300 34px/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }

/* ------------------------------------------------------------ Classements */
.rank-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; }
.seg button, .board-tabs button { border: 0; background: transparent; cursor: pointer; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 11px 16px; border-radius: 999px; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button:disabled { cursor: default; color: var(--mist); }
.soon { margin-left: 6px; font-size: 9px; color: var(--violet); border: 1px solid currentColor; padding: 2px 5px; border-radius: 3px; vertical-align: 1px; }
.board-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.board-tabs button { border: 1px solid var(--line); padding: 9px 12px; }
.board-tabs button:hover { border-color: var(--ink); }
.board-tabs button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.table-wrap { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th { text-align: left; font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mist); padding: 16px 20px; background: var(--paper-2); }
.rank-table td { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 17px; }
.rank-table tr:hover td { background: #fbfbfd; }
.c-rank { width: 90px; } .c-score { width: 200px; text-align: right !important; } .c-watch { width: 150px; text-align: right !important; }
.rank-table td.c-rank { font: 500 15px/1 var(--mono); color: var(--mist); }
.rank-table tr.podium-1 td.c-rank { color: var(--violet); }
.rank-table td.c-score { font: 400 16px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.rank-table td.c-watch { text-align: right; }
.rank-table .subject small { display: block; font: 400 11px/1.3 var(--mono); color: var(--mist); letter-spacing: .06em; margin-top: 2px; }
.watch { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.watch:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.watch-none { font: 400 11px/1 var(--mono); color: var(--line); }
.rank-foot { font: 400 12px/1.5 var(--mono); color: var(--mist); margin: 14px 0 0; }
@media (max-width: 640px) { .rank-table th, .rank-table td { padding: 12px 10px; } .c-rank { width: 50px; } .c-score { width: auto; } .c-watch { width: 80px; } .watch span { display: none; } .rank-table td { font-size: 15px; } }

/* ------------------------------------------------------------ VitruvIA (la blague, en second plan), appel final, pied */
.vitruvia { margin: clamp(90px, 10vw, 140px) var(--gutter) 0; border-radius: 10px; background: var(--paper-2); overflow: hidden; }
.vitruvia::before { content: ''; position: absolute; right: -4%; top: -10%; width: min(46vw, 520px); aspect-ratio: 1; background: url('/img/VitruvIA_symbole_violet.svg') center / contain no-repeat; opacity: .07; pointer-events: none; }
.v-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 72px); }
.v-head { max-width: 680px; }
.v-sponsor { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); border: 1px dashed var(--mist); padding: 7px 10px; border-radius: 3px; margin-bottom: 28px; }
.v-logo { display: block; height: 42px; width: auto; margin-bottom: 26px; }
.vitruvia h2 { font-size: clamp(30px, 3.6vw, 50px); }
.vitruvia h2 em { font-style: normal; color: var(--violet); }
.v-head p { color: var(--ink-2); margin: 20px 0 0; }
.v-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.v-card { background: #fff; border-radius: 6px; padding: 24px 24px 26px; }
.card-num { font: 500 13px/1 var(--mono); color: var(--violet); }
.v-card h3 { margin: 26px 0 8px; font-weight: 300; }
.v-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.v-faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--line); }
.v-faq details { border-bottom: 1px solid var(--line); }
.v-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 18px; position: relative; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 100 28px/1 var(--sans); color: var(--violet); transition: transform .2s; }
.v-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.v-faq details p { margin: 0 0 20px; color: var(--ink-2); }
.v-faq a { color: var(--violet); }
@media (max-width: 860px) { .v-cols { grid-template-columns: 1fr; } }

.cta-band { max-width: var(--max); margin: clamp(90px, 10vw, 140px) auto 0; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta-logo { width: min(420px, 80vw); height: auto; }
.cta-band p { font: 100 clamp(22px, 2.4vw, 32px)/1.2 var(--sans); margin: 0 0 10px; }

.footer { max-width: var(--max); margin: clamp(90px, 10vw, 140px) auto 0; padding: 60px var(--gutter) 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-logo { height: 40px; width: auto; }
.motto { font: 100 24px/1.3 var(--sans); margin: 18px 0 0; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { margin: 0 0 14px; font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.footer-cols a { display: block; text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer-cols a:hover { color: var(--violet); }
.disclaimer { grid-column: 1 / -1; font: 400 12px/1.6 var(--mono); color: var(--mist); margin: 20px 0 0; padding-top: 24px; border-top: 1px solid var(--line); max-width: 900px; }
.disclaimer strong { font-size: 1em; color: var(--ink-2); }
@media (max-width: 720px) { .footer { grid-template-columns: 1fr; } .footer-cols { gap: 40px; } }


/* ------------------------------------------------------------ Classements : carrousel, médailles du jeu, icônes */
.lb-cats-wrap { position: relative; margin-bottom: 26px; }
.lb-cats { scrollbar-width: none; scroll-behavior: smooth; margin-bottom: 0; padding: 4px 2px 8px; }
.lb-cats::-webkit-scrollbar { display: none; }
.cats-arrow { position: absolute; top: 50%; transform: translateY(-55%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(29,31,44,.5); transition: opacity .2s, background .15s, color .15s; }
.cats-arrow svg { width: 16px; height: 16px; }
.cats-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cats-prev { left: -14px; } .cats-next { right: -14px; }
.cats-arrow.off { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .cats-prev { left: -4px; } .cats-next { right: -4px; } .cats-arrow { width: 36px; height: 36px; } }

.ctl svg { width: 16px; height: 16px; display: block; }
.lb-table .watch { display: inline-grid; place-items: center; padding: 0; }
.lb-table .watch svg { width: 12px; height: 12px; fill: currentColor; display: block; transform: translateX(1px); }
.lb-left.no-replay .lb-controls { opacity: .35; pointer-events: none; }
.screen.idle .ov-bottom, .screen.idle .progress, .screen.idle .ov-seg { display: none; }

.medal-chip img { width: 18px; height: 18px; margin: -3px 0 -3px -2px; }
.medal-chip::before { content: none; }
.lb-medals { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.lb-medals li { flex-direction: row; align-items: center; gap: 10px; padding: 10px; border-top: 0; border-left: 3px solid var(--c); }
.m-img { width: 40px; height: 40px; flex: none; }
.m-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (max-width: 640px) {
  .lb-medals { grid-template-columns: 1fr 1fr; }
  .lb-medals li:first-child { grid-column: 1 / -1; }
  .m-img { width: 34px; height: 34px; }
}

/* ------------------------------------------------------------ Page VitruvIA */
.vit { overflow: hidden; }
.vit-hero { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter) 70px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.vit-hero h1 em { font-style: normal; color: var(--violet); }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 560px; margin: 28px 0 36px; }
.rec-white { background: #fff; box-shadow: none; animation: blink 1.2s steps(2, start) infinite; }
.vit-mark { margin: 0; text-align: center; position: relative; }
.vit-mark figcaption { margin-top: 18px; font: 400 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mist); opacity: 0; animation: rise .8s ease 3.6s forwards; }
.vit-word { width: min(78%, 360px); margin: 26px auto 0; opacity: 0; animation: rise 1s ease 3.1s forwards; }
.canon { width: min(100%, 420px); overflow: visible; }
.canon .construction { fill: none; stroke: var(--violet); stroke-width: 0.035; stroke-linecap: round; }
.canon .construction > * { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) forwards, fade-line 1.2s ease 3s forwards; }
.canon .c-circle { animation-delay: .2s, 3s; }
.canon .c-square { animation-delay: .6s, 3s; }
.canon .c-tri { fill: rgba(116,70,242,.12); animation-delay: 1s, 3s; }
.canon .c-axis { stroke-dasharray: 2 .25; stroke-dashoffset: 0; opacity: 0; animation: appear .8s ease .3s forwards, fade-line 1.2s ease 3s forwards; }
.canon .c-axis-2 { animation-delay: .5s, 3s; }
.canon .glyph path { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: carve .9s cubic-bezier(.2,.8,.2,1) forwards; }
.canon .glyph path:nth-child(1) { animation-delay: 1.7s; }
.canon .glyph .g-dome { fill: var(--violet); animation-delay: 1.95s; }
.canon .glyph path:nth-child(3) { animation-delay: 2.2s; }
.canon .labels text { font: 500 0.42px var(--mono); fill: var(--violet); opacity: 0; animation: appear .6s ease 1.3s forwards, fade-line 1.2s ease 3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes fade-line { to { opacity: .28; } }
@keyframes carve { from { opacity: 0; transform: scale(.92) translateY(.3px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .vit-hero { grid-template-columns: 1fr; gap: 30px; } .vit-mark { order: -1; } .canon { width: 220px; } .vit-word { width: 220px; } }

.metrics { max-width: var(--max); margin: 0 auto 90px; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 30px 20px 28px 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric + .metric { padding-left: 20px; border-left: 1px solid var(--line); }
.metric-value { font: 100 clamp(36px, 4vw, 56px)/1 var(--sans); letter-spacing: -0.03em; }
.metric-label { font: 400 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 820px) { .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(3) { padding-left: 0; border-left: 0; } }

.vit-values, .programme, .faq { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 9vw, 130px) var(--gutter) 0; }
.vit-values .v-card { background: var(--paper-2); }
.branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.branch { background: #fff; padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.branch-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 46px; }
.branch-code { font: 30px/1 'Frontline', var(--mono); color: var(--line); }
.branch-active .branch-code { color: var(--violet); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; }
.status-live { color: var(--ink); border-color: var(--ink); }
.branch h3 { font-weight: 300; }
.branch p { margin: 0; font-size: 15px; color: var(--ink-2); min-height: 6.4em; }
.branch-link { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--violet); text-decoration: none; }
.branch-active { background: linear-gradient(180deg, var(--violet-soft), #fff 70%); }
.redact { background: var(--ink); color: var(--ink); border-radius: 2px; line-height: 1.9; user-select: none; }
.branch-redacted h3 { color: var(--mist); }
@media (max-width: 1020px) { .branches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .branches { grid-template-columns: 1fr; } .branch { min-height: 0; } .branch p { min-height: 0; } .branch-top { padding-bottom: 20px; } }
.page-vit .live { margin-top: 0; }
.cta-mark { width: 72px; height: 72px; }

/* ?tv : l'écran du direct seul, plein cadre (captures de contrôle). */
body.tvmode .screen { position: fixed; inset: 0; z-index: 100; border-radius: 0; aspect-ratio: auto; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .canon .construction > *, .canon .glyph path, .canon .labels text, .vit-word, .vit-mark figcaption { stroke-dashoffset: 0; opacity: 1; }
}

/* Page 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); gap: 6px; }
.lost-mark { width: 72px; height: 72px; margin-bottom: 24px; }
.lost .hero-cta { justify-content: center; margin-top: 28px; }
