
  :root {
    --bg: #07060a;
    --panel: #121019;
    --panel2: #1a1624;
    --text: #f1edf6;
    --muted: #a59fb3;
    --gold: #e8b64c;
    --red: #ff3d5e;
    --violet: #a64dff;
    --line: #2a2436;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; line-height: 1.6; }
  a { color: inherit; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

  /* barre du haut */
  header { position: sticky; top: 0; z-index: 10; background: rgba(7,6,10,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .5px; }
  .brand img { width: 38px; height: 38px; object-fit: cover; object-position: center 35%; border-radius: 8px; }
  nav { display: flex; gap: 18px; font-size: 15px; }
  nav a { text-decoration: none; color: var(--muted); }
  nav a:hover { color: var(--text); }
  @media (max-width: 720px) { nav { display: none; } }

  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
  .btn-play { background: linear-gradient(90deg, var(--red), var(--violet)); color: #fff; box-shadow: 0 8px 30px rgba(166,77,255,.35); }
  .btn-play:hover { filter: brightness(1.1); }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
  .btn-ghost:hover { border-color: var(--violet); }

  /* en-tête */
  .hero { position: relative; overflow: hidden; padding: 70px 0 60px; text-align: center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: url(../images/ville.jpg) center/cover; opacity: .18; filter: saturate(.8); }
  .hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,6,10,.2), var(--bg) 75%); }
  .hero > * { position: relative; z-index: 1; }
  .studio { color: var(--violet); letter-spacing: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
  h1 { font-family: Cinzel, serif; font-weight: 800; font-size: clamp(54px, 12vw, 120px); margin: 8px 0 0; letter-spacing: 6px; color: var(--gold); text-shadow: 0 6px 40px rgba(232,182,76,.25); }
  .tagline { font-size: clamp(18px, 3vw, 24px); margin: 4px 0 6px; }
  .chapter { color: var(--muted); margin-bottom: 30px; }
  .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .badge { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; }

  section { padding: 64px 0; border-top: 1px solid var(--line); }
  h2 { font-family: Cinzel, serif; font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
  .lead { color: var(--muted); max-width: 720px; margin: 0 0 30px; }

  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  @media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
  .card h3 { margin: 0 0 6px; font-size: 18px; }
  .card p { margin: 0; color: var(--muted); font-size: 15px; }
  .icon { font-size: 26px; margin-bottom: 8px; }

  .shots img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; aspect-ratio: 16/9; object-fit: cover; }
  .shots figure { margin: 0; }
  .shots figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

  .news { display: grid; gap: 14px; }
  .news article { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 12px; padding: 18px 20px; }
  .news time { color: var(--violet); font-size: 13px; font-weight: 700; }
  .news h3 { margin: 4px 0 6px; font-size: 18px; }
  .news ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

  .donate { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
  @media (max-width: 860px) { .donate { grid-template-columns: 1fr; } }
  .amounts { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
  .amount { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 700; cursor: pointer; font-size: 16px; }
  .amount.on { border-color: var(--gold); color: var(--gold); }
  .custom { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
  .custom input { width: 120px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 16px; }
  #paypal-zone { min-height: 60px; }
  .thanks { display: none; background: rgba(74,222,128,.12); border: 1px solid #4ade80; color: #bff5d0; padding: 14px; border-radius: 12px; }
  .note { color: var(--muted); font-size: 13px; }

  .discord { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(88,101,242,.25), rgba(166,77,255,.18)); border: 1px solid #3b3f8f; border-radius: 16px; padding: 24px; }
  .btn-discord { background: #5865f2; color: #fff; }

  footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; text-align: center; }
  footer img { width: 120px; border-radius: 10px; opacity: .9; }

  /* espace membre et formulaires */
  .page { min-height: calc(100vh - 64px - 90px); padding: 56px 0; }
  .auth-box { max-width: 440px; margin: 0 auto; }
  .tabs { display: flex; gap: 8px; margin-bottom: 18px; }
  .tab { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font-weight: 700; cursor: pointer; font-size: 15px; }
  .tab.on { color: var(--text); border-color: var(--violet); }
  form { display: grid; gap: 12px; }
  label { font-size: 14px; color: var(--muted); }
  .field { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 16px; }
  .field:focus { outline: 2px solid var(--violet); border-color: transparent; }
  .msg { padding: 12px 14px; border-radius: 10px; font-size: 15px; display: none; }
  .msg.err { display: block; background: rgba(255,61,94,.12); border: 1px solid var(--red); color: #ffc2cd; }
  .msg.ok { display: block; background: rgba(74,222,128,.12); border: 1px solid #4ade80; color: #bff5d0; }
  .link { background: none; border: 0; color: var(--violet); cursor: pointer; padding: 0; font-size: 14px; text-decoration: underline; }
  .member-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
  .keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
  .keys kbd { background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 8px; font-family: inherit; font-weight: 700; color: var(--gold); white-space: nowrap; }
  .dev-badge { display: inline-block; background: rgba(166,77,255,.15); color: #d9b8ff; border: 1px solid var(--violet); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
  .progress { height: 10px; background: var(--panel2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
  .progress > div { height: 100%; background: linear-gradient(90deg, var(--red), var(--violet)); }
  .lost { background: linear-gradient(135deg, #120b18, #0b0a10); border: 1px solid #3a2550; border-radius: 18px; padding: 30px; position: relative; overflow: hidden; }
  .lost::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(166,77,255,.25), transparent 70%); }
  .lost h2 { color: #e9dcff; }
  .warn-config { display: none; background: rgba(232,182,76,.12); border: 1px solid var(--gold); color: #f5e1b0; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }

/* WordPress : la barre d'administration (visible seulement quand tu es connecté à WordPress) */
.admin-bar header { top: 32px; }

/* une page par rubrique */
section.solo { border-top: 0; min-height: calc(100vh - 64px - 90px); }
nav a.on { color: var(--gold); }
.card-link { display: block; text-decoration: none; transition: transform .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--gold); }
.big-news { border: 1px solid var(--gold) !important; box-shadow: 0 0 30px rgba(232,182,76,.15); }
.big-news .dev-badge { margin-bottom: 8px; }
.big-news time { display: block; }

/* magasin */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.shop { display: grid; gap: 20px; }
.shop-item { display: grid; grid-template-columns: 340px 1fr; gap: 24px; padding: 18px; }
.shop-item .cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.shop-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.shop-top h3 { margin: 0; }
.shop-body > p { margin: 0 0 14px; }
.price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.cover-lost { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 70% 30%, rgba(166,77,255,.35), transparent 60%), linear-gradient(135deg, #1a0f24, #0b0a10); }
.cover-lost span { font-family: Cinzel, serif; font-weight: 800; letter-spacing: .12em; color: #e9dcff; text-align: center; padding: 0 12px; }
@media (max-width: 760px) { .shop-item { grid-template-columns: 1fr; } }

/* visible seulement sur téléphone et tablette (écran tactile ou écran étroit) */
.only-touch { display: none !important; }
@media (max-width: 1024px), (pointer: coarse) { .only-touch { display: block !important; } }
.android-warn { background: linear-gradient(135deg, rgba(232,182,76,.10), rgba(255,61,94,.06)); border: 1px solid var(--gold); border-left-width: 5px; border-radius: 16px; padding: 22px 24px; }
.android-warn h3 { margin: 0 0 12px; color: var(--gold); font-size: 18px; }
.android-warn h4 { margin: 16px 0 6px; font-size: 16px; }
.android-warn p { margin: 0 0 10px; }
.android-warn ol { margin: 0; padding-left: 22px; }
.android-warn em { color: var(--muted); }
.android-warn .sign { margin: 14px 0 0; font-weight: 700; color: var(--muted); }

/* compte à rebours du lancement */
.chrono { margin: 26px auto 18px; max-width: 560px; background: rgba(18,16,25,.85); border: 1px solid var(--gold); border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 40px rgba(232,182,76,.15); }
.chrono-title { font-weight: 700; color: var(--gold); letter-spacing: .03em; }
.chrono-time { display: flex; justify-content: center; gap: 12px; margin: 12px 0; }
.chrono-time div { min-width: 86px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; }
.chrono-time b { display: block; font-family: Cinzel, serif; font-size: 38px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.chrono-time small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.chrono-note { font-size: 15px; color: var(--text); }
.chrono.launched { border-color: #5fd38d; }
.chrono-mini { margin: 0 0 18px; max-width: none; padding: 12px 16px; text-align: center; }
.chrono-mini .chrono-title { font-size: 15px; }
.chrono-mini .chrono-note { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 480px) { .chrono-time div { min-width: 0; flex: 1; } .chrono-time b { font-size: 30px; } }

/* jeu payant */
[hidden] { display: none !important; }
.owned-tag { color: #5fd38d; }
.mobile-rule { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 15px; }
.paypal-buy { max-width: 360px; }
#buy-thanks { display: none; }
#buy-error { display: none; }

/* membres fondateurs */
.founder { display: inline-block; background: linear-gradient(90deg, #e8b64c, #ffdd8a); color: #1a1206; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 3px 12px; vertical-align: middle; }
.founder[hidden], .founder-bar[hidden], .founder-perk[hidden] { display: none; }
.member-hero .founder { margin-top: 8px; }
.founder-perk { margin: 6px 0 0; }
.founder-bar { background: rgba(232,182,76,.10); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 16px; margin: -6px 0 22px; }

/* bibliothèque : la liste des jeux à gauche, la fiche du jeu à droite */
.library { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-game { display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; }
.lib-game:hover { border-color: #4a3f60; }
.lib-game.on { border-color: var(--gold); background: var(--panel2); }
.lib-game img, .lib-game .mini-lost { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.mini-lost { background: radial-gradient(circle at 70% 30%, rgba(166,77,255,.5), transparent 60%), #1a0f24; }
.lib-game span { display: flex; flex-direction: column; line-height: 1.3; }
.lib-game small { color: var(--muted); }
.lib-game em { font-style: normal; font-size: 12px; font-weight: 700; margin-top: 2px; }
.owned { color: #5fd38d; }
.locked { color: var(--muted); }
.lib-view { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lib-detail .cover { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: flex; }
.lib-body { padding: 22px; }
.lib-body h3 { margin-top: 0; }
@media (max-width: 760px) { .library { grid-template-columns: 1fr; } }

/* menu déroulant en haut à droite (bouton à 3 barres) */
header .wrap { position: relative; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 44px; padding: 0 11px; cursor: pointer; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.menu-btn:hover { border-color: var(--gold); }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
header nav { display: flex !important; flex-direction: column; gap: 0; position: absolute; right: 16px; top: calc(100% + 8px); width: 270px; max-width: calc(100vw - 32px);
  background: rgba(18,16,25,.98); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
header nav.open { opacity: 1; visibility: visible; transform: none; }
header nav a { padding: 11px 14px; border-radius: 9px; font-size: 16px; }
header nav a:hover, header nav a.on { background: var(--panel2); }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }
