/* Police du logo ECM27, fournie avec le site (licence OFL, voir assets/fonts). */
@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* ZF GAMES — couche ludique : arcade (pack scouting + simulateur), XP, succès, effets visuels. */
:root {
  --violet: #a77bff;
  --r-common: #9fb0d6;
  --r-gold: #f2b53b;
  --r-elite: #a77bff;
  --r-legend: #ff5fa2;
}

/* ---------------------------------------------------------------- Embellissements globaux */
.hero h1 em, .hero h1 em .w > span { background-size: 220% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.hero-logo { transition: transform .25s ease-out; animation: none; }
.hero-logo-wrap { justify-self: end; position: relative; width: min(420px, 100%); animation: floaty 7s ease-in-out infinite; }
.hero-logo-wrap::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--blue), var(--cyan), var(--gold), var(--violet), var(--blue));
  filter: blur(46px); opacity: .45; animation: spin 14s linear infinite;
}
.hero-logo-wrap .hero-logo { width: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Orbes flottants dans le fond */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { width: 380px; height: 380px; left: -120px; top: 30%; background: var(--blue); }
.orbs i:nth-child(2) { width: 280px; height: 280px; right: -80px; top: 60%; background: var(--violet); animation-duration: 32s; opacity: .14; }
.orbs i:nth-child(3) { width: 220px; height: 220px; left: 40%; top: 110%; background: var(--gold); animation-duration: 38s; opacity: .1; }
@keyframes drift { to { transform: translate3d(80px, -260px, 0) scale(1.2); } }

/* Stats du hero façon HUD */
.hero-stats > div { position: relative; transition: background .3s; }
.hero-stats > div:hover { background: rgba(36, 71, 214, .14); }
.hero-stats > div::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 14px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-l), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.hero-stats.in > div::after { transform: scaleX(var(--fill, .8)); }
.hero-stats > div:nth-child(1) { --fill: .6; } .hero-stats > div:nth-child(2) { --fill: .95; }
.hero-stats > div:nth-child(3) { --fill: .75; } .hero-stats > div:nth-child(4) { --fill: .4; }

/* Bordure animée (vitrine, CTA) */
.showcase, .cta, .arcade-panel { position: relative; }
.showcase::after, .cta::after, .arcade-panel::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--blue-l) 72%, var(--gold) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 6s linear infinite; opacity: .9;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ang { to { --ang: 360deg; } }

/* Reflet holographique sur les cartes */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 30%, rgba(125, 162, 255, .22) 42%, rgba(242, 181, 59, .2) 50%, rgba(167, 123, 255, .2) 58%, transparent 70%);
  background-size: 250% 250%; background-position: calc(var(--hx, .5) * 100%) 50%;
}
.card:hover::after { opacity: 1; }

/* Icônes qui s'animent */
.value .ico { transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .3s; }
.value:hover .ico { transform: rotate(-8deg) scale(1.12); background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 10px 30px -8px rgba(36, 71, 214, .9); }
.value { position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(125, 162, 255, .18), transparent 70%); transition: transform .6s var(--ease); }
.value:hover::before { transform: scale(1.8); }

/* Marquee avec dégradé quand on survole */
.marquee span { transition: color .3s; }
.marquee span:hover { color: var(--gold); -webkit-text-stroke: 0; }

/* Étincelles au clic */
.spark { position: fixed; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 2000; animation: spark .7s var(--ease) forwards; }
@keyframes spark { to { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; } }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; pointer-events: none; z-index: 2000; border-radius: 2px; animation: fall var(--t, 2.6s) cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* Logo wordmark */
.wordmark { width: min(340px, 80%); filter: drop-shadow(0 10px 30px rgba(36, 71, 214, .5)); }

/* ---------------------------------------------------------------- Bouton retour en haut avec anneau de progression */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 16, 32, .85); backdrop-filter: blur(10px); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(20px) scale(.8); transition: .4s var(--ease); pointer-events: none;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.to-top .ar { width: 20px; }

/* ---------------------------------------------------------------- HUD XP */
.xp-hud {
  position: fixed; left: 22px; bottom: 22px; z-index: 150; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
  border-radius: 999px; background: rgba(10, 16, 32, .88); backdrop-filter: blur(12px); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .9); transition: transform .35s var(--ease), border-color .3s; text-align: left;
}
.xp-hud:hover { transform: translateY(-3px); border-color: var(--gold); }
.xp-lvl {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 16px; color: #07101f;
  background: linear-gradient(135deg, var(--gold), #ffd983 55%, var(--gold-d)); box-shadow: 0 0 18px rgba(242, 181, 59, .45);
}
.xp-hud.bump .xp-lvl { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35) rotate(-10deg); } }
.xp-info { display: grid; gap: 5px; min-width: 130px; }
.xp-title { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--soft); white-space: nowrap; }
.xp-title b { color: #fff; }
.xp-bar { height: 6px; border-radius: 6px; background: rgba(125, 162, 255, .16); overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue-l), var(--gold)); transition: width .8s var(--ease); }
.xp-trophy { font-size: 12px; color: var(--muted); font-weight: 600; }

.ach-panel {
  position: fixed; left: 22px; bottom: 86px; z-index: 160; width: min(360px, calc(100% - 44px)); max-height: min(560px, 70vh); overflow: auto;
  padding: 22px; border-radius: 22px; background: rgba(10, 16, 32, .96); backdrop-filter: blur(16px); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: bottom left; transition: .35s var(--ease);
}
.ach-panel.open { opacity: 1; visibility: visible; transform: none; }
.ach-panel h4 { font-size: 20px; margin-bottom: 4px; }
.ach-panel .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.ach-list { display: grid; gap: 8px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 23, 43, .6); }
.ach .ai { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(125, 162, 255, .1); color: var(--muted); }
.ach .ai svg { width: 18px; }
.ach b { display: block; font-size: 14px; font-family: var(--head); }
.ach small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; }
.ach .xp { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ach.got { border-color: rgba(242, 181, 59, .35); background: linear-gradient(90deg, rgba(242, 181, 59, .1), rgba(15, 23, 43, .6)); }
.ach.got .ai { background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; }
.ach.got .xp { color: var(--gold); }
.ach:not(.got) b { color: var(--soft); }
.ach-reset { margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: underline; }

/* Toasts */
.toasts { position: fixed; top: 92px; right: 22px; z-index: 1500; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: flex; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; min-width: 260px; max-width: 340px;
  background: linear-gradient(135deg, rgba(20, 31, 58, .97), rgba(10, 16, 32, .97)); border: 1px solid rgba(242, 181, 59, .45);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 30px -10px rgba(242, 181, 59, .4);
  animation: toastIn .55s var(--ease) both;
}
.toast.out { animation: toastOut .45s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }
.toast .ti { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; }
.toast .ti svg { width: 22px; }
.toast small { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.toast b { font-family: var(--head); font-size: 16px; display: block; }
.toast span { font-size: 12.5px; color: var(--soft); }
.toast.lvl { border-color: var(--blue-l); }
.toast.lvl .ti { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; }
.toast.lvl small { color: var(--blue-l); }

/* ---------------------------------------------------------------- Arcade */
.arcade-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: 50px; }
.arcade-head h2 { font-size: clamp(34px, 4.8vw, 66px); max-width: 18ch; }
.arcade-head p { color: var(--soft); max-width: 58ch; }
.arcade { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.arcade-panel {
  border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line);
  background: radial-gradient(80% 60% at 50% 0%, rgba(36, 71, 214, .22), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2));
}
.ap-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.ap-top h3 { font-size: 26px; }
.ap-top .tag { margin-bottom: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--soft); border: 1px solid var(--line-strong); background: rgba(15, 23, 43, .6); }
.pill b { color: var(--gold); font-family: var(--head); }

