/* ============================================================
   TGC GAMING - OFFICIAL THEME BASED ON EMBLEM & LOGO COLORS
   Palette :
   - Fond Nuit Éthéré : #0c0c16 / #0e0e18
   - Or Mystique / Emblem Gold : #e5c35b / #ffe599 / #cc8e51
   - Violet Arcanique / Royal Purple : #421e66 / #6c337f / #2d0f4c
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Palette Fond inspirée de #0e0e18 */
    --bg-main: #0c0c16;
    --bg-surface: #121222;
    --bg-card: rgba(18, 18, 34, 0.85);
    --bg-card-hover: rgba(28, 26, 52, 0.95);
    --border-subtle: rgba(229, 195, 91, 0.14);
    --border-accent: rgba(229, 195, 91, 0.45);
    
    /* Couleur Principale : L'Or du Logo */
    --primary: #e5c35b;
    --primary-light: #ffe599;
    --primary-dark: #cc8e51;
    --primary-glow: rgba(229, 195, 91, 0.45);
    
    /* Couleur Secondaire : Le Violet Arcanique du Logo */
    --accent-purple: #6c337f;
    --accent-purple-light: #8e44ad;
    --accent-purple-dark: #2d0f4c;
    --accent-purple-glow: rgba(108, 51, 127, 0.5);

    /* Raretés */
    --gold: #e5c35b;
    --gold-light: #ffe599;
    --gold-glow: rgba(229, 195, 91, 0.5);
    
    --silver: #cbd5e1;
    --silver-glow: rgba(203, 213, 225, 0.35);

    /* Types de Mana */
    --mana-arcane: #8e44ad;
    --mana-balistic: #f97316;
    --mana-fury: #ef4444;
    --mana-bravery: #e11d48;
    --mana-tactic: #0ea5e9;
    --mana-emerald: #10b981;
    --mana-speed: #ec4899;
    --mana-shadow: #52267f;

    /* Typographie */
    --text-primary: #f8fafc;
    --text-secondary: #9aa3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Rayons & Ombres */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --shadow-glow: 0 0 25px var(--primary-glow);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 18% 18%, rgba(229, 195, 91, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 82% 25%, rgba(108, 51, 127, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 75%, rgba(66, 30, 102, 0.12) 0%, transparent 60%);
    background-attachment: fixed;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(12, 12, 22, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid var(--border-accent);
    box-shadow: 0 0 16px var(--primary-glow);
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 22px rgba(229, 195, 91, 0.6);
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #0c0c16;
    border-radius: 6px;
    -webkit-text-fill-color: #0c0c16;
    box-shadow: 0 2px 8px rgba(229, 195, 91, 0.35);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* BURGER BUTTON MOBILE */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1002;
}

.nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-light);
    transition: var(--transition);
    border-radius: 2px;
}

/* BOUTONS AUX COULEURS DU LOGO */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #0c0c16;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229, 195, 91, 0.6);
    filter: brightness(1.08);
}

.btn-gold {
    background: linear-gradient(135deg, #ffe599 0%, #e5c35b 50%, #b27c47 100%);
    color: #0c0c16;
    font-weight: 800;
    box-shadow: 0 4px 22px rgba(229, 195, 91, 0.45);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(229, 195, 91, 0.65);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(108, 51, 127, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(229, 195, 91, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(108, 51, 127, 0.35);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(108, 51, 127, 0.4);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* APP STORE BUTTONS */
.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    background: rgba(18, 18, 34, 0.95);
    border: 1px solid rgba(229, 195, 91, 0.3);
    border-radius: var(--radius-md);
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.store-btn:hover {
    background: rgba(28, 26, 52, 0.98);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(229, 195, 91, 0.3);
}

.store-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-btn-text .subtext {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text .title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 85px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    background: rgba(229, 195, 91, 0.1);
    border: 1px solid rgba(229, 195, 91, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(229, 195, 91, 0.15);
}

.hero-pill .dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, var(--primary-light) 65%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-value span {
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* HERO CARDS COMPONENT (SHOWCASE 3D) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.hero-visual-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 195, 91, 0.25) 0%, rgba(108, 51, 127, 0.25) 50%, transparent 70%);
    filter: blur(45px);
    z-index: 1;
    animation: floatGlow 6s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: scale(0.9) translateY(0); }
    100% { transform: scale(1.1) translateY(-20px); }
}

.hero-cards-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 480px;
    z-index: 2;
}

/* TCG CARD DESIGN */
.tcg-card {
    position: absolute;
    width: 250px;
    height: 365px;
    border-radius: 18px;
    overflow: hidden;
    background: #111124;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    border: 2px solid var(--border-subtle);
}

.tcg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 3;
}

