:root {
  --bg: #020613;
  --bg2: #050b1b;
  --surface: rgba(7, 14, 30, 0.84);
  --surface2: rgba(10, 20, 40, 0.92);
  --surface3: rgba(13, 27, 52, 0.96);

  --line: rgba(120, 210, 255, .16);
  --line2: rgba(120, 230, 255, .30);

  --text: #f5f8ff;
  --muted: #b5c1d6;
  --soft: #78869e;

  --cyan: #37e6d0;
  --cyan2: #1dbba9;
  --blue: #78a7ff;
  --violet: #8c7dff;
  --ember: #ff8a63;
  --red: #ff6f7f;

  --shadow: 0 30px 90px rgba(0,0,0,.48);
  --radius: 28px;
  --radius2: 18px;
  --container: 1180px;
  --wide: 1320px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --yggdrasil-bg-image: url("/assets/yggdrasil.png");
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2,6,19,.30), rgba(2,6,19,.88)),
    var(--yggdrasil-bg-image) center top / cover fixed no-repeat,
    radial-gradient(circle at 18% 12%, rgba(55,230,208,.10), transparent 30%),
    linear-gradient(180deg, #020613 0%, #050b1b 48%, #02040d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,138,99,.14), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(55,230,208,.12), transparent 28%),
    linear-gradient(90deg, rgba(2,6,19,.78), rgba(2,6,19,.34), rgba(2,6,19,.78));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,6,19,.16), rgba(2,6,19,.68) 58%, rgba(2,6,19,.90)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 128px);
}

a {
  color: #8ff8ec;
  text-decoration-color: rgba(143,248,236,.32);
  text-underline-offset: 3px;
}

a:hover { color: var(--text); }

img, svg, video { max-width: 100%; }

button, input, select, textarea { font: inherit; }

.v4-shell {
  min-height: 100vh;
}

.v4-nav {
  width: min(var(--wide), calc(100% - 36px));
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(4, 10, 24, .78);
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 12px;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.v4-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -.04em;
  font-size: 22px;
}

.v4-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background:
    url("/assets/yggdrasil-brand-mark.png") center / cover no-repeat,
    url("/assets/yggdrasil.png") center / cover no-repeat,
    linear-gradient(145deg, #0e1b34, #050a17);
  color: transparent;
  overflow: hidden;
  box-shadow:
    inset 0 0 24px rgba(55,230,208,.14),
    0 0 28px rgba(55,230,208,.10);
}

.v4-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(120,210,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.20);
}

.v4-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  padding: 11px 15px;
  border-radius: 13px;
}

.v4-links a:hover,
.v4-links a.active {
  color: var(--text);
  background: rgba(55,230,208,.10);
}

.v4-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v4-container {
  width: min(var(--wide), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 70px) 0 clamp(60px, 7vw, 110px);
}

.v4-stack {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.v4-hero {
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(8,17,35,.92), rgba(2,7,18,.88)),
    radial-gradient(circle at 84% 16%, rgba(55,230,208,.14), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(255,138,99,.10), transparent 32%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(14px);
}

.v4-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(55,230,208,.10), transparent 38%),
    linear-gradient(300deg, rgba(120,167,255,.09), transparent 46%);
  pointer-events: none;
}

.v4-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.v4-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(55,230,208,.30);
  background: rgba(55,230,208,.10);
  color: #dffdfa;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.v4-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(55,230,208,.75);
}

.v4-title {
  margin: 18px 0 18px;
  max-width: 920px;
  color: var(--text);
  font-size: clamp(46px, 7vw, 96px);
  line-height: .91;
  letter-spacing: -.075em;
  font-weight: 950;
}

.v4-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.v4-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.v4-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px;
  border: 1px solid rgba(55,230,208,.28);
  background: linear-gradient(135deg, #47f0d8, #5c8dff);
  color: #04101a;
  padding: 14px 20px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(55,230,208,.16);
}

.v4-btn:hover {
  color: #04101a;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.v4-btn.secondary {
  background: rgba(245,248,255,.06);
  color: var(--text);
  border-color: rgba(245,248,255,.14);
  box-shadow: none;
}

.v4-aside-card,
.v4-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,20,40,.86), rgba(4,10,24,.92));
  box-shadow: 0 18px 54px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}

.v4-aside-card {
  padding: 26px;
}

.v4-aside-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.v4-status-list {
  display: grid;
  gap: 10px;
}