/* Cartes de joueur */
.pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); perspective: 1400px; }
.pcard { position: relative; aspect-ratio: 5 / 7; cursor: pointer; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.pcard.flip { transform: rotateY(180deg); }
.pcard.flip.picked { transform: rotateY(180deg) translateY(-10px); }
.pcard .face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.pcard .back {
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  background: repeating-linear-gradient(45deg, rgba(125, 162, 255, .06) 0 10px, transparent 10px 20px), radial-gradient(circle at 50% 40%, #1d3280, #0b1330 70%);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pcard:not(.flip):hover .back { box-shadow: 0 0 0 2px var(--gold), 0 20px 40px -14px rgba(242, 181, 59, .5); }
.pcard:not(.flip) { animation: idle 3.2s ease-in-out infinite; }
.pcard:nth-child(2):not(.flip) { animation-delay: -1s; } .pcard:nth-child(3):not(.flip) { animation-delay: -2s; }
@keyframes idle { 50% { transform: translateY(-8px) rotate(.6deg); } }
.pcard .back .q { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6vw, 64px); color: rgba(125, 162, 255, .35); text-shadow: 0 0 30px rgba(125, 162, 255, .5); }
.pcard .back .zf { position: absolute; bottom: 14px; font-size: 10px; letter-spacing: .3em; color: rgba(125, 162, 255, .5); font-weight: 700; }
.pcard.shake .back { animation: shake .45s ease-in-out infinite; }
@keyframes shake { 25% { transform: rotate(-2.5deg) scale(1.03); } 75% { transform: rotate(2.5deg) scale(1.03); } }

.pcard .front {
  transform: rotateY(180deg); --rc: var(--r-common); padding: 14px 14px 12px; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 60%), linear-gradient(180deg, #141f3a, #0a1020);
  border: 2px solid var(--rc); box-shadow: 0 0 34px -8px var(--rc);
}
.pcard[data-r="gold"] .front { --rc: var(--r-gold); }
.pcard[data-r="elite"] .front { --rc: var(--r-elite); }
.pcard[data-r="legend"] .front { --rc: var(--r-legend); border-color: transparent; background-clip: padding-box; }
.pcard[data-r="legend"] .front::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 18px;
  background: conic-gradient(from var(--ang), #ff5fa2, #f2b53b, #00d4ff, #a77bff, #ff5fa2); animation: ang 3s linear infinite;
}
.pcard[data-r="legend"] .front { isolation: isolate; }
.pcard[data-r="legend"] .front .inner { position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 95, 162, .35), transparent 60%), linear-gradient(180deg, #1a1638, #0a1020); }
.pcard .front .holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .25) 45%, transparent 60%); background-size: 300% 300%; animation: holo 3.5s linear infinite; }
@keyframes holo { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-ovr { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); line-height: .9; color: var(--rc); }
.pc-ovr small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--soft); margin-top: 5px; white-space: nowrap; }
.pc-ovr small b { color: #7dffb0; font-family: var(--head); }
.pc-rar { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 22%, transparent); color: var(--rc); }
.pc-av { margin: 6px auto 4px; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px); color: #fff; background: linear-gradient(135deg, var(--h1), var(--h2)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 10px 26px -10px var(--h1); }
.pc-name { text-align: center; font-family: var(--head); font-weight: 700; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-team { text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-role { display: block; margin: 6px auto 0; width: max-content; font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--blue-l); }
.pc-attrs { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 11px; padding-top: 8px; border-top: 1px solid var(--line); }
.pc-attrs div { display: flex; justify-content: space-between; color: var(--muted); }
.pc-attrs b { color: #fff; font-family: var(--head); }
.pc-pot { position: absolute; top: 50px; left: 14px; font-size: 10px; color: var(--soft); }
.pc-pot b { color: #7dffb0; }
.pcard .pick-btn {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) rotateY(180deg); z-index: 5; backface-visibility: hidden;
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--gold); color: #07101f; white-space: nowrap;
  opacity: 0; transition: opacity .3s .6s; box-shadow: 0 8px 20px -6px rgba(242, 181, 59, .7);
}
.pcard.flip .pick-btn { opacity: 1; }
.pcard.picked .pick-btn { background: #7dffb0; }

.pack-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 40px; }
.pack-odds { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.pack-odds i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Effectif */
.squad { margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.squad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.squad-head b { font-family: var(--head); font-size: 17px; }
.squad-head span { font-size: 13px; color: var(--muted); }
.squad-head span b { color: var(--gold); font-size: 15px; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.slot { min-height: 64px; border-radius: 12px; border: 1px dashed var(--line-strong); display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--muted); padding: 6px 4px; position: relative; }
.slot.full { border-style: solid; border-color: var(--sc, var(--line-strong)); background: color-mix(in srgb, var(--sc, #9fb0d6) 10%, transparent); animation: pop .5s var(--ease); }
.slot .so { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--sc); line-height: 1; }
.slot .sn { color: #fff; font-weight: 600; font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .sx { position: absolute; top: 2px; right: 6px; color: var(--muted); font-size: 14px; line-height: 1; }
.slot .sx:hover { color: #fff; }

/* Simulateur */
.sim .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.sim .team-b { display: grid; gap: 4px; justify-items: center; }
.sim .crest { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff; transform: rotate(-4deg); }
.sim .crest.a { background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 12px 30px -10px var(--cyan); }
.sim .crest.b { background: linear-gradient(135deg, #b0204e, var(--r-legend)); box-shadow: 0 12px 30px -10px var(--r-legend); transform: rotate(4deg); }
.sim .tn { font-family: var(--head); font-weight: 700; font-size: 15px; margin-top: 6px; }
.sim .to { font-size: 12px; color: var(--muted); }
.sim .to b { color: #fff; }
.sim .vs-x { font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--gold); }
.score { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 22px 0 12px; font-family: var(--head); font-weight: 700; font-size: 54px; line-height: 1; }
.score span:nth-child(2) { font-size: 28px; color: var(--muted); }
.score.win { color: #7dffb0; text-shadow: 0 0 30px rgba(125, 255, 176, .5); } .score.lose { color: #ff7d9a; }
.prob { margin: 4px 0 14px; }
.prob-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.prob-l b { color: #fff; }
.prob-bar { height: 10px; border-radius: 10px; overflow: hidden; display: flex; background: rgba(255, 95, 162, .5); }
.prob-bar span { background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .8s var(--ease); }
.feed { height: 118px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 13px; color: var(--soft); mask-image: linear-gradient(transparent, #000 40%); -webkit-mask-image: linear-gradient(transparent, #000 40%); }
.feed div { animation: feedIn .4s var(--ease); display: flex; gap: 10px; }
.feed div em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.feed div.us { color: #9ad8ff; } .feed div.them { color: #ffadc4; } .feed div.end { color: var(--gold); font-weight: 600; }
@keyframes feedIn { from { opacity: 0; transform: translateY(10px); } }
.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; }
.sim-rec { font-size: 13px; color: var(--muted); }
.sim-rec b { color: #fff; font-family: var(--head); }
.sim-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- Feuille de route en mode quêtes */
.quest-bar { margin-bottom: 40px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.quest-bar .ql { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.quest-bar .ql b { font-family: var(--head); font-size: 20px; }
.quest-bar .ql span { color: var(--gold); font-family: var(--head); font-weight: 700; font-size: 26px; }
.quest-bar .qb { height: 12px; border-radius: 12px; background: rgba(125, 162, 255, .12); overflow: hidden; }
.quest-bar .qb i { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, var(--gold), var(--blue-l)); box-shadow: 0 0 20px rgba(242, 181, 59, .5); transition: width 1.8s var(--ease) .3s; }
.quest-bar.in .qb i { width: var(--p); }
.tl-xp { float: right; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: rgba(242, 181, 59, .12); color: var(--gold); }
.tl-item.next .tl-xp { background: rgba(125, 162, 255, .1); color: var(--muted); }
.tl-item.done h3::after { content: " ✓"; color: var(--gold); }

/* Galerie : petit compteur de captures vues */
.shot.seen::before { content: ""; position: absolute; top: 12px; right: 12px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1060px) {
  .arcade { grid-template-columns: 1fr; }
  .hero-logo-wrap { display: none; }
}
@media (max-width: 640px) {
  .xp-hud { left: 12px; bottom: 12px; padding: 6px 12px 6px 6px; } .xp-info { min-width: 96px; } .xp-trophy { display: none; }
  .xp-lvl { width: 34px; height: 34px; font-size: 14px; }
  .ach-panel { left: 12px; bottom: 70px; width: calc(100% - 24px); }
  .to-top { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .toasts { right: 12px; left: 12px; top: 84px; } .toast { max-width: none; min-width: 0; }
  .pc-attrs, .pc-team, .pc-ovr small b, .pc-ovr small { display: none; } .pcard .front { padding: 10px 8px; justify-content: space-between; }
  .pcard .pick-btn { bottom: -34px; font-size: 11px; padding: 6px 12px; } .pack-actions { margin-top: 54px; }
  .pc-av { width: 58%; margin: 8px auto; } .pc-name { font-size: 13px; } .pc-ovr { font-size: 28px; } .pcard { aspect-ratio: 3 / 4.2; }
  .pc-rar { font-size: 8px; padding: 3px 6px; }
  .slots { grid-template-columns: repeat(5, 1fr); gap: 5px; } .slot { min-height: 56px; } .slot .sn { font-size: 9.5px; }
  .score { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard { transition: none; } .orbs { display: none; }
}

/* ================================================================ Révision 2 */
/* Logo ZF GAMES (blanc) */
.zf-mark { gap: 12px; }
.zf-mark .zf-sym { height: 34px; width: auto; filter: drop-shadow(0 0 14px rgba(125, 162, 255, .35)); transition: transform .4s var(--ease); }
.zf-mark .zf-games { height: 13px; width: auto; opacity: .95; }
a:hover > .zf-mark .zf-sym { transform: rotate(-4deg) scale(1.06); }
.site-footer .zf-mark .zf-sym { height: 44px; } .site-footer .zf-mark .zf-games { height: 16px; }
.pl-logo { width: 190px; filter: drop-shadow(0 0 30px rgba(125, 162, 255, .45)); animation: plPulse 1.2s ease-in-out infinite; }
@keyframes plPulse { 50% { transform: scale(1.04); filter: drop-shadow(0 0 44px rgba(242, 181, 59, .45)); } }
.curtain { display: none; }

/* Hero : logo du jeu (wordmark) */
.hero-logo-wrap { width: min(500px, 100%); align-self: center; }
.hero-logo-wrap::before { inset: -10% 10%; border-radius: 50%; opacity: .32; }
.hero-logo-wrap .hero-logo { filter: drop-shadow(0 18px 40px rgba(36, 71, 214, .55)); }
.hero-grid { align-items: center; }
.subnav .sub-brand img { width: auto; height: 22px; }
@media (max-width: 1060px) { .hero-logo-wrap { display: block; justify-self: start; width: min(340px, 80%); margin-top: 10px; order: -1; } }

/* Vitrine : capture affichée en entier */
.showcase { grid-template-columns: 1.25fr .75fr; align-items: stretch; }
.showcase-media { min-height: 0; display: grid; place-items: center; padding: clamp(18px, 2.6vw, 34px); background: radial-gradient(80% 80% at 30% 30%, rgba(36, 71, 214, .35), transparent 70%), var(--panel-2); }
.showcase-media img { position: relative; inset: auto; width: 100%; height: auto; object-fit: contain; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.showcase-media .ph { display: none; }
.showcase:hover .showcase-media img { transform: scale(1.02) rotate(-.4deg); }

/* Licences : explorateur */
.lx { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.lx-tabs { display: grid; gap: 10px; align-content: start; }
.lx-tab { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); text-align: left; transition: .35s var(--ease); position: relative; }
.lx-tab:hover { border-color: var(--line-strong); transform: translateX(4px); }
.lx-tab.on { border-color: var(--a); background: linear-gradient(90deg, color-mix(in srgb, var(--a) 22%, transparent), var(--bg-2)); box-shadow: 0 14px 34px -18px var(--a); transform: translateX(8px); }
.lx-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.lx-tab b { display: block; font-family: var(--head); font-size: 17px; }
.lx-tab small { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lx-dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 10px #7dffb0; }
.lx-dot.off { background: var(--muted); box-shadow: none; }
.lx-panels { position: relative; border-radius: 26px; border: 1px solid var(--line); overflow: hidden; min-height: 440px; background: var(--bg-2); }
.lx-panel { position: absolute; inset: 0; padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 24px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: .5s var(--ease);
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--a) 30%, transparent), transparent 65%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.lx-panel.on { position: relative; opacity: 1; visibility: visible; transform: none; }
.lx-hero { display: flex; gap: 22px; align-items: center; }
.lx-big { flex: none; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 46px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 20px 40px -14px var(--a); transform: rotate(-5deg); }
.lx-panel.on .lx-big { animation: lxIn .7s var(--ease); }
@keyframes lxIn { from { transform: rotate(-40deg) scale(.5); opacity: 0; } }
.lx-hero h3 { font-size: clamp(28px, 3.4vw, 42px); margin: 6px 0 8px; }
.lx-hero p { color: var(--soft); max-width: 52ch; }
.lx-team { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: rgba(6, 10, 20, .45); border: 1px solid var(--line); }
.lx-lbl { font-family: var(--head); font-weight: 700; color: var(--b); margin-right: 6px; }
.lx-side { display: flex; gap: 6px; color: var(--a); }
.lx-side.them { color: var(--muted); }
.lx-side svg { width: 24px; }
.lx-panel.on .lx-side svg { animation: pop .5s var(--ease) both; }
.lx-panel.on .lx-side svg:nth-child(2) { animation-delay: .06s; } .lx-panel.on .lx-side svg:nth-child(3) { animation-delay: .12s; }
.lx-panel.on .lx-side svg:nth-child(4) { animation-delay: .18s; } .lx-panel.on .lx-side svg:nth-child(5) { animation-delay: .24s; }
.lx-vs { font-family: var(--head); font-weight: 700; color: var(--gold); font-size: 13px; }
.lx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lx-stat { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(15, 23, 43, .7); display: grid; gap: 4px; transition: .3s var(--ease); }
.lx-stat:hover { border-color: var(--a); transform: translateY(-4px); }
.lx-stat svg { width: 22px; color: var(--b); margin-bottom: 6px; }
.lx-stat small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lx-stat b { font-family: var(--head); font-size: 17px; }
.lx-status { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(125, 255, 176, .1); color: #7dffb0; }
.lx-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2s infinite; }
.lx-status.off { background: rgba(127, 139, 171, .12); color: var(--soft); }
@media (max-width: 900px) {
  .lx { grid-template-columns: 1fr; }
  .lx-tabs { grid-template-columns: repeat(2, 1fr); }
  .lx-tab.on, .lx-tab:hover { transform: none; }
  .lx-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lx-tab { padding: 10px; gap: 10px; } .lx-ico { width: 36px; height: 36px; font-size: 17px; } .lx-tab b { font-size: 14px; } .lx-tab small { font-size: 10px; }
  .lx-hero { flex-direction: column; align-items: flex-start; } .lx-big { width: 70px; height: 70px; font-size: 34px; }
  .lx-side svg { width: 18px; }
  .zf-mark .zf-sym { height: 28px; } .zf-mark .zf-games { height: 11px; }
}

/* ================================================================ Révision 3 */
/* ZF + GAMES en texte */
.zf-mark .zf-word { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: .16em; color: #fff; }
.site-footer .zf-mark .zf-word { font-size: 24px; }
@media (max-width: 640px) { .zf-mark .zf-word { font-size: 17px; } }

/* Logo ECM27 recréé en HTML (net à toutes les tailles) */
.ecm { --s: 64px; display: inline-grid; justify-items: start; line-height: 1; user-select: none; }
.ecm-top { font-family: var(--body); font-weight: 600; font-size: calc(var(--s) * .27); letter-spacing: .62em; color: #c7d0ea; margin: 0 0 calc(var(--s) * .08) calc(var(--s) * .04); text-shadow: 0 0 18px rgba(125, 162, 255, .35); }
.ecm-main { display: inline-flex; align-items: center; gap: calc(var(--s) * .1); }
.ecm-m {
  position: relative; font-family: "Archivo Black", var(--head); font-size: var(--s); letter-spacing: -.01em; line-height: .86;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5fc 42%, #b9c2d8 58%, #e6eaf4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10, 16, 32, .6)) drop-shadow(0 12px 26px rgba(36, 71, 214, .45));
}
.ecm-m::after {
  content: "MANAGER"; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .95) 48%, transparent 60%); background-size: 250% 100%; background-position: 160% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: ecmShine 5s ease-in-out infinite 1.2s;
}
@keyframes ecmShine { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.ecm-27 {
  font-family: "Archivo Black", var(--head); font-size: calc(var(--s) * .82); line-height: 1; color: #fff; padding: calc(var(--s) * .07) calc(var(--s) * .12) calc(var(--s) * .05);
  border-radius: calc(var(--s) * .16); background: linear-gradient(180deg, #5b86ff 0%, #2f5cf0 45%, #1d3fcf 100%);
  box-shadow: inset 0 calc(var(--s) * .04) 0 rgba(255, 255, 255, .45), inset 0 calc(var(--s) * -.05) 0 rgba(0, 0, 0, .25), 0 calc(var(--s) * .14) calc(var(--s) * .4) rgba(47, 92, 240, .55);
  transform: translateY(calc(var(--s) * -.02));
}
.ecm-sm .ecm-top { letter-spacing: .5em; }
.subnav .sub-brand { padding-block: 8px; }
.hero-logo-wrap { width: auto; justify-self: end; }
.hero-logo-wrap .hero-logo { filter: none; display: inline-grid; }
.hero-logo-wrap::before { inset: -30% -6%; }
@media (max-width: 1060px) { .hero-logo-wrap { justify-self: start; width: auto; } }

/* Captures entières (fonctionnalités, guides) + zoom */
.feature-media { aspect-ratio: auto; }
.feature-media img { height: auto; object-fit: contain; }
.feature-media .ph { aspect-ratio: 16 / 9; height: auto; }
.zoomable { cursor: zoom-in; position: relative; }
.zoomable img { transition: transform .6s var(--ease); }
.zoomable:hover img { transform: scale(1.02); }
.zoomable::before {
  content: ""; position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; pointer-events: none;
  background: rgba(6, 10, 20, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1px solid var(--line-strong); opacity: 0; transform: scale(.8); transition: .3s var(--ease);
}
.zoomable:hover::before { opacity: 1; transform: none; }
.zoombox { position: fixed; inset: 0; z-index: 600; background: rgba(4, 7, 14, .95); backdrop-filter: blur(10px); display: grid; grid-template-rows: 1fr auto; padding: 60px 24px 20px; opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.zoombox.open { opacity: 1; visibility: visible; }
.zb-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; border-radius: 14px; }
.zb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .35s var(--ease); }
.zb-stage.big img { transform: scale(2.4); cursor: zoom-out; border-radius: 0; }
.zoombox.open .zb-stage img { animation: pop .45s var(--ease); }
.zb-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 16px; color: var(--soft); font-size: 14px; }
.zb-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(15, 23, 43, .8); transition: .3s; font-size: 18px; }
.zb-btn:hover { background: var(--blue); border-color: var(--blue); }
.zb-btn svg { width: 20px; }
.zb-close { position: absolute; top: 12px; right: 16px; }

/* Bandeau des licences */
.lic-sec { padding: clamp(50px, 7vw, 90px) 0; }
.lic-head { text-align: center; margin-bottom: 36px; display: grid; gap: 10px; justify-items: center; }
.lic-head h2 { font-size: clamp(28px, 3.6vw, 46px); }
.lic-head p { color: var(--soft); }
.lic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lic-tile {
  position: relative; display: grid; place-items: center; padding: 28px 22px 46px; min-height: 190px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.lic-tile img { width: 100%; max-height: 110px; object-fit: contain; transition: transform .6s var(--ease), filter .4s; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.lic-tile:hover { transform: translateY(-8px) rotate(-.6deg); border-color: var(--c); box-shadow: 0 24px 50px -22px var(--c); }
.lic-tile:hover img { transform: scale(1.08); filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--c) 70%, transparent)); }
.lic-st { position: absolute; bottom: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(125, 255, 176, .12); color: #7dffb0; }
.lic-st.concept { background: rgba(127, 139, 171, .14); color: var(--soft); }
@media (max-width: 900px) { .lic-grid { grid-template-columns: repeat(2, 1fr); } .lic-tile { min-height: 150px; padding: 20px 14px 42px; } }

/* Licences : logos dans les cartes et l'explorateur */
.lic-media { display: grid; place-items: center; padding: 22px; background: radial-gradient(80% 90% at 50% 100%, var(--lc, rgba(36, 71, 214, .4)), transparent 70%), var(--panel-2); }
.lic-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .6)); }
.card:hover .lic-media img { transform: scale(1.08) rotate(-1deg); }
.lic-nexus { --lc: rgba(125, 107, 255, .45); } .lic-black { --lc: rgba(255, 77, 109, .4); } .lic-over { --lc: rgba(255, 138, 61, .4); } .lic-omega { --lc: rgba(255, 122, 26, .38); }
.lx-logo { flex: none; width: clamp(150px, 20vw, 240px); max-height: 120px; object-fit: contain; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .6)); }
.lx-panel.on .lx-logo { animation: lxIn .7s var(--ease); }
@keyframes lxIn { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
@media (max-width: 640px) { .lx-logo { width: 190px; } }

/* Révision 3b */
@media (min-width: 1061px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.lic-media { padding: 54px 22px 18px; }
.hero-grid > * { min-width: 0; }
@media (max-width: 640px) { .hero .ecm { --s: 50px !important; } }
@media (max-width: 380px) { .hero .ecm { --s: 42px !important; } }

/* ================================================================ Révision 4 */
/* Logo rond sur l'accueil */
.hero-logo-wrap .hero-badge { width: min(440px, 100%); filter: drop-shadow(0 30px 60px rgba(36, 71, 214, .55)); }
.hero-logo-wrap:has(.hero-badge)::before { inset: 8%; }
@media (max-width: 1060px) { .hero-logo-wrap .hero-badge { width: min(260px, 70vw); } }

/* Onglets des licences avec logos */
.lx-tab { padding: 10px 14px; }
.lx-tab .lx-ico { width: 104px; height: 54px; flex: none; padding: 4px 6px; background: radial-gradient(80% 90% at 50% 100%, color-mix(in srgb, var(--a) 40%, transparent), rgba(6, 10, 20, .6)); border: 1px solid var(--line); }
.lx-tab .lx-ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); transition: transform .4s var(--ease); }
.lx-tab:hover .lx-ico img, .lx-tab.on .lx-ico img { transform: scale(1.08); }
@media (max-width: 640px) { .lx-tab .lx-ico { width: 100%; height: 50px; } .lx-tab { flex-direction: column; align-items: stretch; text-align: center; } .lx-tab .lx-dot { position: absolute; top: 10px; right: 10px; } }

/* Feuille de route : diagramme de Gantt */
.gantt-wrap { display: grid; gap: 22px; }
.gantt-wrap .quest-bar { margin: 0; }
.g-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--soft); align-items: center; }
.g-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 22px; height: 10px; border-radius: 4px; display: inline-block; }
.lg.done { background: linear-gradient(90deg, #1f3fb8, #2f5cf0); } .lg.now { background: repeating-linear-gradient(45deg, var(--gold) 0 5px, #ffd983 5px 10px); } .lg.next { background: rgba(125, 162, 255, .25); border: 1px dashed var(--blue-l); }
.g-hint { margin-left: auto; color: var(--muted); font-size: 12px; }
.gantt-scroll { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); scrollbar-width: thin; }
.gantt { --lab: 150px; min-width: 980px; padding: 22px 22px 24px; position: relative; }
.g-head { margin-left: var(--lab); }
.g-qs, .g-ms, .g-grid, .g-rows { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.g-qs div { font-family: var(--head); font-weight: 700; font-size: 22px; padding: 0 0 4px 8px; border-left: 2px solid var(--line-strong); }
.g-ms div { font-size: 12px; color: var(--muted); padding: 4px 0 12px 8px; border-left: 1px dotted var(--line-strong); font-style: italic; }
.g-ms div.qs { border-left: 2px solid var(--line-strong); }
.g-body { position: relative; display: grid; gap: 14px; }
.g-grid { position: absolute; inset: 0 0 0 var(--lab); pointer-events: none; }
.g-grid i { border-left: 1px dotted rgba(125, 162, 255, .16); } .g-grid i.qs { border-left: 2px solid rgba(125, 162, 255, .22); }
.g-today { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--gold); box-shadow: 0 0 14px var(--gold); z-index: 2; pointer-events: none; }
.g-today span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #07101f; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.g-lane { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; padding: 12px 0; border-radius: 16px; background: rgba(6, 10, 20, .35); position: relative; z-index: 1; }
.g-lane h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 0 14px; font-family: var(--head); }
.g-rows { row-gap: 10px; grid-auto-flow: row dense; }
.gt-bar {
  position: relative; height: 44px; margin: 0 3px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  font-size: 13px; font-weight: 600; color: #fff; transition: transform .3s var(--ease), box-shadow .3s, outline-color .3s; outline: 2px solid transparent; outline-offset: 2px;
  animation: barIn .8s var(--ease) both; animation-delay: calc(var(--i) * .08s + .2s); transform-origin: left;
}
@keyframes barIn { from { transform: scaleX(0); opacity: 0; } }
.gt-bar .g-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-bar.done { background: linear-gradient(90deg, #1f3fb8, #2f5cf0); box-shadow: 0 10px 24px -12px rgba(47, 92, 240, .9); }
.gt-bar.now { background: repeating-linear-gradient(45deg, var(--gold) 0 14px, #ffcf6b 14px 28px); background-size: 40px 40px; color: #07101f; animation: barIn .8s var(--ease) both, stripes 1.2s linear infinite; box-shadow: 0 10px 28px -10px rgba(242, 181, 59, .8); }
@keyframes stripes { to { background-position: 40px 0; } }
.gt-bar.next { background: rgba(125, 162, 255, .14); border: 1.5px dashed rgba(125, 162, 255, .55); color: #cfdcff; }
.gt-bar:hover { transform: translateY(-3px); }
.gt-bar.sel { outline-color: #fff; }
.g-detail { padding: 24px 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); border-left: 4px solid #2f5cf0; animation: pop .45s var(--ease); }
.g-detail.now { border-left-color: var(--gold); } .g-detail.next { border-left-color: var(--blue-l); }
.g-detail h3 { font-size: 26px; margin: 6px 0 8px; }
.g-detail p { color: var(--soft); }
.g-st { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.g-when { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .gantt { --lab: 110px; min-width: 900px; } .g-hint { margin-left: 0; } }
.g-lane h4 { position: sticky; left: 0; z-index: 3; align-self: stretch; display: flex; align-items: center; background: linear-gradient(90deg, #0d1529 85%, transparent); border-radius: 16px 0 0 16px; }

/* ================================================================ Révision 5 */
/* Titre du hero : moins d'espace, moins de retours à la ligne */
.hero h1 { max-width: none; font-size: clamp(42px, 6vw, 92px); line-height: 1.02; margin: 22px 0 20px; }
@media (min-width: 1061px) { .hero-grid { grid-template-columns: 1.35fr .65fr; } .hero-grid:has(.ecm) { grid-template-columns: 1.05fr .95fr; } }

/* Nos jeux : logo du jeu sur la carte */
.game-media { display: grid; place-items: center; isolation: isolate; }
.game-media .gm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(1px) saturate(1.2); z-index: -1; }
.game-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(36, 71, 214, .35), rgba(6, 10, 20, .75)); }
.game-media .gm-logo { width: 72%; height: auto; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(36, 71, 214, .7)); transition: transform .8s var(--ease); }
.card:hover .game-media .gm-logo { transform: scale(1.06); }
.card:hover .game-media .gm-bg { transform: scale(1.06); }
.game-media.soon { background: radial-gradient(70% 70% at 50% 50%, rgba(125, 162, 255, .12), transparent), var(--panel-2); }
.game-media .gm-zf { width: 34%; opacity: .14; }
.game-media .gm-q { position: absolute; font-family: var(--head); font-weight: 700; font-size: 64px; color: var(--gold); text-shadow: 0 0 30px rgba(242, 181, 59, .6); animation: floaty 4s ease-in-out infinite; }

/* Feuille de route : jalon de sortie */
.gt-bar.launch { background: linear-gradient(135deg, var(--gold), #ffd983 55%, var(--gold-d)); border: 0; color: #07101f; box-shadow: 0 0 26px -4px rgba(242, 181, 59, .8); }
.gt-bar.launch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); background-size: 250% 100%; animation: ecmShine 3s ease-in-out infinite; }
.gt-bar { padding: 0 8px; }
.gt-bar.ms { justify-self: start; min-width: max-content; padding: 0 14px; z-index: 2; }
.gt-bar.ms .g-t { overflow: visible; }
.game-media .gm-zf { width: 30%; height: auto; object-fit: contain; }

/* ================================================================ Page testeur alpha */
.vault {
  position: relative; max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 60px); border-radius: 32px; text-align: center; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(70% 80% at 50% 0%, rgba(36, 71, 214, .4), transparent 70%), repeating-linear-gradient(45deg, rgba(125, 162, 255, .035) 0 12px, transparent 12px 24px), linear-gradient(180deg, var(--panel), var(--bg-2));
}
.vault::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--blue-l) 72%, var(--gold) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 6s linear infinite; }
.vault.opened { background: radial-gradient(70% 80% at 50% 0%, rgba(242, 181, 59, .28), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.vault-lock, .vault-open { display: grid; justify-items: center; gap: 18px; }
.vault-open { animation: pop .6s var(--ease); }
.v-pad { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; color: var(--blue-l); background: rgba(36, 71, 214, .2); border: 1px solid var(--line-strong); box-shadow: 0 0 40px -10px rgba(36, 71, 214, .8); }
.v-pad svg { width: 46px; overflow: visible; }
.v-pad .v-shackle { transition: transform .5s var(--ease); }
.vault.checking .v-pad { animation: pulse 1s infinite; }
.vault.unlocking .v-shackle { transform: translate(5px, -4px) rotate(18deg); transform-origin: 16px 10px; }
.vault.unlocking .v-pad { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 50px -6px rgba(242, 181, 59, .8); }
.v-pad.ok { color: #07101f; background: linear-gradient(135deg, var(--gold), #ffd983); border: 0; box-shadow: 0 0 50px -6px rgba(242, 181, 59, .8); }
.vault.shake { animation: vshake .45s ease-in-out; }
@keyframes vshake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.v-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; margin-top: 6px; }
.v-input {
  flex: 1 1 280px; max-width: 380px; height: 58px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(6, 10, 20, .7); color: #fff;
  font: 700 22px var(--head); letter-spacing: .22em; text-align: center; text-transform: uppercase; transition: .3s;
}
.v-input::placeholder { color: rgba(125, 162, 255, .3); }
.v-input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(242, 181, 59, .14); }
.v-form .btn { height: 58px; }
.v-msg { min-height: 22px; font-size: 14px; color: var(--soft); }
.v-msg.bad { color: #ff7d9a; }
.vault-open h2 { font-size: clamp(28px, 4vw, 44px); }
.v-meta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.v-meta span { padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 10, 20, .5); display: grid; gap: 2px; min-width: 140px; }
.v-meta small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.v-meta b { font-family: var(--head); font-size: 18px; }
.v-note { color: var(--soft); max-width: 52ch; }
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.v-actions .btn-primary { background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; box-shadow: 0 14px 38px -8px rgba(242, 181, 59, .6); }
.v-actions .btn-primary .arr { background: #07101f; color: var(--gold); }
.v-actions .btn-primary:hover .arr { transform: translateY(3px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps .ico { font-family: var(--head); font-weight: 700; font-size: 22px; }
.alpha-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.rules { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.rules h3 { font-size: 22px; margin-bottom: 16px; }
.rules p { color: var(--soft); }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps, .alpha-bottom { grid-template-columns: 1fr; } .v-input { font-size: 18px; letter-spacing: .14em; } .v-form .btn { width: 100%; justify-content: center; } }

/* ================================================================ Révision 6 */
/* Logo ZF : même animation en haut et en bas */
.zf-mark:hover .zf-sym { transform: rotate(-4deg) scale(1.06); }
.site-footer .zf-mark { cursor: default; }

/* Studio : parcours et langages */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp { position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; transition: .45s var(--ease);
  background: radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.exp:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 24px 50px -24px var(--c); }
.exp-logo { display: flex; align-items: center; gap: 14px; height: 56px; margin-bottom: 14px; }
.exp-logo svg { width: 48px; height: 48px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 60%, transparent)); }
.exp-logo b { font-family: var(--head); font-size: 28px; }
.exp-logo .redm { font-family: "Archivo Black", var(--head); font-size: 34px; letter-spacing: .02em; color: #fff; text-shadow: 0 0 22px rgba(212, 71, 43, .7); }
.exp-logo .o77 { font-family: "Archivo Black", var(--head); font-size: 30px; color: #fcee0a; letter-spacing: .04em; text-shadow: 0 0 20px rgba(252, 238, 10, .45); }
.exp-logo .o77 i { font-style: normal; color: #00f0ff; }
.exp-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.exp p { color: var(--soft); margin-top: 10px; font-size: 15px; }
.stack { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.stk { display: grid; justify-items: center; gap: 12px; padding: 22px 10px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: .4s var(--ease); text-align: center; }
.stk svg { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.stk span { font-size: 13px; font-weight: 600; color: var(--soft); }
.stk:hover { border-color: var(--c); transform: translateY(-5px); box-shadow: 0 18px 36px -20px var(--c); }
.stk:hover svg { transform: scale(1.15) rotate(-6deg); }
@media (max-width: 1060px) { .exp-grid { grid-template-columns: 1fr; } .stack { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .stack { grid-template-columns: repeat(3, 1fr); } }

/* Licences en préparation */
.lic-tac { --lc: rgba(242, 181, 59, .35); } .lic-fut { --lc: rgba(182, 255, 46, .3); } .lic-sf { --lc: rgba(255, 122, 26, .35); }
.prep-grid .card { opacity: .95; }
.prep-grid .card-media img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .6)) saturate(.9); }
.lic-prep { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.lic-prep-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lic-mini { display: grid; place-items: center; width: 170px; height: 84px; padding: 10px 14px; border-radius: 16px; border: 1px dashed var(--line-strong); background: rgba(10, 16, 32, .6); transition: .4s var(--ease); }
.lic-mini img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(.55) brightness(.9); transition: .4s var(--ease); }
.lic-mini:hover { border-color: var(--c); border-style: solid; transform: translateY(-4px); }
.lic-mini:hover img { filter: none; transform: scale(1.06); }

/* ================================================================ Arcade multi-jeux */
#arcade { -webkit-user-select: none; user-select: none; }
#arcade input { -webkit-user-select: text; user-select: text; }
.arc-step { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.arc-step b { font-family: var(--head); font-size: 22px; }
.arc-step.in { margin: 0; }
.arc-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: #07101f; background: linear-gradient(135deg, var(--gold), #ffd983); }
.game-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.gp { position: relative; height: 104px; padding: 14px 16px 24px; border-radius: 18px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; transition: .4s var(--ease);
  background: radial-gradient(90% 90% at 50% 120%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.gp img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(.6) brightness(.8) drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); transition: .4s var(--ease); pointer-events: none; }
.gp span { position: absolute; bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.gp:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.gp:hover img { filter: grayscale(0) drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.gp.on { border: 2px solid var(--c); box-shadow: 0 18px 40px -18px var(--c), inset 0 0 30px -10px var(--c); transform: translateY(-4px); }
.gp.on img { filter: none; transform: scale(1.08); }
.gp.on span { color: var(--c); }
.gp em.gp-soon { font-style: normal; } .gp .gp-soon { position: absolute; top: 8px; right: 8px; bottom: auto; font-size: 9px; padding: 3px 7px; border-radius: 999px; background: rgba(6, 10, 20, .8); color: var(--gold); letter-spacing: .1em; }
.pcard .back .pb-logo { width: 78%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)) brightness(.95); }
.pcard .back { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px), radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gc, #2447d6) 45%, #0b1330), #0b1330 72%); }
.pcard .front { padding-bottom: 10px; }
.pc-img { display: block; width: 74%; aspect-ratio: 1; object-fit: cover; object-position: top; margin: 2px auto 2px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 45%, transparent), rgba(6, 10, 20, .4) 70%); box-shadow: inset 0 -20px 30px -10px rgba(6, 10, 20, .8); pointer-events: none; }
.slot.has-img { padding: 6px 4px 6px; align-content: start; }
.slot.has-img img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; background: color-mix(in srgb, var(--sc) 25%, #0b1330); margin: 0 auto 4px; display: block; pointer-events: none; }
.slot .sr { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--blue-l); }
.slot.has-img .so { font-size: 15px; }
.club-in { display: grid; gap: 6px; margin-bottom: 18px; }
.club-in small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.club-in input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(6, 10, 20, .6); color: #fff; font: 600 15px var(--body); }
.club-in input:focus { outline: 0; border-color: var(--gold); }
.match-prev { position: relative; margin: 6px 0 4px; height: 120px; border-radius: 16px; display: grid; place-items: center; cursor: pointer; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 100%, color-mix(in srgb, var(--c, #2447d6) 35%, transparent), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px), #0a1020; transition: .4s var(--ease); }
.match-prev img { max-width: 62%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .7)); transition: .5s var(--ease); }
.mp-play { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 181, 59, .95); color: #07101f; box-shadow: 0 0 30px rgba(242, 181, 59, .6); opacity: 0; transform: scale(.7); transition: .35s var(--ease); }
.mp-play svg { width: 22px; margin-left: 3px; }
.match-prev:hover { border-color: var(--c); } .match-prev:hover img { transform: scale(1.06); filter: blur(1px) brightness(.6); } .match-prev:hover .mp-play { opacity: 1; transform: none; }
.match-res { margin-top: 8px; font-weight: 600; font-size: 14px; } .match-res.win { color: #7dffb0; } .match-res.lose { color: #ff9ab0; }
.sim-rec { margin-top: 12px; }
.mv-modal { position: fixed; inset: 0; z-index: 700; background: rgba(4, 7, 14, .92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.mv-modal.open { opacity: 1; visibility: visible; }
.mv-box { width: min(1420px, 100%); height: min(92vh, 980px); display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #17191d; box-shadow: var(--shadow); transform: scale(.96); transition: transform .4s var(--ease); }
.mv-modal.open .mv-box { transform: none; }
.mv-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #0a1020; border-bottom: 1px solid var(--line); }
.mv-top img { height: 34px; width: auto; }
.mv-top b { font-family: var(--head); font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-top .zb-btn { position: static; width: 38px; height: 38px; }
.mv-box iframe { width: 100%; height: 100%; border: 0; background: #17191d; }
@media (max-width: 1060px) { .game-pick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .game-pick { grid-template-columns: repeat(2, 1fr); } .gp { height: 86px; } .mv-modal { padding: 0; } .mv-box { height: 100vh; border-radius: 0; } }
.lic-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; }
.lic-media { overflow: hidden; }
.lic-media.lic-tac { padding-top: 46px; }

/* ================================================================ Révision 7 */
/* Choix du jeu : logos contenus */
.gp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 14px 10px; height: 112px; }
.gp img { width: 100%; height: 66px; max-height: none; object-fit: contain; flex: none; }
.gp span { position: static; font-size: 10.5px; line-height: 1; }
.gp.on img { transform: scale(1.04); }
@media (max-width: 640px) { .gp { height: 92px; } .gp img { height: 52px; } }
/* Bandeau "en préparation" : logos contenus */
.lic-mini { padding: 10px 16px; }
.lic-mini img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
/* Aperçu du match en direct (carte seule) */
.match-prev { height: auto; aspect-ratio: 16 / 9; background: #0a1020; }
.match-prev .mp-frame { position: absolute; left: 0; top: 50%; width: 100%; height: calc(100% * 16 / 9 * var(--ar, .5625)); transform: translateY(-50%); border: 0; pointer-events: none; }
.match-prev #mp-logo { position: absolute; left: 10px; bottom: 8px; max-width: 30%; max-height: 22%; z-index: 2; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .9)); }
.match-prev::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(6, 10, 20, .7)); }
.match-prev .mp-play { z-index: 3; }
.match-prev:hover #mp-logo { transform: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .9)); }
.match-prev:hover .mp-frame { filter: brightness(.6); }
.lic-mini { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lic-mini img { width: 100%; height: 64px; }

/* Match joué dans le cadre du pack */
.arcade-panel.is-live .pack, .arcade-panel.is-live .pack-actions, .arcade-panel.is-live .pack-odds { display: none; }
.pack-live { display: grid; gap: 14px; animation: pop .5s var(--ease); }
.pack-live[hidden] { display: none; }
.pl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-head img { height: 30px; width: auto; }
.pl-head b { font-family: var(--head); font-size: 16px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-score { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(240, 98, 90, .15); color: #ff9ab0; }
.pl-score:not(.win):not(.lose)::before { content: "● "; animation: pulse 1.4s infinite; }
.pl-score.win { background: rgba(125, 255, 176, .14); color: #7dffb0; } .pl-score.lose { background: rgba(255, 125, 154, .14); color: #ff9ab0; }
.pl-frame { position: relative; width: 100%; aspect-ratio: calc(1 / var(--ar, .5625)); max-height: 72vh; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a1020; }
.pl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.pl-back { justify-self: center; }
.arcade-panel { scroll-margin-top: 150px; }

/* ================================================================ Devlogs : code, diff, notes de version */
.article code.ic { font: 600 .88em ui-monospace, "Cascadia Code", Consolas, monospace; padding: 2px 7px; border-radius: 6px; background: rgba(125, 162, 255, .14); color: #c9d6ff; }
.vs { margin: 30px 0; border-radius: 14px; overflow: hidden; border: 1px solid #2b2b2b; background: #1e1e1e; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); font: 13.5px/1.6 "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace; }
.vs-top { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; background: #252526; border-bottom: 1px solid #1a1a1a; font-family: var(--body); }
.vs-dots { display: flex; gap: 6px; } .vs-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .vs-dots i:nth-child(2) { background: #febc2e; } .vs-dots i:nth-child(3) { background: #28c840; }
.vs-tab { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; background: #1e1e1e; color: #e5e5e5; font-size: 12.5px; border-top: 2px solid #3794ff; margin-bottom: -1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vs-dif { color: #e2c08d; font-weight: 700; }
.vs-lang { margin-left: auto; color: #8a8a8a; font-size: 11.5px; }
.vs-copy { font-size: 11.5px; font-weight: 600; color: #cccccc; padding: 5px 10px; border-radius: 6px; border: 1px solid #3c3c3c; transition: .2s; flex: none; }
.vs-copy:hover { background: #3794ff; border-color: #3794ff; color: #fff; }
.vs-body { overflow-x: auto; padding: 10px 0; }
.vs table { border-collapse: collapse; width: 100%; min-width: max-content; }
.vs td { padding: 0 14px 0 0; vertical-align: top; white-space: pre; color: #d4d4d4; }
.vs td.ln { width: 1%; min-width: 42px; padding: 0 12px 0 14px; text-align: right; color: #6e7681; user-select: none; }
.vs td.sg { width: 1%; padding: 0 8px 0 4px; user-select: none; font-weight: 700; }
.vs i { font-style: normal; }
.vs i.k { color: #569cd6; } .vs i.s { color: #ce9178; } .vs i.c { color: #6a9955; font-style: italic; } .vs i.n { color: #b5cea8; } .vs i.f { color: #dcdcaa; } .vs i.t { color: #4ec9b0; }
.vs tr:hover td { background: rgba(255, 255, 255, .03); }
.vs-diff tr.add td { background: rgba(46, 160, 67, .16); } .vs-diff tr.add td.sg { color: #3fb950; } .vs-diff tr.add td.ln { color: #3fb950; background: rgba(46, 160, 67, .24); }
.vs-diff tr.del td { background: rgba(248, 81, 73, .14); } .vs-diff tr.del td.sg { color: #f85149; } .vs-diff tr.del td.ln { color: #f85149; background: rgba(248, 81, 73, .22); }
.vs-diff tr.hunk td { background: rgba(56, 139, 253, .12); color: #8b949e; padding-block: 3px; }
.vs-stat { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #161b22; border-bottom: 1px solid #2b2b2b; font: 600 12.5px var(--body); }
.vs-stat .ad { color: #3fb950; } .vs-stat .de { color: #f85149; }
.vs-bar { display: inline-flex; gap: 2px; } .vs-bar i { width: 9px; height: 9px; border-radius: 2px; background: #30363d; } .vs-bar i.g { background: #3fb950; } .vs-bar i.r { background: #f85149; }
/* Notes de version façon GitHub */
.rel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 54px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rel-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 700 15px ui-monospace, Consolas, monospace; color: #3fb950; background: rgba(46, 160, 67, .12); border: 1px solid rgba(46, 160, 67, .45); }
.rel-tag svg { width: 16px; }
.rel-date { color: var(--muted); font-size: 14px; }
.cl { display: grid; gap: 16px; margin: 18px 0 30px; padding: 22px 24px; border-radius: 16px; border: 1px solid #30363d; background: #0d1117; }
.cl-g { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.cl-b { justify-self: start; font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.cl-b.add { background: rgba(46, 160, 67, .16); color: #3fb950; } .cl-b.fix { background: rgba(210, 153, 34, .16); color: #e3b341; } .cl-b.imp { background: rgba(56, 139, 253, .16); color: #58a6ff; } .cl-b.rem { background: rgba(248, 81, 73, .14); color: #f85149; } .cl-b.brk { background: rgba(163, 113, 247, .18); color: #bc8cff; }
.article .cl ul { margin: 0; padding-left: 18px; font-size: 15.5px; line-height: 1.7; }
.article .cl li { margin-bottom: 4px; }
.cl code { font: 600 .9em ui-monospace, Consolas, monospace; padding: 1px 6px; border-radius: 5px; background: rgba(110, 118, 129, .25); color: #e6edf3; }
.cl-pr { color: #58a6ff; font-weight: 600; }
@media (max-width: 640px) { .cl-g { grid-template-columns: 1fr; gap: 6px; } .vs { font-size: 12px; margin-inline: -8px; } }

/* ================================================================ Page Devlog */
.dv-term { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .02em; text-transform: none; color: #7ee787; }
.dv-term::before { display: none; }
.dv-term b { color: var(--gold); }
.dv-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 36px; }
.dv-st { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(13, 17, 23, .75); backdrop-filter: blur(10px); }
.dv-st b { display: block; font-family: var(--head); font-size: 34px; line-height: 1; }
.dv-st:nth-child(3) b { color: #3fb950; } .dv-st:nth-child(4) b { color: #e3b341; } .dv-st:nth-child(5) b { color: #58a6ff; }
.dv-st span { color: var(--muted); font-size: 13px; }
.dv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.dv-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dv-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.dv-search svg { position: absolute; left: 16px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--muted); }
.dv-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid #30363d; background: #0d1117; color: #fff; font: 14.5px var(--body); }
.dv-search input:focus { outline: 0; border-color: #58a6ff; box-shadow: 0 0 0 3px rgba(56, 139, 253, .2); }
/* Frise de commits */
.dv-tl { list-style: none; margin: 0; padding: 0 0 0 46px; position: relative; display: grid; gap: 22px; }
.dv-tl::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, #3fb950, #30363d 30%, #30363d); }
.dv-it { position: relative; opacity: 0; transform: translateY(18px); transition: .6s var(--ease); transition-delay: var(--d); }
.dv-it.in { opacity: 1; transform: none; }
.dv-node { position: absolute; left: -46px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0d1117; border: 2px solid #30363d; color: #8b949e; z-index: 1; }
.dv-node svg { width: 17px; }
.dv-it.latest .dv-node { border-color: #3fb950; color: #3fb950; box-shadow: 0 0 0 5px rgba(63, 185, 80, .15), 0 0 20px rgba(63, 185, 80, .4); }
.dv-card { border-radius: 16px; border: 1px solid #30363d; background: #0d1117; overflow: hidden; transition: border-color .3s, box-shadow .4s; }
.dv-it:hover .dv-card { border-color: #484f58; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9); }
.dv-it.latest .dv-card { border-color: rgba(63, 185, 80, .5); }
.dv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; background: #161b22; border-bottom: 1px solid #30363d; font-size: 13px; color: #8b949e; }
.dv-head .rel-tag { padding: 3px 11px; font-size: 13px; }
.dv-latest { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid #3fb950; color: #3fb950; }
.dv-hash { font: 600 12.5px ui-monospace, Consolas, monospace; color: #58a6ff; background: rgba(56, 139, 253, .1); padding: 3px 8px; border-radius: 6px; }
.dv-head time { margin-left: auto; }
.dv-main { display: flex; gap: 18px; padding: 18px; align-items: flex-start; }
.dv-thumb { flex: none; width: 150px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid #30363d; }
.dv-main h3 { font-size: 21px; margin-bottom: 6px; }
.dv-main p { color: var(--soft); font-size: 15px; }
.dv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dv-chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dv-chip.add { background: rgba(46, 160, 67, .16); color: #3fb950; } .dv-chip.fix { background: rgba(210, 153, 34, .16); color: #e3b341; } .dv-chip.imp { background: rgba(56, 139, 253, .16); color: #58a6ff; } .dv-chip.rem { background: rgba(248, 81, 73, .14); color: #f85149; }
.dv-diff { display: inline-flex; gap: 6px; font: 700 12px ui-monospace, monospace; padding: 3px 9px; border-radius: 999px; background: #161b22; border: 1px solid #30363d; }
.dv-diff .ad { color: #3fb950; } .dv-diff .de { color: #f85149; }
.dv-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 16px; }
.dv-acts .card-link { margin: 0; }
.dv-tog { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #c9d1d9; padding: 7px 12px; border-radius: 8px; border: 1px solid #30363d; background: #21262d; transition: .2s; }
.dv-tog:hover { background: #30363d; }
.dv-tog svg { width: 16px; transition: transform .3s var(--ease); }
.dv-it.open .dv-tog svg { transform: rotate(180deg); }
.dv-body { max-width: none; margin: 0; padding: 0 22px; }
.dv-it.open .dv-body { padding: 6px 22px 22px; border-top: 1px solid #30363d; animation: pop .45s var(--ease); }
.dv-body .rel:first-child { margin-top: 18px; }
.dv-none { color: var(--muted) !important; font-style: italic; }
.dv-end { position: relative; color: #8b949e; padding: 18px 0 0; }
.dv-end .dv-node { top: 8px; width: 28px; height: 28px; left: -42px; } .dv-end code { font: 12.5px ui-monospace, monospace; }
.dv-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed #30363d; border-radius: 16px; }
/* Colonne latérale */
.dv-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.dv-box { padding: 20px; border-radius: 16px; border: 1px solid #30363d; background: #0d1117; display: grid; gap: 10px; justify-items: start; }
.dv-box p { color: var(--soft); font-size: 14px; }
.dv-box small { color: var(--muted); }
.dv-last { border-color: rgba(63, 185, 80, .5); background: radial-gradient(100% 80% at 0% 0%, rgba(63, 185, 80, .12), transparent 70%), #0d1117; }
.dv-big { display: flex; align-items: center; gap: 10px; font: 700 30px ui-monospace, Consolas, monospace; color: #3fb950; }
.dv-big svg { width: 26px; }
.dv-vers { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.dv-vers button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; transition: .2s; font-size: 13px; color: var(--muted); }
.dv-vers button:hover { background: #161b22; color: #fff; }
.dv-vers code { font: 700 13px ui-monospace, monospace; color: #3fb950; }
@media (max-width: 1060px) { .dv-layout { grid-template-columns: minmax(0, 1fr); } .dv-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .dv-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .dv-stats { grid-template-columns: repeat(2, 1fr); } .dv-main { flex-direction: column; } .dv-thumb { width: 100%; } .dv-tl { padding-left: 38px; } .dv-tl::before { left: 13px; } .dv-node { left: -38px; width: 30px; height: 30px; } .dv-head time { margin-left: 0; } }
#dv-f .chip::first-letter { text-transform: uppercase; }
.dv-tl { grid-template-columns: minmax(0, 1fr); } .dv-it, .dv-card, .dv-body { min-width: 0; }
.vs table { width: auto; min-width: 100%; }
.news-more { display: flex; justify-content: center; margin-top: 30px; } .news-more [hidden] { display: none; }

/* ================================================================ Devlog v2 : notes de patch */
.pn-hero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 70px; min-height: 78vh; display: grid; align-items: center; }
.pn-hero-bg { position: absolute; inset: -40px; z-index: -2; background: center / cover no-repeat; filter: blur(28px) saturate(1.3) brightness(.45); transform: scale(1.1); }
.pn-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 80% 30%, rgba(36, 71, 214, .35), transparent 70%), linear-gradient(180deg, rgba(6, 10, 20, .3), var(--bg) 96%); }
.pn-hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.pn-hero-txt h1 { font-size: clamp(30px, 3.6vw, 50px); margin: 6px 0 14px; max-width: 18ch; }
.pn-hero-txt .lead { color: var(--soft); max-width: 50ch; }
.pn-hero-txt .dv-chips { margin-top: 18px; }
.pn-ver { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; line-height: .9; }
.pn-ver small { font: 700 13px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pn-ver b { font-family: var(--head); font-weight: 700; font-size: clamp(76px, 10vw, 150px); letter-spacing: -.04em; background: linear-gradient(100deg, #fff 10%, var(--blue-l) 50%, var(--gold) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgba(36, 71, 214, .5)); }
.pn-ver b.pn-ver-dl { font-size: clamp(60px, 8vw, 110px); }
.pn-hero-shot { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 8px rgba(125, 162, 255, .06); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease); }
.pn-hero-shot:hover { transform: perspective(1200px) rotateY(0) rotateX(0) scale(1.02); }
.pn-hero-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pn-new { position: absolute; top: 14px; left: 14px; z-index: 2; font: 700 11px var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #07101f; box-shadow: 0 0 20px rgba(242, 181, 59, .6); animation: pulse 2.4s infinite; }
/* Route des versions */
.pn-road-sec { padding: 10px 0 20px; }
.pn-road-sec[hidden] { display: none; }
.pn-road-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pn-road-hint { color: var(--muted); font-size: 13px; }
.pn-road { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(130px, 1fr)); gap: 8px; overflow-x: auto; padding: 8px 4px 14px; scrollbar-width: thin; }
.pn-track { position: absolute; left: 30px; right: 30px; top: 26px; height: 4px; border-radius: 4px; background: rgba(125, 162, 255, .15); }
.pn-fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-l), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.pn-road.in .pn-fill { transform: scaleX(1); }
.pn-step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 6px; opacity: 0; transform: translateY(10px); transition: .5s var(--ease); transition-delay: calc(var(--k) * .12s + .3s); }
.pn-road.in .pn-step { opacity: 1; transform: none; }
.pn-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue-l); margin: 8px 0 6px; transition: .3s var(--ease); }
.pn-step.last .pn-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px rgba(242, 181, 59, .18), 0 0 22px var(--gold); }
.pn-step b { font: 700 15px ui-monospace, Consolas, monospace; color: #fff; }
.pn-step.last b { color: var(--gold); }
.pn-step small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pn-step:hover .pn-dot { transform: scale(1.3); border-color: var(--gold); }
/* Grille */
.pn-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pn-tools .dv-search { flex: 0 1 280px; }
.pn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pn-card { display: flex; flex-direction: column; text-align: left; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .5s var(--ease), border-color .3s, box-shadow .5s; transition-delay: var(--d), var(--d), 0s, 0s; }
.pn-card.in { opacity: 1; transform: none; }
.pn-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow); transition-delay: 0s; }
.pn-img { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(70% 90% at 50% 100%, rgba(36, 71, 214, .4), transparent), var(--panel-2); overflow: hidden; }
.pn-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pn-card:hover .pn-img img { transform: scale(1.07); }
.pn-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 20, .9)); }
.pn-v { position: absolute; left: 16px; bottom: 10px; z-index: 2; font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .8); }
.pn-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pn-body time { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l); font-weight: 600; }
.pn-body h3 { font-size: 20px; }
.pn-body p { color: var(--soft); font-size: 14.5px; }
.pn-body .dv-chips { margin-top: 6px; }
.pn-body .card-link { margin-top: auto; padding-top: 12px; }
.pn-card:hover .card-link svg { transform: translateX(6px); }
/* Lecteur */
.pn-reader { position: fixed; inset: 0; z-index: 600; background: rgba(4, 7, 14, .7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .35s var(--ease); }
.pn-reader.open { opacity: 1; visibility: visible; }
.pn-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(880px, 100%); overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line-strong); box-shadow: -40px 0 80px -20px rgba(0, 0, 0, .8); transform: translateX(100%); transition: transform .5s var(--ease); }
.pn-reader.open .pn-panel { transform: none; }
.pn-rh { position: relative; overflow: hidden; isolation: isolate; padding: 70px clamp(20px, 4vw, 48px) 34px; border-bottom: 1px solid var(--line); }
.pn-rh-bg { position: absolute; inset: -30px; z-index: -1; background: center / cover; filter: blur(20px) brightness(.35) saturate(1.3); }
.pn-rh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); }
.pn-rh-meta { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 14px; }
.pn-rh h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 14px 0 10px; }
.pn-rh p { color: var(--soft); }
.pn-rh .dv-chips { margin-top: 14px; }
.pn-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 23, 43, .85); border: 1px solid var(--line-strong); transition: .25s; z-index: 2; }
.pn-x:hover { background: var(--blue); transform: rotate(90deg); }
.pn-x svg { width: 20px; }
.pn-rb { max-width: none; padding: 10px clamp(20px, 4vw, 48px) 30px; }
.pn-rb > .rel:first-child { display: none; }
.pn-rf { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 14px clamp(16px, 3vw, 32px); background: rgba(10, 16, 32, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.pn-nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; text-align: left; transition: .2s; min-width: 0; }
.pn-nav.nx { justify-self: end; text-align: right; }
.pn-nav:hover { background: rgba(125, 162, 255, .1); }
.pn-nav svg { width: 18px; flex: none; color: var(--gold); }
.pn-nav small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pn-nav b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.pn-page { font-size: 13px; color: var(--muted); text-decoration: underline; }
.pn-page:hover { color: #fff; }
@media (max-width: 1060px) { .pn-hero-in { grid-template-columns: 1fr; } .pn-hero-shot { transform: none; max-width: 640px; } .pn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pn-hero { padding-top: 120px; min-height: 0; } .pn-grid { grid-template-columns: minmax(0, 1fr); } .pn-rf { grid-template-columns: 1fr 1fr; } .pn-page { display: none; } .pn-nav b { max-width: 120px; } }

/* ================================================================ Devlog v3 : frise embellie aux couleurs du site */
.dv-hero { overflow: visible; }
.dv-hero-glow { position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 85% 10%, rgba(63, 185, 80, .14), transparent 70%), radial-gradient(45% 60% at 60% 0%, rgba(36, 71, 214, .35), transparent 70%); }
.dv-term { background: rgba(10, 16, 32, .8); border-color: rgba(125, 255, 176, .3); color: #7dffb0; }
.dv-caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; background: #7dffb0; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Compteurs */
.dv-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.dv-st { --c: var(--blue-l); display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; min-width: 190px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); backdrop-filter: blur(12px); transition: .35s var(--ease); }
.dv-st:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 18px 40px -22px var(--c); }
.dv-st i { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.dv-st i svg { width: 22px; }
.dv-st b { color: #fff !important; font-size: 30px; }
.dv-st.v { --c: var(--gold); } .dv-st.g { --c: #3fdc7a; } .dv-st.y { --c: #ffb84d; } .dv-st.p { --c: var(--violet); }
/* Recherche */
.dv-search input { border-color: var(--line-strong); background: rgba(15, 23, 43, .7); border-radius: 999px; height: 50px; }
.dv-search input:focus { border-color: var(--blue-l); box-shadow: 0 0 0 4px rgba(125, 162, 255, .15); }
/* Frise */
.dv-tl::before { width: 3px; left: 17px; border-radius: 3px; background: linear-gradient(180deg, var(--gold) 0%, var(--blue-l) 18%, rgba(125, 162, 255, .25) 70%, transparent); box-shadow: 0 0 14px rgba(125, 162, 255, .35); }
.dv-node { background: var(--bg); border: 2px solid rgba(125, 162, 255, .45); color: var(--blue-l); box-shadow: 0 0 0 5px var(--bg); }
.dv-it:hover .dv-node { border-color: var(--blue-l); box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(125, 162, 255, .6); }
.dv-it.latest .dv-node { border-color: var(--gold); color: #07101f; background: linear-gradient(135deg, var(--gold), #ffd983); box-shadow: 0 0 0 5px var(--bg), 0 0 26px rgba(242, 181, 59, .7); animation: nodePulse 2.6s ease-in-out infinite; }
@keyframes nodePulse { 50% { box-shadow: 0 0 0 5px var(--bg), 0 0 40px rgba(242, 181, 59, .95); } }
/* Cartes */
.dv-card { border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(90% 120% at 100% 0%, rgba(36, 71, 214, .14), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); position: relative; }
.dv-it:hover .dv-card { border-color: var(--line-strong); box-shadow: 0 26px 50px -28px rgba(36, 71, 214, .7); transform: translateX(4px); }
.dv-card { transition: border-color .3s, box-shadow .4s, transform .4s var(--ease); }
.dv-it.latest .dv-card { border-color: rgba(242, 181, 59, .45); background: radial-gradient(90% 120% at 100% 0%, rgba(242, 181, 59, .12), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.dv-it.latest .dv-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--gold), transparent); }
.dv-head { background: rgba(6, 10, 20, .35); border-bottom: 1px solid var(--line); color: var(--muted); padding: 12px 20px; }
.dv-kind { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-l); padding: 4px 10px; border-radius: 999px; background: rgba(125, 162, 255, .12); }
.dv-head .rel-tag { color: var(--gold); background: rgba(242, 181, 59, .12); border-color: rgba(242, 181, 59, .45); }
.dv-latest { border: 0; color: #07101f; background: linear-gradient(135deg, var(--gold), #ffd983); box-shadow: 0 0 16px rgba(242, 181, 59, .5); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.dv-hash { color: var(--muted); background: transparent; padding: 0; font-size: 12px; }
.dv-main { padding: 20px; gap: 20px; }
.dv-thumb { flex: none; width: 170px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9); }
.dv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dv-it:hover .dv-thumb img { transform: scale(1.08); }
.dv-main h3 { font-size: 22px; }
.dv-acts { padding: 0 20px 18px; }
.dv-tog { background: rgba(36, 71, 214, .2); border: 1px solid rgba(125, 162, 255, .35); color: #fff; border-radius: 999px; padding: 8px 16px; }
.dv-tog:hover { background: var(--blue); border-color: var(--blue); }
.dv-it.open .dv-body { border-top: 1px solid var(--line); background: rgba(6, 10, 20, .3); }
.dv-diff { background: rgba(6, 10, 20, .5); border-color: var(--line-strong); }
.dv-end { color: var(--muted); }
.dv-end .dv-node { color: var(--muted); }
.dv-empty { border-color: var(--line-strong); }
/* Colonne */
.dv-box { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.dv-last { border-color: rgba(242, 181, 59, .4); background: radial-gradient(100% 70% at 0% 0%, rgba(242, 181, 59, .14), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); position: relative; overflow: hidden; }
.dv-last-img { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); }
.dv-last-img img { width: 100%; height: 100%; object-fit: cover; }
.dv-big { color: var(--gold); font-family: var(--head); font-size: 28px; }
.dv-vers button:hover { background: rgba(125, 162, 255, .1); }
.dv-vers code { color: var(--gold); }
.dv-cta { background: radial-gradient(100% 80% at 100% 100%, rgba(36, 71, 214, .3), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
@media (max-width: 640px) { .dv-st { min-width: 0; flex: 1 1 calc(50% - 14px); padding: 12px; } .dv-st i { width: 38px; height: 38px; } .dv-st b { font-size: 24px; } .dv-thumb { width: 100%; } }
.dv-body > .rel:first-child { display: none; }
.dv-body > .rel:first-child + p { margin-top: 20px; }
.cl { border-color: var(--line-strong); background: radial-gradient(80% 100% at 0% 0%, rgba(36, 71, 214, .14), transparent 70%), rgba(10, 16, 32, .75); }
.cl-g + .cl-g { padding-top: 14px; border-top: 1px dashed var(--line); }
.article .cl li::marker { color: var(--blue-l); }
.cl code { background: rgba(125, 162, 255, .16); color: #dbe4ff; }

/* ================================================================ Devlog v4 : « Quoi de neuf ? » */
.cg-top { padding-top: 110px; }
.cg-banner { position: relative; overflow: hidden; height: clamp(150px, 18vw, 220px); border-radius: 30px 30px 0 0; display: grid; place-items: center; background: linear-gradient(120deg, #1d3fcf, #2f5cf0 55%, #2447d6); isolation: isolate; }
.cg-shapes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; filter: saturate(1.1); }
.cg-shapes ellipse { filter: blur(2px); }
.cg-banner h1 { font-size: clamp(38px, 5.4vw, 76px); color: #fff; text-shadow: 0 6px 30px rgba(6, 10, 20, .45); letter-spacing: -.02em; }
.cg-banner.in h1 { animation: pop .8s var(--ease) both; }
.cg-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 28px; border-radius: 0 0 30px 30px; background: linear-gradient(180deg, rgba(20, 31, 58, .9), rgba(15, 23, 43, .6)); border: 1px solid var(--line); border-top: 0; }
.cg-info p { display: flex; align-items: center; gap: 12px; color: var(--muted); font-style: italic; font-size: 15px; }
.cg-info p b { color: #fff; font-style: italic; }
.cg-info svg { width: 22px; flex: none; color: var(--muted); }
.cg-years { display: flex; gap: 8px; flex-wrap: wrap; }
.cg-year { padding: 10px 18px; border-radius: 999px; background: rgba(125, 162, 255, .1); border: 1px solid var(--line-strong); color: var(--soft); font-size: 14px; font-weight: 500; transition: .25s; }
.cg-year.on, .cg-year:hover { background: rgba(125, 162, 255, .22); color: #fff; }
.cg-sec { padding-top: clamp(40px, 6vw, 70px); }
.cg-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1060px; display: grid; gap: 34px; }
.cg-it { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; position: relative; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d); }
.cg-it.in { opacity: 1; transform: none; }
.cg-date { position: relative; padding-top: 34px; display: flex; gap: 14px; align-items: flex-start; }
.cg-date::before { content: ""; position: absolute; left: 6px; top: 52px; bottom: -64px; border-left: 2px dashed rgba(125, 162, 255, .22); }
.cg-it:last-child .cg-date::before { display: none; }
.cg-date i { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); position: relative; z-index: 1; }
.cg-date time { font-weight: 600; color: var(--muted); font-size: 15px; }
.cg-it.first .cg-date i { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 181, 59, .18), 0 0 16px var(--gold); }
.cg-it.first .cg-date time { color: #fff; }
.cg-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 31, 58, .85), rgba(12, 18, 36, .9)); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.cg-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c2) 45%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c1) 80%, transparent); }
.cg-blob { position: absolute; z-index: -1; top: -10%; right: -8%; width: 62%; height: 120%; pointer-events: none; filter: blur(46px); opacity: .9;
  background: radial-gradient(40% 35% at 30% 20%, var(--c2), transparent 70%), radial-gradient(45% 40% at 70% 55%, var(--c1), transparent 70%), radial-gradient(30% 30% at 85% 10%, var(--c3), transparent 70%); transition: transform 1.2s var(--ease); }
.cg-card:hover .cg-blob { transform: translate(-4%, 3%) scale(1.06); }
.cg-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(12, 18, 36, .92) 30%, rgba(12, 18, 36, .35) 75%, transparent); }
.cg-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 30px 34px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cg-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.cg-sub { color: var(--soft); font-size: 14.5px; margin: 6px 0 20px; }
.cg-num { font-family: var(--head); font-weight: 700; font-size: clamp(70px, 8vw, 110px); line-height: .78; color: #fff; letter-spacing: -.04em; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); align-self: flex-end; margin-bottom: -2px; }
.cg-body { padding: 26px 34px 32px; display: grid; gap: 22px; }
.cg-intro { color: var(--soft); font-size: 16px; max-width: 62ch; }
.cg-grp h4 { font-family: var(--head); font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.cg-grp h4::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--k, var(--blue-l)); box-shadow: 0 0 12px var(--k, var(--blue-l)); }
.cg-grp.add { --k: #3fdc7a; } .cg-grp.imp { --k: #7da2ff; } .cg-grp.fix { --k: #ffb84d; } .cg-grp.rem { --k: #ff6b8a; } .cg-grp.brk { --k: #c49bff; }
.cg-grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cg-grp li { position: relative; padding-left: 22px; color: #dfe6ff; font-size: 15.5px; line-height: 1.55; max-width: 70ch; }
.cg-grp li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: rgba(223, 230, 255, .55); }
.cg-grp code.ic, .cg-intro code.ic { font: 600 .88em ui-monospace, Consolas, monospace; padding: 1px 7px; border-radius: 6px; background: rgba(125, 162, 255, .16); color: #dbe4ff; }
.cg-more { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
.cg-more summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 14px; list-style: none; }
.cg-more summary::before { content: "+ "; } .cg-more[open] summary::before { content: "− "; }
.cg-more .article { max-width: none; margin: 0; }
@media (max-width: 800px) {
  .cg-it { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cg-date { padding-top: 0; } .cg-date::before { display: none; }
  .cg-head { padding: 22px 22px 0; } .cg-body { padding: 20px 22px 24px; }
  .cg-num { font-size: 58px; }
  .cg-banner { border-radius: 22px 22px 0 0; } .cg-info { border-radius: 0 0 22px 22px; padding: 18px; }
  .cg-card { border-radius: 22px; }
}
.cg-blob { opacity: 1; filter: blur(40px) saturate(1.35); width: 66%; }
.cg-card::after { background: linear-gradient(90deg, rgba(12, 18, 36, .9) 34%, rgba(12, 18, 36, .25) 72%, transparent); }
.cg-num { background: linear-gradient(180deg, #fff 55%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Devlog : cartes plus compactes, numéro « .92 », code de commit */
.cg-list { max-width: 980px; gap: 26px; }
.cg-it { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
.cg-card { border-radius: 24px; }
.cg-head { padding: 22px 28px 0; align-items: center; }
.cg-head h2 { font-size: clamp(20px, 2vw, 24px); }
.cg-sub { font-size: 13.5px; margin: 4px 0 16px; }
.cg-num { font-size: clamp(44px, 4.6vw, 62px); line-height: 1; align-self: center; margin: 0; letter-spacing: -.03em; }
.cg-body { padding: 20px 28px 24px; gap: 16px; }
.cg-intro { font-size: 15px; }
.cg-grp h4 { font-size: 16.5px; margin-bottom: 8px; }
.cg-grp ul { gap: 7px; }
.cg-grp li { font-size: 14.5px; }
.cg-date { padding-top: 26px; }
.cg-date::before { top: 44px; }
.cg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cg-hash { font: 600 12px ui-monospace, "Cascadia Code", Consolas, monospace; color: #8fb4ff; background: rgba(125, 162, 255, .12); border: 1px solid rgba(125, 162, 255, .25); padding: 3px 9px; border-radius: 7px; }
.cg-new { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; }
@media (max-width: 800px) { .cg-it { grid-template-columns: minmax(0, 1fr); } .cg-num { font-size: 42px; } .cg-head { padding: 18px 20px 0; } .cg-body { padding: 16px 20px 20px; } }
.subnav-spacer { height: 76px; }
.g-qs div { white-space: nowrap; overflow: hidden; }

/* ================================================================ Glossaire */
.gx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.gx-st { --c: var(--blue-l); text-align: left; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); transition: .35s var(--ease); }
.gx-st b { display: block; font-family: var(--head); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--c); }
.gx-st span { color: var(--soft); font-size: 14px; }
.gx-st:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.gx-st.on { border-color: var(--c); box-shadow: 0 18px 40px -22px var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.gx-search { padding: 24px; border-radius: 26px; border: 1px solid var(--line-strong); background: radial-gradient(80% 120% at 50% 0%, rgba(36, 71, 214, .28), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); display: grid; gap: 16px; margin-bottom: 26px; }
.gx-field { position: relative; display: flex; align-items: center; gap: 10px; }
.gx-field > svg { position: absolute; left: 22px; width: 24px; color: var(--blue-l); pointer-events: none; }
.gx-field input { flex: 1; min-width: 0; height: 66px; padding: 0 22px 0 60px; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(6, 10, 20, .7); color: #fff; font: 600 19px var(--body); transition: .3s; }
.gx-field input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(242, 181, 59, .14), 0 0 40px -10px rgba(242, 181, 59, .5); }
.gx-dice { flex: none; height: 66px; padding: 0 22px; border-radius: 20px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #07101f; background: linear-gradient(135deg, var(--gold), #ffd983); box-shadow: 0 12px 30px -12px rgba(242, 181, 59, .8); transition: .3s var(--ease); }
.gx-dice svg { width: 24px; transition: transform .6s var(--ease); }
.gx-dice:hover svg { transform: rotate(180deg); }
.gx-dice:active { transform: scale(.96); }
.gx-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(6, 10, 20, .6); border: 1px solid var(--line); justify-self: start; }
.gx-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--soft); transition: .25s; }
.gx-tabs button b { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(125, 162, 255, .14); color: var(--blue-l); }
.gx-tabs button.on { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -8px rgba(36, 71, 214, .9); }
.gx-tabs button.on b { background: rgba(255, 255, 255, .2); color: #fff; }
.gx-games { display: flex; flex-wrap: wrap; gap: 10px; }
.gx-g { --c: var(--blue-l); display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 10, 20, .5); color: var(--soft); font-weight: 600; font-size: 14px; transition: .3s var(--ease); }
.gx-g img { height: 36px; width: auto; max-width: 110px; object-fit: contain; filter: grayscale(.7) brightness(.85); transition: .3s; }
.gx-g b { font-size: 12px; color: var(--muted); }
.gx-g:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.gx-g:hover img, .gx-g.on img { filter: none; }
.gx-g.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, rgba(6, 10, 20, .6)); color: #fff; box-shadow: 0 10px 26px -14px var(--c); }
.gx-g.on b { color: #fff; }
.gx-search .g-ex { margin: 0; }
.gx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gx-card { position: relative; overflow: hidden; padding: 18px 18px 14px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); animation: pop .5s var(--ease) both; animation-delay: var(--d); transition: transform .35s var(--ease), border-color .3s, box-shadow .4s; }
.gx-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gc); opacity: .7; }
.gx-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gc) 50%, transparent); box-shadow: 0 20px 40px -24px var(--gc); }
.gx-card.picked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 181, 59, .4), 0 20px 50px -20px rgba(242, 181, 59, .7); animation: pickIn .8s var(--ease) both; }
@keyframes pickIn { 0% { transform: rotateY(90deg) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.gx-names { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.gx-names small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.gx-real span { display: block; color: var(--soft); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-new { text-align: right; }
.gx-new b { display: block; font-family: var(--head); font-size: 18px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(125, 162, 255, .12); color: var(--blue-l); margin-bottom: 1px; transition: .35s var(--ease); }
.gx-arrow svg { width: 15px; }
.gx-card:hover .gx-arrow { background: var(--gold); color: #07101f; transform: rotate(-12deg) scale(1.1); }
.gx-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); min-width: 0; }
.gx-foot img { height: 22px; width: auto; max-width: 70px; object-fit: contain; flex: none; }
.gx-sub { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-role { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; color: var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.gx-card mark { background: rgba(242, 181, 59, .3); color: #fff; border-radius: 4px; padding: 0 2px; }
.gx-empty { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: center; padding: 50px 20px; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--soft); }
.gx-empty b { font-family: var(--head); font-size: 20px; color: #fff; }
@media (max-width: 1060px) { .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gx-grid { grid-template-columns: minmax(0, 1fr); } .gx-stats { gap: 8px; } .gx-st { padding: 14px; } .gx-st span { font-size: 12px; }
  .gx-search { padding: 16px; } .gx-field { flex-wrap: wrap; } .gx-field input { height: 56px; font-size: 16px; } .gx-dice { height: 48px; width: 100%; justify-content: center; }
  .gx-field > svg { top: 16px; } .gx-tabs { justify-self: stretch; } .gx-tabs button { flex: 1; justify-content: center; padding: 9px 8px; }
}
@media (max-width: 640px) { .gx-tabs { display: flex; min-width: 0; } .gx-tabs button { gap: 5px; font-size: 13px; padding: 9px 6px; } .gx-tabs button b { padding: 1px 5px; font-size: 10.5px; } .gx-search, .gx-field, .gx-field input { min-width: 0; } .gx-search { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ Académie (guides) */
.ac-top { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.ac-prog { display: flex; align-items: center; gap: 18px; padding: 18px 26px 18px 18px; border-radius: 24px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.ac-prog p { color: var(--soft); font-size: 14px; margin-top: 4px; }
.ac-ringbox { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.ac-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ac-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ac-ring .bg { stroke: rgba(125, 162, 255, .14); }
.ac-ring .fg { transition: stroke-dasharray 1.4s var(--ease); }
.ac-ringbox b { font-family: var(--head); font-size: 28px; } .ac-ringbox small { font-size: 15px; color: var(--muted); }
.ac-path { display: grid; gap: 20px; max-width: 1000px; }
.ac-card { --c: var(--blue-l); display: grid; grid-template-columns: 56px 260px minmax(0, 1fr); gap: 22px; align-items: stretch; opacity: 0; transform: translateX(-24px); transition: .7s var(--ease); transition-delay: var(--d); }
.ac-path.in .ac-card { opacity: 1; transform: none; }
.ac-step { position: relative; display: flex; justify-content: center; }
.ac-n { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #0b1330)); box-shadow: 0 12px 28px -10px var(--c); transform: rotate(-6deg); transition: .4s var(--ease); }
.ac-n svg { width: 24px; }
.ac-card:hover .ac-n { transform: rotate(0) scale(1.08); }
.ac-line { position: absolute; top: 56px; bottom: -26px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--c), rgba(125, 162, 255, .12)); }
.ac-card.ok .ac-n { background: linear-gradient(135deg, #2fbf71, #7dffb0); color: #07101f; }
.ac-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 170px; }
.ac-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ac-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, transparent), rgba(6, 10, 20, .55)); mix-blend-mode: multiply; }
.ac-ico { position: absolute; z-index: 1; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(6, 10, 20, .65); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15); }
.ac-ico svg { width: 24px; }
.ac-card:hover .ac-media img { transform: scale(1.08); }
.ac-body { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); display: flex; flex-direction: column; gap: 8px; transition: .4s var(--ease); }
.ac-card:hover .ac-body { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateX(6px); box-shadow: 0 20px 40px -26px var(--c); }
.ac-body h3 { font-size: 22px; }
.ac-body p { color: var(--soft); font-size: 15px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-lvl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ac-lvl.l1 { background: rgba(63, 220, 122, .14); color: #3fdc7a; } .ac-lvl.l2 { background: rgba(242, 181, 59, .15); color: var(--gold); }
.ac-time, .ac-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ac-time svg, .ac-ok svg { width: 14px; }
.ac-ok { color: #3fdc7a; font-weight: 600; }
.ac-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c); }
.ac-go svg { width: 16px; transition: transform .3s var(--ease); }
.ac-card:hover .ac-go svg { transform: translateX(6px); }
.ac-diploma { margin-left: 78px; display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 22px; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.ac-diploma h3 { font-size: 20px; color: var(--soft); } .ac-diploma p { font-size: 14px; }
.ac-medal { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(125, 162, 255, .1); }
.ac-medal svg { width: 28px; }
.ac-diploma.won { border: 1px solid var(--gold); background: radial-gradient(80% 140% at 0% 50%, rgba(242, 181, 59, .2), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.ac-diploma.won h3 { color: var(--gold); } .ac-diploma.won p { color: var(--soft); }
.ac-diploma.won .ac-medal { background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; box-shadow: 0 0 30px rgba(242, 181, 59, .6); animation: nodePulse 2.4s infinite; }
@media (max-width: 900px) { .ac-top { grid-template-columns: 1fr; } .ac-card { grid-template-columns: 44px minmax(0, 1fr); } .ac-media { grid-column: 2; min-height: 150px; } .ac-body { grid-column: 2; } .ac-n { width: 42px; height: 42px; font-size: 18px; } .ac-line { top: 46px; } .ac-diploma { margin-left: 0; } }

/* ================================================================ Lecteur de guide */
.gr-hero { position: relative; overflow: hidden; isolation: isolate; padding: 130px 0 50px; }
.gr-bg { position: absolute; inset: -40px; z-index: -2; background: center / cover; filter: blur(26px) saturate(1.3) brightness(.4); }
.gr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 80% 20%, color-mix(in srgb, var(--gc) 35%, transparent), transparent 70%), linear-gradient(180deg, transparent 40%, var(--bg)); }
.gr-hero-in { max-width: 900px; }
.gr-back { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; margin-bottom: 22px; }
.gr-back svg { width: 16px; transform: rotate(180deg); transition: transform .3s; }
.gr-back:hover { color: #fff; } .gr-back:hover svg { transform: rotate(180deg) translateX(4px); }
.gr-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gr-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #0b1330)); box-shadow: 0 10px 26px -8px var(--c); }
.gr-icon svg { width: 22px; }
.gr-hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 18px 0 12px; }
.gr-hero .lead { color: var(--soft); max-width: 60ch; }
.gr-dots { display: flex; gap: 8px; margin-top: 26px; }
.gr-dots a { width: 34px; height: 8px; border-radius: 8px; background: rgba(125, 162, 255, .2); transition: .3s; }
.gr-dots a.ok { background: #3fdc7a; } .gr-dots a.on { width: 60px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.gr-sec { padding-top: 30px; }
.gr-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 50px; justify-content: center; }
.gr-toc-in { position: sticky; top: 110px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.gr-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.gr-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--soft); line-height: 1.35; transition: .25s; }
.gr-toc a b { font-family: var(--head); color: var(--muted); flex: none; }
.gr-toc a:hover { background: rgba(125, 162, 255, .08); color: #fff; }
.gr-toc a.on { background: color-mix(in srgb, var(--gc) 16%, transparent); color: #fff; } .gr-toc a.on b { color: var(--gc); }
.gr-read { height: 4px; border-radius: 4px; background: rgba(125, 162, 255, .14); margin-top: 16px; overflow: hidden; }
.gr-read i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gc), var(--gold)); transition: width .15s; }
.gr-key-in { padding: 22px 26px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--gc) 40%, transparent); background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--gc) 18%, transparent), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); margin-bottom: 20px; }
.gr-key-in ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: k; }
.gr-key-in li { counter-increment: k; display: flex; gap: 12px; align-items: baseline; font-size: 16px; color: #e8edff; }
.gr-key-in li::before { content: counter(k); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 13px var(--head); color: #07101f; background: var(--gc); transform: translateY(2px); }
.gr-article { max-width: none; margin: 0; }
.gr-article h2 { display: flex; align-items: center; gap: 14px; scroll-margin-top: 140px; }
.gr-sn { flex: none; font-family: var(--head); font-size: 15px; color: var(--gc); padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gc) 15%, transparent); }
.gr-callout { display: flex; gap: 16px; align-items: flex-start; margin: 30px 0; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(242, 181, 59, .12), rgba(242, 181, 59, .03)); border: 1px solid rgba(242, 181, 59, .35); }
.gr-callout > span { font-size: 26px; line-height: 1; }
.gr-callout p { margin: 0 !important; color: #fff !important; font-size: 16.5px !important; }
.gr-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 18px 0 24px; }
.gr-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: rgba(15, 23, 43, .6); border: 1px solid var(--line); margin: 0 !important; }
.gr-list li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 20%, transparent); color: var(--gc); margin-top: 3px; }
.gr-list li i svg { width: 14px; }
.gr-quiz-in { margin-top: 50px; padding: 28px; border-radius: 24px; border: 1px solid var(--line-strong); background: radial-gradient(80% 100% at 100% 0%, rgba(36, 71, 214, .25), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); scroll-margin-top: 140px; }
.gr-qh { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.gr-qh h2 { font-size: 26px; } .gr-qh p { color: var(--soft); font-size: 14px; }
.gr-qi { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; font: 700 28px var(--head); color: #07101f; background: linear-gradient(135deg, var(--gold), #ffd983); transform: rotate(-8deg); }
.gr-q { padding: 18px 0; border-top: 1px dashed var(--line); }
.gr-q > b { display: block; font-size: 16.5px; margin-bottom: 12px; }
.gr-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.gr-opt { padding: 11px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(6, 10, 20, .5); color: var(--soft); font-weight: 600; font-size: 14.5px; transition: .25s var(--ease); }
.gr-opt:not([disabled]):hover { border-color: var(--blue-l); color: #fff; transform: translateY(-2px); }
.gr-opt.good { background: rgba(63, 220, 122, .18); border-color: #3fdc7a; color: #fff; animation: pop .4s var(--ease); }
.gr-opt.bad { background: rgba(255, 107, 138, .15); border-color: #ff6b8a; color: #fff; animation: vshake .4s; }
.gr-opt.dim { opacity: .45; }
.gr-fb { margin-top: 10px; font-weight: 700; font-size: 14px; } .gr-fb.good { color: #3fdc7a; } .gr-fb.bad { color: #ff8aa3; }
.gr-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 16px 20px; border-radius: 16px; background: rgba(125, 162, 255, .1); }
.gr-result.win { background: linear-gradient(135deg, rgba(63, 220, 122, .2), rgba(242, 181, 59, .15)); border: 1px solid rgba(63, 220, 122, .5); }
.gr-result b { font-family: var(--head); font-size: 18px; }
.gr-next { margin-top: 26px; }
.gr-nextcard { --c: var(--blue-l); display: flex; align-items: center; gap: 18px; padding: 14px 22px 14px 14px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), var(--bg-2)); transition: .4s var(--ease); }
.gr-nextcard img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.gr-nextcard div { flex: 1; min-width: 0; } .gr-nextcard small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); font-weight: 700; } .gr-nextcard b { font-family: var(--head); font-size: 20px; }
.gr-nextcard > svg { width: 22px; color: var(--c); transition: transform .3s; }
.gr-nextcard:hover { border-color: var(--c); transform: translateY(-3px); } .gr-nextcard:hover > svg { transform: translateX(6px); }
.gr-nextcard.end { --c: var(--gold); } .gr-nextcard.end .ac-medal { background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; }
@media (max-width: 1060px) { .gr-layout { grid-template-columns: minmax(0, 1fr); } .gr-toc { display: none; } }
@media (max-width: 640px) { .gr-quiz-in { padding: 20px; } .gr-opt { width: 100%; text-align: left; } .gr-nextcard img { width: 80px; } }

/* ================================================================ Glossaire : tableau de données */
.dt { position: relative; border-radius: 28px; overflow: hidden; isolation: isolate; border: 1px solid var(--line-strong);
  background: radial-gradient(50% 40% at 50% 0%, rgba(0, 212, 255, .16), transparent 70%), radial-gradient(45% 50% at 30% 100%, rgba(255, 95, 162, .14), transparent 70%), radial-gradient(40% 50% at 100% 40%, rgba(167, 123, 255, .14), transparent 70%), linear-gradient(180deg, #121c38, #0b1229); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.dt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.dt-title { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 22px; }
.dt-title svg { width: 22px; color: var(--blue-l); }
.dt-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(6, 10, 20, .5); border: 1px solid var(--line); }
.dt-seg button { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--soft); transition: .25s; }
.dt-seg button.on { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -8px rgba(36, 71, 214, .9); }
.dt-search { position: relative; flex: 1 1 220px; max-width: 300px; }
.dt-search svg { position: absolute; left: 16px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--muted); }
.dt-search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(6, 10, 20, .45); color: #fff; font: 14.5px var(--body); }
.dt-search input:focus { outline: 0; border-color: var(--blue-l); box-shadow: 0 0 0 4px rgba(125, 162, 255, .15); }
.dt-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.dt-tool { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: #dfe6ff; transition: .2s; }
.dt-tool svg { width: 18px; }
.dt-tool:hover, .dt-tool.on { background: rgba(125, 162, 255, .12); }
.dt-tool.gold { color: var(--gold); } .dt-tool.gold:hover { background: rgba(242, 181, 59, .12); }
.dt-badge { min-width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1.5px solid currentColor; }
.dt-menu { position: relative; }
.dt-pop { position: absolute; top: 46px; left: 0; z-index: 20; min-width: 230px; padding: 6px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(12, 18, 36, .97); backdrop-filter: blur(14px); box-shadow: var(--shadow); display: none; }
.dt-pop.open { display: grid; gap: 2px; animation: pop .25s var(--ease); }
.dt-pop button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--soft); text-align: left; }
.dt-pop button img { height: 22px; width: 56px; object-fit: contain; }
.dt-pop button b { margin-left: auto; font-size: 12px; color: var(--muted); }
.dt-pop button:hover { background: rgba(125, 162, 255, .1); color: #fff; } .dt-pop button.on { background: rgba(36, 71, 214, .35); color: #fff; }
.dt-count { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--soft); }
.dt-count label { display: flex; align-items: center; gap: 8px; }
.dt-count select { height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(6, 10, 20, .5); color: #fff; font: 600 14px var(--body); }
.dt-scroll { overflow-x: auto; }
.dt-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.dt-table th { text-align: left; padding: 16px 22px; font-size: 13.5px; font-weight: 600; color: #fff; border-bottom: 1px solid var(--line); background: rgba(6, 10, 20, .25); }
.dt-table th + th, .dt-table td + td { border-left: 1px solid rgba(125, 162, 255, .1); }
.dt-th { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dt-th svg { width: 16px; color: var(--muted); }
.dt-table td { padding: 14px 22px; font-size: 14.5px; color: #dfe6ff; border-bottom: 1px solid rgba(125, 162, 255, .08); vertical-align: middle; }
.dt-table tbody tr:not(.dt-grp) { transition: background .2s; }
.dt-table tbody tr:not(.dt-grp):hover { background: rgba(125, 162, 255, .07); }
.dt-grp td { padding: 22px 22px 10px 70px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--muted); background: rgba(6, 10, 20, .2); }
.dt-user { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.dt-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--head); color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 50) 75% 38%)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.dt-new { font-family: var(--head); font-weight: 700; color: var(--gold); }
.dt-game { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gc) 12%, transparent); }
.dt-game img { height: 26px; width: 74px; object-fit: contain; }
.dt-pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #07101f; background: var(--pc); }
.dt-dim { color: var(--muted); }
.dt-more { font-size: 11px; font-weight: 700; color: var(--blue-l); background: rgba(125, 162, 255, .12); padding: 1px 6px; border-radius: 6px; }
.dt-table mark { background: rgba(242, 181, 59, .3); color: #fff; border-radius: 4px; padding: 0 2px; }
.dt-table tr.picked td { background: rgba(242, 181, 59, .12); }
.dt-table tr.picked td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.dt-empty { text-align: center; padding: 50px !important; color: var(--soft) !important; } .dt-empty b { color: #fff; font-family: var(--head); font-size: 19px; }
.dt-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 18px; }
.dt-pager:empty { display: none; }
.dt-pager button { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--soft); border: 1px solid transparent; }
.dt-pager button:hover:not([disabled]) { border-color: var(--line-strong); color: #fff; }
.dt-pager button.on { background: var(--blue); color: #fff; }
.dt-pager button[disabled] { opacity: .35; }
.dt-pager span { color: var(--muted); }
@media (max-width: 800px) { .dt-bar { padding: 16px; } .dt-search { max-width: none; flex-basis: 100%; } .dt-count { margin-left: 0; width: 100%; justify-content: space-between; } .dt-tool span { display: none; } .dt-tool.gold span { display: inline; } }
.dt-pop { min-width: 270px; } .dt-pop button { white-space: nowrap; }

/* ================================================================ Académie : tableau Kanban */
.kb-top { padding-top: 110px; }
.kb-head { margin-top: 14px; border-radius: 30px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #121c38, #0d1530); }
.kb-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 38px; background: linear-gradient(120deg, #2447d6, #5b4ae6 55%, #7b3fe0); }
.kb-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 120% at 85% 0%, rgba(0, 212, 255, .45), transparent 70%), radial-gradient(35% 100% at 60% 120%, rgba(242, 181, 59, .35), transparent 70%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px); }
.kb-crumb { font-size: 13px; color: rgba(255, 255, 255, .75); letter-spacing: .04em; }
.kb-banner h1 { font-size: clamp(32px, 4.4vw, 54px); margin: 6px 0 8px; }
.kb-banner p { color: rgba(255, 255, 255, .85); max-width: 60ch; }
.kb-ring { position: relative; flex: none; width: 110px; height: 110px; display: grid; place-items: center; }
.kb-ring .ac-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.kb-ring .ac-ring .bg { stroke: rgba(255, 255, 255, .2); }
.kb-ring b { font-family: var(--head); font-size: 32px; } .kb-ring small { font-size: 16px; opacity: .7; }
.kb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 42px; padding: 20px 38px; }
.kb-meta > div { display: grid; gap: 6px; }
.kb-meta small { font-size: 12.5px; color: var(--muted); }
.kb-meta b { font-weight: 600; }
.kb-chip { padding: 5px 10px; border-radius: 8px; background: rgba(125, 162, 255, .12); font-size: 14px; font-weight: 600; }
.kb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kb-tags span { padding: 5px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #07101f; background: var(--tc); }
.kb-dip { margin-left: auto; grid-template-columns: auto auto; align-items: center; gap: 12px !important; padding-left: 26px; border-left: 1px solid var(--line); }
.kb-dip .ac-medal { width: 46px; height: 46px; }
.kb-dip.won .ac-medal { background: linear-gradient(135deg, var(--gold), #ffd983); color: #07101f; box-shadow: 0 0 24px rgba(242, 181, 59, .6); }
.kb-dip.won b { color: var(--gold); }
.kb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.kb-count { font-family: var(--head); font-size: 20px; }
.kb-bar .dt-search { margin-left: auto; }
.kb-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kb-col { border-radius: 22px; padding: 14px; background: rgba(15, 23, 43, .55); border: 1px solid var(--line); }
.kb-colh { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.kb-colh b { min-width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; background: rgba(125, 162, 255, .14); color: #fff; }
.kb-cards { display: grid; gap: 12px; }
.kb-card { --c: var(--blue-l); display: grid; gap: 10px; padding: 16px 16px 14px; border-radius: 16px; color: #0a1020; background: var(--c); box-shadow: 0 14px 30px -18px var(--c); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .4s var(--ease), box-shadow .3s; transition-delay: var(--d), var(--d), 0s; }
.kb-board.in .kb-card { opacity: 1; transform: none; }
.kb-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 20px 40px -16px var(--c); transition-delay: 0s; }
.kb-ct { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.kb-ct svg { width: 15px; }
.kb-ct i { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 32, .14); }
.kb-ct i svg { width: 14px; }
.kb-card h3 { font-size: 17px; line-height: 1.25; font-weight: 600; }
.kb-cb { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; opacity: .75; }
.kb-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 32, .9); color: var(--c); opacity: 1; }
.kb-ic svg { width: 16px; }
.kb-card.done { background: color-mix(in srgb, var(--c) 22%, #18223f); color: #e8edff; box-shadow: none; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.kb-card.done .kb-ct i { background: #3fdc7a; color: #07101f; }
.kb-card.done .kb-ic { background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; }
.kb-card.soon { background: rgba(125, 162, 255, .08); color: var(--muted); border: 1px dashed var(--line-strong); box-shadow: none; }
.kb-card.soon h3 { color: var(--soft); }
.kb-none { padding: 24px 10px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 900px) { .kb-banner { padding: 26px; } .kb-meta { padding: 18px 26px; } .kb-dip { margin-left: 0; padding-left: 0; border: 0; } .kb-bar .dt-search { margin-left: 0; flex-basis: 100%; max-width: none; } }
@media (max-width: 640px) { .kb-ring { width: 80px; height: 80px; } .kb-ring b { font-size: 22px; } .kb-board { grid-template-columns: repeat(4, 78vw); } }
.kb-dip > div { display: grid; gap: 2px; } .kb-dip { display: flex !important; }
/* Glossaire : barre et en-tête fixes, liste qui défile */
.dt { display: flex; flex-direction: column; }
.dt-scroll { max-height: calc(100vh - 290px); min-height: 360px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(125,162,255,.35) transparent; }
.dt-table thead th { position: sticky; top: 0; z-index: 2; background: #121b36; }
.dt-grp td { position: sticky; top: 52px; z-index: 1; background: #0f1830; }
@media (max-width: 800px) { .dt-scroll { max-height: 70vh; } }
/* Académie : colonnes par partie du jeu */
.kb-board { grid-template-columns: repeat(6, minmax(230px, 1fr)); }
.kb-col { border-top: 3px solid var(--c); }
.kb-colh i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.kb-colh b { margin-left: auto; min-width: 0; width: auto; padding: 0 8px; border-radius: 999px; }
.kb-card.todo { background: color-mix(in srgb, var(--c) 88%, #fff); }
.kb-card.doing { background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 14px 30px -14px var(--c); }
.kb-st { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(10,16,32,.85); color: #fff; }
.kb-tags a { padding: 5px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #07101f; background: var(--tc); transition: transform .2s; }
.kb-tags a:hover { transform: translateY(-2px); }
.kb-col { scroll-margin-top: 140px; }
.kb-board { grid-template-columns: repeat(6, minmax(188px, 1fr)); gap: 12px; }
.kb-col { padding: 12px 10px; }
.kb-ct span { white-space: nowrap; }
.kb-card h3 { font-size: 16px; }
@media (max-width: 1100px) { .kb-board { grid-template-columns: repeat(6, 230px); } }
.dt-grp td { position: static; } .dt-scroll { max-height: calc(100vh - 330px); }
/* Académie : cartes façon tableau de tâches (référence) */
.kb-board { gap: 14px; grid-template-columns: repeat(6, minmax(196px, 1fr)); }
.kb-col { border: 0; border-top: 0; border-radius: 18px; padding: 12px 8px 8px; background: rgba(255, 255, 255, .035); backdrop-filter: blur(10px); }
.kb-colh { padding: 4px 8px 12px; font-size: 12px; letter-spacing: .14em; gap: 8px; }
.kb-colh i { width: 8px; height: 8px; border-radius: 50%; }
.kb-colh b { margin-left: 2px; font-size: 11.5px; padding: 0 7px; height: 22px; background: rgba(255, 255, 255, .08); }
.kb-full { margin-left: auto; font-style: normal; color: #3fdc7a; } .kb-full svg { width: 16px; }
.kb-cards { gap: 6px; }
.kb-card { gap: 6px; padding: 11px 12px 10px; border-radius: 12px; background: var(--p); color: #10131c; box-shadow: none; border: 0; }
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .8); }
.kb-ct { font-size: 12px; font-weight: 600; gap: 6px; }
.kb-ct svg { width: 14px; }
.kb-ct i { width: auto; height: auto; background: none; border-radius: 0; }
.kb-ct i svg { width: 15px; }
.kb-card h3 { font-size: 14.5px; font-weight: 500; line-height: 1.35; letter-spacing: 0; font-family: var(--body); }
.kb-cb { font-size: 11.5px; opacity: 1; color: rgba(16, 19, 28, .62); align-items: flex-end; }
.kb-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); background: #0b1330; }
.kb-av img { width: 100%; height: 100%; object-fit: cover; }
.kb-card.doing { box-shadow: 0 0 0 2px #fff inset; }
.kb-card.doing .kb-ct span { font-weight: 800; }
.kb-card.done { background: rgba(255, 255, 255, .09); color: #e6eaf5; border: 0; }
.kb-card.done .kb-cb { color: rgba(230, 234, 245, .55); }
.kb-card.done .kb-ct svg:first-child { color: #3fdc7a; }
.kb-card.done .kb-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); filter: saturate(.6); }
.kb-card.done:hover { background: rgba(255, 255, 255, .13); }
.kb-card.todo, .kb-card.doing { background: var(--p); }
.kb-card.done .kb-ct i { background: none; color: rgba(230, 234, 245, .55); }
.kb-card .kb-ct i svg { color: inherit; }

/* ================================================================ Barres de défilement aux couleurs du site */
* { scrollbar-width: thin; scrollbar-color: rgba(125, 162, 255, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 10px; border: 3px solid transparent; background: linear-gradient(180deg, #7da2ff, #a77bff) padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f2b53b, #7da2ff) padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }

/* Académie : les 6 colonnes tiennent sans barre horizontale */
.kb-board { grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; gap: 10px; }
.kb-card h3 { font-size: 14px; }
.kb-cb span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1200px) { .kb-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kb-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .kb-board { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ Compte membre */
.acct-btn { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--soft); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); transition: .25s var(--ease); overflow: hidden; }
.acct-btn svg { width: 18px; height: 18px; }
.acct-btn:hover, .acct-btn.active { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); }
.acct-btn.in { border-color: transparent; background: linear-gradient(135deg, #d6c3fb, #8fe9f0); color: #10131c; }
.acct-btn.in b { font: 700 13px var(--head); }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }
.acct-btn.alpha::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }

.mb-hero-sec { padding-bottom: 40px; }
.acct { min-height: 380px; }
.mb-loading { display: flex; gap: 8px; justify-content: center; padding: 120px 0; }
.mb-loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); animation: mbDot 1s infinite ease-in-out; }
.mb-loading i:nth-child(2) { animation-delay: .15s; background: #a77bff; } .mb-loading i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
@keyframes mbDot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-8px); opacity: 1; } }

.mb-card { position: relative; border-radius: 26px; padding: 26px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(14px); }
.mb-card h3 { font-size: 19px; }
.mb-p { color: var(--soft); font-size: 14.5px; margin: 6px 0 16px; }
.mb-ico { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.mb-ico svg { width: 20px; height: 20px; }
.mb-ico.dc { background: #5865f2; }
.mb-ch { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mb-n { margin-left: auto; font-style: normal; font: 700 12px var(--head); padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #10131c; }
.mb-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #9fb6ff; background: none; border: 0; cursor: pointer; padding: 0; }
.mb-link:hover { color: #fff; } .mb-link.sm { margin: 0 0 4px; justify-self: end; font-size: 12.5px; }
.mb-link.danger { color: #f87171; } .mb-link.dark { color: #10131c; opacity: .75; margin-right: 16px; } .mb-link.dark:hover { opacity: 1; }
.mb-flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.mb-flash i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; } .mb-flash svg { width: 15px; height: 15px; }
.mb-flash.ok { background: rgba(63, 220, 122, .12); color: #b8f5cc; } .mb-flash.ok i { background: #3fdc7a; color: #08240f; }
.mb-flash.bad { background: rgba(248, 113, 113, .12); color: #fecaca; } .mb-flash.bad i { background: #f87171; color: #fff; }

/* Connexion / inscription */
.mb-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.mb-side { position: relative; overflow: hidden; border-radius: 26px; padding: 36px; color: #10131c; background: linear-gradient(150deg, #d6c3fb 0%, #b3c7ff 45%, #8fe9f0 100%); display: flex; flex-direction: column; }
.mb-orb { position: absolute; width: 320px; height: 320px; right: -110px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 65%); animation: mbFloat 9s ease-in-out infinite; }
@keyframes mbFloat { 50% { transform: translate(-30px, -24px) scale(1.08); } }
.mb-badge { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #10131c; color: #f7cf7a; box-shadow: 0 16px 30px -14px rgba(16, 19, 28, .8); }
.mb-badge svg { width: 26px; height: 26px; }
.mb-side h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 26px 0 22px; line-height: 1.1; color: #10131c; }
.mb-side ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 12px; position: relative; }
.mb-side li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .55); animation: mbIn .6s var(--ease) both; animation-delay: var(--d); }
.mb-side li i { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #10131c; color: #fff; } .mb-side li svg { width: 15px; height: 15px; }
@keyframes mbIn { from { opacity: 0; transform: translateY(10px); } }
.mb-form { padding: 32px; }
.mb-form h2 { font-size: 26px; }
.mb-form form { display: grid; gap: 14px; }
.mb-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); margin-bottom: 22px; }
.mb-tabs button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--soft); transition: .25s; }
.mb-tabs button.on { background: #fff; color: #10131c; }
.mb-f { display: grid; gap: 7px; } .mb-f > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mb-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; background: rgba(6, 10, 20, .5); border: 1px solid rgba(255, 255, 255, .1); transition: .2s; }
.mb-in:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.mb-in i { color: var(--muted); display: grid; } .mb-in svg { width: 17px; height: 17px; }
.mb-in input { flex: 1; min-width: 0; padding: 13px 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15px; }
.mb-hint { color: var(--muted); font-size: 12.5px; margin-top: -6px; }
.mb-sub { justify-content: space-between; width: 100%; margin-top: 4px; }
.mb-sub[disabled] { opacity: .6; pointer-events: none; }
.mb-dc { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 600; font-size: 15px; transition: .25s var(--ease); box-shadow: 0 12px 30px -14px #5865f2; }
.mb-dc svg { width: 22px; height: 22px; } .mb-dc:hover { background: #4752c4; transform: translateY(-2px); }
.mb-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.mb-or::before, .mb-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }

/* Profil */
.mb-top { margin-bottom: 18px; }
.mb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mb-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mb-h { font-size: 22px; margin: 6px 4px -4px; }
.mb-ico.gold { background: #f7cf7a; color: #10131c; }
.mb-rf { display: flex; gap: 10px; } .mb-rf .mb-in { flex: 1; min-width: 0; } .mb-rf input { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.mb-toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.mb-toggle > span { flex: 1; } .mb-toggle b { display: block; font-size: 14.5px; } .mb-toggle small { color: var(--muted); font-size: 13px; }
.mb-toggle input, .mb-check input { position: absolute; opacity: 0; pointer-events: none; }
.mb-toggle i { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: rgba(255, 255, 255, .15); transition: .25s; }
.mb-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .25s var(--ease); }
.mb-toggle input:checked + i { background: #22c55e; } .mb-toggle input:checked + i::after { transform: translateX(20px); }
.mb-toggle input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.mb-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--soft); position: relative; }
.mb-check i { width: 20px; height: 20px; flex: none; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; transition: .2s; }
.mb-check input:checked + i { background: var(--blue); border-color: var(--blue); }
.mb-check input:checked + i::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.mb-me { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; }
.mb-av { width: 74px; height: 74px; flex: none; border-radius: 24px; display: grid; place-items: center; overflow: hidden; font: 700 26px var(--head); color: #10131c; background: linear-gradient(135deg, #d6c3fb, #8fe9f0); }
.mb-av img { width: 100%; height: 100%; object-fit: cover; }
.mb-av.sm { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; }
.mb-mi { flex: 1; min-width: 200px; } .mb-mi small { color: var(--muted); font-weight: 600; }
.mb-mi h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 2px 0 4px; } .mb-mi p { color: var(--soft); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.mb-tags { display: flex; gap: 8px; }
.mb-tags span { --c: #f7cf7a; background: var(--c); color: #10131c; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.mb-tags svg { width: 14px; height: 14px; }
.t-alpha { background: #f7cf7a; color: #10131c; } .t-dc { background: #5865f2; color: #fff; }

.mb-alpha { --c: #8fe9f0; color: #10131c; border: 0; padding: 28px; overflow: hidden; background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 45%, #fff)); }
.mb-alpha.off { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 55%, #cfd4e6), #eef0f7); }
.mb-alpha.wait { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 80%, #fff), #fff3d6); }
.mb-alpha::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .35); pointer-events: none; }
.mb-ah { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.mb-alpha .mb-ico { width: 54px; height: 54px; border-radius: 18px; background: #10131c; color: #f7cf7a; } .mb-alpha .mb-ico svg { width: 24px; height: 24px; }
.mb-ah small { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.mb-ah h3 { font-size: clamp(24px, 2.4vw, 32px); color: #10131c; }
.mb-alpha > p { position: relative; z-index: 1; margin: 16px 0; font-size: 15px; color: #2a3042; max-width: 46ch; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mb-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; }
.mb-chips svg { width: 14px; height: 14px; }
.mb-build { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mb-build div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); } .mb-build small { display: block; font-size: 11.5px; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .08em; } .mb-build b { font: 700 18px var(--head); }
.mb-note { font-size: 13.5px; color: #2a3042; margin: 0 0 16px; }
.mb-dark { background: #10131c; color: #fff; } .mb-dark .arr { background: #fff; color: #10131c; } .mb-dark:hover { background: #000; }
.mb-alpha .btn { margin-right: 14px; margin-bottom: 6px; }
.mb-ask { display: grid; gap: 12px; }
.mb-ask textarea { width: 100%; resize: vertical; border-radius: 16px; border: 0; padding: 14px; font: inherit; font-size: 14px; background: rgba(255, 255, 255, .7); color: #10131c; outline: 0; }
.mb-ask textarea:focus { box-shadow: 0 0 0 3px rgba(16, 19, 28, .2); } .mb-ask .btn { justify-self: start; }

.mb-dline { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.mb-dline div { flex: 1; min-width: 0; } .mb-dline b { display: block; } .mb-dline small { color: var(--muted); font-size: 13px; } .mb-dline small.ok { color: #3fdc7a; }
.mb-ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3fdc7a; color: #08240f; } .mb-ok svg { width: 15px; height: 15px; }
.mb-dcard .mb-dc { width: auto; display: inline-flex; padding: 11px 20px; font-size: 14px; }

.mb-clist { margin-top: 16px !important; }
.mb-codes ul, .mb-clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mb-codes li, .mb-clist li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.mb-codes code, .mb-clist code { font: 700 15px ui-monospace, Consolas, monospace; letter-spacing: .1em; color: #f7cf7a; }
.mb-codes li span, .mb-clist li span { flex: 1; text-align: right; font-size: 13px; font-weight: 600; } .mb-codes li small, .mb-clist li small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.mb-copy { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--soft); background: rgba(255, 255, 255, .06); transition: .2s; }
.mb-copy:hover { background: #fff; color: #10131c; } .mb-copy.done { background: #3fdc7a; color: #08240f; } .mb-copy svg { width: 16px; height: 16px; }

.mb-set form { display: grid; gap: 12px; }
.mb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mb-saved { display: inline-flex; align-items: center; gap: 6px; color: #3fdc7a; font-size: 13.5px; font-weight: 600; } .mb-saved svg { width: 15px; height: 15px; }
.mb-del { margin-top: 16px; padding: 16px; border-radius: 18px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); }
.mb-del p { margin: 0 0 12px; color: #fecaca; font-size: 14px; } .mb-del .mb-in { margin-bottom: 12px; }
.mb-red { background: #ef4444; color: #fff; } .mb-red:hover { background: #dc2626; }
.mb-off { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; } .mb-off p { margin: 0; color: var(--soft); }

@media (max-width: 860px) {
  .mb-auth, .mb-grid { grid-template-columns: minmax(0, 1fr); }
  
  .mb-side { padding: 26px; } .mb-side ul { margin-top: 0; }
  .mb-form { padding: 24px; }
}
@media (max-width: 520px) { .mb-me .btn { width: 100%; justify-content: space-between; } .acct-btn { width: 36px; height: 36px; } }

/* Page alpha : rappel du compte */
.v-acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 18px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); font-size: 13.5px; color: var(--soft); }
.v-acct b { color: #fff; } .v-acct a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.v-via { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(63, 220, 122, .15); color: #3fdc7a; font-size: 12px; font-weight: 700; }

/* ================================================================ Pied de page compact */
.site-footer.ft { padding: 0 0 26px; margin-top: 80px; border-top: 0; background: transparent; }
.ft-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; padding: 30px 34px; border-radius: 28px; color: #10131c; background: linear-gradient(120deg, #d6c3fb 0%, #b3c7ff 45%, #8fe9f0 100%); }
.ft-cta::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .6), transparent 65%); pointer-events: none; }
.ft-cta-t { position: relative; z-index: 1; max-width: 560px; }
.ft-cta h3 { font-size: clamp(22px, 2.4vw, 30px); color: #10131c; margin: 0 0 6px; }
.ft-cta p { margin: 0; font-size: 14.5px; color: #2a3042; }
.ft-cta-b { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ft-dark { background: #10131c; color: #fff; } .ft-dark .arr { background: #fff; color: #10131c; } .ft-dark:hover { background: #000; color: #fff; }
.ft-dc { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .6); color: #10131c; font-weight: 600; font-size: 14.5px; transition: .25s var(--ease); }
.ft-dc svg { width: 20px; height: 20px; color: #5865f2; } .ft-dc:hover { background: #5865f2; color: #fff; } .ft-dc:hover svg { color: #fff; }
.ft-main { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding: 34px 4px 22px; }
.ft-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex: 1 1 360px; }
.ft-brand p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 30ch; line-height: 1.5; }
.site-footer.ft .zf-mark .zf-sym { height: 34px; } .site-footer.ft .zf-mark .zf-word { font-size: 19px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ft-links a { color: var(--soft); font-size: 14.5px; font-weight: 500; transition: color .2s; } .ft-links a:hover { color: #fff; }
.site-footer.ft .socials { margin: 0; } .site-footer.ft .socials a { width: 38px; height: 38px; } .site-footer.ft .socials svg { width: 16px; }
.ft-em { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding: 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.ft-em > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-em a { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--soft); background: rgba(255, 255, 255, .05); transition: .2s; }
.ft-em a:hover { background: #fff; color: #10131c; }
.site-footer.ft .foot-bottom { margin-top: 22px; padding-top: 0; border-top: 0; align-items: center; font-size: 12.5px; }
.ft-disc { text-align: right; }
.ft-top { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--soft); border: 1px solid var(--line); transition: .2s; }
.ft-top svg { width: 14px; height: 14px; } .ft-top:hover { background: #fff; color: #10131c; border-color: #fff; }
@media (max-width: 760px) {
  .ft-cta { padding: 24px; } .ft-cta-b, .ft-cta-b .btn { width: 100%; } .ft-cta-b .btn { justify-content: space-between; } .ft-dc { width: 100%; justify-content: center; }
  .ft-disc { text-align: left; }
}

/* ================================================================ ECM27 : état du projet (remplace les chiffres) */
.em-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 50px; }
.es-tile { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 18px 20px 18px; border-radius: 22px; color: #10131c; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.es-tile.lav { background: #d6c3fb; } .es-tile.cyan { background: #8fe9f0; } .es-tile.gold { background: #f7cf7a; } .es-tile.pink { background: #ffc2dc; }
.es-tile::after { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; bottom: -70px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: .4s var(--ease); }
.es-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .9); } .es-tile:hover::after { transform: scale(1.4); }
.es-i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #10131c; color: #fff; margin-bottom: 10px; } .es-i svg { width: 17px; height: 17px; }
.es-tile small { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.es-tile b { font: 700 clamp(18px, 1.6vw, 23px)/1.15 var(--head); padding-right: 26px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.es-tile em { font-style: normal; font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.es-go { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .55); transition: .3s var(--ease); z-index: 1; }
.es-go svg { width: 14px; height: 14px; } .es-tile:hover .es-go { background: #10131c; color: #fff; transform: rotate(-45deg); }
@media (max-width: 900px) { .em-status { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .em-status { grid-template-columns: minmax(0, 1fr); } }

/* Pied de page : liens légaux */
.site-footer.ft .foot-bottom { gap: 10px 24px; padding: 18px 4px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.ft-copy { display: grid; gap: 3px; } .ft-copy .ft-disc { font-size: 12px; opacity: .8; text-align: left; }
.ft-legal a, .ft-legal button { font: inherit; font-size: 13px; color: var(--soft); background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s; }
.ft-legal a:hover, .ft-legal button:hover { color: #fff; }
.site-footer.ft .ft-main { padding-bottom: 26px; }
@media (max-width: 760px) { .ft-legal { justify-content: flex-start; flex-basis: 100%; order: -1; } }

/* Pages légales */
.lgl-hero { padding-bottom: 30px; }
.lgl { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.lgl-upd { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.lgl-toc { position: sticky; top: 100px; display: grid; gap: 4px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.lgl-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; font-size: 14px; color: var(--soft); transition: .2s; }
.lgl-toc a b { font: 700 11px var(--head); color: var(--muted); } .lgl-toc a:hover { background: #fff; color: #10131c; } .lgl-toc a:hover b { color: #10131c; }
.lgl-body { display: grid; gap: 14px; }
.lgl-sec { padding: 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); scroll-margin-top: 100px; }
.lgl-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 0 0 10px; }
.lgl-sec h2 span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #d6c3fb; color: #10131c; font-size: 12px; flex: none; }
.lgl-sec:nth-child(3n+2) h2 span { background: #8fe9f0; } .lgl-sec:nth-child(3n) h2 span { background: #f7cf7a; }
.lgl-sec p { margin: 0; color: var(--soft); line-height: 1.7; font-size: 15px; } .lgl-sec a { color: #9fb6ff; }
.lgl-todo { background: rgba(247, 207, 122, .18); color: #f7cf7a; padding: 1px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.lgl-body > .btn { justify-self: start; }
@media (max-width: 860px) { .lgl { grid-template-columns: minmax(0, 1fr); } .lgl-toc { position: static; } }

/* Cookies */
.ck-bar { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: flex; gap: 14px; width: min(440px, calc(100vw - 40px)); padding: 18px 20px; border-radius: 24px; background: rgba(14, 19, 36, .94); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px #000; transform: translateY(30px); opacity: 0; transition: .35s var(--ease); }
.ck-bar.in { transform: none; opacity: 1; }
.ck-bar b { font: 700 16px var(--head); } .ck-bar p { margin: 4px 0 12px; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.ck-ico { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: #f7cf7a; }
.ck-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-b { padding: 9px 16px; border-radius: 999px; font: 600 13.5px var(--body, inherit); background: rgba(255, 255, 255, .08); color: #fff; border: 0; cursor: pointer; transition: .2s; }
.ck-b:hover { background: rgba(255, 255, 255, .16); } .ck-b.dark { background: #fff; color: #10131c; } .ck-b.dark:hover { background: #f7cf7a; }
.ck-l { font-size: 13px; font-weight: 600; color: #9fb6ff; background: none; border: 0; cursor: pointer; padding: 0 6px; } .ck-l:hover { color: #fff; }
.ck-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(6, 8, 18, .55); backdrop-filter: blur(10px); opacity: 0; transition: .25s; }
.ck-modal.in { opacity: 1; }
.ck-card { width: min(480px, 100%); padding: 26px; border-radius: 28px; background: #fff; color: #10131c; display: grid; gap: 10px; transform: translateY(14px) scale(.97); transition: .3s var(--ease); }
.ck-modal.in .ck-card { transform: none; }
.ck-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .ck-h h3 { flex: 1; font-size: 21px; color: #10131c; margin: 0; }
.ck-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f8; color: #10131c; border: 0; cursor: pointer; } .ck-x svg { width: 16px; height: 16px; }
.ck-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #f3f4f8; cursor: pointer; position: relative; }
.ck-row span { flex: 1; } .ck-row b { display: block; font-size: 14.5px; } .ck-row small { color: #6b7280; font-size: 13px; }
.ck-row input { position: absolute; opacity: 0; pointer-events: none; }
.ck-row i { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: #d1d5db; transition: .25s; }
.ck-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: .25s var(--ease); }
.ck-row input:checked + i { background: #22c55e; } .ck-row input:checked + i::after { transform: translateX(20px); }
.ck-row input:disabled + i { opacity: .55; } .ck-row:has(input:disabled) { cursor: default; }
.ck-card .ck-acts { margin-top: 8px; } .ck-card .ck-b { background: #f3f4f8; color: #10131c; } .ck-card .ck-b.dark { background: #10131c; color: #fff; } .ck-card .ck-l { color: var(--blue); }
.mb-legal { color: var(--muted); font-size: 12.5px; line-height: 1.5; } .mb-legal a { color: #9fb6ff; }

/* ================================================================ Correctifs responsive */
/* Accueil : la carte « Notre jeu phare » s'empile sous 900 px */
@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase-media { min-height: 0; }
}
/* Page alpha : champ du code et bouton restent dans la carte */
.v-input { min-width: 0; width: 100%; }
@media (max-width: 640px) {
  .v-form { flex-direction: column; align-items: stretch; }
  .v-input { flex: none; max-width: none; letter-spacing: .1em; font-size: 17px; padding: 0 14px; }
  .vault { padding-left: 18px; padding-right: 18px; }
}
/* Glossaire : sur téléphone, chaque ligne devient une petite carte */
@media (max-width: 640px) {
  .dt-table { min-width: 0; }
  .dt-table thead { display: none; }
  .dt-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid rgba(125, 162, 255, .1); }
  .dt-table tbody td { display: block; padding: 0; border: 0 !important; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dt-table tbody td:nth-child(1) { grid-column: 1 / 3; font-size: 14.5px; }
  .dt-table tbody td:nth-child(2) { grid-column: 3; text-align: right; align-self: center; }
  .dt-table tbody tr.dt-grp, .dt-table tbody tr:has(.dt-empty) { display: block; padding: 8px 14px; }
  .dt-table tbody tr.dt-grp td, .dt-table tbody td.dt-empty { grid-column: 1 / -1; }
}
.mb-dlinfo { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: #2a3042; opacity: .8; position: relative; z-index: 1; } .mb-dlinfo svg { width: 13px; height: 13px; }
.mb-alpha .btn[disabled] { opacity: .6; pointer-events: none; }
/* Page alpha : connexion / code */
.v-out { max-width: 440px; text-align: center; margin: 2px auto 14px; }
.v-out h3 { font-size: 20px; margin: 0 0 6px; } .v-out p { color: var(--soft); font-size: 14.5px; margin: 0; }
.v-out-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.v-via { margin-left: 0; margin-top: 8px; }
