/* ============================================================
   OFFLINE — Boutique FiveM
   Feuille de style principale (asset Tebex)
   ------------------------------------------------------------
   - Mobile-first, responsive
   - Mode sombre (par défaut) + mode clair via [data-theme]
   - Accent bleu #2f65bd, palette construite autour
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   TOKENS / VARIABLES
   ============================================================ */
:root {
  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  /* brand accent (constant across themes) */
  --accent: #2f65bd;
  --accent-bright: #5089e6;
  --accent-deep: #244e93;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- DARK (default) ---------- */
:root,
[data-theme="dark"] {
  --bg: #080b12;
  --bg-grad-1: #0c1320;
  --bg-grad-2: #080b12;
  --surface: #11192a;
  --surface-2: #182238;
  --surface-3: #1f2c46;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --text: #eef2fa;
  --text-muted: #93a0b8;
  --text-faint: #5f6c84;

  --accent-soft: rgba(47,101,189,.16);
  --accent-line: rgba(80,137,230,.45);
  --on-accent: #ffffff;

  --online: #3fcf6b;
  --online-soft: rgba(63,207,107,.14);
  --bonus: #ffce5c;
  --bonus-soft: rgba(255,206,92,.14);

  --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
  --shadow-card: 0 12px 32px -18px rgba(0,0,0,.7);
  --glow: 0 0 0 1px rgba(80,137,230,.35), 0 18px 60px -22px rgba(47,101,189,.7);

  --grid-line: rgba(255,255,255,.035);
  color-scheme: dark;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip; /* clip (pas hidden) : évite le scroll horizontal SANS casser le position:sticky du header */
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--bg-btn);
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 10px 28px -12px rgba(47,101,189,.85);
}
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(47,101,189,.95); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* Bouton Discord : fond sombre (thème), icône Discord en accent */
.btn-discord {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-discord:hover { background: var(--surface-3); border-color: var(--accent-line); }
.btn-discord svg { color: var(--accent-bright); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 2px 28px; font-size: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  /* flou + légère saturation derrière la navbar ; -webkit- pour Safari/iOS */
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  /* fond 100% opaque : RIEN ne passe derrière la navbar (ni texte ni titre).
     Le backdrop-filter ne sert plus qu'aux bords/coins éventuels. */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .4s var(--ease), border-color .4s;
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.brand-mark img { width: 20px; height: 20px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
}
.brand-name b { color: var(--accent-bright); }

.main-nav { display: none; gap: 4px; margin-left: 6px; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.status-pill {
  display: none;
  align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--text-muted);
  padding: 7px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 3px var(--online-soft);
  animation: pulse 2.4s var(--ease) infinite;
}
.status-pill b { color: var(--text); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: var(--r-pill);
  border: 2px solid var(--bg);
  transition: transform .25s var(--ease);
}
.cart-badge[data-empty="true"] { transform: scale(0); }

.login-btn { display: none; }

/* mobile menu button */
.menu-btn { display: grid; }
.menu-btn .ico-x { display: none; }
body.nav-open .menu-btn .ico-burger { display: none; }
body.nav-open .menu-btn .ico-x { display: block; }
@media (min-width: 961px) {
  .main-nav { display: flex; }
  .status-pill { display: inline-flex; }
  .login-btn { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ----- Menu mobile déroulant (sous 961px) ----- */
@media (max-width: 960px) {
  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    padding: 10px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  body.nav-open .main-nav a {
    font-size: 16px;
    padding: 13px 14px;
    border-radius: var(--r-sm);
  }
  /* Lien Connexion/Déconnexion : visible seulement dans le menu mobile, en accent */
  body.nav-open .main-nav .nav-login {
    display: block;
    margin-top: 6px;
    color: var(--accent-bright);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
  }
}
/* En desktop, le lien est masqué (le bouton Connexion du header sert déjà) */
.nav-login { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(26px, 4.5vw, 48px);
  padding-bottom: clamp(10px, 2vw, 22px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 72% 18%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
/* ghost power glyph watermark */
.hero-glyph {
  position: absolute; z-index: -1;
  right: -2%; top: 50%; transform: translateY(-50%);
  width: min(440px, 40vw); aspect-ratio: 1;
  opacity: .06;
  background: var(--text);
  -webkit-mask: center/contain no-repeat;
  mask: center/contain no-repeat;
  -webkit-mask-image: url('../assets/offline-logo.png');
  mask-image: url('../assets/offline-logo.png');
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-glyph { width: min(320px, 62vw); right: -12%; opacity: .05; }
}

.hero-inner { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }

.hero-copy { max-width: 640px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: .98;
  letter-spacing: -.02em;
  margin-top: 16px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop { position: relative; padding-top: clamp(28px, 4vw, 44px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px;
  justify-content: space-between; margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -.02em;
  margin-top: 14px;
}
.section-head p { color: var(--text-muted); max-width: 42ch; }

/* ============================================================
   PRODUCT GRID + CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-card);
}
.product-card.is-hidden { display: none; }

/* card cover */
.card-cover {
  position: relative;
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--cover-tint, var(--accent-soft)), transparent 70%),
    var(--surface-2);
}
.card-cover::before { /* faint grid texture */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .8;
}
.card-cover .cover-glyph {
  position: absolute; right: -10px; bottom: -22px;
  width: 130px; opacity: .10;
  -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
  -webkit-mask-image: url('../assets/offline-logo.png'); mask-image: url('../assets/offline-logo.png');
  background: var(--cover-fg, var(--text));
}
/* big focal number / label inside cover */
.cover-focal {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  text-align: center; line-height: 1;
  color: var(--cover-fg, var(--text));
}
.cover-focal .big { font-size: clamp(34px, 7vw, 46px); letter-spacing: -.02em; }
.cover-focal .sub {
  display: block; margin-top: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted);
}

/* category / corner tags */
.cover-tags { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
}
.tag-hot { color: #fff; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); border-color: transparent; }

/* card body */
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.card-cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 7px;
}
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.card-desc { margin-top: 7px; font-size: 13.5px; color: var(--text-muted); text-wrap: pretty; }
.card-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-price { display: flex; flex-direction: column; }
.card-price .amount {
  font-family: var(--font-mono); font-weight: 700; font-size: 21px; letter-spacing: -.01em;
}
.card-price .note { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.add-btn {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  transition: background .2s, transform .15s, color .2s;
}
.add-btn:hover { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: #fff; transform: translateY(-2px); }
.add-btn svg { width: 20px; height: 20px; }
.add-btn.added { background: var(--online); border-color: transparent; color: #fff; }

/* ============================================================
   COMPARATIF VIP
   ============================================================ */
.vip-compare-block.is-hidden { display: none; }
.compare-intro {
  color: var(--text-muted); font-size: 14.5px;
  margin: -6px 0 20px; max-width: 60ch;
}
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table th, .compare-table td {
  padding: 16px 22px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
/* feature label column */
.compare-table th.feat-col, .compare-table td.feat-col {
  text-align: left;
  width: 34%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td:not(.feat-col) { background: color-mix(in srgb, var(--accent) 4%, transparent); }

/* grade header cells */
.compare-head th { vertical-align: top; padding-top: 26px; padding-bottom: 22px; }
.grade-h { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.grade-h .g-tier {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-faint);
}
.grade-h .g-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.grade-h .g-price { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--accent-bright); margin-top: 2px; }
.grade-h .g-price span { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.vip-buy { margin-top: 12px; }

/* highlighted (popular) column */
.compare-table .col-pop { background: var(--accent-soft); }
.compare-table th.col-pop { box-shadow: inset 0 0 0 1px var(--accent-line); position: relative; }
.col-pop-ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px;
}

/* cell values */
.cv-yes { color: var(--online); display: inline-grid; place-items: center; }
.cv-yes svg { width: 20px; height: 20px; }
.cv-no { color: var(--text-faint); font-size: 18px; }
.cv-val { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--text); }
.cv-val.muted { color: var(--text-faint); font-weight: 500; }

@media (max-width: 600px) {
  .compare-table th, .compare-table td { padding: 13px 14px; }
  .compare-table th.feat-col, .compare-table td.feat-col { font-size: 13px; }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r);
}
.feature .f-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-bright);
  border: 1px solid var(--accent-line);
}
.feature .f-ico svg { width: 21px; height: 21px; }
.feature h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
.feature p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   MARKETING — barre promo, trust, avis, FAQ
   ============================================================ */
/* promo bar */
.promo-bar {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  color: #fff;
  font-size: 13.5px;
  overflow: hidden;
  transition: height .3s var(--ease), opacity .3s;
}
.promo-bar.closed { height: 0 !important; opacity: 0; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-block: 8px; position: relative; }
.promo-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
.promo-pill {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: var(--r-pill);
}
.promo-code { font-family: var(--font-mono); background: rgba(255,255,255,.16); padding: 1px 7px; border-radius: 5px; }
.promo-close {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  transition: background .2s;
}
.promo-close:hover { background: rgba(255,255,255,.18); }
.promo-close svg { width: 16px; height: 16px; }

/* hero trust row */
.hero-trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 24px; font-size: 14px; color: var(--text-muted);
}
.hero-trust b { color: var(--text); }
.trust-sep { width: 1px; height: 16px; background: var(--border-strong); }
.trust-ico { display: inline-flex; color: var(--accent-bright); }
.trust-ico svg { width: 17px; height: 17px; }
.trust-text { display: inline-flex; align-items: center; gap: 6px; }

/* FAQ */
.faq-wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 880px) { .faq-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.faq-intro h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -.02em; margin-top: 14px; }
.faq-intro p { color: var(--text-muted); margin-top: 14px; max-width: 36ch; text-wrap: pretty; }
.faq-intro .btn { margin-top: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: border-color .2s, background .2s;
}
.faq-item.is-open { border-color: var(--accent-line); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; color: inherit;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.faq-icon { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--accent-bright); border-radius: 2px; transition: transform .25s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }

/* Animation de dépliage : grid-template-rows 0fr→1fr (fiable tous navigateurs) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-in { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}
.faq-answer-in p { padding: 2px 20px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.faq-answer-in b { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-grad-2);
  padding-block: clamp(48px, 7vw, 72px) 30px;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px;
}
.footer-col a {
  display: block; padding: 6px 0; font-size: 14px; color: var(--text-muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-faint); }
.tebex-badge {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   CALL TO ACTION FINAL
   ============================================================ */
.final-cta-section { padding-top: 0; }
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(80% 130% at 85% 10%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.final-cta::before { /* faint grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 100% at 30% 50%, #000 20%, transparent 75%);
}
.cta-glyph {
  position: absolute; z-index: -1;
  right: -6%; top: 50%; transform: translateY(-50%);
  width: min(380px, 40vw); aspect-ratio: 1;
  opacity: .08;
  background: var(--accent-bright);
  -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
  -webkit-mask-image: url('../assets/offline-logo.png'); mask-image: url('../assets/offline-logo.png');
  pointer-events: none;
}
.cta-content { max-width: 620px; }
.final-cta h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 48px); line-height: 1.02; letter-spacing: -.02em;
  margin-top: 14px; text-wrap: balance;
}
.final-cta h2 .accent {
  color: transparent;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text;
}
.final-cta p {
  margin-top: 16px; color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px); max-width: 48ch; text-wrap: pretty;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .07s; }
  .reveal[data-d="2"] { transition-delay: .14s; }
  .reveal[data-d="3"] { transition-delay: .21s; }
}

/* ============================================================
   FIL D'ARIANE (breadcrumb — page produit package.html)
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb .sep { opacity: .5; }

/* ============================================================
   INTÉGRATION TEBEX
   ------------------------------------------------------------
   shared.css (CSS fonctionnel Tebex : panier, menu mobile,
   popups, toasts, checkout) utilise ses propres variables
   --color-*. On les "ponte" ici vers la palette OFFLINE pour
   que ces composants adoptent nos couleurs ET suivent le
   thème clair/sombre automatiquement (offline.css est chargé
   APRÈS shared.css, donc ces valeurs gagnent).
   ============================================================ */
:root {
  --color-text: var(--text);
  --color-text-darker: var(--text);
  --color-text-secondary: var(--text-muted);
  --color-bg: var(--surface);
  --color-brighter-bg: var(--surface-2);

  --color-primary: var(--accent-bright);
  --color-primary-hover: var(--accent);
  --color-primary-text: #ffffff;
  --color-primary-text-hover: #ffffff;

  --color-secondary: var(--surface-3);
  --color-secondary-hover: var(--surface-2);
  --color-secondary-text: var(--text);
  --color-secondary-text-hover: var(--text);

  --color-tertiary: transparent;
  --color-tertiary-hover: var(--surface-2);
  --color-tertiary-text: var(--text);
  --color-tertiary-text-hover: var(--text);

  --color-removed: #e5707a;
}

/* On neutralise l'image de fond par défaut de Tebex : notre design
   gère ses propres fonds (hero, sections). */
body::before { content: none !important; background: none !important; }

/* shared.css limite .site-header à content-width + le centre (margin auto)
   et ajoute du padding → marges vides sur les côtés. On annule pour que le
   fond + la bordure du header occupent 100 % de la largeur. Le contenu reste
   contraint par .wrap (à l'intérieur). */
.site-header {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* shared.css met un gap entre header / contenu / footer dans la grille .site
   (= la bande vide sous le header). Notre design gère ses propres espacements. */
.site { gap: 0; }

/* ----- En-tête page catégorie : titre à gauche + filtres à droite, compact ----- */
.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.cat-head h2 {
  order: -1; /* le titre reste toujours en premier, quel que soit l'ordre HTML */
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(23px, 3.2vw, 32px); letter-spacing: -.02em;
}
/* Filtres compacts dans l'en-tête (pills plus petites, pas de marge propre) */
.cat-head .cat-tabs { margin-bottom: 0; padding: 5px; gap: 6px; }
.cat-head .cat-tab { padding: 7px 14px; font-size: 13.5px; }

/* ----- Sélecteur de catégories (onglets-liens) sur category.html ----- */
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px; margin-bottom: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: fit-content; max-width: 100%;
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  color: var(--text-muted);
  padding: 9px 18px; border-radius: var(--r-pill);
  text-decoration: none;
  transition: color .2s, background .25s var(--ease);
}
.cat-tab:hover { color: var(--text); }
.cat-tab.active {
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 20px -10px rgba(47,101,189,.8);
}

/* ----- Vitrine des catégories sur l'accueil ----- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.cat-card {
  position: relative;
  display: flex; flex-direction: column;
  /* léger halo d'accent en haut de la carte pour la faire ressortir */
  background:
    radial-gradient(130% 80% at 50% 0%, var(--accent-soft), transparent 62%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .35s;
}
/* liseré d'accent en haut */
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
}
.cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-line);
  box-shadow: var(--glow);
}
/* La carte = uniquement la cover. Plus haute, et on réserve de la place en
   bas (padding-bottom) pour le bouton Découvrir posé dessus. */
.cat-card .card-cover { aspect-ratio: 4/3; border-bottom: none; padding-bottom: 56px; }
/* nom de catégorie en gros sur la cover, dégradé accent (visuel fort) */
.cat-card .cover-focal .big {
  font-size: clamp(28px, 4.6vw, 46px);
  color: transparent;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text;
}
.cat-card.is-hidden { display: none; }
/* Bouton Découvrir : posé en bas de la cover, centré */
.cat-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--accent-bright);
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  transition: gap .2s var(--ease), background .2s;
}
.cat-card .cat-go {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 2;
}
.cat-go svg { width: 18px; height: 18px; }
.cat-card:hover .cat-go { gap: 12px; background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Carte produit : image réelle qui remplit la zone de couverture */
.card-cover { text-decoration: none; }
/* Nom du package en gros focal dans la cover (style offline-store "DEBAN").
   Majuscule via CSS (filtre |upper indispo sur Tebex), retour à la ligne propre. */
.cover-focal { max-width: 92%; padding-inline: 8px; }
.cover-focal .big {
  text-transform: uppercase;
  text-wrap: balance;
  word-break: break-word;
  font-size: clamp(26px, 5.5vw, 40px);
}
.card-cover .image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card-title a { color: inherit; transition: color .2s; }
.card-title a:hover { color: var(--accent-bright); }
.add-btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.card-price .note del { color: var(--text-faint); }

/* Description du package : c'est du HTML (|raw). On l'aplatit en texte simple
   et on le tronque à 2 lignes pour garder une carte propre. */
.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc * {
  margin: 0; padding: 0;
  display: inline;
  font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;
}
.card-desc img, .card-desc br, .card-desc iframe, .card-desc h1, .card-desc h2, .card-desc h3 { display: none; }
.card-desc a { color: var(--text-muted); text-decoration: none; }

/* ----- Page produit (package.html) ----- */
.product-page .breadcrumb { margin-bottom: 22px; }
.product-detail {
  display: grid; gap: clamp(24px, 4vw, 48px); align-items: start;
}
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-media .image,
.product-media .media-slider {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  background: var(--surface-2);
}
.product-media .image-default {
  aspect-ratio: 16/10; display: grid; place-items: center;
}
.product-info .product-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: 18px;
}
.product-info .descr { margin-top: 24px; color: var(--text-muted); line-height: 1.7; }
.product-info .descr h1, .product-info .descr h2, .product-info .descr h3 {
  font-family: var(--font-display); color: var(--text); margin: 18px 0 8px;
}
.product-info .descr a { color: var(--accent-bright); }
/* Bloc d'actions Tebex (prix + boutons) sur la page produit */
.product-info .product-actions { margin-top: 8px; }
.product-info .product-actions .price {
  font-family: var(--font-mono); font-weight: 700; font-size: 26px; margin-bottom: 14px;
}

