/* ==========================================================================
   Thème Pixelcraft — base commune aux trois sites
   Palette tirée de la DA Academy : marine / bleu Academy / or = dépenser,
   vert = recevoir, violet = saison The Rise. Relief (lèvre) = cliquable.
   ========================================================================== */

:root {
  --navy-950: #050f24;
  --navy-900: #0a1a36;
  --navy-850: #0d2143;
  --navy-800: #112a55;
  --navy-700: #173768;
  --line: rgba(124, 197, 255, .18);
  --line-strong: rgba(124, 197, 255, .45);

  --blue-400: #4aa3f5;
  --blue-500: #2f8ce8;
  --blue-600: #2276d5;
  --blue-700: #1c6bcb;
  --blue-900: #0d3b73;
  --sky: #7cc5ff;

  --text: #ffffff;
  --text-soft: #d6eaff;
  --text-muted: #a6c4e4;
  --text-dim: #7f9cc0;
  --outline: #0b2a52;

  --gold-hi: #ffe07a;
  --gold: #ffd54f;
  --gold-lo: #f2a516;
  --gold-edge: #7a4f00;
  --gold-ink: #3b2600;

  --green-hi: #7fdc84;
  --green: #5fc765;
  --green-lo: #3c9e45;
  --green-edge: #1d5a25;

  --red: #e8574c;
  --red-edge: #7a1c14;

  --rise-900: #150a2e;
  --rise-800: #231046;
  --rise-600: #5e2ac2;
  --rise-500: #8e4bff;
  --rise-300: #c8a2ff;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-display: "Lilita One", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --nav-h: 72px;
}

/* ---------- Palettes par site (classe posée sur <body> par le layout) ---------- */
body.v-academy {
  --navy-950: #050f24; --navy-900: #0a1a36; --navy-850: #0d2143; --navy-800: #112a55; --navy-700: #173768;
  --blue-900: #0d3b73; --sky: #7cc5ff;
  --text-soft: #d6eaff; --text-muted: #a6c4e4; --text-dim: #7f9cc0; --outline: #0b2a52;
  --accent-rgb: 124, 197, 255; --navy-950-rgb: 5, 15, 36; --navy-900-rgb: 10, 26, 54;
  --navy-btn-hi: #2b4b85; --navy-btn-lo: #1e3565; --card-hi: #0f2754;
  --glow-hi: #1b4a8f; --well: #051a38; --lip: #06132b;
  --line: rgba(var(--accent-rgb), .18); --line-strong: rgba(var(--accent-rgb), .45);
  --hero-img: url("../img/academy-hero.jpg");
}
body.v-pixelcraft,
body.v-maniasky {
  --navy-950: #0e0820; --navy-900: #170d33; --navy-850: #1c1040; --navy-800: #24154f; --navy-700: #2e1b62;
  --blue-900: #3b1a82; --sky: #c8a2ff;
  --text-soft: #ece2ff; --text-muted: #c3b3e6; --text-dim: #9a88c4; --outline: #2a1257;
  --accent-rgb: 190, 150, 255; --navy-950-rgb: 14, 8, 32; --navy-900-rgb: 23, 13, 51;
  --navy-btn-hi: #3a2672; --navy-btn-lo: #2a1a57; --card-hi: #231446;
  --glow-hi: #3a2380; --well: #120a2a; --lip: #0b0620;
  --line: rgba(var(--accent-rgb), .18); --line-strong: rgba(var(--accent-rgb), .45);
  --hero-img: url("../img/pixelcraft-hero.jpg");
}
body.v-maniasky { --hero-img: url("../img/maniasky-hero.jpg"); }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--gold); color: var(--gold-ink); font-weight: 800;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typo ---------------------------------------------------------- */

.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor;
}

.section-title {
  font-size: clamp(34px, 5vw, 58px);
  text-transform: uppercase;
  margin: 10px 0 14px;
}
.section-title .hl { color: var(--gold); }

.lead { color: var(--text-soft); font-size: 18px; max-width: 56ch; margin: 0; }