.tcg-card.card-gold {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.tcg-card.card-silver {
    border-color: #cbd5e1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(203, 213, 225, 0.2);
}

.tcg-card-img {
    width: 100%;
    height: 64%;
    object-fit: cover;
    display: block;
}

.tcg-card-body {
    padding: 12px 14px;
    height: 36%;
    background: linear-gradient(180deg, #16162e 0%, #0c0c18 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tcg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.tcg-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.tcg-card-clan {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tcg-card-rarity {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.rarity-gold {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #0c0c16;
}

.rarity-silver {
    background: #cbd5e1;
    color: #0f172a;
}

.rarity-common {
    background: #475569;
    color: #fff;
}

.tcg-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-atk { color: #f87171; }
.stat-def { color: #60a5fa; }
.stat-mana {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

/* POSITIONING HERO CARDS */
.hero-card-1 {
    top: 30px;
    left: 20px;
    transform: rotate(-10deg);
    z-index: 2;
}

.hero-card-2 {
    top: 70px;
    right: 15px;
    transform: rotate(8deg);
    z-index: 3;
}

.hero-card-3 {
    top: 10px;
    left: 70px;
    transform: rotate(-2deg);
    z-index: 4;
}

.tcg-card:hover {
    transform: translateY(-16px) scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
}

/* SECTION HEADERS */
.section {
    padding: 90px 0;
    position: relative;
}

.section-alt {
    background: rgba(18, 18, 34, 0.55);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    color: #fff;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.6;
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 22px rgba(229, 195, 91, 0.2);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(229, 195, 91, 0.12);
    border: 1px solid rgba(229, 195, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 22px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-box:hover .feature-icon-wrap {
    transform: scale(1.1);
    background: rgba(229, 195, 91, 0.22);
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* MANA TYPES SHOWCASE */
.mana-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.mana-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.mana-card:hover {
    transform: translateY(-4px);
    border-color: var(--mana-color, var(--primary));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--mana-glow, rgba(229, 195, 91, 0.2));
}

.mana-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mana-icon {
    font-size: 1.6rem;
}

.mana-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.mana-style {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--mana-color, var(--primary-light));
}

.mana-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* BOOSTERS SHOWCASE */
.boosters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.booster-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.booster-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 35px var(--primary-glow);
    background: linear-gradient(180deg, rgba(229, 195, 91, 0.1) 0%, rgba(18, 18, 34, 0.95) 100%);
}

.booster-tag {
    position: absolute;
    top: -12px;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booster-tag.gold {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #0c0c16;
}

.booster-tag.blue {
    background: linear-gradient(135deg, #421e66, #6c337f);
    color: #ffe599;
    border: 1px solid rgba(229, 195, 91, 0.4);
}

.booster-img-wrap {
    width: 190px;
    height: 250px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.booster-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
    transition: var(--transition);
}

.booster-card:hover .booster-img {
    transform: scale(1.08) translateY(-8px);
    filter: drop-shadow(0 20px 35px rgba(229, 195, 91, 0.4));
}

.booster-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.booster-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
    min-height: 48px;
}

.booster-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

/* CARDS GALLERY SHOWCASE */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(229, 195, 91, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #0c0c16;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.cards-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111124;
    border: 2px solid var(--border-subtle);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-color, var(--primary));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--card-glow, var(--primary-glow));
}

.gallery-card-img-wrap {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.06);
}

.gallery-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.gallery-card-clan {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 3px 10px;
    background: rgba(12, 12, 22, 0.85);
    border: 1px solid rgba(229, 195, 91, 0.25);
    border-radius: 6px;
    font-size: 0.72rem;
    color: var(--primary-light);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.gallery-card-info {
    padding: 16px;
    background: #111122;
}

.gallery-card-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.gallery-card-genre {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.gallery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    font-size: 0.82rem;
}

/* CTA DOWNLOAD BANNER */
.download-section {
    padding: 100px 0;
    position: relative;
}

.download-banner {
    background: linear-gradient(135deg, rgba(66, 30, 102, 0.4) 0%, rgba(18, 18, 34, 0.95) 50%, rgba(229, 195, 91, 0.12) 100%);
    border: 1.5px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 65px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(229, 195, 91, 0.2);
}

.download-banner-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 195, 91, 0.2) 0%, rgba(108, 51, 127, 0.2) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(55px);
    z-index: 1;
}

.download-banner-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.download-banner .section-title {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.download-banner .section-subtitle {
    margin-bottom: 36px;
}

.download-banner .app-buttons {
    justify-content: center;
}

/* FOOTER */
.footer {
    background: #080810;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 18px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 28px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* PAGES CONTENU (FAQ, CONTACT, CGU, PRIVACY) */
.page-container {
    padding: 60px 0 100px;
    max-width: 860px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.legal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 12px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p, .legal-card ul {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.legal-card ul {
    padding-left: 24px;
}

.legal-card li {
    margin-bottom: 8px;
}

/* FAQ ACCORDION */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    display: none;
}

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

/* FORMULAIRE DE CONTACT */
.contact-form {
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-light);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(12, 12, 22, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(18, 18, 34, 0.95);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.9rem;
    }
    .hero-cards-stack {
        transform: scale(0.9);
    }
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions, .hero-stats {
        justify-content: center;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-cards-stack {
        transform: scale(0.9);
        height: 420px;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 71px;
        left: 0;
        right: 0;
        background: rgba(12, 12, 22, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .features-grid, .boosters-grid, .cards-gallery-grid, .mana-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cards-stack {
        transform: scale(0.8);
        height: 380px;
    }

    .download-banner {
        padding: 40px 20px;
    }

    .legal-card, .contact-form {
        padding: 24px 18px;
    }
}