/*
Theme Name: RetroGameX Neon
Theme URI: https://retrogamex.fr/
Description: Thème enfant Astra sur mesure pour la boutique RetroGameX.
Author: RetroGameX
Version: 1.0.0
Template: astra
Text Domain: retrogamex-neon
Requires at least: 6.5
Requires PHP: 8.1
*/

:root {
  --rgx-bg: #07060b;
  --rgx-surface: #100e17;
  --rgx-surface-2: #171321;
  --rgx-text: #f7f5ff;
  --rgx-muted: #a7a1b6;
  --rgx-line: rgba(255,255,255,.10);
  --rgx-purple: #7c3aed;
  --rgx-violet: #a78bfa;
  --rgx-gold: #d6ad69;
  --rgx-success: #72e5a1;
  --rgx-radius: 22px;
  --rgx-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rgx-home { margin: 0; background: var(--rgx-bg); color: var(--rgx-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.rgx-home a { color: inherit; text-decoration: none; }
body.rgx-home img { max-width: 100%; display: block; }
.rgx-shell { width: min(calc(100% - 40px), var(--rgx-max)); margin-inline: auto; }
.rgx-skip { position: fixed; left: 16px; top: -80px; z-index: 9999; background: #fff; color: #111; padding: 12px 18px; border-radius: 8px; }
.rgx-skip:focus { top: 16px; }

.rgx-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: rgba(7,6,11,.78); border-bottom: 1px solid var(--rgx-line); }
.rgx-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rgx-logo { font-size: 1.22rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.rgx-logo span { color: var(--rgx-violet); }
.rgx-nav { display: flex; align-items: center; gap: 26px; color: var(--rgx-muted); font-size: .84rem; }
.rgx-nav a:hover, .rgx-nav a:focus-visible { color: #fff; }
.rgx-cart { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(167,139,250,.4); border-radius: 999px; color: #fff !important; }
.rgx-menu-button { display: none; border: 1px solid var(--rgx-line); background: transparent; color: #fff; border-radius: 9px; padding: 9px 12px; }

.rgx-hero { position: relative; overflow: hidden; padding: 92px 0 72px; min-height: 720px; display: grid; align-items: center; }
.rgx-hero::before { content: ""; position: absolute; width: 660px; height: 660px; border-radius: 50%; right: -130px; top: 30px; background: radial-gradient(circle, rgba(124,58,237,.28), transparent 68%); filter: blur(10px); }
.rgx-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }
.rgx-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--rgx-violet); font-size: .73rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.rgx-eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.rgx-title { margin: 20px 0 22px; max-width: 760px; font-size: clamp(3.2rem, 7vw, 6.8rem); line-height: .88; letter-spacing: -.055em; font-weight: 850; }
.rgx-title em { display: block; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.68); font-style: normal; }
.rgx-lead { max-width: 650px; color: var(--rgx-muted); font-size: 1.05rem; line-height: 1.8; }
.rgx-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0; color: #d9d4e6; font-size: .84rem; }
.rgx-proof span::before { content: "✓"; color: var(--rgx-success); margin-right: 7px; }
.rgx-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.rgx-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; background: linear-gradient(135deg, var(--rgx-purple), #5b21b6); color: #fff !important; font-weight: 800; box-shadow: 0 16px 44px rgba(124,58,237,.3); transition: transform .2s ease, box-shadow .2s ease; }
.rgx-button:hover { transform: translateY(-2px); box-shadow: 0 20px 54px rgba(124,58,237,.42); }
.rgx-button--ghost { background: transparent; border: 1px solid var(--rgx-line); box-shadow: none; }
.rgx-price { font-size: 1.65rem; font-weight: 850; }
.rgx-price del { color: #777184; font-size: .95rem; font-weight: 500; margin-right: 8px; }
.rgx-visual { position: relative; min-height: 560px; border: 1px solid rgba(167,139,250,.18); border-radius: 38px; overflow: hidden; background: #15101f url('assets/images/console-dual-card.jpeg') center 43% / cover no-repeat; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.rgx-visual::after { content: "Visuel produit"; position: absolute; left: 20px; bottom: 20px; padding: 8px 12px; border-radius: 999px; background: rgba(7,6,11,.72); border: 1px solid var(--rgx-line); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }

.rgx-strip { border-block: 1px solid var(--rgx-line); background: rgba(255,255,255,.018); }
.rgx-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rgx-strip-item { padding: 25px 22px; border-right: 1px solid var(--rgx-line); }
.rgx-strip-item:last-child { border-right: 0; }
.rgx-strip-value { font-size: 1.3rem; font-weight: 850; }
.rgx-strip-label { color: var(--rgx-muted); font-size: .76rem; margin-top: 4px; }

.rgx-section { padding: 100px 0; }
.rgx-section--surface { background: var(--rgx-surface); }
.rgx-section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 52px; align-items: end; margin-bottom: 48px; }
.rgx-kicker { color: var(--rgx-gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.rgx-h2 { margin: 8px 0 0; font-size: clamp(2.25rem, 4.5vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.rgx-section-copy { color: var(--rgx-muted); max-width: 650px; line-height: 1.8; }
.rgx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rgx-card { min-height: 235px; padding: 28px; border: 1px solid var(--rgx-line); border-radius: var(--rgx-radius); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.rgx-card-index { color: var(--rgx-violet); font: 800 .72rem/1 ui-monospace, monospace; }
.rgx-card h3 { margin: 48px 0 10px; font-size: 1.28rem; }
.rgx-card p { margin: 0; color: var(--rgx-muted); line-height: 1.7; font-size: .9rem; }

.rgx-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rgx-product-photo { min-height: 650px; border-radius: 30px; overflow: hidden; border: 1px solid var(--rgx-line); background: #171522 url('assets/images/console-features.jpeg') center 43% / cover no-repeat; }
.rgx-product-panel { border-radius: 30px; padding: 46px; border: 1px solid var(--rgx-line); background: var(--rgx-surface-2); display: flex; flex-direction: column; justify-content: center; }
.rgx-product-panel h2 { margin: 12px 0 18px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.rgx-product-panel p { color: var(--rgx-muted); line-height: 1.75; }
.rgx-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.rgx-list li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; color: #ded9e8; }
.rgx-list li::before { content: "↗"; color: var(--rgx-violet); }
.rgx-notice { padding: 16px 18px; margin-top: 20px; border-left: 3px solid var(--rgx-success); background: rgba(114,229,161,.07); color: #ccebd8; line-height: 1.6; font-size: .85rem; }

.rgx-faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; }
.rgx-faq-list { border-top: 1px solid var(--rgx-line); }
.rgx-faq details { border-bottom: 1px solid var(--rgx-line); padding: 20px 0; }
.rgx-faq summary { cursor: pointer; font-weight: 750; }
.rgx-faq details p { color: var(--rgx-muted); line-height: 1.7; padding-right: 22px; }

.rgx-cta { padding: 90px 0; text-align: center; background: radial-gradient(circle at 50% 100%, rgba(124,58,237,.25), transparent 55%); }
.rgx-cta h2 { margin: 10px auto 18px; max-width: 820px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; }
.rgx-cta p { color: var(--rgx-muted); max-width: 600px; margin: 0 auto 30px; }
.rgx-footer { border-top: 1px solid var(--rgx-line); padding: 34px 0; color: var(--rgx-muted); font-size: .78rem; }
.rgx-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.rgx-footer-links { display: flex; gap: 20px; }
.rgx-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .rgx-menu-button { display: inline-flex; }
  .rgx-nav { display: none; position: absolute; inset: 76px 20px auto; padding: 22px; border: 1px solid var(--rgx-line); border-radius: 16px; background: #100e17; flex-direction: column; align-items: stretch; }
  .rgx-nav.is-open { display: flex; }
  .rgx-hero { padding-top: 60px; }
  .rgx-hero-grid, .rgx-section-head, .rgx-product-grid, .rgx-faq { grid-template-columns: 1fr; }
  .rgx-visual { min-height: 500px; }
  .rgx-strip-grid { grid-template-columns: 1fr 1fr; }
  .rgx-strip-item:nth-child(2) { border-right: 0; }
  .rgx-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--rgx-line); }
  .rgx-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .rgx-shell { width: min(calc(100% - 28px), var(--rgx-max)); }
  .rgx-header-inner { min-height: 68px; }
  .rgx-nav { top: 68px; }
  .rgx-hero { min-height: auto; padding: 54px 0 42px; }
  .rgx-title { font-size: clamp(3rem, 17vw, 4.8rem); }
  .rgx-lead { font-size: .96rem; }
  .rgx-visual { min-height: 430px; border-radius: 24px; }
  .rgx-cards, .rgx-strip-grid { grid-template-columns: 1fr; }
  .rgx-strip-item { border-right: 0; border-bottom: 1px solid var(--rgx-line); }
  .rgx-section { padding: 70px 0; }
  .rgx-product-photo { min-height: 520px; }
  .rgx-product-panel { padding: 30px 24px; }
  .rgx-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