.outlined {
  paint-order: stroke fill;
  -webkit-text-stroke: 8px var(--outline);
  text-shadow: 0 6px 0 var(--outline), 0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- Boutons : relief = cliquable ----------------------------------- */

.pbtn {
  --b-hi: var(--blue-400); --b-lo: var(--blue-600); --b-edge: var(--blue-900); --b-ink: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 14px;
  border: 2px solid var(--b-edge);
  background: linear-gradient(180deg, var(--b-hi) 0 50%, var(--b-lo) 50% 100%);
  color: var(--b-ink);
  font-weight: 900; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--b-edge), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  white-space: nowrap;
}
.pbtn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--b-edge), inset 0 2px 0 rgba(255, 255, 255, .35); filter: brightness(1.05); }
.pbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-edge), inset 0 2px 0 rgba(255, 255, 255, .25); }
.pbtn svg { width: 20px; height: 20px; flex: none; }

.pbtn--gold  { --b-hi: var(--gold-hi); --b-lo: var(--gold-lo); --b-edge: var(--gold-edge); --b-ink: var(--gold-ink); }
.pbtn--green { --b-hi: var(--green-hi); --b-lo: var(--green-lo); --b-edge: var(--green-edge); --b-ink: #0d2c11; }
.pbtn--navy  { --b-hi: var(--navy-btn-hi); --b-lo: var(--navy-btn-lo); --b-edge: var(--navy-900); --b-ink: #fff; border-color: var(--navy-900); }
.pbtn--discord { --b-hi: #7b86ff; --b-lo: #5865f2; --b-edge: #2c338f; }
.pbtn--ghost {
  background: rgba(255, 255, 255, .06); border: 2px solid var(--line-strong);
  box-shadow: none; color: #fff;
}
.pbtn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.pbtn--ghost:active { box-shadow: none; }
.pbtn--lg { min-height: 62px; padding: 0 32px; font-size: 18px; border-radius: 16px; }
.pbtn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 11px; box-shadow: 0 4px 0 var(--b-edge), inset 0 2px 0 rgba(255,255,255,.35); }
.pbtn--block { width: 100%; }

/* Étiquettes plates = information */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: rgba(var(--accent-rgb), .12); color: var(--text-soft);
  border: 1px solid var(--line);
}
.tag--gold  { background: rgba(255, 213, 79, .14); color: var(--gold); border-color: rgba(255, 213, 79, .35); }
.tag--green { background: #16361c; color: #8be98f; border-color: #46a84b; }
.tag--rise  { background: rgba(142, 75, 255, .18); color: var(--rise-300); border-color: rgba(200, 162, 255, .4); }
.tag--red   { background: rgba(232, 87, 76, .16); color: #ff8a80; border-color: rgba(255, 138, 128, .4); }

.dot-live {
  width: 10px; height: 10px; border-radius: 50%; background: #5fe36a; flex: none;
  box-shadow: 0 0 0 0 rgba(95, 227, 106, .6); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 227, 106, .55); }
  70% { box-shadow: 0 0 0 10px rgba(95, 227, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 227, 106, 0); }
}

/* ---------- Navigation flottante ------------------------------------------ */

.topnav {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  width: min(1240px, 100% - 32px); margin-inline: auto;
  height: var(--nav-h); padding: 0 12px 0 16px;
  border-radius: 22px;
  background: rgba(var(--navy-900-rgb), .72);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background .2s ease, height .2s ease;
}
.topnav.is-scrolled .nav__bar { background: rgba(var(--navy-950-rgb), .9); height: 64px; }

.nav__logo { display: flex; align-items: center; flex: none; margin-right: 8px; }
.nav__logo img { height: 50px; width: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.3)); }

.nav__links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px; border-radius: 12px;
  font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.nav__link svg { width: 18px; height: 18px; opacity: .85; }
