/* LACT GAMES — site styles
   Palette and rules: "LACT GAMES - Identité visuelle/LISEZ-MOI.txt"
   One bright colour only (actinium blue). A glow, not neon. */

:root {
  --actinium: #6FCBFF;   /* the only bright colour: links, buttons, focus */
  --core:     #DDF5FF;   /* centre of the glow, sparks */
  --halo:     #2E8FD8;   /* glow around the triangle */
  --frost:    #EAF3FF;   /* headings */
  --night:    #060A14;   /* page background */
  --abyss:    #0F1828;   /* panels */
  --ink:      #0A1222;   /* text on light */
  --text:     #96ACC8;   /* body text */
  --text-hi:  #B5C6DC;
  --line:     rgba(150, 172, 200, .14);
  --radius:   18px;
  --wrap:     1180px;
  --header:   68px;
  --ease:     cubic-bezier(.2, .7, .2, 1);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* Smooth cross-page transitions in supporting browsers */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--night); color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(111, 203, 255, .3); color: var(--frost); }
img, video { max-width: 100%; display: block; }
a { color: var(--actinium); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--actinium); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--frost); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
kbd { font: 600 .72rem var(--mono); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--abyss); color: var(--frost); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Ambient: dot grid, soft halos, rising sparks (canvas) ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(150, 172, 200, .16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 10%, transparent 70%);
}
.ambient::after {
  content: ""; position: absolute; width: 1000px; height: 1000px; left: -300px; top: -380px;
  background: radial-gradient(closest-side, rgba(46, 143, 216, .17), transparent);
}
.sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 10, 20, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--frost); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; transition: filter .3s; }
.brand:hover img { filter: drop-shadow(0 0 8px rgba(111, 203, 255, .6)); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; gap: 2px; margin-right: 6px; }
.nav a {
  position: relative; color: var(--text); font-weight: 600; font-size: .93rem;
  padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--frost); background: rgba(111, 203, 255, .07); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--frost); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--actinium); box-shadow: 0 0 8px 1px var(--actinium);
}

.header-tools .sound-btn { width: 38px; justify-content: center; padding: 0; }
.sound-btn .wave, .sound-btn .mute { transition: opacity .25s, transform .25s var(--ease); transform-origin: 12px 12px; }
.sound-btn[aria-pressed="false"] .wave { opacity: 0; transform: scale(.6); }
.sound-btn[aria-pressed="true"] .mute { opacity: 0; }
.sound-btn[aria-pressed="true"] { color: var(--actinium); border-color: rgba(111, 203, 255, .4); }
.sound-btn[aria-pressed="true"] .wave { animation: wave 1.6s ease-in-out infinite; }
.sound-btn[aria-pressed="true"] .wave-2 { animation-delay: .25s; }
@keyframes wave { 50% { opacity: .35; } }

.cmd-btn, .lang summary, .nav-toggle, .sound-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px;
  background: rgba(15, 24, 40, .7); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: 600 .8rem var(--font); cursor: pointer; transition: color .2s, border-color .2s, box-shadow .2s;
}
.cmd-btn:hover, .sound-btn:hover, .lang summary:hover, .lang[open] summary { color: var(--frost); border-color: rgba(111, 203, 255, .4); box-shadow: 0 0 16px rgba(111, 203, 255, .12); }
.cmd-btn kbd { color: inherit; opacity: .8; }

.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 230px;
  background: rgba(15, 24, 40, .97); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(111, 203, 255, .04);
  animation: pop .18s var(--ease);
}
.lang li a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text-hi); font-size: .92rem; }
.lang li a .mono { width: 26px; font-size: .74rem; color: var(--text); }
.lang li a:hover { background: rgba(111, 203, 255, .08); color: var(--frost); text-decoration: none; }
.lang li a[aria-current] { color: var(--actinium); }
.lang li a[aria-current] .mono { color: var(--actinium); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.nav-toggle { display: none; width: 42px; justify-content: center; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; transition: transform .25s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .cmd-btn kbd { display: none; }
  .nav {
    display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; margin: 0;
    padding: 10px 20px 18px; background: var(--night); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; animation: pop .2s var(--ease); }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { left: 4px; top: 50%; bottom: auto; margin: -2px 0 0; }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 .96rem var(--font); cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: box-shadow .25s, background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--actinium); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(111, 203, 255, .14), 0 0 28px rgba(111, 203, 255, .45); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(111, 203, 255, .4); color: var(--actinium); background: transparent; }
