/* TekaPlay — site vitrine. Palette reprise du logo (or « TEKA », argent « PLAY », jungle de nuit). */
:root {
  --bg: #06110c;
  --bg-2: #0a1a13;
  --panel: #0f241b;
  --panel-2: #143024;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef4ef;
  --muted: #a7bcaf;
  --gold: #f5c04a;
  --gold-2: #ffe28c;
  --gold-dk: #a86b12;
  --silver: #e8edf4;
  --green: #3fcf8e;
  --red: #ef6a55;
  --radius: 22px;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.05; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1b1203; padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text);
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold {
  color: #2a1a02; border: 0;
  background: linear-gradient(180deg, #ffe7a0 0%, #f5c04a 45%, #d8941f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -3px 0 rgba(120,70,5,.45) inset, 0 10px 30px -10px rgba(245,192,74,.6);
}
.btn-gold:hover { background: linear-gradient(180deg, #fff0bf 0%, #ffcd5c 45%, #e3a02b 100%); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -3px 0 rgba(120,70,5,.45) inset, 0 14px 36px -10px rgba(245,192,74,.8); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- En-tête ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.hdr.solid { background: rgba(6,17,12,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { font-family: var(--display); font-size: 26px; text-decoration: none; letter-spacing: .02em; line-height: 1; display: flex; align-items: center; min-height: 44px; }
.brand .t { background: linear-gradient(180deg, #fff1b5, #f5c04a 55%, #c98518); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .p { background: linear-gradient(180deg, #ffffff, #d9e0ea 55%, #9aa6b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: none; gap: 4px; margin-left: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button { min-width: 44px; min-height: 38px; border: 0; background: none; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--silver); color: #0b1510; }
.hdr .btn-gold { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .hdr .btn-gold { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 90px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(6,17,12,.35) 0%, rgba(6,17,12,.78) 70%, rgba(6,17,12,.95) 100%),
    linear-gradient(180deg, rgba(6,17,12,.55) 0%, rgba(6,17,12,0) 30%, rgba(6,17,12,.2) 70%, var(--bg) 100%);
}
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-logo { width: min(620px, 92vw); height: auto; aspect-ratio: 3 / 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.5)); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow::before { content: ""; display: inline-block; vertical-align: .12em; margin-right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63,207,142,.18); }
.hero h1 { font-size: clamp(32px, 6.4vw, 64px); max-width: 20ch; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #fff1b5, #f5c04a 60%, #d58f1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 2.1vw, 19px); color: #d6e3da; max-width: 60ch; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.scroll-cue { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@media (max-width: 719px) { .scroll-cue { display: none; } .hero { padding-bottom: 80px; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bandeau chiffres ---------- */
.stats { position: relative; z-index: 2; margin-top: -40px; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.stats li { background: linear-gradient(180deg, #10271d, #0c1f17); padding: 20px 18px; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 38px); color: var(--gold); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
@media (min-width: 900px) { .stats ul { grid-template-columns: repeat(5, 1fr); } .stats li { padding: 26px 24px; } }
.stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .stats li:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Sections ---------- */
.sec { padding: 96px 0 0; scroll-margin-top: 60px; }
.sec-hd { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.sec-hd h2 { font-size: clamp(32px, 5vw, 50px); }
.sec-hd p { color: var(--muted); font-size: 17px; }

/* ---------- Jeux ---------- */
.games { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .games { grid-template-columns: 1fr 1fr; } .game.big { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .games { grid-template-columns: repeat(3, 1fr); } }
.game {
  --acc: var(--gold);
  position: relative; border-radius: 26px; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.game:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--acc) 45%, transparent); }
.game-vis { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #081510; }
.game-vis img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .35s ease; }
.game:hover .game-vis img { transform: scale(1.035); }
.game-vis::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, transparent, var(--panel)); pointer-events: none; }
.game-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(6,17,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.game-body { padding: 4px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; position: relative; z-index: 1; margin-top: -34px; }
.game h3 { font-size: clamp(34px, 4.6vw, 46px); color: var(--acc); text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.game .tl { color: #d4e0d8; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #d2ddd6; }
.tags li b { color: var(--acc); font-weight: 800; }
.game-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.game .btn-play { color: #10170f; border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 55%, white), var(--acc)); box-shadow: 0 -3px 0 rgba(0,0,0,.2) inset, 0 12px 30px -12px var(--acc); }
.game .btn-play:hover { filter: brightness(1.08); }
@media (min-width: 1000px) {
  .game.big { flex-direction: row; min-height: 480px; }
  .game.big .game-vis { flex: 1.35; aspect-ratio: auto; }
  .game.big .game-vis::after { inset: 0 0 0 auto; width: 40%; height: auto; background: linear-gradient(90deg, transparent, var(--panel)); }
  .game.big .game-body { flex: 1; margin: 0 0 0 -60px; padding: 40px 36px 36px 0; justify-content: center; }
}
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.themes-l { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; width: 100%; }
.themes button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; font-size: 13px; font-weight: 700; color: #cfdad3; }
.themes button img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.themes button[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--text); }
.soon { margin-top: 22px; border: 1px dashed var(--line-2); border-radius: 22px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--muted); }
.soon b { color: var(--text); font-weight: 800; }

/* ---------- Plateforme ---------- */
.feats { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(245,192,74,.1); border: 1px solid rgba(245,192,74,.25); color: var(--gold); }
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { font-family: var(--body); font-weight: 800; font-size: 18px; letter-spacing: 0; line-height: 1.3; }
.feat p { color: var(--muted); font-size: 15px; }
.launch { margin-top: 26px; display: grid; gap: 18px; align-items: center; background: #050d09; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 900px) { .launch { grid-template-columns: 1fr 1.25fr; padding: 34px; } }
.launch h3 { font-size: 28px; }
.launch p { color: var(--muted); margin-top: 8px; }
.code { font: 500 13.5px/1.7 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; background: #0b1812; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto; color: #cfe3d6; white-space: pre; }
.code .k { color: var(--gold-2); } .code .c { color: #6f8a7a; } .code .s { color: var(--green); }

/* ---------- Certification ---------- */
.cert { display: grid; gap: 16px; }
@media (min-width: 900px) { .cert { grid-template-columns: 1.2fr 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 26px; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #d2ddd6; font-size: 15.5px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(63,207,142,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.rtp-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rtp-tbl th, .rtp-tbl td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.rtp-tbl th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.rtp-tbl td b { color: var(--gold); white-space: nowrap; }
.rtp-tbl td:nth-child(n+2) { white-space: nowrap; }
.rg { margin-top: 16px; display: flex; gap: 16px; align-items: flex-start; background: rgba(239,106,85,.07); border: 1px solid rgba(239,106,85,.25); border-radius: var(--radius); padding: 22px; }
.age { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--red); display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--text); }
.rg p { color: #e3d5d2; }
.rg p + p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact { margin: 96px 0 0; border-radius: 30px; padding: 44px 24px; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 50% 0%, #1d4a33 0%, #0c1f17 60%, #081510 100%); border: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/ricochet-jungle2.webp") center/cover; opacity: .12; }
.contact h2 { font-size: clamp(30px, 5vw, 48px); }
.contact p { color: #cfdcd4; max-width: 56ch; margin: 14px auto 24px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Pied ---------- */
.ftr { margin-top: 80px; border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.ftr .wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { .ftr .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } }
.ftr .disc { display: flex; align-items: center; gap: 12px; }
.ftr .age { width: 40px; height: 40px; font-size: 14px; border-width: 2px; }
.ftr a { color: var(--muted); }

/* ---------- Dialogues (fiche jeu, lecteur) ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(2,8,5,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { width: min(920px, calc(100vw - 24px)); max-height: calc(100svh - 24px); margin: auto; border-radius: 26px; overflow: hidden auto; background: var(--panel); border: 1px solid var(--line-2); }
.sheet-vis { position: relative; aspect-ratio: 16 / 8; background: #081510; }
.sheet-vis img { width: 100%; height: 100%; object-fit: cover; }
.sheet-vis::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, var(--panel)); }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6,17,12,.75); cursor: pointer; display: grid; place-items: center; }
.sheet-x svg { width: 20px; height: 20px; }
.sheet-body { padding: 0 22px 26px; margin-top: -40px; position: relative; z-index: 1; display: grid; gap: 22px; }
.sheet-body h2 { font-size: clamp(36px, 6vw, 54px); color: var(--acc, var(--gold)); }
.sheet-cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .sheet-body { padding: 0 34px 34px; } .sheet-cols { grid-template-columns: 1.1fr 1fr; } }
.sheet h4 { margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.sheet ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #d4dfd8; font-size: 15px; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.specs li { background: var(--panel); display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; font-size: 14px; }
.specs li span { color: var(--muted); }
.specs li b { text-align: right; font-weight: 700; }
.player { width: 100vw; height: 100svh; margin: 0; background: #000; display: flex; flex-direction: column; }
.player-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; background: #050d09; border-bottom: 1px solid var(--line); min-height: 58px; }
.player-bar .ttl { font-family: var(--display); font-size: 22px; color: var(--gold); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar .demo { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(63,207,142,.35); padding: 4px 10px; border-radius: 999px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; display: grid; place-items: center; color: var(--text); text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 20px; height: 20px; }
.player iframe { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 520px) { .player-bar .demo { display: none; } }

/* ---------- Apparition au défilement ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
  .game-vis img, .btn { transition: none; }
}
