/* ========================================
   RETROXGAMES - SALES PAGE STYLES
   Design inspired by goret-team.fr
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* === DESIGN SYSTEM === */
    --primary-violet: #7C3AED;
    --primary-green: #22C55E;
    --primary-gradient: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%);

    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --bg-card: #121212;

    --text-white: #FFFFFF;
    --text-light: #F3F4F6;
    --text-gray: #9CA3AF;

    --border-dark: #27272A;
    --border-accent: rgba(124, 58, 237, 0.3);

    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --shadow-soft: 0 4px 20px rgba(79, 70, 229, 0.15);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);

    --radius-btn: 14px;
    --radius-card: 20px;

    --container-max: 1200px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === CORRECTIONS HEADER === */

/* Force le header en haut */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 9999;
    padding: 10px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 6px 0;
    background: rgba(5, 5, 5, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Container header */
header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav container avec logo + links */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

/* Logo optimisé */
header .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 800;
    font-size: 18px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

header .logo:hover {
    color: var(--primary-green);
}

/* Navigation desktop */
.desktop-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

.desktop-nav>a,
.desktop-nav>.dropdown>a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.desktop-nav>a:hover,
.desktop-nav>.dropdown>a:hover {
    color: var(--primary-green);
    background: rgba(34, 197, 94, 0.1);
}

/* Dropdown corrigé */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown>a {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    text-align: left;
    transition: all 0.25s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: var(--text-white);
    padding-left: 25px;
}

@media (max-width: 900px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-group {
        justify-content: center;
    }
}

/* Burger menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--primary-green);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* === RESPONSIVE === */

/* Tablettes et mobiles */
@media (max-width: 1200px) {
    .desktop-nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    header .logo {
        font-size: 16px;
    }
}

/* Mobile portrait */
@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }

    body {
        padding-top: 60px;
    }

    header .logo {
        font-size: 15px;
        gap: 6px;
    }
}

/* Menu mobile sidebar */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    padding: 70px 20px 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#mobile-menu.active {
    right: 0;
}

#mobile-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#mobile-menu a:hover {
    color: var(--primary-green);
    padding-left: 10px;
}

/* Overlay mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === HERO === */
.hero {
    background-color: #020202;
    background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(5, 5, 5, 0.9)), url('images/consoles-retro.jpeg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
}

h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* === GRID & CARDS === */
.product-grid-3,
.product-grid-2,
.product-grid-1 {
    display: grid;
    gap: 30px;
    margin: 50px 0;
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-grid-1 {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-card);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-violet);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.product-grid-1 .product-image img {
    max-height: 350px;
}

.cta-button,
.cta-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 225, 0.3);
}

.cta-button:hover,
.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 225, 0.4);
    filter: brightness(1.1);
}

.cta-button-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-gray);
    transform: translateY(-2px);
}

/* === SPOTLIGHT SECTION === */
.premium-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #0a0a0a, #111);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.spotlight-image {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spotlight-image img {
    max-width: 450px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.lead {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.highlight-list {
    list-style: none;
    margin-bottom: 30px;
}

.highlight-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
}

.highlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.price-box {
    background: rgba(34, 197, 94, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
    margin-bottom: 30px;
    display: inline-block;
}

.price-label {
    font-size: 14px;
    color: var(--text-gray);
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.specs-table {
    margin-top: 60px;
    background: #111;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-dark);
}

.specs-table h4 {
    margin-bottom: 25px;
    font-size: 20px;
}

.specs-table table {
    width: 100%;
}

.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === JAPANESE SECTION === */
.japanese-section {
    padding: 80px 0;
    background: #000;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-gray);
}

/* === COMPARISON TABLE === */
.comparison-section {
    padding: 80px 0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    margin: 40px 0;
    box-shadow: var(--shadow-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

th,
td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-dark);
}

th {
    background: var(--bg-darker);
    color: var(--primary-violet);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.table-cta {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-violet);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
}

.table-cta:hover {
    background: var(--primary-green);
    transform: scale(1.05);
}

/* === FAQ === */
.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-dark);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: var(--primary-violet);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-gray);
    display: none;
    font-size: 16px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* === GUIDE D'ACHAT === */
.guide-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.guide-content {
    max-width: 1000px;
    margin: 0 auto;
}

.guide-block {
    margin-bottom: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-soft);
}

.guide-block h3 {
    font-size: 24px;
    color: var(--primary-violet);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 10px;
    display: inline-block;
}

.budget-tiers,
.profile-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tier,
.profile,
.criterion {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tier:hover,
.profile:hover,
.criterion:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-violet);
    transform: translateY(-5px);
}

.tier h4,
.profile h4,
.criterion h4 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier p,
.profile p,
.criterion p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.guide-list {
    list-style: none;
    display: grid;
    gap: 20px;
}

.guide-list li {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-violet);
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .guide-block {
        padding: 25px;
    }

    .budget-tiers,
    .profile-recommendations,
    .criteria-grid {
        grid-template-columns: 1fr;
    }
}

/* === FOOTER === */
.site-footer {
    padding: 80px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

.site-footer p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 13px;
    max-width: 800px;
    margin: 30px auto 0;
    color: #555;
}

/* === UTILS === */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 15px;
}