/* OG Dynasty : noir et or, lisible sur téléphone (marges de 16px, pas de défilement horizontal). */
:root {
  --bg: #0f0b07; --bg2: #18110a; --panel: #1f160c; --line: #4a3718;
  --gold: #e8b552; --gold2: #ffe3a0; --text: #eadfc6; --muted: #a8977a; --red: #9e2b1e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: var(--gold); }
h1, h2, h3 { font-family: Cinzel, Georgia, "Microsoft YaHei", serif; color: var(--gold2); line-height: 1.25; }
.muted { color: var(--muted); }
.center { text-align: center; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 24px;
  background: rgba(15, 11, 7, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Cinzel, serif; font-weight: 800;
  letter-spacing: 2px; color: var(--gold2); }
.bar nav { display: flex; gap: 18px; margin-left: auto; }
.bar nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: var(--gold2); }
.langs { display: flex; gap: 4px; }
.langs button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; cursor: pointer;
  font: inherit; font-size: 13px; border-radius: 4px; }
.langs button.on { color: var(--bg); background: var(--gold); border-color: var(--gold); }

.logo img { display: block; height: 44px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Accueil : image OG Dynasty (le logo est dans l'image), fondue vers le noir, puis la phrase et les boutons. */
.hero { text-align: center; border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-img { position: relative; height: min(60vh, 56vw); min-height: 300px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: url("assets/hero-wide.jpg") center 45% / cover no-repeat; }
.hero-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(180deg, transparent, var(--bg)); }
/* Logo en grand qui flotte doucement, avec un halo doré qui respire. */
.hero-logo { position: relative; z-index: 1; width: min(640px, 78vw); aspect-ratio: 2 / 1; margin-top: 4%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .65)) drop-shadow(0 0 22px rgba(242, 200, 107, .35));
  animation: float 6s ease-in-out infinite, glow 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-18px) rotate(.4deg); } }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(242, 200, 107, .28)); }
  50% { filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 34px rgba(242, 200, 107, .55)); } }
.hero-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Émeraudes du logo (calque logo-gems.png = seulement les pierres vertes) : elles s'illuminent, un reflet passe
   dessus et de petites étoiles scintillent tour à tour. */
.gems-glow { mix-blend-mode: screen; opacity: .3; filter: brightness(1.35) saturate(1.6) drop-shadow(0 0 5px rgba(60, 255, 150, .9));
  animation: gem 3.2s ease-in-out infinite; }
@keyframes gem { 0%, 100% { opacity: .2; } 50% { opacity: .95; } }
.gems-shine { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask: url("assets/logo-gems.png") 0 0 / 100% 100% no-repeat; mask: url("assets/logo-gems.png") 0 0 / 100% 100% no-repeat;
  background: linear-gradient(110deg, transparent 44%, rgba(215, 255, 230, .95) 50%, transparent 56%) no-repeat;
  background-size: 250% 100%; animation: shine 4.8s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
.spark { position: absolute; left: var(--x); top: var(--y); width: 8%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  opacity: 0; filter: drop-shadow(0 0 4px rgba(140, 255, 185, 1)) drop-shadow(0 0 10px rgba(80, 255, 150, .7));
  background: radial-gradient(circle, #fff 0 9%, rgba(200, 255, 220, .9) 15%, transparent 38%),
    linear-gradient(90deg, transparent 5%, #fff 50%, transparent 95%) center / 100% 7% no-repeat,
    linear-gradient(0deg, transparent 5%, #fff 50%, transparent 95%) center / 7% 100% no-repeat;
  animation: twinkle 4.8s ease-in-out var(--d) infinite; }
.spark.big { width: 12%; }
@keyframes twinkle {
  0%, 12%, 100% { opacity: 0; transform: scale(.1) rotate(0deg); }
  6% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .gems-glow, .gems-shine { animation: none; }
  .spark { display: none; } }
.hero-inner { position: relative; z-index: 2; margin-top: -56px; padding: 0 16px 48px; }
.tagline { font-size: clamp(17px, 2.6vw, 22px); color: var(--text); max-width: 640px; margin: 0 auto 24px; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 26px; border: 1px solid var(--gold); color: var(--gold2); text-decoration: none;
  border-radius: 4px; font-weight: 600; background: rgba(232, 181, 82, .06); cursor: pointer; margin: 4px; }
.btn:hover { background: rgba(232, 181, 82, .16); }
.btn.gold { background: linear-gradient(180deg, #f2c86b, #b8862e); color: #1a1006; border-color: #f2c86b; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.discord { border-color: #7a86f0; color: #c9cfff; background: rgba(88, 101, 242, .12); }

.block { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.block.alt { max-width: none; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block.alt > * { max-width: 1052px; margin-left: auto; margin-right: auto; }
.block h2 { text-align: center; font-size: clamp(26px, 4vw, 36px); margin: 0 0 32px; }
.block h2::after { content: ""; display: block; width: 80px; height: 2px; margin: 12px auto 0; background: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.card h3 { margin: 6px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text); }
.ico { font-size: 26px; color: var(--gold); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; text-align: center; }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 6px 0 0; font-weight: 600; font-size: 26px; color: var(--gold2); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 64px; border-left: 1px solid var(--line); margin-left: 22px; }
.steps li::before { content: counter(step); position: absolute; left: -22px; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--gold);
  color: var(--gold2); font-family: Cinzel, serif; font-weight: 800; }
.steps li:last-child { border-left-color: transparent; }
.steps h3 { margin: 6px 0 4px; font-size: 19px; }
.steps p { margin: 4px 0; }

.news { display: grid; gap: 16px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; padding: 18px 22px; }
.news-item h3 { margin: 4px 0 6px; font-size: 20px; }
.news-item p { margin: 0; }

.teaser { padding-bottom: 0; }
.teaser[hidden] { display: none; }
.teaser-box { position: relative; overflow: hidden; text-align: center; padding: 40px 24px; border: 1px solid var(--gold); border-radius: 8px;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 181, 82, .22), transparent 70%), var(--panel);
  box-shadow: 0 0 40px rgba(232, 181, 82, .15); }
.teaser-box h2 { margin-bottom: 18px; }
.teaser-box p { max-width: 640px; margin: 0 auto; }
.teaser-tag { display: inline-block; margin-bottom: 12px !important; padding: 3px 14px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold2); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 181, 82, .45); } 50% { box-shadow: 0 0 0 8px rgba(232, 181, 82, 0); } }
@media (prefers-reduced-motion: reduce) { .teaser-tag { animation: none; } }

/* Badges sous la phrase d'accueil */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: -6px auto 22px; max-width: 940px; }
.chips li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(232, 181, 82, .08); color: var(--gold2); font-size: 14px; }

