/* NikBin Studio — feuille de style du site.
   Identité du studio : noir et papier, sobre. Les jeux apportent leur couleur. */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2-800.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #141210;
  --ink-soft: #4a4540;
  --ink-mute: #7a736b;
  --paper: #faf7f2;
  --paper-2: #f2ece2;
  --line: #e4dccf;
  --white: #ffffff;
  --amber: #e8a33d;
  --amber-deep: #b8731c;
  --leaf: #4f8a3c;
  --sky: #3f8bd6;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 18, 16, .06), 0 8px 28px rgba(20, 18, 16, .08);
  --wrap: 1120px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { font-weight: 800; letter-spacing: .22em; font-size: 14px; }
.brand small { display: block; font-size: 9px; letter-spacing: .5em; font-weight: 700; color: var(--ink-mute); margin-top: -3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 12px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 16px/1 var(--font); text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); color: #fff; background: #2a2622; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--game { background: linear-gradient(180deg, #ffb74a, #e88a1c); border-color: #b9661a; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.18); box-shadow: 0 4px 0 #a75a14; }
.btn--game:hover { background: linear-gradient(180deg, #ffc163, #ef951f); color: #fff; }

/* Badges des stores (texte : les badges officiels seront posés à la sortie) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px 10px 14px; border-radius: 12px; min-width: 190px;
}
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .75; font-weight: 700; }
.store strong { font-size: 17px; font-weight: 800; }
.store[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.soon { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--amber-deep); background: #fff3df; border: 1px solid #f3d7a8; padding: 4px 10px; border-radius: 999px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
h3 { font-size: 21px; font-weight: 800; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--ink-mute); }

/* Accueil studio */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: #2f5d2a;
}
.hero-card > img.bg { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-card .logo { position: absolute; left: 50%; top: 9%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }
.hero-card .tag {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.94); border-radius: 16px; padding: 12px 14px;
  font-weight: 800; text-decoration: none; color: var(--ink);
}
.hero-card .tag img { width: 44px; border-radius: 11px; }
.hero-card .tag .t { display: flex; align-items: center; gap: 12px; }
.hero-card .tag small { display: block; color: var(--ink-mute); font-weight: 700; font-size: 13px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { aspect-ratio: 4 / 4.4; max-width: 520px; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); margin-bottom: 18px; }
.pillar p { margin: 0; color: var(--ink-soft); }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

.band { background: var(--ink); color: #f4efe7; }
.band .eyebrow { color: #a59d92; }
.band a { color: #fff; }

.game-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: linear-gradient(160deg, #fff6e6, #ffe9c4);
  border: 1px solid #f1d9ad;
}
.game-feature .art { position: relative; min-height: 420px; background: #3c7a33; }
.game-feature .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-feature .art img.owl { inset: auto; left: 50%; bottom: 8%; width: 58%; height: auto; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); }
.game-feature .body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.game-feature .body img.logo { width: 220px; margin: -8px 0 8px -6px; }
.game-feature h3 { font-family: var(--display); font-size: 28px; color: #6b3d12; }
.game-feature p { color: #5e4630; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 24px; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #f1d9ad; color: #7a4a17; }
@media (max-width: 880px) {
  .game-feature { grid-template-columns: 1fr; }
  .game-feature .art { min-height: 300px; }
  .game-feature .body { padding: 32px 24px; }
}

.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Page jeu : Owl Up ---------- */
.game { --g-ink: #4b2a0e; color: var(--g-ink); }
.game-hero {
  position: relative; overflow: hidden; color: #fff;
  background: #2f6b2a url("../img/owlup_forest.webp") center 30% / cover no-repeat;
  padding: 72px 0 120px;
}
.game-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,34,10,.72) 0%, rgba(16,34,10,.45) 45%, rgba(16,34,10,.05) 75%), linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(16,34,10,.45) 100%); }
@media (max-width: 880px) { .game-hero::before { background: linear-gradient(180deg, rgba(16,34,10,.35) 0%, rgba(16,34,10,.65) 100%); } }
.game-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.game-hero .logo { width: min(440px, 90%); filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.game-hero p.lead { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); font-weight: 700; }
.game-hero .owl { width: min(380px, 80%); justify-self: center; filter: drop-shadow(0 14px 24px rgba(0,0,0,.3)); animation: hover 3.6s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .game-hero .owl { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 880px) {
  .game-hero { padding: 48px 0 88px; }
  .game-hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .game-hero .stores, .game-hero .meta { justify-content: center; }
  .game-hero .logo { margin: 0 auto; }
  .game-hero .owl { width: 220px; }
}
.meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 26px; }
.meta span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; backdrop-filter: blur(4px); }

.wave { display: block; width: 100%; height: 60px; margin-top: -59px; position: relative; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid #efdcbc; box-shadow: 0 3px 0 #efdcbc; }
.feature h3 { font-family: var(--display); font-size: 25px; color: #6b3d12; margin-bottom: 8px; }
.feature p { margin: 0; color: #6a5440; }
.feature .badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font: 900 26px/1 var(--display); color: #fff; margin-bottom: 18px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.b-green { background: #5db33a; } .b-blue { background: #3f8bd6; } .b-purple { background: #8b4fd6; } .b-red { background: #e2473b; } .b-amber { background: #e8a33d; } .b-pink { background: #e46b8f; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.parents { background: #eef6e8; border-top: 1px solid #d7e8cc; border-bottom: 1px solid #d7e8cc; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: #5db33a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ---------- Pages de texte (support, légal) ---------- */
.page-head { padding: 64px 0 24px; }
.page-head p { color: var(--ink-soft); }
.doc { padding: 24px 0 96px; }
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 15px; }
.toc p { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.toc a:hover { border-left-color: var(--ink); color: var(--ink); }
.doc-grid > * { min-width: 0; }
@media (max-width: 880px) { .doc-grid { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin-top: 48px; padding-top: 8px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: #2d2925; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper-2); font-weight: 800; }
.table-scroll { overflow-x: auto; }
.note { background: #fff7e8; border: 1px solid #f3d7a8; border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.updated { font-size: 14px; color: var(--ink-mute); font-weight: 700; }
dl.facts { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin: 18px 0; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.facts dt { font-weight: 800; color: var(--ink-soft); }
@media (max-width: 600px) { dl.facts { grid-template-columns: 1fr; } dl.facts dt { border-bottom: 0; padding-bottom: 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 700; color: var(--ink-mute); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }
.faq details > div p { margin: 0 0 10px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; }
.card a.more { font-weight: 800; }
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #cfc7bb; padding: 64px 0 32px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfc7bb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-f img { width: 120px; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid #2c2925; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8f877c; font-size: 14px; }
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { width: 220px; margin: 0 auto 24px; }
.table-scroll table { min-width: 620px; }