/* ----- Pages CMS / légales (ex: /terms/checkout) -----
   Tebex met ces pages dans une grille "sidebar | contenu". Quand la
   sidebar est vide, sa colonne réserve quand même l'espace → le texte
   est poussé à droite. On force une colonne unique centrée et on masque
   la sidebar pour que le texte soit au milieu de l'écran. */
.cms-page {
  display: block !important;       /* annule la grille sidebar/contenu */
}
.cms-page .store-text {
  max-width: 820px;
  margin-inline: auto;             /* centre le bloc de texte */
}
.cms-page .store-sidebar { display: none; }   /* sidebar vide masquée */

/* Moyens de paiement acceptés (footer obligatoire Tebex) */
.we-accept { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.we-accept img { height: 22px; width: auto; opacity: .75; transition: opacity .2s; }
.we-accept img:hover { opacity: 1; }
.footer-bottom .copyright { font-size: 13px; color: var(--text-faint); }

/* Le tiroir de navigation Tebex (overlay mobile) prend notre fond */
.site-navigation .menu { background: var(--bg) !important; }

/* Sur desktop, la navigation Tebex (.site-navigation) est remplacée par
   notre .main-nav inline dans le header → on la masque pour éviter le doublon.
   Sous 1000px, shared.css l'affiche en tiroir mobile (déclenché par le burger). */
@media (min-width: 961px) {
  .site-navigation:not(.navigation-vertical) { display: none; }
}

/* ============================================================
   PANIER TEBEX — habillage OFFLINE
   ------------------------------------------------------------
   Le HTML du panier est généré par main.js. On ne peut pas le
   changer, donc on stylise ses classes (.basket-*). offline.css
   étant chargé après shared.css, ces règles l'emportent.
   ============================================================ */
.basket-popup-content {
  width: min(470px, 100vw);
  max-width: min(470px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.7);
}

/* En-tête (nom du joueur) */
.basket .basket-header {
  padding: 22px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.basket .basket-title { gap: 10px; text-transform: none; letter-spacing: 0; }
.basket .basket-title::before { width: 22px; height: 22px; background-color: var(--accent-bright); }

/* Sous-en-tête (nb articles + total) */
.basket .basket-second-header {
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.basket .basket-second-header .total strong { color: var(--accent-bright); }

/* Liste des articles */
.basket .basket-items { gap: 12px; padding: 16px 18px; }
.basket .basket-item {
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .2s;
}
.basket .basket-item:hover { border-color: var(--accent-line); }
.basket .basket-item .title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.basket .basket-item .options { color: var(--text-faint); font-size: 12px; }
.basket .basket-item .price { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.basket .basket-item .price strong { color: var(--accent-bright); font-size: 16px; }

/* Stepper quantité */
.basket .basket-item .quantity-field {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.basket .basket-item .quantity-field .adjust { border-radius: var(--r-sm); }
.basket .quantity-field input[type=number] { color: var(--text); }
.basket .quantity-field .adjust:hover { background: var(--surface-3); }

/* Bouton supprimer : même cadre que le stepper (bordure + arrondi) */
.basket .basket-item .remove {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: background .2s, border-color .2s;
}
.basket .basket-item .remove:hover {
  background: rgba(229,112,122,.16);
  border-color: rgba(229,112,122,.45);
}

/* Pied : total + bouton checkout */
.basket .basket-checkout {
  padding: 20px 18px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.basket .basket-checkout h3 { font-family: var(--font-mono); font-size: 14px; }
.basket .basket-checkout .total strong { font-family: var(--font-mono); font-size: 26px; color: var(--accent-bright); }
.basket .basket-checkout .checkout {
  height: 52px;
  line-height: 52px;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 10px 28px -12px rgba(47,101,189,.85);
  transition: box-shadow .25s, transform .15s var(--ease);
}
.basket .basket-checkout .checkout:hover {
  box-shadow: 0 16px 36px -12px rgba(47,101,189,.95);
  transform: translateY(-2px);
}

/* Bouton fermer (croix) */
.basket-popup .popup-close { opacity: .7; }
.basket-popup .popup-close:hover { opacity: 1; }

/* Pendant le chargement (update quantité / suppression) Tebex grise tout
   (filter: grayscale). On retire ce grisé pour garder les couleurs. */
.basket-popup-content.updating > * { filter: none; }

/* ============================================================
   NOTIFICATIONS (toasts) — habillage OFFLINE
   ------------------------------------------------------------
   On garde la structure Tebex (.toaster/.toast, animation
   d'entrée/sortie) et on remplace juste l'apparence : fond
   surface, bordure, coin arrondi, barre d'accent colorée.
   ============================================================ */
.toaster { max-width: 420px; }
.toast {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
/* Icône fine, sans pastille colorée */
.toast .toast-ico {
  flex: none;
  display: inline-flex;
  color: var(--text-muted);
}
.toast .toast-ico svg { width: 20px; height: 20px; }
/* IMPORTANT : shared.css force un fond plein vert/rouge via .toast.toast-success
   (2 classes). On le surcharge ici avec la même spécificité pour garder surface. */
.toast.toast-success { background: var(--surface); }
.toast.toast-error   { background: var(--surface); }
.toast.toast-warning { background: var(--surface); }
.toast.toast-success .toast-ico { color: var(--online); }
.toast.toast-error   .toast-ico { color: #e5707a; }
.toast.toast-warning .toast-ico { color: var(--bonus); }
.toast .toast-msg { min-width: 0; line-height: 1.3; }
.toast .toast-close { margin-left: auto; }
.toast .toast-close::before { background-color: var(--text); }

/* ============================================================
   POPUP DE CONNEXION (Tebex) — habillage OFFLINE
   ------------------------------------------------------------
   Contenu injecté par main.js (page /login). On stylise la
   carte, le titre et le bouton "Login via FiveM".
   ============================================================ */
.login-popup-content {
  max-width: 380px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
/* On supprime les grandes marges par défaut du formulaire Tebex */
.login-popup-content > * { margin-bottom: 0 !important; }
.login-popup-content h1,
.login-popup-content h2,
.login-popup-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 24px);
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 18px !important;
}
.login-popup-content p { color: var(--text-muted); margin-bottom: 16px !important; }
.login-popup-content .btn-primary,
.login-popup-content .btn-secondary {
  height: 50px;
  line-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
}
.login-popup-content .btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 10px 28px -12px rgba(47,101,189,.85);
  transition: box-shadow .25s, transform .15s var(--ease);
}
.login-popup-content .btn-primary:hover {
  box-shadow: 0 16px 36px -12px rgba(47,101,189,.95);
  transform: translateY(-2px);
}
.login-popup .popup-close { opacity: .7; }
.login-popup .popup-close:hover { opacity: 1; }

/* ============================================================
   BOUTONS HERO / CTA — MÊME LARGEUR + MÊME HAUTEUR
   (placé en dernier pour gagner sur les règles
   .hero-cta/.cta-actions { display:flex } d'au-dessus)
   ============================================================ */
.hero-cta,
.cta-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;   /* force les 2 cellules à la hauteur de la plus grande */
  gap: 12px;
  max-width: 430px;
}
/* width:100% = même largeur. min-height = hauteur identique garantie (desktop :
   align-items:stretch égalise déjà ; mobile 1 colonne : le min-height évite le
   bug de hauteur gonflée que provoquait height:100% en grille auto). */
.hero-cta > .btn,
.cta-actions > .btn { width: 100%; min-width: 0; min-height: 52px; }
@media (max-width: 480px) {
  .hero-cta,
  .cta-actions { grid-template-columns: 1fr; }
}