.lead { text-align: center; max-width: 680px; margin: -14px auto 30px; color: var(--muted); }

/* Bandeau du pack dans l'accueil : attire l'œil vers le pack de bienvenue */
.pack-teaser { display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 0 auto 26px; padding: 12px 18px; text-align: left;
  text-decoration: none; color: var(--text); border: 1px solid var(--gold); border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(232, 181, 82, .18), rgba(31, 22, 12, .9)); box-shadow: 0 0 24px rgba(232, 181, 82, .25); }
.pack-teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 227, 160, .25) 50%, transparent 60%);
  background-size: 250% 100%; animation: shine 4.8s ease-in-out infinite; pointer-events: none; }
.pack-teaser:hover { box-shadow: 0 0 34px rgba(232, 181, 82, .45); }
.pack-teaser b { display: block; color: var(--gold2); font-size: 17px; }
.pack-teaser small { color: var(--muted); }
.pt-icons { display: flex; flex: none; }
.pt-icons img { width: 34px; height: 34px; margin-left: -8px; border: 1px solid #8a6a2e; border-radius: 4px; background: #120d07;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.pt-icons img:first-child { margin-left: 0; }
.pt-arrow { margin-left: auto; font-size: 22px; color: var(--gold2); }
@media (max-width: 560px) { .pack-teaser { flex-wrap: wrap; justify-content: center; text-align: center; } .pt-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .pack-teaser::after { animation: none; } }

/* Pack de bienvenue : cases comme l'inventaire du jeu */
.pack { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pack li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s, transform .2s; }
.pack li:hover { border-color: var(--gold); transform: translateY(-2px); }
.pack b { display: block; color: var(--text); font-weight: 600; line-height: 1.3; }
.pack small { color: var(--gold); }
.slot { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 4px;
  background: radial-gradient(circle at 50% 40%, #3a2a14, #120d07); border: 1px solid #8a6a2e; box-shadow: inset 0 0 8px rgba(0, 0, 0, .8); }
.slot img { grid-area: 1 / 1; width: 40px; height: 40px; }
.slot img.swap { animation: swap 6s ease-in-out infinite; }
@keyframes swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.qty { position: absolute; right: 2px; bottom: 0; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.plus { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.plus li { text-align: center; padding: 16px; border: 1px dashed var(--line); border-radius: 6px; }
.plus b { display: block; font-family: Cinzel, Georgia, serif; font-size: clamp(24px, 4vw, 30px); color: var(--gold2); }

/* La route vers le sommet */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 59px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; display: flex; gap: 22px; padding: 0 0 26px; }
.timeline .lv { flex: none; width: 120px; position: relative; z-index: 1; align-self: flex-start; padding: 6px 4px; border: 1px solid var(--gold); border-radius: 999px; background: var(--bg);
  color: var(--gold2); font-weight: 700; font-size: 13px; text-align: center; }
.timeline h3 { margin: 2px 0 4px; font-size: 19px; }
.timeline p { margin: 0; }
.timeline .icons { display: flex; gap: 6px; margin-top: 8px; }
.timeline .icons:empty { display: none; }
.timeline .icons img { width: 34px; height: 34px; border: 1px solid #8a6a2e; border-radius: 3px; background: #120d07; }
.timeline .later h3 { color: var(--gold); }
.timeline .later .lv { color: var(--gold); border-style: dashed; }
.timeline .later p { color: var(--muted); font-style: italic; }

@media (max-width: 420px) { header.bar nav { flex-wrap: wrap; justify-content: center; gap: 4px 14px; } .bar nav a { font-size: 13px; } }

/* Familiers et montures */
.pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pet { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; }
.pet h3 { margin: 14px 0 6px; }
.pet p { margin: 0 0 12px; }
.pet .price { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--gold2); font-weight: 600; font-size: 14px; }
.pet-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pet-icons img { width: 40px; height: 40px; border: 1px solid #8a6a2e; border-radius: 4px; background: radial-gradient(circle at 50% 40%, #3a2a14, #120d07);
  transition: transform .2s; }
.pet:hover .pet-icons img { transform: translateY(-3px); }
.pet:hover .pet-icons img:nth-child(2) { transition-delay: .04s; }
.pet:hover .pet-icons img:nth-child(3) { transition-delay: .08s; }
.pet:hover .pet-icons img:nth-child(4) { transition-delay: .12s; }
.pet:hover .pet-icons img:nth-child(5) { transition-delay: .16s; }

/* Cadeau du jour : calendrier de 28 cases qui se coche tout seul */
.block .cal-wrap { max-width: 540px; margin: 0 auto; }
.cal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal li { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, #2c2010, #120d07); transition: border-color .3s, box-shadow .3s, transform .3s; }
.cal li img { width: 58%; height: auto; max-width: 36px; transition: opacity .3s, filter .3s; }
.cal .n { position: absolute; left: 5px; top: 2px; font-size: 11px; color: var(--muted); }
.cal .q { position: absolute; right: 4px; bottom: 1px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.cal li.big { border-color: #8a6a2e; background: radial-gradient(circle at 50% 40%, #4a3414, #160f07); }
.cal li.big::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 227, 160, .28) 50%, transparent 65%) 100% 0 / 260% 100% no-repeat;
  animation: shine 5s ease-in-out infinite; }
.cal li.big .n { color: var(--gold2); }
.cal li.done img { opacity: .4; filter: grayscale(.6); }
.cal li.done::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(18px, 4vw, 30px); font-weight: 800;
  color: #6fdc8c; text-shadow: 0 0 6px rgba(0, 0, 0, .9); animation: stamp .35s ease-out; }
@keyframes stamp { from { transform: scale(1.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cal li.today { border-color: var(--gold); transform: translateY(-3px); z-index: 1; animation: pulse 1.2s ease-in-out infinite; }
.cal li.today img { animation: hop .9s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.12); } }
.cal-now { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; margin: 18px auto 0; padding: 10px 16px; max-width: 460px;
  border: 1px solid var(--gold); border-radius: 999px; background: var(--panel); }
.cal-now img { width: 36px; height: 36px; }
.cal-now small { display: block; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.cal-now b { display: block; color: var(--text); font-weight: 600; line-height: 1.3; }
.cal-now.pop { animation: pop .45s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .cal { gap: 4px; } .cal .n, .cal .q { font-size: 9px; } .cal .n { left: 3px; top: 0; } }
@media (prefers-reduced-motion: reduce) { .cal li.big::before, .cal li.today, .cal li.today img, .cal li.done::after, .cal-now.pop { animation: none; } }

/* Apparition en douceur au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slot img.swap { animation: none; opacity: 0; } }
@media (max-width: 560px) {
  .timeline::before { left: 41px; }
  .timeline li { gap: 14px; }
  .timeline .lv { width: 84px; font-size: 12px; } }

footer { text-align: center; padding: 32px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .bar nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .bar nav a { font-size: 14px; }
  .bar nav a { white-space: nowrap; }
  .langs { margin-left: auto; }
  .block { padding: 48px 16px; }
  .steps li { padding-left: 44px; margin-left: 20px; }
  .btn { padding: 11px 18px; }
}