.nav__link:hover { background: rgba(var(--accent-rgb), .12); color: #fff; }
.nav__link[aria-current="page"] { background: rgba(var(--accent-rgb), .16); color: #fff; }
.nav__link--shop {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: var(--gold-ink);
  box-shadow: 0 3px 0 var(--gold-edge), inset 0 1px 0 rgba(255,255,255,.5);
}
.nav__link--shop:hover,
.nav__link--shop[aria-current="page"] { background: linear-gradient(180deg, #fff0a8, var(--gold)); color: var(--gold-ink); }
.nav__badge {
  position: absolute; top: -6px; right: -2px;
  padding: 1px 7px; border-radius: 6px; line-height: 1.4; white-space: nowrap; pointer-events: none;
  background: var(--red); border: 1px solid var(--red-edge);
  color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .06em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.nav__online {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  padding: 0 12px; height: 40px; border-radius: 12px;
  background: rgba(95, 227, 106, .1); border: 1px solid rgba(95, 227, 106, .3);
  font-size: 13px; font-weight: 800; color: #b9f5bd;
}
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); }
.nav__burger svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1080px) {
  .nav__online { display: none; }
  .nav__link span.hide-md { display: none; }
}
@media (max-width: 920px) {
  .nav__links, .nav__right .pbtn--ghost { display: none; }
  .nav__burger { display: grid; }
  .topnav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: calc(var(--nav-h) + 10px); left: 16px; right: 16px;
    padding: 12px; border-radius: 20px;
    background: rgba(var(--navy-950-rgb), .97); border: 1px solid var(--line-strong);
    pointer-events: auto;
  }
  .topnav.is-open .nav__link { height: 52px; font-size: 15px; }
}

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid; align-items: end;
  padding: 150px 0 150px;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -20px; z-index: -2;
  background: var(--hero-img) center 30% / cover no-repeat;
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(var(--navy-950-rgb), 0) 0%, rgba(var(--navy-950-rgb), .35) 70%),
    linear-gradient(180deg, rgba(var(--navy-950-rgb), .55) 0%, rgba(var(--navy-950-rgb), .05) 30%, rgba(var(--navy-950-rgb), .55) 62%, var(--navy-950) 100%);
}
.hero__inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero__logo {
  width: min(460px, 78vw); height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.hero__title { font-size: clamp(38px, 6.2vw, 76px); max-width: 16ch; }
.hero__title .hl { color: var(--gold); }
.hero__sub { font-size: clamp(16px, 2vw, 20px); color: var(--text-soft); max-width: 54ch; margin: 0; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 6px; }
.hero__proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  margin: 8px 0 0; padding: 0; list-style: none;
  font-size: 14px; font-weight: 800; color: var(--text-soft);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--green); }

.live-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(var(--navy-950-rgb), .7); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-weight: 800; font-size: 14px; color: var(--text-soft);
}
.live-chip strong { color: #fff; font-size: 16px; }

/* Vague entre sections */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; width: 100%; display: block; }

/* ---------- Bandeau offre limitée --------------------------------------- */

.promo {
  position: relative; z-index: 2;
  margin-top: -70px;
}
.promo__card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 18px 20px 18px 18px; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(142, 75, 255, .55), transparent 60%),
    linear-gradient(135deg, #2a1256, #160a33);
  border: 2px solid rgba(200, 162, 255, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.12);
}
.promo__art { width: 92px; height: 92px; border-radius: 18px; object-fit: cover; border: 2px solid rgba(200,162,255,.5); }
.promo__text h2 { font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; }
.promo__text p { margin: 4px 0 0; color: #e2d4ff; font-weight: 700; }
.promo__side { display: flex; align-items: center; gap: 18px; }

.countdown { display: flex; gap: 8px; }
.countdown__unit {
  min-width: 58px; padding: 6px 4px; border-radius: 12px; text-align: center;
  background: rgba(5, 3, 18, .55); border: 1px solid rgba(200, 162, 255, .3);
}
.countdown__unit b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 400; }
.countdown__unit span { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--rise-300); }

@media (max-width: 900px) {
  .promo__card { grid-template-columns: auto 1fr; }
  .promo__side { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .promo__card { grid-template-columns: 1fr; }
  .promo__art { display: none; }
  .countdown__unit { min-width: 50px; }
  .promo__side .pbtn { width: 100%; }
}

/* ---------- Sections --------------------------------------------------- */

.section { position: relative; padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* Bande bleu Academy (4 bandes plates, DA) */
.band-sky {
  background:
    linear-gradient(180deg, #2f8ce8, #1c6bcb);
  color: #fff;
}
.band-sky .eyebrow { color: #fff; }
.band-sky .lead { color: #e6f3ff; }
.band-sky .section-title { text-shadow: 0 4px 0 var(--blue-900); }

.band-rise {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(142, 75, 255, .35), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(94, 42, 194, .35), transparent 70%),
    linear-gradient(180deg, var(--rise-900), #0d0620);
}
.band-rise .eyebrow { color: var(--rise-300); }

.band-navy { background: var(--navy-950); }

.wave-top, .wave-bottom { position: absolute; left: 0; width: 100%; height: 70px; display: block; pointer-events: none; }
.wave-top { top: -69px; }
.wave-bottom { bottom: -69px; transform: scaleY(-1); z-index: 1; }

/* ---------- Rejoindre ---------------------------------------------------- */

.join { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.steps { display: grid; gap: 14px; margin: 30px 0 32px; padding: 0; list-style: none; counter-reset: s; }
.step {
  counter-increment: s;
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  padding: 14px 18px 14px 14px; border-radius: var(--r-md);
  background: rgba(5, 25, 60, .28); border: 1px solid rgba(255, 255, 255, .22);
}
.step::before {
  content: counter(s);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: #fff; color: var(--blue-700);
  font-family: var(--font-display); font-size: 28px;
  box-shadow: 0 4px 0 var(--blue-900);
}
.step b { display: block; font-size: 17px; }
.step span { color: #dcecff; font-size: 14px; font-weight: 600; }
.join__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.join__note { font-size: 13px; color: #dcecff; font-weight: 700; }

.launcher-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 22px;
  background: linear-gradient(180deg, var(--card-hi), var(--navy-900));
  border: 3px solid var(--blue-900);
  box-shadow: 0 0 0 2px var(--sky) inset, 0 24px 60px rgba(4, 20, 50, .55);
  transform: rotate(1.2deg);
}
.launcher-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.launcher-card__top img { width: 56px; }
.launcher-card__top b { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.launcher-card__top small { display: block; color: var(--text-muted); font-weight: 700; }
.launcher-card__shot {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--hero-img) center / cover;
  border: 2px solid var(--line-strong);
}
.launcher-card__shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,15,36,.9));
}
.launcher-card__play {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.launcher-card__play .live-chip { background: rgba(5,15,36,.8); }
.launcher-card__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.launcher-card__row div {
  padding: 10px; border-radius: 12px; text-align: center;
  background: rgba(var(--accent-rgb), .08); border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: var(--text-muted);
}
.launcher-card__row div b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; color: #fff; }
.sticker {
  position: absolute; top: -18px; right: 22px;
  padding: 8px 14px; border-radius: 12px;
  background: var(--gold); color: var(--gold-ink); border: 2px solid var(--gold-edge);
  font-family: var(--font-display); font-size: 18px; transform: rotate(4deg);
  box-shadow: 0 4px 0 var(--gold-edge);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.stat {
  padding: 22px 20px; border-radius: var(--r-lg);
  background: #fff; color: var(--navy-900);
  box-shadow: 0 6px 0 var(--blue-900);
}
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; color: var(--blue-700); }
.stat span { font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #3a5378; }

@media (max-width: 960px) {
  .join { grid-template-columns: 1fr; gap: 44px; }
  .launcher-card { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Saison The Rise ---------------------------------------------- */

.rise { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.rise__gallery { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rise__gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg);
  border: 2px solid rgba(200, 162, 255, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.rise__gallery img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 34px; }
.feature {
  padding: 18px; border-radius: var(--r-md);
  background: rgba(142, 75, 255, .08); border: 1px solid rgba(200, 162, 255, .22);
}
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  background: linear-gradient(180deg, var(--rise-500), var(--rise-600)); border: 1px solid #3b1a82;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature b { display: block; font-size: 17px; margin-bottom: 2px; }
.feature p { margin: 0; font-size: 14px; color: #cbb9ef; }

@media (max-width: 960px) {
  .rise { grid-template-columns: 1fr; }
  .rise__gallery { order: 2; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- Cartes produits (accueil + boutique) --------------------------- */

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 22px 44px rgba(0, 0, 0, .45); }
.product--featured { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(255, 213, 79, .12), 0 20px 44px rgba(0,0,0,.4); }
.product__ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 9px;
  font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold-edge);
  box-shadow: 0 3px 0 var(--gold-edge);
}
.product__ribbon--rise { background: var(--rise-500); color: #fff; border-color: #3b1a82; box-shadow: 0 3px 0 #3b1a82; }
.product__ribbon--green { background: var(--green); color: #0d2c11; border-color: var(--green-edge); box-shadow: 0 3px 0 var(--green-edge); }
.product__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, var(--glow-hi), var(--navy-850));
}
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product:hover .product__media img { transform: scale(1.05); }
.product__media--contain img { object-fit: contain; padding: 18px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.product__bonus {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #16361c, #1d4a24); border-block: 1px solid #46a84b;
  color: #b9f5bd; font-size: 13px; font-weight: 900;
}
.product__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.product__name { font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-weight: 400; }
.product__desc { margin: 0; color: var(--text-muted); font-size: 14px; font-weight: 600; flex: 1; }
.product__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price { display: grid; line-height: 1.1; }
.price s { color: var(--text-dim); font-size: 14px; font-weight: 700; }
.price b { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--gold); }
.price small { color: var(--text-dim); font-size: 12px; font-weight: 700; }
.price--free b { color: #8be98f; }

@media (max-width: 1020px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .products { grid-template-columns: 1fr; } }

/* Objectif communautaire */
.goal {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850)); border: 1px solid var(--line);
}
.goal__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255, 213, 79, .12); border: 1px solid rgba(255, 213, 79, .35); color: var(--gold);
}
.goal__icon svg { width: 26px; height: 26px; }
.goal__label { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; margin-bottom: 8px; }
.goal__label span { color: var(--text-muted); font-weight: 700; font-size: 14px; }
.bar {
  height: 18px; border-radius: 999px; overflow: hidden;
  background: var(--well); border: 1px solid var(--line);
}
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #cff3ff, #8fdcff 45%, #2a8de0);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
  animation: bar-move 1.2s linear infinite;
  background-size: 22.6px 22.6px, 100% 100%;
}
@keyframes bar-move { to { background-position: 22.6px 0, 0 0; } }
.goal__pct { font-family: var(--font-display); font-size: 34px; color: var(--sky); }
@media (max-width: 640px) {
  .goal { grid-template-columns: auto 1fr; }
  .goal__pct { grid-column: 2; font-size: 26px; }
}

.buyer {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 213, 79, .14), rgba(255, 213, 79, .03));
  border: 1px solid rgba(255, 213, 79, .35);
}
.buyer img { width: 52px; height: 52px; border-radius: 12px; image-rendering: pixelated; border: 2px solid var(--gold-edge); }
.buyer small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.buyer b { font-size: 18px; }

.shop-teaser__meta { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-top: 22px; }
@media (max-width: 860px) { .shop-teaser__meta { grid-template-columns: 1fr; } }

/* ---------- Actualités ---------------------------------------------------- */

.news { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--navy-800); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-850); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 18px 20px 20px; display: grid; gap: 8px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); font-weight: 700; }
.news-card h3 { font-family: var(--font-body); font-weight: 900; font-size: 19px; line-height: 1.3; }
.news-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.news-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-weight: 900; font-size: 14px; }
.news-card--big h3 { font-size: 24px; }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } .news-card--big { grid-column: 1 / -1; } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }

/* ---------- Votes / podium ---------------------------------------------- */

.votes { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.rewards { display: grid; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.rewards li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text-soft); }
.rewards li i {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: rgba(var(--accent-rgb), .1); border: 1px solid var(--line); font-style: normal; font-size: 18px;
}
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; }
.podium__col { display: grid; justify-items: center; gap: 8px; }
.podium__col img { height: 170px; width: auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
.podium__name { font-weight: 900; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__step {
  width: 100%; display: grid; place-items: center; align-content: center; gap: 2px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #2f8ce8 0 33%, #2981de 33% 66%, #2276d5 66% 100%);
  border: 2px solid var(--blue-900); box-shadow: inset 0 0 0 2px var(--sky);
}
.podium__step b { font-family: var(--font-display); font-size: 36px; font-weight: 400; line-height: 1; text-shadow: 0 3px 0 var(--blue-900); }
.podium__step span { font-size: 13px; font-weight: 900; color: #e6f3ff; }
.podium__col--1 .podium__step { height: 150px; background: linear-gradient(180deg, #ffe07a 0 33%, #ffd54f 33% 66%, #f2a516 66% 100%); border-color: var(--gold-edge); box-shadow: inset 0 0 0 2px #fff0a8; }
.podium__col--1 .podium__step b { color: #fff; text-shadow: 0 3px 0 var(--gold-edge); }
.podium__col--1 .podium__step span { color: var(--gold-ink); }
.podium__col--2 .podium__step { height: 118px; }
.podium__col--3 .podium__step { height: 96px; }
.podium__col--1 img { height: 200px; }
@media (max-width: 960px) { .votes { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .podium__col img { height: 120px; } .podium__col--1 img { height: 140px; } }

/* ---------- Discord ------------------------------------------------------- */

.discord {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: var(--r-xl);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(120, 134, 255, .45), transparent 60%),
    linear-gradient(135deg, #3b44b8, #252a7a);
  border: 2px solid #8f98ff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.discord .eyebrow { color: #dfe2ff; }
.discord__list { display: grid; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; font-weight: 800; }
.discord__list li { display: flex; align-items: center; gap: 10px; }
.discord__list svg { width: 20px; height: 20px; color: #b9f5bd; }
.discord__widget {
  padding: 22px; border-radius: var(--r-lg);
  background: rgba(15, 18, 55, .55); border: 1px solid rgba(223, 226, 255, .25);
}
.discord__server { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.discord__server img { width: 64px; height: 64px; object-fit: contain; border-radius: 18px; background: #1b1f5c; padding: 4px; }
.discord__server b { font-size: 20px; display: block; }
.discord__counts { display: flex; gap: 16px; font-size: 14px; font-weight: 800; color: #dfe2ff; }
.discord__counts span { display: inline-flex; align-items: center; gap: 6px; }
.discord__counts i { width: 9px; height: 9px; border-radius: 50%; background: #5fe36a; }
.discord__counts i.off { background: #8e97a6; }
.discord__avatars { display: flex; margin-bottom: 18px; }
.discord__avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #252a7a; margin-left: -10px; image-rendering: pixelated; }
.discord__avatars img:first-child { margin-left: 0; }
@media (max-width: 900px) { .discord { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- CTA final ----------------------------------------------------- */

.final {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 130px 0 120px; text-align: center;
}
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--navy-900) 0%, rgba(var(--navy-900-rgb), .7) 40%, rgba(var(--navy-950-rgb), .92) 100%),
    var(--hero-img) center 60% / cover;
}
.final .section-title { font-size: clamp(44px, 7vw, 92px); }
.final .lead { margin: 0 auto 30px; }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Footer -------------------------------------------------------- */

.footer { background: #040b1b; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__brand img { width: 170px; margin-bottom: 14px; }
.footer__brand p { color: var(--text-dim); font-size: 14px; margin: 0; max-width: 34ch; }
.footer h2 { font-family: var(--font-body); font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-muted); font-weight: 700; font-size: 15px; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(var(--accent-rgb), .08); border: 1px solid var(--line);
}
.socials a:hover { background: rgba(var(--accent-rgb), .18); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px; font-weight: 700;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Boutique
   ========================================================================== */

.shop-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 150px 0 70px;
}
.shop-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--navy-950-rgb), .7), rgba(var(--navy-950-rgb), .78) 50%, var(--navy-950)),
    var(--hero-img) center 35% / cover;
}
.shop-hero__row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-hero h1 { font-size: clamp(40px, 6vw, 70px); text-transform: uppercase; }
.shop-hero h1 .hl { color: var(--gold); }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.trust .tag { padding: 7px 12px; font-size: 13px; background: rgba(var(--navy-950-rgb), .6); }
.trust svg { width: 16px; height: 16px; color: var(--green); }

.cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 34px;
}
.cat {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(13, 33, 67, .8); border: 2px solid var(--line);
  text-align: left; font-weight: 900; font-size: 15px; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--lip);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s, background .12s;
}
.cat:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--lip); border-color: var(--line-strong); }
.cat img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; flex: none; }
.cat small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.cat[aria-selected="true"] {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  border-color: var(--gold-edge); color: var(--gold-ink);
  box-shadow: 0 5px 0 var(--gold-edge);
}
.cat[aria-selected="true"] small { color: #6b4a00; }
.cat .nav__badge { top: -10px; right: 10px; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat { padding: 10px 12px; font-size: 13px; } .cat img { width: 38px; height: 38px; } }

.shop { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding: 40px 0 110px; }
.shop__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.shop__head h2 { font-size: 36px; text-transform: uppercase; }
.shop__head p { margin: 6px 0 0; color: var(--text-muted); font-weight: 600; max-width: 60ch; }
.select {
  height: 44px; padding: 0 38px 0 14px; border-radius: 12px;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a6c4e4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 12px center no-repeat;
  border: 1px solid var(--line-strong); color: #fff; font: inherit; font-weight: 800; font-size: 14px;
  appearance: none;
}
.shop .products { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop .product__name { font-size: 22px; }
@media (max-width: 1180px) { .shop .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px)  { .shop { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .shop .products { grid-template-columns: 1fr; } }

.side { position: sticky; top: 100px; display: grid; gap: 16px; }
.panel {
  padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line);
}
.panel h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.panel > p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.panel--account {
  background: linear-gradient(180deg, #fff7dc, #ffe9a8);
  border: 2px solid var(--gold-edge); color: var(--gold-ink);
  box-shadow: 0 6px 0 var(--gold-edge);
}
.panel--account > p { color: #6b4a00; }
.panel--account label { display: block; font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.input {
  width: 100%; height: 48px; padding: 0 14px 0 50px; border-radius: 12px;
  border: 2px solid #d9b25a; background: #fff; color: var(--gold-ink);
  font: inherit; font-weight: 800;
}
.input:focus { outline: 3px solid var(--gold-lo); outline-offset: 1px; }
.input-wrap { position: relative; margin-bottom: 12px; }
.input-wrap img {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; background: #f3dfa6;
}
.panel__fine { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 800; color: #7a5a14; }
.panel__fine svg { width: 14px; height: 14px; }

.cart-empty { color: var(--text-dim); font-weight: 700; font-size: 14px; text-align: center; padding: 14px 0; }
.cart-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 800; }
.cart-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.cart-item small { display: block; color: var(--text-dim); font-weight: 700; }
.cart-item button { width: 28px; height: 28px; border-radius: 8px; color: var(--text-dim); }
.cart-item button:hover { background: rgba(232, 87, 76, .2); color: #ff8a80; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-bottom: 14px; border-top: 1px dashed var(--line-strong); font-weight: 900; }
.cart-total b { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--gold); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px;
  border-radius: 999px; background: var(--red); border: 1px solid var(--red-edge);
  font-family: var(--font-body); font-size: 12px; font-weight: 900; vertical-align: middle;
}

.help-links { display: grid; gap: 8px; }
.help-links a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(var(--accent-rgb), .06); border: 1px solid var(--line); font-weight: 800; font-size: 14px;
}
.help-links a:hover { background: rgba(var(--accent-rgb), .14); }
.help-links svg { width: 18px; height: 18px; color: var(--sky); }

.ptoast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: var(--card-hi); border: 2px solid #46a84b; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  font-weight: 800;
  transform: translate(-50%, 140%); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease, visibility .3s;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.ptoast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.ptoast img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }

/* Mobile : barre d'achat collante */
.mobile-cart {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  padding: 10px 10px 10px 16px; border-radius: 18px;
  background: rgba(var(--navy-950-rgb), .95); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  align-items: center; justify-content: space-between; gap: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mobile-cart b { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--gold); }
@media (max-width: 960px) { .mobile-cart.has-items { display: flex; } }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.discord__more {
  display: grid; place-items: center; height: 40px; padding: 0 12px; margin-left: -10px;
  border-radius: 999px; background: #5865f2; border: 3px solid #252a7a;
  font-size: 13px; font-weight: 900;
}
[hidden] { display: none !important; }

@media (max-width: 520px) {
  .pbtn--lg { width: 100%; padding: 0 16px; font-size: 16px; }
  .goal__label { flex-direction: column; gap: 2px; }
  .ptoast { bottom: 100px; width: max-content; max-width: calc(100% - 32px); }
}