.v4-status-row {
  min-height: 48px;
  border: 1px solid rgba(120,210,255,.12);
  border-radius: 15px;
  background: rgba(0,0,0,.22);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v4-dot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 850;
}

.v4-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(55,230,208,.78);
}

.v4-state {
  min-width: 62px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(55,230,208,.12);
  color: var(--cyan);
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.v4-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.v4-section-title {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 950;
}

.v4-section-text {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.v4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.v4-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.v4-card {
  padding: 24px;
}

.v4-card-media {
  min-height: 180px;
  border-radius: 20px;
  border: 1px solid rgba(120,210,255,.12);
  background:
    linear-gradient(180deg, rgba(2,6,19,.10), rgba(2,6,19,.74)),
    var(--yggdrasil-bg-image) center / cover no-repeat,
    linear-gradient(135deg, #102341, #060d1b);
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: rgba(245,248,255,.92);
  font-size: 44px;
  font-weight: 950;
  overflow: hidden;
}

.v4-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.v4-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.v4-card-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.v4-price {
  margin-top: 16px;
  font-size: 46px;
  line-height: .95;
  font-weight: 950;
  letter-spacing: -.07em;
  color: var(--text);
}

.v4-price small {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}

.v4-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 850;
  font-size: 13px;
}

.v4-field input,
.v4-field select,
.v4-field textarea,
select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(120,210,255,.16);
  border-radius: 15px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.v4-field input:focus,
.v4-field select:focus,
.v4-field textarea:focus,
select:focus,
input:focus,
textarea:focus {
  border-color: rgba(55,230,208,.50);
  box-shadow: 0 0 0 4px rgba(55,230,208,.08);
}

.v4-banner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10,20,40,.70);
  padding: 16px 18px;
  color: var(--muted);
}

.v4-banner.error {
  border-color: rgba(255,111,127,.28);
  background: rgba(120,28,36,.18);
  color: #ffd7dd;
}

.v4-footer {
  width: min(var(--wide), calc(100% - 36px));
  margin: 0 auto 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(4,10,24,.72);
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}

.v4-footer a {
  color: var(--muted);
  text-decoration: none;
}

.v4-footer a:hover {
  color: var(--text);
}

.v4-page-simple {
  min-height: 72vh;
  display: grid;
  align-items: center;
}

.v4-hidden {
  display: none !important;
}

.is-selected,
.v4-card.is-selected {
  border-color: rgba(55,230,208,.55);
  box-shadow:
    0 0 0 1px rgba(55,230,208,.16),
    0 22px 70px rgba(0,0,0,.42);
}

@media (max-width: 980px) {
  .v4-nav {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .v4-links,
  .v4-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .v4-hero-inner {
    grid-template-columns: 1fr;
  }

  .v4-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .v4-nav,
  .v4-container,
  .v4-footer {
    width: min(100% - 22px, var(--wide));
  }

  .v4-title {
    font-size: clamp(40px, 13vw, 58px);
  }

  .v4-hero-inner,
  .v4-card,
  .v4-aside-card {
    padding: 22px;
  }

  .v4-btn {
    width: 100%;
  }
}

/* ==========================================================
   V4 - Assets existants réutilisés proprement
   ========================================================== */

.v4-card-media {
  position: relative;
  isolation: isolate;
  min-height: 210px;
  padding: 0;
  background-size: cover !important;
  background-position: center !important;
}

.v4-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 19, 0.08), rgba(2, 6, 19, 0.82)),
    radial-gradient(circle at 20% 10%, rgba(55, 230, 208, 0.18), transparent 32%);
}

.v4-card-media > span {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: start;
  margin: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 230, 255, 0.24);
  background: rgba(2, 6, 19, 0.66);
  color: #f5f8ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.v4-card-media.v4-media-generic {
  background-image:
    linear-gradient(180deg, rgba(2, 6, 19, 0.10), rgba(2, 6, 19, 0.80)),
    url("/assets/yggdrasil.png");
}

.v4-hero-visual {
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(120, 210, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(2, 6, 19, 0.04), rgba(2, 6, 19, 0.80)),
    url("/assets/yggdrasil.png") center / cover no-repeat;
  box-shadow: inset 0 0 70px rgba(2, 6, 19, 0.48);
  overflow: hidden;
}

.v4-game-asset-card {
  overflow: hidden;
}

