/* Labo des Jeux — site styles. Light "lab" pages, dark night pages for Loopioles (body.night). */
@font-face { font-family: 'Unbounded'; font-weight: 600; font-display: swap; src: url(fonts/unbounded-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url(fonts/unbounded-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url(fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --bg: #fbf6ee; --bg-2: #f3ebdd; --card: #ffffff; --ink: #1d1838; --muted: #5d5878; --line: #e6dccb;
  --accent: #6b4cff; --accent-ink: #ffffff; --sun: #ffb020; --mint: #2fa36b;
  --night: #0a0d26; --night-2: #1b1748; --glow: #ffd860;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif; --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px; --shadow: 0 14px 40px rgba(29, 24, 56, 0.10);
}
body.night { --bg: #0a0d26; --bg-2: #141039; --card: #17183d; --ink: #fbf6e6; --muted: #b6b0d6; --line: rgba(255, 224, 140, 0.18); --accent: #ffd860; --accent-ink: #3a2600; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 700 17px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 6.5vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font: 900 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
body.night .eyebrow { color: var(--glow); }

/* header / footer */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px/1 var(--display); color: var(--ink); }
.logo-mark { width: 34px; height: 34px; color: var(--ink); flex: none; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 900; font-size: 15px; padding: 10px 12px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { background: var(--bg-2); }
.top nav .lang { border: 1.5px solid var(--line); }
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; }
.foot-in { display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; }
.foot p { color: var(--muted); margin-top: 10px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .copy { grid-column: 1 / -1; font-size: 14px; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 22px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font: 800 16px/1.1 var(--display); text-decoration: none; box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 65%, #000); transition: transform 0.12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 65%, #000); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); font-size: 15px; }
.btn.glow { box-shadow: 0 5px 0 #c99628, 0 0 40px rgba(255, 216, 96, 0.45); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 12px; border-radius: 12px; background: #0b0b0f; color: #fff; text-decoration: none; font: 800 16px/1.1 var(--body); border: 1px solid #3a3a44; }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 700; opacity: 0.8; }
.store.soon { opacity: 0.55; cursor: default; }

/* home */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(36px, 6vw, 70px); background: radial-gradient(80% 80% at 85% 0%, #ffe8b8 0%, transparent 60%), radial-gradient(70% 80% at 0% 20%, #e7e0ff 0%, transparent 60%); }
.hero h1 { max-width: 15ch; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 58ch; margin-bottom: 26px; }
.games { padding: 40px 0; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.game-art { position: relative; height: 190px; display: grid; place-items: center; }
.game-art img, .game-art > svg { width: 120px; height: 120px; border-radius: 28px; }
.game-lo .game-art { background: radial-gradient(60% 70% at 50% 45%, #3a2a7a, #0a0d26); }
.game-lo .game-art img { box-shadow: 0 0 50px rgba(255, 216, 96, 0.45); }
.game-fl .game-art { background: linear-gradient(160deg, #ffe3ee, #e2f7e8); }
.game-next .game-art { background: repeating-linear-gradient(135deg, #f3ebdd 0 14px, #efe5d4 14px 28px); }
.tag { position: absolute; top: 14px; left: 14px; font: 900 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; background: #fff; color: var(--ink); }
.game-lo .tag { background: var(--glow); color: #3a2600; }
.game-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.game-body p { color: var(--muted); }
.game-body .actions { margin-top: auto; }
.game-body .stores { margin-top: 12px; }
.game-body .store { min-height: 46px; font-size: 14px; }
.bubbles { display: flex; gap: 10px; align-items: flex-end; }
.bubbles i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); opacity: 0.75; animation: rise 2.4s ease-in-out infinite; }
.bubbles i:nth-child(2) { width: 30px; height: 30px; background: var(--sun); animation-delay: 0.4s; }
.bubbles i:nth-child(3) { width: 16px; height: 16px; background: var(--mint); animation-delay: 0.8s; }
@keyframes rise { 50% { transform: translateY(-16px); } }
.promise { padding: 18px 0 30px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.promise li { background: var(--bg-2); border-radius: var(--r); padding: 20px 22px; }
.promise b { display: block; font: 800 18px/1.2 var(--display); margin-bottom: 6px; }
.promise span { color: var(--muted); }
.lab { padding: 30px 0 10px; }
.lab a { color: var(--accent); }

/* Loopioles page (night) */
body.night .top { background: color-mix(in srgb, var(--bg) 82%, transparent); }
body.night .logo-mark { color: var(--ink); }
.lo-hero { padding: clamp(36px, 7vw, 80px) 0 40px; background: radial-gradient(70% 70% at 70% 30%, #3a2a7a 0%, transparent 60%), linear-gradient(var(--night), var(--night-2)); overflow: hidden; }
.lo-hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.lo-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 60px rgba(255, 216, 96, 0.45); margin-bottom: 22px; }
.lo-hero h1 { color: var(--glow); text-shadow: 0 0 40px rgba(255, 216, 96, 0.45); margin-bottom: 12px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font: 900 13px/1 var(--body); padding: 9px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.note { color: var(--muted); font-size: 15px; margin-top: 10px; }
.lo-phone img { width: min(340px, 100%); margin-inline: auto; border-radius: 36px; border: 8px solid #2b2560; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 216, 96, 0.2); }
.how, .feat, .faq, .shots-sec, .lo-cta { padding: 44px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glow); color: #3a2600; font: 800 18px/1 var(--display); margin-bottom: 12px; }
.steps b { display: block; font: 800 20px/1.2 var(--display); margin-bottom: 6px; }
.steps p, .feat-grid p { color: var(--muted); margin: 0; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100% - 1120px) / 2)) 18px; }
.shots figure { margin: 0; flex: none; width: min(240px, 62vw); scroll-snap-align: center; }
.shots img { border-radius: 24px; border: 5px solid #2b2560; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.feat-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font: 800 17px/1.3 var(--body); padding: 14px 0; min-height: 48px; }
.faq details p { color: var(--muted); }
.lo-cta .stores { justify-content: center; }
.lo-cta .btn { margin-top: 6px; }

/* documents */
.doc { padding: 50px 0 20px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc a { color: var(--accent); }

@media (max-width: 900px) {
  .grid, .promise ul, .steps, .feat-grid { grid-template-columns: 1fr; }
  .lo-hero-in { grid-template-columns: 1fr; }
  .lo-phone { order: 2; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand span { font-size: 15px; }
  .top nav a { padding: 10px 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bubbles i { animation: none; } .btn { transition: none; } }
