/* Tavryzen Games : nuit violette, titres dorés à contour épais, boutons en relief (style jeu mobile). */
@font-face { font-family: "Titan One"; src: url("../fonts/TitanOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("../fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0b0618;
  --night-2: #140a2e;
  --violet: #24184a;
  --violet-2: #3a2470;
  --gold: #ffc84a;
  --gold-light: #fff6c8;
  --gold-dark: #e8901a;
  --outline: #160b26;
  --text: #fff3d0;
  --dim: #c9bff0;
  --green: #9cf07a;
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 200, 74, 0.10) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 8%, rgba(255, 200, 74, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 42%, rgba(201, 191, 240, 0.10) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 30% 70%, rgba(255, 200, 74, 0.08) 0 2px, transparent 3px),
    radial-gradient(ellipse at 50% -10%, #3a2470 0%, #170c35 45%, var(--night) 80%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-light); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* Titres : dégradé or + contour sombre (ombres empilées) */
.title, h1, h2 {
  font-family: "Titan One", "Lilita One", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.12;
  margin: 0 0 0.4em;
  background: linear-gradient(180deg, var(--gold-light) 12%, var(--gold) 58%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 var(--outline)) drop-shadow(2px 0 0 var(--outline)) drop-shadow(-2px 0 0 var(--outline)) drop-shadow(0 -2px 0 var(--outline));
}
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 24px; margin: 0 0 6px; color: var(--gold-light); text-shadow: 0 2px 0 var(--outline); }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text); max-width: 760px; }
.dim { color: var(--dim); }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 6, 24, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 200, 74, 0.18);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: "Titan One", sans-serif; font-size: 22px; color: var(--gold); text-shadow: 0 3px 0 var(--outline); letter-spacing: 1px; }
.brand small { font-family: "Lilita One", sans-serif; font-size: 14px; letter-spacing: 4px; color: var(--dim); margin-left: 2px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: "Lilita One", sans-serif; font-size: 17px; text-decoration: none; color: var(--text); padding: 6px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--violet); color: var(--gold); }

/* Boutons en relief */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Lilita One", sans-serif; font-size: 21px; letter-spacing: 0.6px; text-decoration: none;
  color: #fff; text-shadow: 0 2px 0 rgba(22, 11, 38, 0.75);
  padding: 13px 26px 15px; border-radius: 18px;
  background: linear-gradient(180deg, #ffe46a 0%, #ffb21f 55%, #f08a12 100%);
  border: 4px solid var(--outline);
  box-shadow: 0 6px 0 #8a4a0a, 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #8a4a0a, 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.45); }
.btn.violet { background: linear-gradient(180deg, #9a7dff 0%, #6b47e0 55%, #4a2cb0 100%); box-shadow: 0 6px 0 #2c1870, 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.35); }
.btn.violet:active { box-shadow: 0 2px 0 #2c1870, inset 0 3px 0 rgba(255, 255, 255, 0.35); }

/* Sections et cartes */
section { padding: 64px 0; }
.hero { padding: 72px 0 56px; text-align: center; }
.hero .wordmark { display: inline-block; }
.hero .wordmark .title { font-size: clamp(56px, 12vw, 132px); margin-bottom: 0; letter-spacing: 2px; }
.hero .games { font-family: "Lilita One", sans-serif; font-size: clamp(20px, 3.4vw, 34px); letter-spacing: 0.9em; padding-left: 0.9em; color: #e6deff; text-shadow: 0 3px 0 var(--outline); margin: 4px 0 26px; }
.hero .lead { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 26px; }

.card {
  background: linear-gradient(180deg, rgba(58, 36, 112, 0.92), rgba(28, 20, 68, 0.92));
  border: 3px solid rgba(255, 210, 120, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(10, 4, 24, 0.55), 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 26px;
}
.game {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; padding: 0; overflow: hidden;
}
.game .shot { min-height: 280px; background-size: cover; background-position: center; }
.game .info { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.game .logo { width: min(360px, 100%); margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.badge {
  display: inline-block; font-family: "Lilita One", sans-serif; font-size: 15px; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 999px; background: rgba(156, 240, 122, 0.16); color: var(--green);
  border: 2px solid rgba(156, 240, 122, 0.45); margin-bottom: 12px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature { padding: 0; overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid rgba(255, 210, 120, 0.3); }
.feature div { padding: 18px 20px 20px; }
.feature p { margin: 0; color: var(--dim); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.values .card { padding: 22px; }
.values p { margin: 0; color: var(--dim); }

.banner {
  position: relative; padding: 0; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 6, 24, 0.05) 30%, rgba(11, 6, 24, 0.92) 100%); }
.banner .inner { position: relative; z-index: 1; padding: 30px; width: 100%; text-align: center; }
.banner .logo { width: min(560px, 92%); margin: 0 auto 6px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); }

.video { padding: 10px; }
.video video { width: 100%; border-radius: 14px; background: #000; }

.modes { columns: 2 260px; column-gap: 28px; padding-left: 20px; margin: 0; }
.modes li { margin-bottom: 8px; break-inside: avoid; }
.modes b { color: var(--gold-light); }

/* Pages de texte (confidentialité, mentions) */
.doc { max-width: 820px; }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 1.4em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .card { margin: 18px 0; }

/* Pied de page */
footer { border-top: 2px solid rgba(255, 200, 74, 0.18); padding: 30px 0 40px; margin-top: 30px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--dim); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 46px 0; }
  .game { grid-template-columns: 1fr; }
  .game .shot { min-height: 200px; }
  .brand small { display: none; }
  .nav a { font-size: 15px; padding: 5px 8px; }
  .banner { min-height: 300px; }
  .card { padding: 20px; }
}
@media (max-width: 440px) {
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 18px; }
  .nav { gap: 2px; flex-wrap: nowrap; }
  .nav a { font-size: 14px; padding: 5px 7px; }
  .nav .opt { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
