/* SGPL — modules visuels des pages Gaming et Stations (28/11/2026)
   Sobres : violet en accent, mouvement lent, rien sans prefers-reduced-motion. */

.panel { border-radius: 28px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 4vw, 48px); }
.mini-label { display: block; font-size: 13.5px; color: var(--steel); margin-bottom: 12px; }
.grad-num { background: var(--copper-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; letter-spacing: -.04em; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; line-height: .95; }

/* ---------- Gaming : quel écran ---------- */
.scr { display: grid; gap: 36px; }
@media (min-width: 960px) { .scr { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; } }
.scr__seg { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.scr__panel { margin-top: 28px; min-height: 9.5em; }
.scr__panel .kicker { color: var(--violet-hi); margin-bottom: 8px; font-size: 14px; }
.scr__panel h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 10px; }
.scr__panel p:last-child { color: var(--mist); margin: 0; font-size: 16px; }
.scr__panel:not([hidden]) { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bars { display: grid; gap: 12px; margin: 28px 0 0; }
.bars div { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 14px; font-size: 14.5px; color: var(--mist); }
.bars dd { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bars dd i { height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); transition: background .45s var(--ease), box-shadow .45s; }
.bars dd i.on { background: var(--violet); box-shadow: 0 0 12px -2px rgba(122, 90, 248, .7); }
.bars dd i.on:nth-child(n+4) { background: var(--violet-hi); }

.scr__vis { display: grid; gap: 22px; }
.scr__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 6.25% 11.11%,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 6.25% 11.11%, #0b0a0a; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.scr__frame { position: absolute; left: 0; bottom: 0; border-radius: 0 10px 0 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: box-shadow .6s var(--ease), background .6s var(--ease); }
.scr__frame span { position: absolute; right: 10px; top: 8px; font-size: 12px; color: var(--steel); font-variant-numeric: tabular-nums; transition: color .4s; white-space: nowrap; }
.scr__frame[data-f="fhd"] { width: 50%; height: 50%; }
.scr__frame[data-f="qhd"] { width: 66.667%; height: 66.667%; }
.scr__frame[data-f="uw"]  { width: 89.583%; height: 66.667%; }
.scr__frame[data-f="4k"]  { width: 100%; height: 100%; border-radius: 0; }
.scr__frame[data-f="4k"] span { top: 10px; }
.scr__frame.is-on { background: radial-gradient(120% 120% at 0% 100%, rgba(122, 90, 248, .42), rgba(122, 90, 248, .1) 70%); box-shadow: inset 0 0 0 1.5px var(--violet-hi), 0 0 40px -6px rgba(122, 90, 248, .5); z-index: 2; }
.scr__frame.is-on span { color: #fff; }
.scr__frame.is-in-zone { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .35); }
.scr__stat { display: flex; align-items: baseline; gap: 16px; }
.scr__stat .grad-num { font-size: clamp(48px, 6vw, 72px); }
.scr__stat-txt { color: var(--mist); font-size: 15px; max-width: 22em; }

.hz { display: grid; gap: 8px; }
.hz__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--steel); font-variant-numeric: tabular-nums; }
.hz__track { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .04); overflow: hidden; display: flex; justify-content: space-around; align-items: center; }
.hz__track i { width: 2px; height: 12px; border-radius: 1px; background: rgba(255, 255, 255, .25); }
.hz__row--on .hz__track i { background: var(--violet-hi); }
.hz__track::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .22)); animation: sweep 2.4s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ---------- Icônes des réglages ---------- */
.commit svg { width: 30px; height: 30px; stroke: var(--violet-hi); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Frise du protocole de test ---------- */
.proto { position: relative; overflow: hidden; }
.proto__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 32px; margin-bottom: 34px; }
.proto__head h2 { max-width: 15em; }
.proto__clock { text-align: right; }
.proto__clock .grad-num { font-size: clamp(54px, 7vw, 88px); display: block; }
.proto__clock small { color: var(--steel); font-size: 13.5px; }
.proto__track { display: grid; grid-template-columns: 6fr 6fr 6fr 4fr 2fr; gap: 6px; }
.proto__seg { position: relative; }
.proto__bar { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.proto__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--violet-hi)); border-radius: 4px; }
.proto__seg b { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--steel); transition: color .4s; }
.proto__seg span { display: block; font-size: 13px; color: var(--steel); margin-top: 2px; }
.proto__seg.is-done b, .proto__seg.is-run b { color: var(--ink); }
.proto__seg.is-run b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-hi); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 0 4px rgba(167, 139, 250, .2); animation: pulse 1.2s ease-in-out infinite; }
.proto__seg.is-done b::before { content: "✓"; color: var(--violet-hi); margin-right: 8px; font-weight: 700; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); } }
.proto__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mist); font-size: 15px; }
.proto__foot a { color: var(--violet-hi); }
@media (max-width: 759px) {
  .proto__track { grid-template-columns: 1fr; gap: 16px; }
  .proto__seg { display: grid; grid-template-columns: 1fr; }
  .proto__seg b { margin-top: 8px; }
  .proto__clock { text-align: left; }
}

/* ---------- Types de jeu ---------- */
.genres { display: grid; gap: 12px; }
@media (min-width: 700px) { .genres { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .genres { grid-template-columns: repeat(4, 1fr); } }
.genre { position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 26px 24px 24px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.genre::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; background: radial-gradient(50% 50% at 50% 50%, rgba(122, 90, 248, .28), transparent 70%); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.genre:hover { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .45); transform: translateY(-3px); }
.genre:hover::before { opacity: 1; }
.genre svg { width: 34px; height: 34px; stroke: var(--violet-hi); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.genre h3 { font-size: 21px; margin-bottom: 10px; }
.genre p { color: var(--steel); font-size: 15.5px; margin: 0 0 24px; }
.genre .bars { margin-top: auto; gap: 8px; }
.genre .bars div { grid-template-columns: 92px 1fr; font-size: 13px; }
.genre .bars dd i { height: 6px; }

/* ---------- Climat : chiffres ---------- */
.stats { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-radius: 22px; padding: 26px 24px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); }
.stat .grad-num { display: block; font-size: clamp(48px, 5.5vw, 68px); margin-bottom: 12px; }
.stat p { margin: 0; color: var(--mist); font-size: 15.5px; }

/* ---------- Stations : logiciels et composants ---------- */
.soft { display: grid; gap: 28px; }
@media (min-width: 960px) { .soft { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.soft__list { display: grid; gap: 6px; }
.soft__list button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); transition: background .3s, box-shadow .3s, color .3s; }
.soft__list button small { display: block; color: var(--steel); font-size: 13px; margin-top: 2px; }
.soft__list button b { font-weight: 600; font-size: 15.5px; color: inherit; }
.soft__list button::after { content: "→"; color: var(--steel); transition: transform .3s var(--ease), color .3s; }
.soft__list button:hover { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.soft__list button[aria-pressed="true"] { background: var(--violet-dim); box-shadow: inset 0 0 0 1.5px var(--violet-hi); color: var(--ink); }
.soft__list button[aria-pressed="true"]::after { color: var(--violet-hi); transform: translateX(3px); }
.soft__list button[aria-pressed="true"] small { color: var(--mist); }

.board { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; background:
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1.2px) 0 0 / 18px 18px, #0b0a0a; box-shadow: inset 0 0 0 1px var(--line); }
.board svg.traces { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; fill: none; }
.board svg.traces path { vector-effect: non-scaling-stroke; }
.chip-c { position: absolute; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.25; color: var(--steel); background: #151413; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .5s var(--ease), box-shadow .5s var(--ease), color .5s; }
.chip-c b { font-weight: 600; font-size: 13.5px; color: var(--mist); transition: color .5s; }
.chip-c[data-lvl="1"] { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .45); background: rgba(122, 90, 248, .1); }
.chip-c[data-lvl="2"] { background: linear-gradient(140deg, rgba(122, 90, 248, .55), rgba(91, 63, 214, .35)); box-shadow: inset 0 0 0 1.5px var(--violet-hi), 0 0 46px -4px rgba(122, 90, 248, .65); color: #e9e4ff; }
.chip-c[data-lvl="2"] b, .chip-c[data-lvl="1"] b { color: #fff; }
.chip-c--cpu { left: 36%; top: 12%; width: 26%; aspect-ratio: 1; }
.chip-c--cpu::before { content: ""; position: absolute; inset: 18%; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.chip-c--ram { left: 68%; top: 8%; width: 24%; height: 38%; padding: 0; background: none; box-shadow: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chip-c--ram i { border-radius: 4px; background: #151413; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: inherit; }
.chip-c--ram[data-lvl="1"] i { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .5); background: rgba(122, 90, 248, .12); }
.chip-c--ram[data-lvl="2"] i { background: linear-gradient(180deg, rgba(122, 90, 248, .6), rgba(91, 63, 214, .35)); box-shadow: inset 0 0 0 1.5px var(--violet-hi), 0 0 24px -4px rgba(122, 90, 248, .7); }
.chip-c--ram[data-lvl] { background: none; box-shadow: none; }
.chip-c--ram > span { position: absolute; left: 0; right: 0; top: calc(100% + 8px); }
.chip-c--gpu { left: 8%; top: 58%; width: 66%; height: 22%; }
.chip-c--gpu::after { content: ""; position: absolute; right: 14px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.chip-c--ssd { left: 8%; top: 18%; width: 22%; height: 13%; }
.board__note { margin-top: 18px; min-height: 7.5em; }
.board__note h3 { font-size: 21px; margin-bottom: 8px; }
.board__note p { color: var(--mist); font-size: 15.5px; margin: 0; }
.board__note:not([hidden]) { animation: fadeUp .5s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--steel); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l2 { background: var(--violet); box-shadow: 0 0 8px rgba(122, 90, 248, .8); }
.legend .l1 { background: rgba(122, 90, 248, .15); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .5); }

/* ---------- Stations : en ligne ou en local ---------- */
.flow { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
.lane { border-radius: 22px; padding: 26px 24px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); }
.lane--local { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .4); background: linear-gradient(160deg, rgba(122, 90, 248, .14), var(--graphite) 55%); }
.lane h3 { font-size: 19px; margin-bottom: 20px; }
.lane__path { display: flex; align-items: flex-start; gap: 0; }
.node { flex: none; display: grid; place-items: center; gap: 6px; width: 88px; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--steel); }
.node svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; stroke: var(--mist); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; background: #151413; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.lane--local .node svg { stroke: #fff; background: rgba(122, 90, 248, .25); box-shadow: inset 0 0 0 1px var(--violet-hi); }
.wire { position: relative; flex: 1; height: 2px; margin: 20px 2px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 6px, transparent 6px 11px); overflow: visible; }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); animation: travel 2.6s linear infinite; }
.wire i:nth-child(2) { animation-delay: -1.3s; }
.lane--local .wire { background: linear-gradient(90deg, var(--violet), var(--violet-hi)); }
.lane--local .wire i { background: #fff; box-shadow: 0 0 10px var(--violet-hi); animation-duration: 1.4s; }
.lane--local .wire i:nth-child(2) { animation-delay: -.7s; }
@keyframes travel { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.lane ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--mist); }
.lane ul li { padding-left: 22px; position: relative; }
.lane ul li::before { content: "–"; position: absolute; left: 0; color: var(--steel); }
.lane--local ul li::before { content: "✓"; color: var(--violet-hi); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .hz__track::after, .wire i, .proto__seg.is-run b::before { animation: none; }
  .scr__panel:not([hidden]), .board__note:not([hidden]) { animation: none; }
  .genre, .genre:hover { transform: none; }
}
.proto__track { list-style: none; padding: 0; margin: 0; }
.chip-c--ram .chip-c__lab { font-size: 12.5px; }
.soft__list button > span { min-width: 0; }
.chip-c--ram > span { left: auto; right: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .chip-c { font-size: 11px; padding: 6px 8px; border-radius: 8px; }
  .chip-c b { font-size: 12px; }
  .chip-c--ssd { left: 4%; width: 29%; }
  .chip-c--gpu::after { width: 30px; height: 30px; margin-top: -15px; right: 10px; }
  .scr__frame:not(.is-on):not([data-f="4k"]) span { display: none; }
  .node { width: 70px; font-size: 11.5px; }
  .node svg { width: 38px; height: 38px; padding: 8px; }
  .wire { margin-top: 18px; }
}
