/* Novatek Software — feuille de styles partagée.
   Polices hébergées sur le site (aucun appel à Google Fonts : aucune donnée de visiteur envoyée à un tiers). */
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* Tapis antistatique d'atelier, papier, encre, et les trois couleurs d'action du jeu */
  --mat: #3d5866;
  --mat-deep: #2c4350;
  --mat-dot: rgba(255, 255, 255, .07);
  --paper: #f2f4f3;
  --sheet: #ffffff;
  --ink: #18252c;
  --ink-soft: #4d5f68;
  --rule: #d5dcdf;
  --silver: #c4cbcf;
  --repair: #1f9a52;
  --dismantle: #d9711a;
  --recycle: #2e6bd2;
  --everyday: #c7881d;
  --soc: #138a7d;
  --hardcore: #d53a3f;
  --focus: #2e6bd2;
  --radius-s: 6px;
  --radius-l: 18px;
  --wrap: 1120px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--recycle); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sheet); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-s); z-index: 10; }
.skip:focus { left: 12px; }

/* Bilingue : seul le bloc de la langue active est affiché */
html:not([data-lang="en"]) body [lang="en"] { display: none !important; }
html:not([data-lang="fr"]) body [lang="fr"] { display: none !important; }
html:not([data-lang="es"]) body [lang="es"] { display: none !important; }
html:not([data-lang="pt"]) body [lang="pt"] { display: none !important; }
html:not([data-lang="zh"]) body [lang="zh"] { display: none !important; }
html:not([data-lang="ja"]) body [lang="ja"] { display: none !important; }

/* En-tête */
.top { background: var(--mat-deep); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.15rem/1 var(--display); letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-weight: 800; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #dfe7ea; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: var(--radius-s); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.langsw { margin-left: 6px; display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.langsw button { all: unset; cursor: pointer; font: 600 .82rem/1 var(--sans); color: #dfe7ea; padding: 7px 11px; }
.langsw button[aria-pressed="true"] { background: #fff; color: var(--mat-deep); }
.langsw button:focus-visible { outline: 3px solid #9ec0ff; outline-offset: -3px; }
@media (max-width: 640px) { .nav .hide-s { display: none; } }

/* Accueil : bandeau façon tapis d'atelier */
.hero { background-color: var(--mat); background-image: radial-gradient(var(--mat-dot) 1.2px, transparent 1.4px); background-size: 22px 22px; color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; padding-top: 72px; }
.verbs { margin: 0; font: 800 clamp(3.2rem, 9.5vw, 7.6rem)/.9 var(--display); letter-spacing: -.035em; }
.verbs span { display: block; }
.verbs .v1 { color: #7ee2a6; } .verbs .v2 { color: #ffb36b; } .verbs .v3 { color: #9cc0ff; }
.hero-copy { max-width: 34rem; margin: 28px 0 0; font-size: 1.15rem; color: #e4ecef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 72px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 14px 20px; border-radius: 999px; text-decoration: none; }
.btn-light { background: #fff; color: var(--mat-deep); }
.btn-light:hover { background: #e9f0f3; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-play { margin-top: 24px; background: var(--ink); color: #fff; padding: 10px 22px 10px 16px; border-radius: 12px; gap: 12px; }
.btn-play:hover { background: #000; }
.btn-play svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn-play-txt { display: flex; flex-direction: column; gap: 3px; font: 800 1.2rem/1 var(--display); }
.btn-play-txt small { font: 600 .7rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #c9d3d7; }
.phone { justify-self: center; width: min(300px, 100%); margin-bottom: -60px; border-radius: 34px; padding: 10px; background: #0e1517; box-shadow: 0 30px 60px rgba(8, 20, 26, .45), inset 0 0 0 2px #2b383d; transform: rotate(3deg); }
.phone img { border-radius: 26px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 0; }
  .hero-actions { margin-bottom: 40px; }
  .phone { width: 230px; margin-bottom: -90px; }
}

/* Sections */
section { padding: 96px 0; }
.hero + section { padding-top: 132px; }
h2 { font: 800 clamp(2rem, 4.2vw, 3rem)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 18px; }
h3 { font: 600 1.15rem/1.3 var(--sans); margin: 0 0 6px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; margin: 0; }

.game { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.game-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.game-id img { width: 72px; height: 72px; border-radius: 16px; }
.game-id p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.game-id strong { display: block; font: 800 1.6rem/1.1 var(--display); color: var(--ink); letter-spacing: -.015em; }
.actions-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.actions-list li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.actions-list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; background: var(--c); }
.actions-list p { margin: 0; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 32px 0 0; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--sheet); }
.facts div { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: .85rem; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: var(--radius-l); box-shadow: 0 1px 0 var(--rule), 0 18px 34px rgba(24, 37, 44, .14); }
.shots figure:nth-child(2) { transform: translateY(36px); }
.shots figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 900px) { .game { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .shots figure { scroll-snap-align: start; } .shots figure:nth-child(2) { transform: none; } .facts { grid-template-columns: 1fr; } .facts div:nth-child(odd) { border-right: 0; } .facts div:nth-last-child(2) { border-bottom: 1px solid var(--rule); } }

.studio { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.studio .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.studio p { margin: 0 0 14px; max-width: 36rem; }
.contact-card { align-self: start; background: var(--paper); border-radius: var(--radius-l); padding: 28px; }
.contact-card p { color: var(--ink-soft); }
.contact-card a.mail { font: 600 1.15rem/1.3 var(--sans); word-break: break-all; }
@media (max-width: 820px) { .studio .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Pied de page */
.foot { background: var(--mat-deep); color: #c9d5da; font-size: .95rem; padding: 36px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: #fff; }

/* Pages de texte (politique de confidentialité, mentions légales) */
.doc-head { background: var(--mat); background-image: radial-gradient(var(--mat-dot) 1.2px, transparent 1.4px); background-size: 22px 22px; color: #fff; padding: 64px 0 56px; }
.doc-head h1 { font: 800 clamp(2.3rem, 6vw, 4.2rem)/1 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.doc-head p { margin: 0; color: #dbe5e9; max-width: 42rem; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 56px 20px 96px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: .92rem; }
.toc p { font-weight: 600; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; color: var(--ink-soft); }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--recycle); text-decoration: underline; }
.prose { font: 400 1.09rem/1.75 var(--serif); max-width: 68ch; }
.prose h2 { font: 600 1.45rem/1.25 var(--sans); letter-spacing: -.01em; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.08rem/1.35 var(--sans); margin: 28px 0 6px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose .summary { background: var(--sheet); border-left: 4px solid var(--repair); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 18px 22px; margin: 0 0 36px; }
.prose .summary ul { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font: 400 .95rem/1.5 var(--sans); margin: 8px 0 20px; background: var(--sheet); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--rule); }
.prose th { background: #e8edef; font-weight: 600; }
.table-scroll { overflow-x: auto; }
.updated { font: 400 .92rem/1.4 var(--sans); color: var(--ink-soft); margin-top: 40px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; } .toc { position: static; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 16px 18px; } }
.prose code { font-size: .88em; overflow-wrap: anywhere; background: #e8edef; padding: 1px 5px; border-radius: 4px; }

/* Sélecteur de langue (6 langues) */
.langsel { position: relative; margin-left: 6px; display: inline-flex; align-items: center; }
.langsel svg { position: absolute; left: 10px; width: 16px; height: 16px; pointer-events: none; color: #dfe7ea; }
.langsel select { appearance: none; -webkit-appearance: none; font: 600 .9rem/1 var(--sans); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 30px 8px 32px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #dfe7ea 50%), linear-gradient(135deg, #dfe7ea 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; }
.langsel select:hover { border-color: rgba(255, 255, 255, .5); }
.langsel select option { color: var(--ink); background: #fff; }
@media (max-width: 480px) { .nav > a { display: none; } .langsel { margin-left: 0; } }

/* Chinois et japonais : polices système adaptées, sans resserrement des lettres */
:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", var(--sans); }
:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", var(--sans); }
.verbs :lang(zh), .verbs :lang(ja), h1:lang(zh), h1:lang(ja), h2:lang(zh), h2:lang(ja), .doc-head h1 :lang(zh), .doc-head h1 :lang(ja), .game-id :lang(zh), .game-id :lang(ja) { letter-spacing: 0; font-weight: 800; }
.verbs span:lang(zh), .verbs span:lang(ja) { line-height: 1.12; font-size: .82em; }
.prose:lang(zh), .prose:lang(ja) { font-family: inherit; line-height: 1.9; }
.prose:lang(zh) h2, .prose:lang(ja) h2, .prose:lang(zh) h3, .prose:lang(ja) h3 { font-family: inherit; }

/* Captures cliquables et visionneuse */
a.zoom { display: block; cursor: zoom-in; border-radius: var(--radius-l); }
.phone a.zoom { border-radius: 26px; }
a.zoom:focus-visible { outline-offset: 4px; }
html.lb-open { overflow: hidden; }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #fff; display: none; }
.lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox::backdrop { background: rgba(10, 18, 22, .9); }
.lb-fig { margin: 0; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 0 24px; min-width: 0; }
.lb-fig img { max-height: calc(100dvh - 120px); max-width: 100%; width: auto; height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: lb-in .18s ease-out; }
.lb-fig figcaption { font: 600 1rem/1.3 var(--sans); color: #e4ecef; text-align: center; }
.lightbox button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); justify-self: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button:focus-visible { outline: 3px solid #9ec0ff; outline-offset: 2px; }
.lightbox button svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-close { position: fixed; top: 12px; right: 12px; z-index: 1; }
.lightbox.single .lb-nav { visibility: hidden; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox .lb-nav { position: fixed; bottom: 16px; z-index: 1; }
  .lightbox .lb-prev { left: calc(50% - 60px); } .lightbox .lb-next { right: calc(50% - 60px); }
  .lb-fig { padding: 60px 16px 84px; }
  .lb-fig img { max-height: calc(100dvh - 190px); }
}

/* --- Studio hero (Novatek Software) + game headings --- */
.hero-kicker { display: inline-block; margin: 0 0 20px; font: 700 .78rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #7ee2a6; }
.hero-kicker :lang(zh), .hero-kicker :lang(ja) { letter-spacing: .06em; }
.studio-h1 { margin: 0; font: 800 clamp(2.9rem, 8vw, 6rem)/.92 var(--display); letter-spacing: -.035em; color: #fff; }
.studio-h1 .acc { color: #7ee2a6; }
.hero-duo { justify-self: center; display: flex; align-items: flex-end; justify-content: center; }
.hero-duo .phone { width: min(200px, 42vw); margin: 0 -16px -60px; }
.hero-duo .phone:first-child { transform: rotate(-4deg); z-index: 2; }
.hero-duo .phone:last-child { transform: rotate(4deg); }
@media (max-width: 820px) { .hero-duo .phone { width: 40vw; margin-bottom: -90px; } }
.game-id-txt { min-width: 0; }
.game-name { display: block; margin: 0; font: 800 1.6rem/1.1 var(--display); color: var(--ink); letter-spacing: -.015em; }
.game-sub { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.game-id-txt :lang(zh), .game-id-txt :lang(ja) { letter-spacing: 0; }

/* --- Games dropdown (same look as the language selector) --- */
.gamesel { position: relative; margin-left: 2px; margin-right: 2px; display: inline-flex; align-items: center; }
.gamesel svg { position: absolute; left: 10px; width: 16px; height: 16px; pointer-events: none; color: #dfe7ea; }
.gamesel select { appearance: none; -webkit-appearance: none; font: 600 .9rem/1 var(--sans); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 30px 8px 32px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #dfe7ea 50%), linear-gradient(135deg, #dfe7ea 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; }
.gamesel select:hover { border-color: rgba(255, 255, 255, .5); }
.gamesel select option { color: var(--ink); background: #fff; }

/* --- Bandes-annonces YouTube (16:9) : rien n'est chargé depuis YouTube avant le clic --- */
.game-media { min-width: 0; }
.trailer { margin-top: 76px; }
.yt { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius-l); color: #fff; text-decoration: none; cursor: pointer;
  background-color: var(--mat-deep); background-image: radial-gradient(var(--mat-dot) 1.2px, transparent 1.4px), radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--c) 38%, transparent), transparent 70%); background-size: 22px 22px, 100% 100%;
  box-shadow: 0 1px 0 var(--rule), 0 24px 44px rgba(24, 37, 44, .18); }
.yt-icon { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.yt-play { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transition: transform .18s ease; }
.yt-play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--c); }
.yt:hover .yt-play { transform: scale(1.07); }
.yt-label { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; flex-direction: column; gap: 4px; }
.yt-game { font: 700 .78rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #dfe7ea; }
.yt-title { font: 800 clamp(1.15rem, 2vw, 1.45rem)/1.1 var(--display); letter-spacing: -.015em; }
.yt-title :lang(zh), .yt-title :lang(ja) { letter-spacing: 0; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.playing { cursor: default; background: #000; }
.yt-note { margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 900px) { .trailer { margin-top: 48px; } }
@media (max-width: 520px) { .trailer { margin-top: 28px; } .yt-play { width: 64px; height: 64px; } .yt-play svg { width: 28px; height: 28px; } .yt-icon { width: 40px; height: 40px; top: 14px; left: 14px; border-radius: 10px; } .yt-label { left: 16px; bottom: 12px; } .yt-game { display: none; } }