.btn-ghost:hover { background: rgba(111, 203, 255, .08); box-shadow: 0 0 22px rgba(111, 203, 255, .22); }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.stack { flex-direction: column; margin-top: 22px; }
.btn-row.stack .btn { width: 100%; }

/* ---------- Panels with cursor spotlight ---------- */
main { flex: 1; }
.panel {
  position: relative; background: var(--abyss); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}
.spot::after {   /* light that follows the pointer (set by site.js) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 203, 255, .08), transparent 60%);
}
.spot::before {   /* the border lights up near the pointer */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 203, 255, .6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::after, .spot:hover::before { opacity: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font: 700 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--actinium); border: 1px solid rgba(111, 203, 255, .3); border-radius: 999px; padding: 4px 11px;
  background: rgba(111, 203, 255, .05);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--actinium); box-shadow: 0 0 0 0 rgba(111, 203, 255, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(111, 203, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 203, 255, 0); } }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--actinium); margin-bottom: 12px; }
.tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.page-head { padding: 64px 0 28px; }
.page-head p:not(.eyebrow) { max-width: 62ch; font-size: 1.08rem; color: var(--text-hi); }
.section { padding: 24px 0 56px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card-pad { padding: 26px; }
.card-title { font-size: 1.4rem; margin-top: 12px; }
.lead { font-size: 1.12rem; color: var(--text-hi); }
.signature { color: var(--frost); font-weight: 600; }
.email { font: 600 1.05rem var(--mono); }

/* ---------- Home ---------- */
.home-hero {
  min-height: calc(100vh - var(--header) - 78px); min-height: calc(100dvh - var(--header) - 78px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 36px 0;
}
.logo-stage { position: relative; width: min(440px, 100%); margin: -6% 0 -4% -5%; }
.logo-stage::before {   /* the triangle's glow breathes slowly (behind the logo, around the triangle only) */
  content: ""; position: absolute; left: 25.5%; top: 18%; width: 25%; height: 46%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 203, 255, .45), transparent);
  filter: blur(18px); animation: breathe 5s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.12); } }
.home-logo { position: relative; width: 100%; height: auto; animation: logo-in 1.1s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; filter: blur(8px); transform: scale(.96); } }
.home-brand h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 20px; min-height: 2.3em; }
.home-quote { border-left: 2px solid var(--actinium); padding: 2px 0 2px 16px; margin: 0; max-width: 46ch; }
.home-quote p { font-size: 1.05rem; color: var(--text-hi); margin: 0; }
.home-quote cite { display: block; font-style: normal; font-size: .85rem; color: var(--text); margin-top: 6px; }

.feature { animation: rise-in .9s .15s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.feature-glow, .feature > .feature-media { position: relative; }
.feature { isolation: isolate; }
.feature-media::before {   /* discreet halo behind the featured game */
  content: ""; position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 143, 216, .3), transparent 75%);
}
.feature-media { display: block; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #0b1220; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.025); }
.feature-body { padding: 22px 26px 26px; }
.feature-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-body h2 { font-size: 1.65rem; margin: 12px 0 8px; }
.feature-body p { margin-bottom: 20px; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-top: 20px; }
  .logo-stage { width: min(340px, 90%); }
  .home-brand h1 { min-height: 0; }
}

