/* Boutique World For Craft — style clair : blanc, Montserrat, orange */
:root {
  --text: #0a0a0a; --muted: #8f8f8f; --soft: #b0b0b0; --line: #ececec; --bg-soft: #efeff4; --bg-soft2: #f7f7fa;
  --orange: #3b45d0; --orange2: #7a4be8; --orange-dark: #3140b8; --orange-text: #3b45d0; --green: #8cf2a0; --green-text: #0f5a24;
  --red: #ff0707; --red-soft: #fff1f1; --radius: 12px; --shadow: 0 10px 30px rgba(4, 5, 16, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 Montserrat, system-ui, sans-serif; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a0a0a0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.error { color: var(--red); font-weight: 600; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.container { width: min(1280px, 100%); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.page { padding-top: 40px; padding-bottom: 70px; }

/* ------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; border-radius: 4px;
  font: 700 15px Montserrat, sans-serif; color: #fff; padding: 12px 22px; background: var(--orange); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(48, 64, 207, .28); }
.btn:active { transform: none; box-shadow: none; }
.btn.light, .btn.ghost { background: var(--bg-soft); color: var(--text); }
.btn.light:hover, .btn.ghost:hover { background: #e2e3eb; box-shadow: none; }
.btn.xl { font-size: 18px; min-width: 283px; height: 74px; padding: 0 40px; }
.btn.big { font-size: 17px; padding: 15px 30px; }
.btn.small { font-size: 13px; padding: 7px 12px; }
.btn:disabled { cursor: default; opacity: .6; transform: none; box-shadow: none; }

/* ------------------------------------------------------------ barre du haut */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 36px; padding: 14px 20px;
  background: #fff; border-bottom: 1px solid var(--line); }
.topbar.over-hero { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 8px; color: #fff; }
.brand img { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: .95; }
.brand-text b { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.brand-text i { font-size: 20px; font-weight: 900; color: var(--orange2); letter-spacing: .04em; }
.topbar:not(.over-hero) .brand, .brand.dark { color: var(--text); }
.mainnav { display: flex; gap: 22px; flex-wrap: wrap; }
.mainnav a { position: relative; color: var(--text); font-weight: 700; font-size: 16px; padding: 6px 0; }
.over-hero .mainnav a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.mainnav a:hover { color: var(--orange); }
.mainnav a.active::after { content: ""; position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--orange); }
.hot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ff3b3b; color: #fff; font-size: 12px; font-weight: 900; vertical-align: 1px; }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; background: #f2f2f2; color: var(--text); font-weight: 700; font-size: 17px; padding: 9px 20px; border-radius: 6px; }
.me:hover { color: var(--text); background: #e9e9e9; }
.me img { width: 28px; height: 28px; border-radius: 3px; image-rendering: pixelated; }
.wallet { display: flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-weight: 800; font-size: 17px; padding: 11px 22px; border-radius: 6px; }
.wallet:hover { background: var(--orange-dark); color: #fff; }
.coin { color: var(--orange2); }
.wallet .coin { color: #fff; }

/* ------------------------------------------------------------ grand bandeau */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; background-size: cover; background-position: center 65%; color: #fff; overflow: hidden; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 50, .55) 0%, rgba(10, 20, 50, .15) 45%, transparent 70%),
              linear-gradient(0deg, rgba(10, 16, 40, .6) 0%, transparent 45%),
              linear-gradient(180deg, rgba(10, 16, 40, .35) 0%, transparent 22%); }
.hero-content { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 70px; padding-top: 140px; }
.hero h1 { font-size: 32px; font-weight: 700; line-height: 1.35; max-width: 760px; margin: 18px 0 0; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.pill-new { display: inline-block; background: var(--green); color: #2f7737; font-weight: 600; font-size: 16px; padding: 8px 22px; border-radius: 999px; }
.btn.hero-btn { font-size: 18px; padding: 22px 90px; white-space: nowrap; }
.btn.block { display: flex; width: 100%; }

/* ------------------------------------------------------------ titres façon store */
.title { font-size: 32px; font-weight: 700; color: #303030; margin: 0 0 12px; letter-spacing: 0; }
.title.big { font-size: 40px; }
.text { color: #717171; font-size: 20px; font-weight: 500; line-height: 40px; margin: 0; }
.home { padding-top: 90px; padding-bottom: 60px; }
.home-block { margin-bottom: 120px; }
.home-block .lead, .cat-head .lead, .cta-credits .lead { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--orange-text); }

/* fond coloré commun aux cartes (catégories et produits) : dégradé propre, lumière en haut */
.cat-img, .product-img { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .38), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--cc) 70%, #fff) 0%, var(--cc) 55%, color-mix(in srgb, var(--cc) 75%, #000) 100%); }
.cat-img::before, .product-img::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 13%; height: 9%; border-radius: 50%;
  background: rgba(0, 0, 0, .28); filter: blur(10px); transition: transform .35s, opacity .35s; }
.cat-img img, .product-img img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .28)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }

/* catégories de l'accueil */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 34px; }
.cat-card, .product { --cc: #3b45d0; display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 12px 12px 18px;
  box-shadow: 0 1px 2px rgba(4, 5, 16, .05), 0 10px 30px rgba(4, 5, 16, .06); transition: transform .3s, box-shadow .3s; }
.cat-card { color: var(--text); }
.cat-card:hover, .product:hover { color: var(--text); transform: translateY(-8px); box-shadow: 0 2px 4px rgba(4, 5, 16, .05), 0 26px 50px rgba(4, 5, 16, .12); }
.cat-card:hover .cat-img img, .product:hover .product-img img { transform: translateY(-10px) scale(1.08) rotate(-3deg); }
.cat-card:hover .cat-img::before, .product:hover .product-img::before { transform: scale(.8); opacity: .6; }
.cat-card h3 { font-size: 24px; font-weight: 700; color: #303030; margin: 18px 6px 2px; }
.from { margin: 0 6px; color: #686868; font-size: 16px; font-weight: 500; }
.cat-price { margin: 0 6px 16px; color: var(--orange); font-size: 30px; font-weight: 800; }
.cat-price .coin, .price .coin { color: var(--orange); font-size: .7em; vertical-align: .15em; }
.cat-card .btn { height: 54px; font-size: 16px; }

/* blocs texte + image */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.split.reverse { grid-template-columns: 1.4fr 1fr; }
.split-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.split-visual::before { content: ""; position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  background: linear-gradient(145deg, #d6d9f5, #eeeffb); animation: blob 12s ease-in-out infinite; }
.split-visual.blue::before { background: linear-gradient(145deg, #dce7ff, #f1f5ff); }
.split-img { position: relative; width: 70%; image-rendering: pixelated; filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .18)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes blob { 50% { border-radius: 58% 42% 45% 55% / 40% 55% 45% 60%; transform: rotate(8deg); } }

/* ------------------------------------------------------------ page catégorie & produits */
.cat-head { margin-bottom: 40px; }
.cat-head .title { margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 26px; margin-bottom: 70px; }
.product { --rc: #b5b8c2; --cc: #3b45d0; }
.product-img img { width: 80%; height: 80%; }
.product-img .ph { position: relative; z-index: 1; font-size: 72px; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 13px; font-weight: 700; background: #ff3b3b; color: #fff; padding: 5px 11px; border-radius: 6px; }
.badge.owned { left: auto; right: 12px; background: #1fae5b; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 6px 0; }
.rarity { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  color: color-mix(in srgb, var(--rc) 75%, #222); background: color-mix(in srgb, var(--rc) 16%, #fff); }
.product h3 { font-size: 21px; font-weight: 700; color: #303030; margin: 10px 0 4px; }
.product p { margin: 0 0 12px; color: #8f8f8f; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-label { margin-top: auto; color: #686868; font-size: 16px; font-weight: 500; }
.price { color: var(--orange); font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.product .btn.block { height: 54px; font-size: 16px; }
.cta-credits { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 50px 56px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #5360d7, #3b45d0 55%, #2c3abc); box-shadow: 0 24px 50px rgba(48, 64, 207, .25); }
.cta-credits::after { content: ""; position: absolute; right: 230px; top: -50px; width: 260px; height: 260px; opacity: .14; transform: rotate(18deg);
  background: url("img/gem-fx.png") center / contain no-repeat; }
.cta-credits .lead, .cta-credits .title, .cta-credits .text { color: #fff; }
.cta-credits .lead { opacity: .85; }
.cta-credits .text { font-size: 18px; line-height: 1.6; opacity: .9; }
.cta-credits .btn { position: relative; z-index: 1; background: #fff; color: var(--orange); }
.cta-credits .btn:hover { background: #f0f1fb; color: var(--orange-dark); }

/* ------------------------------------------------------------ finitions */
.btn { position: relative; overflow: hidden; background: linear-gradient(180deg, #4a55e0, var(--orange)); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .6s; }
.btn:hover::after { left: 130%; }
.btn.light, .btn.ghost { background: var(--bg-soft); }
.home-block .title, .cat-head .title { position: relative; }
.home-block > .title::after, .home-block .split-text .title::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 14px; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), #6a75dc); }

/* neige qui tombe sur le bandeau : motif de flocons (assets/img/snow.webp, 375 x 1500) répété, deux couches pour la profondeur */
.snow, .snow::before, .snow::after { position: absolute; inset: 0; pointer-events: none;
  background: url("img/snow.webp") 0 0 / 375px 1500px repeat; animation: snow 30s linear infinite; }
.snow::before { content: ""; background-size: 250px 1000px; background-position: 120px 0; opacity: .6; animation-duration: 40s; }
.snow::after { content: ""; background-size: 560px 2240px; background-position: 60px 300px; opacity: .9; animation-duration: 22s; }
@keyframes snow { to { background-position-y: 1500px; } }
.snow::before { animation-name: snow-far; }
.snow::after { animation-name: snow-near; }
@keyframes snow-far { from { background-position: 120px 0; } to { background-position: 120px 1000px; } }
@keyframes snow-near { from { background-position: 60px 300px; } to { background-position: 60px 2540px; } }
.hero h1 { animation: rise .9s both .1s; }
.hero .pill-new { animation: rise .9s both; }
.hero .hero-btn { animation: rise .9s both .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* barre du haut : devient blanche en défilant */
.topbar.over-hero { position: fixed; transition: background .3s, box-shadow .3s, padding .3s; }
.topbar.over-hero.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); padding-top: 10px; padding-bottom: 10px; }
.topbar.over-hero.scrolled .brand { color: var(--text); }
.topbar.over-hero.scrolled .mainnav a { color: var(--text); text-shadow: none; }
.topbar.over-hero.scrolled .mainnav a:hover { color: var(--orange); }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .snow, .snow::before, .snow::after, .split-img, .split-visual::before { animation: none; }
}

/* ------------------------------------------------------------ mentions légales */
.legal { max-width: 900px; }
.legal section { margin-bottom: 50px; scroll-margin-top: 110px; }
.legal .title { font-size: 26px; }
.legal p { color: #717171; font-size: 17px; font-weight: 500; line-height: 1.8; }

/* ------------------------------------------------------------ écran du pseudo */
.gate { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; min-height: 100vh; padding: 20px; }
.gate-left { display: flex; flex-direction: column; padding: 20px 40px; }
.gate-form-wrap { margin: auto 0; max-width: 540px; padding: 40px 0; }
.gate h1 { font-size: clamp(36px, 3.6vw, 50px); }
.lead { color: var(--orange-text); font-weight: 600; font-size: 20px; margin: 0 0 22px; }
.notice { display: flex; align-items: center; gap: 12px; background: #f6f6f6; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.notice .tag { background: #fff; font-size: 12px; font-weight: 700; color: #303030; padding: 5px 10px; border-radius: 5px; white-space: nowrap; }
.notice p { margin: 0; font-size: 12px; color: var(--soft); }
.notice.warn { background: var(--red-soft); }
.notice.warn .tag { color: var(--red); }
.notice.warn p { color: #ff6565; }
.gate-form { margin-top: 22px; }
.gate-input { display: flex; align-items: center; gap: 12px; background: #f6f6f6; border: 2px solid transparent; border-radius: 10px; padding: 8px 8px 8px 12px; transition: border-color .15s; }
.gate-input:focus-within { border-color: var(--orange); background: #fff; }
.gate-input img { width: 36px; height: 36px; border-radius: 4px; image-rendering: pixelated; }
.gate-input input { flex: 1; border: 0; background: none; font-size: 17px; padding: 10px 0; }
.gate-input input:focus { outline: none; }
.gate-input .go { width: 46px; height: 46px; border: 0; border-radius: 8px; background: var(--orange); color: #fff; font-size: 20px; cursor: pointer; }
.gate-input .go:hover { background: var(--orange-dark); }
.gate-right { position: relative; border-radius: 20px; background-size: cover; background-position: center; overflow: hidden; }
.gate-right::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40, 20, 90, .75), transparent 50%); }
.gate-caption { position: absolute; left: 40px; bottom: 36px; z-index: 1; color: #fff; }
.gate-caption p { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.gate-caption h2 { margin: 0; font-size: 40px; }

/* ------------------------------------------------------------ formulaires */
input, textarea, select { width: 100%; background: #f6f6f6; border: 1px solid transparent; color: var(--text); border-radius: 8px; padding: 11px 13px; font: inherit; font-size: 15px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); background: #fff; }
textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #707070; text-transform: uppercase; letter-spacing: .04em; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .check { display: flex; align-items: center; gap: 8px; text-transform: none; font-size: 15px; color: var(--text); }
.form-grid .check input { width: auto; }

/* ------------------------------------------------------------ crédits */
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: 46px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px 24px; cursor: pointer;
  font: inherit; color: var(--text); background: #fff; border: 2px solid var(--line); border-radius: 16px; transition: .18s; }
.pack:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pack.selected { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(48, 64, 207, .12), var(--shadow); }
.pack.popular { background: linear-gradient(180deg, #eeeffb, #fff 60%); }
.pack .badge { left: 50%; transform: translateX(-50%); top: -14px; white-space: nowrap; background: var(--orange); }
.pack-gem { font-size: var(--size); line-height: 1.1; background: linear-gradient(135deg, var(--orange2), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack-amount { font-size: 34px; font-weight: 900; }
.pack-bonus { font-size: 14px; font-weight: 700; color: #1fae5b; }
.pack-price { margin-top: 10px; font-size: 18px; font-weight: 800; color: #fff; background: var(--orange); padding: 10px 26px; border-radius: 6px; }
.checkout { max-width: 560px; }
#paypal-buttons { margin-top: 14px; min-height: 50px; }

/* ------------------------------------------------------------ cartes, tableaux, compte */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-top: 24px; }
.card h2 { font-size: 24px; }
.table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #a0a0a0; padding: 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag.ok { background: #e3f8eb; color: #168a47; }
.tag.wait { background: #ebecfa; color: var(--orange-dark); }
.profile { display: flex; gap: 40px; align-items: center; background: linear-gradient(90deg, #f0f1fb, #fff 70%); }
.profile-body { width: 130px; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18)); }
.profile h1 { font-size: 44px; }
.stats { display: flex; gap: 12px; margin: 16px 0 20px; flex-wrap: wrap; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 20px; }
.stats span { display: block; font-size: 12px; color: #a0a0a0; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stats b { font-size: 22px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); background: var(--green); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------ admin */
.admin-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.admin-head .cats { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-head .cats a { color: var(--text); font-weight: 700; padding: 9px 14px; border-radius: 6px; background: var(--bg-soft); }
.admin-head .cats a.active { background: var(--orange); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-grid .card { margin-top: 24px; }
.stat span { display: block; color: #a0a0a0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat b { font-size: 30px; }
.mini-head { width: 22px; height: 22px; vertical-align: middle; border-radius: 3px; image-rendering: pixelated; }
/* écran de connexion admin (réutilise la carte centrée) */
.gate-card { width: min(440px, 100%); margin: 60px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px 34px; box-shadow: var(--shadow); }
.gate-card .gate-form { display: grid; gap: 14px; }
.gate-logo { width: 64px; }

/* ------------------------------------------------------------ fenêtre, notification, pied de page */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10, 10, 10, .45); backdrop-filter: blur(3px); padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.modal-balance { display: flex; justify-content: space-between; background: var(--bg-soft); border-radius: 10px; padding: 13px 16px; margin: 14px 0 22px; }
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 60; max-width: 380px; background: #fff; border-left: 5px solid #1fae5b; font-weight: 600;
  padding: 14px 18px; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); transform: translateY(160%); transition: transform .25s; }
.toast.show { transform: none; }
.toast.err { border-left-color: var(--red); }
.footer { background: #fff; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer-top .brand img { width: 60px; height: 60px; }
.footer-cols { display: flex; gap: 110px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 14px; }
.footer-cols h4 { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #303030; }
.footer-cols a { color: #717171; font-size: 18px; font-weight: 500; }
.footer-cols a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e8e9f0; color: #303030; }
.social:hover { background: var(--orange); color: #fff; }
.copyright { color: #9a9a9a; font-size: 14px; font-weight: 600; margin: 0; }

@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { gap: 50px; }
  .topbar { flex-wrap: wrap; gap: 14px; }
  .mainnav { order: 3; width: 100%; gap: 16px; }
}
@media (max-width: 820px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .gate { grid-template-columns: 1fr; }
  .gate-right { min-height: 260px; order: -1; }
  .gate-left { padding: 10px; }
  .hero-content { flex-direction: column; align-items: flex-start; }
  .btn.xl { padding: 16px 36px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-visual { order: -1; }
  .split-visual { max-width: 280px; }
  .home-block { margin-bottom: 70px; }
  .btn.hero-btn { padding: 18px 50px; }
  .hero h1 { font-size: 26px; }
  .text { font-size: 17px; line-height: 1.7; }
  .form-grid { grid-template-columns: 1fr; }
  .profile { flex-direction: column; text-align: center; }
  .profile .row, .stats { justify-content: center; }
  .me span { display: none; }
}

/* ------------------------------------------------------------ écran de choix Java / Bedrock */
.choice { display: flex; gap: 8px; min-height: 100vh; padding: 4px; }
.choice-panel { position: relative; flex: 1; overflow: hidden; border-radius: 16px; display: grid; place-items: center; }
.choice-panel.java { background: #e8e9f0; }
.choice-panel.bedrock { background: linear-gradient(#7a4be8, #3140b8); }
.choice-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; opacity: .07; filter: grayscale(1); transform: scale(1.2); }
.choice-panel.bedrock::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(90deg, #fff 1px, transparent 1px), linear-gradient(#fff 1px, transparent 1px); background-size: 64px 64px; }
.choice-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.choice-logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.choice-logo img { width: 76px; height: 76px; flex-shrink: 0; object-fit: contain; }
.choice-logo .brand-text b { font-size: 34px; }
.choice-logo .brand-text i { font-size: 13px; font-style: normal; color: var(--text); letter-spacing: .02em; text-align: right; }
.choice-logo.light, .choice-logo.light .brand-text i { color: #fff; }
.choice-btn { display: grid; place-items: center; width: 279px; max-width: 85%; height: 67px; border-radius: 4px; background: var(--orange); color: #fff;
  font-weight: 700; font-size: 18px; transition: transform .15s, box-shadow .15s; }
.choice-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(48, 64, 207, .35); }
.choice-btn.white { background: #fff; color: var(--orange); }
.choice-btn.white:hover { color: var(--orange); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }

/* ------------------------------------------------------------ sélecteur Bedrock / Java (barre du haut) */
.edition-switch { display: flex; border-radius: 4px; overflow: hidden; }
.edition-switch a { background: #fff; color: var(--text); font-weight: 700; font-size: 17px; padding: 11px 20px; }
.edition-switch a.on { background: var(--orange); color: #fff; }
.edition-switch a:not(.on):hover { background: #f2f2f2; color: var(--text); }
.me, .wallet { border-radius: 4px; }
@media (max-width: 820px) { .choice { flex-direction: column; } .choice-panel { min-height: 48vh; } .edition-switch a { padding: 9px 12px; font-size: 14px; } }

/* menu du haut : toujours sur une ligne */
.mainnav { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1400px) { .topbar { gap: 22px; } .mainnav { gap: 16px; } .mainnav a { font-size: 15px; } }
.credits-3d { flex-basis: 100%; margin: 0; color: #b0b0b0; font-size: 12px; font-weight: 500; }
.credits-3d a { color: #9a9a9a; text-decoration: underline; }
/* objets en grand sur les cartes de l'accueil */
.cat-img img { width: 92%; height: 92%; }

/* ------------------------------------------------------------ monnaie : gemme et sacs */
.gem { width: 1.1em; height: 1.1em; vertical-align: -.2em; object-fit: contain; }
.cat-price .gem, .price .gem { width: .85em; height: .85em; vertical-align: -.08em; margin-right: 2px; }
.wallet .gem { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.btn .gem { width: 20px; height: 20px; }
.pack-img { width: 150px; height: 150px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .15));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pack:hover .pack-img, .pack.selected .pack-img { transform: translateY(-8px) scale(1.06); }

/* ------------------------------------------------------------ accueil v2 */
.home { padding-top: 80px; }

/* deux grandes cartes de catégorie */
.feature-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 34px; }
.feature-cat { --cc: #3b45d0; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 320px; padding: 40px 0 40px 42px;
  border-radius: 28px; color: #fff;
  background:
    radial-gradient(90% 120% at 100% 50%, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--cc) 80%, #fff) 0%, var(--cc) 45%, color-mix(in srgb, var(--cc) 70%, #000) 100%);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--cc) 35%, transparent); transition: transform .35s, box-shadow .35s; }
.feature-cat::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .08); }
.feature-cat:hover { color: #fff; transform: translateY(-6px); box-shadow: 0 34px 60px color-mix(in srgb, var(--cc) 45%, transparent); }
.feature-text { position: relative; z-index: 1; flex: 1; max-width: 58%; }
.feature-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.feature-cat h3 { font-size: 40px; font-weight: 800; margin: 14px 0 8px; color: #fff; }
.feature-cat p { margin: 0; font-size: 16px; line-height: 1.55; opacity: .9; }
.feature-from { margin-top: 16px !important; opacity: 1 !important; }
.feature-from b { font-size: 24px; }
.feature-cat .btn.white { margin-top: 22px; background: #fff; color: var(--cc); }
.feature-cat .btn.white:hover { background: #fff; color: var(--cc); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.feature-img { position: absolute; right: -10px; top: 50%; width: 50%; max-width: 330px; transform: translateY(-50%) rotate(-6deg);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .35)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.feature-cat:hover .feature-img { transform: translateY(-54%) rotate(0deg) scale(1.08); }

/* titre de section avec lien */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.see-all { font-weight: 700; white-space: nowrap; }
.grid.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }

/* bandeau des packs */
.packs-band { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 40px; padding: 50px 56px; border-radius: 28px;
  background: linear-gradient(135deg, #f1f2fc, #dee0f7); }
.packs-band .text { font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
.packs-band-bags { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bag { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bag img { width: 100%; max-width: 170px; image-rendering: pixelated; filter: drop-shadow(0 14px 12px rgba(23, 30, 97, .18));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bag:nth-child(2) img { animation-delay: .4s; }
.bag b { font-size: 18px; color: #303030; background: #fff; padding: 4px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(23, 30, 97, .1); }
.packs-band-bags:hover .bag img { transform: translateY(-8px); }
.packs-band-bags .bag:hover img { transform: translateY(-16px) scale(1.06); }

/* bannière des pages catégorie */
.cat-banner { --cc: #3b45d0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 220px; padding: 40px 48px; margin-bottom: 44px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(80% 140% at 100% 50%, rgba(255, 255, 255, .25), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--cc) 80%, #fff), var(--cc) 45%, color-mix(in srgb, var(--cc) 70%, #000)); }
.cat-banner h1 { font-size: 42px; font-weight: 800; margin: 14px 0 6px; color: #fff; }
.cat-banner p { margin: 0; font-size: 18px; opacity: .9; }
.cat-banner img { width: 240px; margin: -40px 0; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .3)); animation: float 5s ease-in-out infinite; }

@media (max-width: 1100px) {
  .feature-cats, .packs-band { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-cat { padding: 30px 24px; min-height: 280px; }
  .feature-text { max-width: 62%; }
  .feature-cat h3 { font-size: 30px; }
  .packs-band { padding: 34px 24px; }
  .cat-banner { padding: 30px 24px; }
  .cat-banner img { width: 130px; margin: 0; }
  .cat-banner h1 { font-size: 30px; }
}

/* animations (fiche article) */
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes bob { 50% { transform: translateY(-16px) rotate(2deg); } }

/* ------------------------------------------------------------ cartes produit : lien vers la fiche */
a.product { color: var(--text); }
a.product:hover { color: var(--text); }
a.product:hover .btn { background: var(--orange-dark); }

/* ------------------------------------------------------------ fiche article */
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: #9a9a9a; margin-bottom: 26px; }
.crumbs a { color: #717171; font-weight: 600; }
.crumbs a:hover { color: var(--orange); }
.crumbs b { color: #303030; }
.item { --cc: #3b45d0; --rc: #b5b8c2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; margin-bottom: 80px; }
.item-visual { position: sticky; top: 100px; aspect-ratio: 1; border-radius: 32px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .4), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--cc) 70%, #fff) 0%, var(--cc) 55%, color-mix(in srgb, var(--cc) 70%, #000) 100%);
  box-shadow: 0 30px 60px color-mix(in srgb, var(--cc) 30%, transparent); }
.item-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 70%, #fff), transparent 65%);
  opacity: .55; filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
.item-visual img { position: relative; width: 82%; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .35)); animation: bob 6s ease-in-out infinite; }
.item-visual .badge { top: 20px; left: 20px; font-size: 15px; padding: 7px 14px; }
.item-visual .badge.owned { left: auto; right: 20px; }
.item-tags { display: flex; gap: 8px; align-items: center; }
.item-type { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #717171; background: #f2f2f2; padding: 4px 9px; border-radius: 999px; }
.item-info h1 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 900; color: #303030; margin: 14px 0 12px; letter-spacing: -.02em; }
.item-desc { font-size: 18px; line-height: 1.7; color: #717171; margin: 0 0 28px; }
.item-buy { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 16px 40px rgba(4, 5, 16, .06); }
.item-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.item-price span { width: 100%; color: #686868; font-size: 16px; font-weight: 500; }
.item-price b { font-size: 44px; font-weight: 900; color: var(--orange); line-height: 1; }
.item-price b .gem { width: .8em; height: .8em; vertical-align: -.05em; }
.item-price s { color: #b0b0b0; font-size: 22px; font-weight: 700; }
.btn.big.block { height: 62px; font-size: 18px; }
.item-balance { margin: 14px 0 0; font-size: 14px; color: #8f8f8f; text-align: center; }
.item-balance b { color: #303030; }
.item-balance.short b:last-of-type { color: var(--red); }
.item-section { margin-bottom: 70px; }
.item-section .title small { font-size: 16px; font-weight: 600; color: #9a9a9a; margin-left: 8px; }
.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; }
.included-item { --rc: #b5b8c2; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; border-radius: 20px;
  color: #303030; font-weight: 700; font-size: 14px; text-align: center; background: color-mix(in srgb, var(--rc) 12%, #fff);
  border: 2px solid color-mix(in srgb, var(--rc) 30%, #fff); transition: transform .25s, box-shadow .25s; }
.included-item:hover { color: #303030; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(4, 5, 16, .1); }
.included-item img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .18)); }
.included-item i { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; background: #1fae5b; color: #fff; padding: 3px 8px; border-radius: 999px; }

@media (max-width: 1000px) {
  .item { grid-template-columns: 1fr; gap: 30px; }
  .item-visual { position: relative; top: 0; }
}

/* ------------------------------------------------------------ page de paiement */
a.pack { text-decoration: none; }
a.pack:hover { color: var(--text); }
.checkout-simple { max-width: 560px; margin: 10px auto 90px; }
.checkout-simple .title { margin-bottom: 24px; }
.co-pack { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.co-pack img { width: 64px; image-rendering: pixelated; }
.co-pack div { flex: 1; display: flex; flex-direction: column; }
.co-pack b { font-size: 18px; color: #303030; }
.co-pack span { font-size: 14px; color: #8f8f8f; }
.co-pack strong { font-size: 22px; color: #303030; }
.co-change { display: inline-block; margin: 10px 0 28px; font-size: 14px; font-weight: 600; }
.co-field { display: block; font-size: 14px; font-weight: 700; color: #303030; margin-bottom: 8px; }
#payEmail { margin-bottom: 20px; font-size: 16px; padding: 13px 14px; border: 1px solid #dcdce2; background: #fff; border-radius: 6px; }
#payEmail:focus { border-color: var(--orange); }
#payEmail.invalid { border-color: var(--red); }
.checkout-simple #paypal-buttons { margin-bottom: 10px; }
.checkout-simple .btn.block { margin-bottom: 10px; }
.co-legal { font-size: 13px; color: #9a9a9a; margin: 14px 0 0; }

/* « STORE » lisible sur la bannière */
.topbar.over-hero:not(.scrolled) .brand-text i { color: #aab3ff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }


/* paiement bloqué tant que l'email n'est pas rempli */
.checkout-simple .btn:disabled { background: #c9cbd6; box-shadow: none; transform: none; opacity: 1; cursor: not-allowed; }
.checkout-simple .btn:disabled::after { display: none; }
#paypal-buttons.locked { opacity: .45; filter: grayscale(1); }

/* écran d'accès : lien sous le mot de passe */
.gate-alt { margin-top: 16px; font-size: 13px; color: #9a9a9a; }

.co-help { margin: -2px 0 10px; font-size: 13px; color: #8f8f8f; }
.co-input { margin-bottom: 12px; font-size: 16px; padding: 13px 14px; border: 1px solid #dcdce2; background: #fff; border-radius: 6px; }
.co-input.invalid { border-color: var(--red); }
.checkout-simple .co-input:last-of-type { margin-bottom: 20px; }

/* bloc « Protège ton compte » (premier achat) */
.co-secure { border: 1px solid #dcdce2; border-radius: 8px; padding: 16px; margin-bottom: 20px; background: #fafafc; }
.co-secure-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.co-secure-head > svg { flex-shrink: 0; width: 22px; height: 22px; fill: var(--orange); margin-top: 1px; }
.co-secure-head div { display: flex; flex-direction: column; }
.co-secure-head b { color: #303030; }
.co-secure-head > div > b { font-size: 15px; }
.co-secure-head span { font-size: 13px; color: #8f8f8f; }
.co-pass-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-secure .co-input, .checkout-simple .co-secure .co-input:last-of-type { margin: 0; }
.co-pass { position: relative; }
.co-pass .co-input { padding-right: 42px; }
.co-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; cursor: pointer; padding: 0; }
.co-eye svg { width: 18px; height: 18px; fill: #b0b0b8; }
.co-eye:hover svg, .co-eye.on svg { fill: var(--orange); }
.co-meter { height: 4px; border-radius: 2px; background: #e8e8ee; margin-top: 12px; overflow: hidden; }
.co-meter span { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .25s, background .25s; }
.co-hint { display: block; margin-top: 6px; font-size: 12px; color: #8f8f8f; }
.co-hint.bad { color: var(--red); }
@media (max-width: 560px) { .co-pass-row { grid-template-columns: 1fr; } }

.legal-list { list-style: none; padding: 0; margin: 0; color: #717171; font-size: 17px; line-height: 2; }
.legal-list b { color: #303030; }