.v4-game-asset-card .v4-card-media {
  margin: -24px -24px 20px;
  border-radius: 26px 26px 20px 20px;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.v4-game-asset-card:hover .v4-card-media::before {
  background:
    linear-gradient(180deg, rgba(2, 6, 19, 0.00), rgba(2, 6, 19, 0.74)),
    radial-gradient(circle at 20% 10%, rgba(55, 230, 208, 0.22), transparent 32%);
}

.v4-config-game-preview {
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid rgba(120, 210, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(2, 6, 19, 0.06), rgba(2, 6, 19, 0.82)),
    url("/assets/yggdrasil.png") center / cover no-repeat;
  box-shadow: inset 0 0 70px rgba(2, 6, 19, 0.48);
}


/* V4_PACK_GO_CARDS_START */
/* Cartes offres : on garde l'info principale en énorme Pack X Go */
.v4-offer-card-v2 {
  min-height: 300px;
  justify-content: space-between;
}

.v4-pack-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 31px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(55,230,208,.30);
  background: rgba(55,230,208,.10);
  color: #dffdfa;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.v4-pack-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(55,230,208,.75);
}

.v4-pack-title {
  margin: 18px 0 10px !important;
  font-size: clamp(34px, 3.2vw, 54px) !important;
  line-height: .92 !important;
  letter-spacing: -.075em !important;
  font-weight: 950 !important;
}

.v4-pack-desc {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55 !important;
  max-width: 42ch;
}

.v4-pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.v4-pack-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.14);
  background: rgba(0,0,0,.22);
  color: #c9d5ea;
  font-size: 12px;
  font-weight: 850;
}

.v4-offer-card-v2 .v4-price {
  margin-top: 22px !important;
  font-size: clamp(42px, 4vw, 64px) !important;
}

.v4-offer-card-v2 .v4-card-actions {
  padding-top: 18px;
  margin-top: auto !important;
}

.v4-offer-card-v2.is-selected {
  border-color: rgba(55,230,208,.62) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(55,230,208,.13), transparent 38%),
    linear-gradient(180deg, rgba(10,20,40,.90), rgba(4,10,24,.94)) !important;
}

@media (max-width: 640px) {
  .v4-pack-title {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .v4-offer-card-v2 .v4-price {
    font-size: clamp(40px, 12vw, 56px) !important;
  }
}
/* V4_PACK_GO_CARDS_END */


/* V4_OFFER_SPECS_START */
.v4-pack-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.v4-pack-spec {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid rgba(120, 210, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025)),
    rgba(0,0,0,.18);
}

.v4-pack-spec-label {
  display: block;
  color: #7f8ea8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.v4-pack-spec-value {
  display: block;
  color: #f5f8ff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.v4-pack-spec.is-soft .v4-pack-spec-value {
  color: #c4d0e5;
}

.v4-pack-spec.is-main {
  border-color: rgba(55, 230, 208, 0.30);
  background:
    radial-gradient(circle at 0 0, rgba(55,230,208,.12), transparent 46%),
    rgba(0,0,0,.20);
}

.v4-pack-spec.is-main .v4-pack-spec-value {
  color: #dffdfa;
}

.v4-summary-specs {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.v4-summary-specs .v4-pack-spec {
  padding: 10px 11px;
}

@media (max-width: 640px) {
  .v4-pack-specs {
    grid-template-columns: 1fr;
  }
}
/* V4_OFFER_SPECS_END */


/* V4_GAME_CONFIG_START */
.v4-game-config-panel {
  border: 1px solid rgba(120, 210, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(55,230,208,.10), transparent 36%),
    linear-gradient(180deg, rgba(10,20,40,.82), rgba(4,10,24,.88));
  box-shadow: 0 18px 54px rgba(0,0,0,.30);
  padding: clamp(20px, 2.6vw, 30px);
}

.v4-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.v4-config-help {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.v4-config-auto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.v4-config-auto-card {
  padding: 15px;
  border: 1px solid rgba(120,210,255,.13);
  border-radius: 17px;
  background: rgba(0,0,0,.20);
}

.v4-config-auto-card span {
  display: block;
  color: #7f8ea8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.v4-config-auto-card strong {
  display: block;
  color: #f5f8ff;
  font-size: 16px;
  font-weight: 950;
}

.v4-field select {
  cursor: pointer;
}

.v4-field select:disabled {
  opacity: .58;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .v4-config-grid,
  .v4-config-auto {
    grid-template-columns: 1fr;
  }
}
/* V4_GAME_CONFIG_END */