/* ---------- Games catalogue ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; }
.game-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1220; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game-card:hover .thumb img { transform: scale(1.04); }
.game-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.game-card h3 { font-size: 1.3rem; margin: 12px 0 6px; }
.game-card h3 a { color: inherit; }
.game-card p { flex: 1; }
.game-card .btn { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.game-card.mystery { align-items: center; justify-content: center; min-height: 320px; text-align: center; }
.game-card.mystery p { color: var(--frost); font-size: 1.1rem; flex: 0; }

/* ---------- Game detail ---------- */
.game-hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; margin-top: 28px; border: 1px solid var(--line); }
.game-hero img { width: 100%; height: 100%; object-fit: cover; animation: logo-in 1s var(--ease) both; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 20, .8)); }
.game-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; padding: 36px 0 56px; align-items: start; }
.game-title { margin-top: 14px; }
.sub { margin-top: 40px; font-size: 1.4rem; }
.sticky { position: sticky; top: calc(var(--header) + 20px); }
.aside-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--actinium); }
@media (max-width: 900px) { .game-layout { grid-template-columns: 1fr; } .game-hero { aspect-ratio: 16 / 9; } .sticky { position: static; } }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.facts dt { color: var(--text); white-space: nowrap; }
.facts dd { margin: 0; color: var(--frost); font-weight: 600; text-align: right; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shots img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 1px solid var(--line); height: auto; }
.trailer {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; text-align: center;
  border: 1px dashed rgba(111, 203, 255, .3); color: var(--text);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(111, 203, 255, .025) 14px 28px);
}

/* ---------- About ---------- */
.pillars { margin-top: 22px; }
.pillars .panel { padding: 24px; }
.pillars .letter { font-size: 2.8rem; font-weight: 700; color: var(--frost); line-height: 1; display: inline-block; margin-bottom: 14px; }
.pillars .panel:nth-child(2) .letter { color: var(--actinium); text-shadow: 0 0 18px rgba(111, 203, 255, .6); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.element-card { display: flex; gap: 24px; align-items: center; }
.element-card h2 { margin-top: 0; }
.element-card img { flex: none; width: 120px; height: 120px; filter: drop-shadow(0 0 18px rgba(111, 203, 255, .25)); }
@media (max-width: 560px) { .element-card { flex-direction: column; align-items: flex-start; } }

/* ---------- 404 ---------- */
.notfound { padding: 80px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--frost); margin: 0; line-height: 1; text-shadow: 0 0 40px rgba(111, 203, 255, .45); }
.notfound .homes { margin-top: 32px; font-size: .9rem; }

/* ---------- Command palette (Ctrl K) ---------- */
.palette {
  padding: 0; border: 0; background: transparent; width: min(600px, 100% - 32px); max-height: none;
  margin: 12vh auto auto; color: var(--text);
}
.palette::backdrop { background: rgba(3, 6, 12, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.palette[open] { animation: pop .18s var(--ease); }
.palette-box {
  background: rgba(15, 24, 40, .98); border: 1px solid rgba(111, 203, 255, .22); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(46, 143, 216, .14);
}
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.palette-input input { flex: 1; height: 56px; background: none; border: 0; outline: 0; color: var(--frost); font: 400 1.05rem var(--font); }
.palette-input input::placeholder { color: var(--text); opacity: .7; }
.palette-input kbd { border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 60vh); overflow: auto; }
.palette .group { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text); opacity: .7; padding: 10px 10px 6px; }
.palette .item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text-hi); }
.palette .item .hint { font: .78rem var(--mono); color: var(--text); opacity: .75; }
.palette .item[aria-selected="true"] { background: rgba(111, 203, 255, .1); color: var(--frost); box-shadow: inset 2px 0 0 var(--actinium); }
.palette .empty { padding: 18px 12px; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 18px 0; font-size: .88rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text); }
.site-footer nav a:hover { color: var(--frost); }
.socials { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text);
  border: 1px solid transparent; transition: color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.socials a:hover, .socials a:focus-visible { color: var(--core); border-color: var(--line);
  box-shadow: 0 0 18px -6px var(--actinium); transform: translateY(-1px); }
.element-89 { display: flex; align-items: center; gap: 12px; }
.element-89 img { width: 40px; height: 40px; transition: filter .3s, transform .3s var(--ease); }
.element-89:hover img { filter: drop-shadow(0 0 10px rgba(111, 203, 255, .7)); transform: rotate(-4deg); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .sparks { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sparks, .ambient, .palette { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}
