:root {
  --bg: #07070a;
  --ink: #f3efe6;
  --muted: #9a958c;
  --panel: rgba(22, 21, 26, 0.72);
  --panel-line: rgba(233, 185, 73, 0.16);
  --gold: #e9b949;
  --gold-soft: #f5d98b;
  --gold-deep: #b6862b;
  --up: #4ade80;
  --err: #ff7a7a;
  --radius: 18px;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Atmosphere ---------- */
.bg {
  /* TEST : intensité uniforme de l'ombre (0 = transparent, 1 = noir) */
  --bg-scrim: 0.7;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 85% at 50% -5%, rgba(233, 185, 73, 0.18), transparent 50%),
    linear-gradient(
      180deg,
      rgba(7, 7, 10, var(--bg-scrim)),
      rgba(7, 7, 10, var(--bg-scrim))
    ),
    url("assets/background.png");
  background-size: cover, cover, cover;
  background-position: center, center, center top;
  filter: saturate(1.02);
}
.bg::after {
  /* trading-grid lines */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 185, 73, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 185, 73, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Shell ---------- */
.shell {
  /* Échelle globale de l'UI : agrandit tout en gardant les proportions.
     1 = taille d'origine, 1.1 = +10 %. La hauteur est compensée pour
     que la page tienne toujours sur un écran (pas de scroll). */
  --ui-scale: 1.1;
  zoom: var(--ui-scale);
  position: relative;
  height: calc(100svh / var(--ui-scale));
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(16px, 3.2vh, 34px) clamp(18px, 4vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 2vh, 22px);
}

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fade 0.7s 0.05s both;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.85);
}
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand__name small {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 9.5px;
  color: var(--gold);
  margin-top: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(12, 11, 14, 0.55);
  backdrop-filter: blur(6px);
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2.4s infinite;
}
.status strong {
  color: var(--gold-soft);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  align-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 20px);
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise 0.7s 0.1s both;
}
.title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-size: clamp(34px, 6.4vw, 68px);
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 18px 50px rgba(0, 0, 0, 0.65);
  animation: rise 0.7s 0.18s both;
}
.title__hl {
  background: linear-gradient(96deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.5;
  animation: rise 0.7s 0.26s both;
}
.perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  animation: rise 0.7s 0.34s both;
}
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #cdc7bb;
  padding: 7px 13px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(16, 15, 19, 0.5);
  backdrop-filter: blur(4px);
}
.perks li span {
  color: var(--gold);
  font-size: 10px;
}

/* ---------- Offers ---------- */
.offers {
  margin-top: clamp(4px, 1vh, 12px);
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  animation: rise 0.7s 0.42s both;
}
.card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: clamp(16px, 2.4vh, 24px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 185, 73, 0.4);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}
.card--featured {
  border-color: rgba(233, 185, 73, 0.55);
  background:
    linear-gradient(180deg, rgba(233, 185, 73, 0.08), rgba(22, 21, 26, 0.72) 38%);
  box-shadow:
    0 0 0 1px rgba(233, 185, 73, 0.35),
    0 30px 60px -30px rgba(233, 185, 73, 0.45);
}
.svg-trend {
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  opacity: 0.8;
  pointer-events: none;
}
.svg-trend svg {
  width: 100%;
  height: 100%;
}
.card__badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #1a1205;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 16px -8px rgba(233, 185, 73, 0.9);
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: 0.02em;
}
.card__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__tag--gold {
  color: var(--gold);
}
.card__price {
  font-family: var(--mono);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.card__price .num {
  font-size: clamp(30px, 4.4vw, 44px);
  color: var(--ink);
}
.card__price .cur {
  font-size: 20px;
  color: var(--gold);
}
.card__per {
  font-size: 12px;
  color: var(--muted);
}
.card--featured .card__per {
  color: var(--up);
}
.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: #c7c1b6;
}
.card__list li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: transparent;
  transition: color 0.2s ease, transform 0.08s ease;
}
.cta__label {
  position: relative;
  z-index: 1;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(96deg, var(--gold-soft), var(--gold));
  transform: translateX(-101%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta:hover {
  color: #1a1205;
}
.cta:hover::before {
  transform: translateX(0);
}
.cta:active {
  transform: scale(0.99);
}
.cta--primary {
  color: #1a1205;
  border-color: transparent;
}
.cta--primary::before {
  transform: translateX(0);
}
.cta--primary:hover::before {
  filter: brightness(1.06);
}
.cta:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}
.cta[data-loading="true"] {
  cursor: progress;
  opacity: 0.75;
}

/* ---------- Footer / error ---------- */
.secure-note {
  max-width: 70ch;
  margin: 6px auto 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  animation: rise 0.7s 0.46s both;
}

.error {
  min-height: 1.1em;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--err);
  animation: rise 0.3s both;
}
.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ded8cd;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.7);
  animation: fade 0.7s 0.5s both;
}
.bottom__links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bottom__copy {
  color: #b3ada1;
  letter-spacing: 0.14em;
}
.bottom__links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.bottom__links a:hover {
  color: var(--gold);
}
.bottom i {
  color: var(--gold-deep);
  font-style: normal;
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  body {
    overflow: auto;
  }
  .shell {
    zoom: 1;
    height: auto;
    min-height: 100svh;
  }
  .offers {
    grid-template-columns: 1fr;
  }
  .status {
    display: none;
  }
}

/* ---------- Legal / document pages ---------- */
body.doc {
  overflow: auto;
}
body.doc .shell {
  display: block;
  height: auto;
  min-height: 100svh;
  max-width: 820px;
}
body.doc .top {
  margin-bottom: clamp(20px, 4vh, 36px);
}
.doc-body {
  background: rgba(12, 11, 15, 0.74);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: clamp(22px, 4vw, 46px);
  margin-bottom: clamp(20px, 4vh, 36px);
  text-align: left;
  animation: rise 0.6s 0.1s both;
}
.doc-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.05;
  margin: 10px 0 6px;
}
.doc-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.doc-body section {
  margin-top: 24px;
}
.doc-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.doc-body p,
.doc-body li {
  color: #cfc9bd;
  font-size: 14.5px;
  line-height: 1.65;
}
.doc-body p + p {
  margin-top: 10px;
}
.doc-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.doc-body li {
  margin-top: 6px;
}
.doc-body a {
  color: var(--gold);
  text-decoration: none;
}
.doc-body a:hover {
  text-decoration: underline;
}
.doc-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(233, 185, 73, 0.06);
  font-size: 13.5px;
  color: #d9d3c7;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
